From df94be43893f9a0bcfee42e225d24c19dcd3e9ea Mon Sep 17 00:00:00 2001 From: irenjj Date: Tue, 30 Jul 2024 00:17:10 +0800 Subject: [PATCH 01/12] chore: change AlterExpr api --- c++/greptime/v1/ddl.pb.cc | 760 +++- c++/greptime/v1/ddl.pb.h | 623 +++- go/greptime/v1/ddl.pb.go | 597 ++-- java/src/main/java/io/greptime/v1/Ddl.java | 3655 +++++++++++++++----- proto/greptime/v1/ddl.proto | 8 + 5 files changed, 4500 insertions(+), 1143 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index e7672ccd..6427c5ca 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -289,6 +289,19 @@ struct ChangeColumnTypesDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; +PROTOBUF_CONSTEXPR AddFulltexts::AddFulltexts( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.add_fulltexts_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AddFulltextsDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddFulltextsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddFulltextsDefaultTypeInternal() {} + union { + AddFulltexts _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltextsDefaultTypeInternal _AddFulltexts_default_instance_; PROTOBUF_CONSTEXPR RenameTable::RenameTable( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.new_table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -331,6 +344,31 @@ struct ChangeColumnTypeDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; +PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {} + union { + AddFulltext_OptionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _AddFulltext_OptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AddFulltext::AddFulltext( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct AddFulltextDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddFulltextDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddFulltextDefaultTypeInternal() {} + union { + AddFulltext _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltextDefaultTypeInternal _AddFulltext_default_instance_; PROTOBUF_CONSTEXPR DropColumn::DropColumn( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -406,7 +444,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[28]; 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 +568,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_), @@ -603,6 +642,13 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _impl_.change_column_types_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltexts, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltexts, _impl_.add_fulltexts_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::RenameTable, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -626,6 +672,24 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.column_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_extension_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumn, _internal_metadata_), ~0u, // no _extensions_ @@ -680,22 +744,25 @@ 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::AddFulltexts)}, + { 199, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 206, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 214, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, + { 223, 231, -1, sizeof(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse)}, + { 233, -1, -1, sizeof(::greptime::v1::AddFulltext)}, + { 241, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 248, -1, -1, sizeof(::greptime::v1::TableId)}, + { 255, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 262, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 276, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -716,9 +783,12 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_AddColumns_default_instance_._instance, &::greptime::v1::_DropColumns_default_instance_._instance, &::greptime::v1::_ChangeColumnTypes_default_instance_._instance, + &::greptime::v1::_AddFulltexts_default_instance_._instance, &::greptime::v1::_RenameTable_default_instance_._instance, &::greptime::v1::_AddColumn_default_instance_._instance, &::greptime::v1::_ChangeColumnType_default_instance_._instance, + &::greptime::v1::_AddFulltext_OptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::_AddFulltext_default_instance_._instance, &::greptime::v1::_DropColumn_default_instance_._instance, &::greptime::v1::_TableId_default_instance_._instance, &::greptime::v1::_FlowId_default_instance_._instance, @@ -773,66 +843,72 @@ 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\"\331\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\0222\n" + "\radd_fulltexts\030\010 \001(\0132\031.greptime.v1.AddFu" + "lltextsH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014c" + "atalog_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.g" + "reptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001" + "(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_nam" + "e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_i" + "f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr" + "eptime.v1.CreateDatabaseExpr.OptionsEntr" + "y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo" + "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab" + "le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti" + "me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat" + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016" + "drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad" + "d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"" + "<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g" + "reptime.v1.DropColumn\"O\n\021ChangeColumnTyp" + "es\022:\n\023change_column_types\030\001 \003(\0132\035.grepti" + "me.v1.ChangeColumnType\"\?\n\014AddFulltexts\022/" + "\n\radd_fulltexts\030\001 \003(\0132\030.greptime.v1.AddF" + "ulltext\"%\n\013RenameTable\022\026\n\016new_table_name" + "\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132" + "\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001(" + "\0132\036.greptime.v1.AddColumnLocation\"\236\001\n\020Ch" + "angeColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013t" + "arget_type\030\002 \001(\0162\033.greptime.v1.ColumnDat" + "aType\022C\n\025target_type_extension\030\003 \001(\0132$.g" + "reptime.v1.ColumnDataTypeExtension\"\212\001\n\013A" + "ddFulltext\022\023\n\013column_name\030\001 \001(\t\0226\n\007optio" + "ns\030\002 \003(\0132%.greptime.v1.AddFulltext.Optio" + "nsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + "value\030\002 \001(\t:\0028\001\"\032\n\nDropColumn\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\002" + "id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\t" + "data_type\030\002 \001(\0162\033.greptime.v1.ColumnData" + "Type\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_con" + "straint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.g" + "reptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t" + "\022@\n\022datatype_extension\030\007 \001(\0132$.greptime." + "v1.ColumnDataTypeExtension\022+\n\007options\030\010 " + "\001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021AddC" + "olumnLocation\022B\n\rlocation_type\030\001 \001(\0162+.g" + "reptime.v1.AddColumnLocation.LocationTyp" + "e\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Location" + "Type\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptim" + "e.v1B\003DdlZ5github.com/GreptimeTeam/grept" + "ime-proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 3854, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 4112, 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, 28, 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 +4244,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::AddFulltexts& add_fulltexts(const AlterExpr* msg); }; const ::greptime::v1::AddColumns& @@ -4186,6 +4263,10 @@ const ::greptime::v1::ChangeColumnTypes& AlterExpr::_Internal::change_column_types(const AlterExpr* msg) { return *msg->_impl_.kind_.change_column_types_; } +const ::greptime::v1::AddFulltexts& +AlterExpr::_Internal::add_fulltexts(const AlterExpr* msg) { + return *msg->_impl_.kind_.add_fulltexts_; +} void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -4246,6 +4327,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_add_fulltexts(::greptime::v1::AddFulltexts* add_fulltexts) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (add_fulltexts) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(add_fulltexts); + if (message_arena != submessage_arena) { + add_fulltexts = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, add_fulltexts, submessage_arena); + } + set_has_add_fulltexts(); + _impl_.kind_.add_fulltexts_ = add_fulltexts; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.add_fulltexts) +} AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -4310,6 +4406,11 @@ AlterExpr::AlterExpr(const AlterExpr& from) from._internal_change_column_types()); break; } + case kAddFulltexts: { + _this->_internal_mutable_add_fulltexts()->::greptime::v1::AddFulltexts::MergeFrom( + from._internal_add_fulltexts()); + break; + } case KIND_NOT_SET: { break; } @@ -4394,6 +4495,12 @@ void AlterExpr::clear_kind() { } break; } + case kAddFulltexts: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.add_fulltexts_; + } + break; + } case KIND_NOT_SET: { break; } @@ -4483,6 +4590,14 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; + // .greptime.v1.AddFulltexts add_fulltexts = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_add_fulltexts(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -4570,6 +4685,13 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::change_column_types(this).GetCachedSize(), target, stream); } + // .greptime.v1.AddFulltexts add_fulltexts = 8; + if (_internal_has_add_fulltexts()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::add_fulltexts(this), + _Internal::add_fulltexts(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 +4758,13 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.change_column_types_); break; } + // .greptime.v1.AddFulltexts add_fulltexts = 8; + case kAddFulltexts: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.add_fulltexts_); + break; + } case KIND_NOT_SET: { break; } @@ -4688,6 +4817,11 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT from._internal_change_column_types()); break; } + case kAddFulltexts: { + _this->_internal_mutable_add_fulltexts()->::greptime::v1::AddFulltexts::MergeFrom( + from._internal_add_fulltexts()); + break; + } case KIND_NOT_SET: { break; } @@ -6653,6 +6787,191 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const { // =================================================================== +class AddFulltexts::_Internal { + public: +}; + +AddFulltexts::AddFulltexts(::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.AddFulltexts) +} +AddFulltexts::AddFulltexts(const AddFulltexts& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AddFulltexts* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.add_fulltexts_){from._impl_.add_fulltexts_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.AddFulltexts) +} + +inline void AddFulltexts::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.add_fulltexts_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +AddFulltexts::~AddFulltexts() { + // @@protoc_insertion_point(destructor:greptime.v1.AddFulltexts) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AddFulltexts::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.add_fulltexts_.~RepeatedPtrField(); +} + +void AddFulltexts::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AddFulltexts::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.AddFulltexts) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.add_fulltexts_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddFulltexts::_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.AddFulltext add_fulltexts = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_add_fulltexts(), 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* AddFulltexts::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddFulltexts) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.AddFulltext add_fulltexts = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_add_fulltexts_size()); i < n; i++) { + const auto& repfield = this->_internal_add_fulltexts(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.AddFulltexts) + return target; +} + +size_t AddFulltexts::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddFulltexts) + 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.AddFulltext add_fulltexts = 1; + total_size += 1UL * this->_internal_add_fulltexts_size(); + for (const auto& msg : this->_impl_.add_fulltexts_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddFulltexts::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AddFulltexts::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddFulltexts::GetClassData() const { return &_class_data_; } + + +void AddFulltexts::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.AddFulltexts) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.add_fulltexts_.MergeFrom(from._impl_.add_fulltexts_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AddFulltexts::CopyFrom(const AddFulltexts& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddFulltexts) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddFulltexts::IsInitialized() const { + return true; +} + +void AddFulltexts::InternalSwap(AddFulltexts* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.add_fulltexts_.InternalSwap(&other->_impl_.add_fulltexts_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AddFulltexts::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); +} + +// =================================================================== + class RenameTable::_Internal { public: }; @@ -6851,7 +7170,7 @@ void RenameTable::InternalSwap(RenameTable* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); } // =================================================================== @@ -7090,7 +7409,7 @@ void AddColumn::InternalSwap(AddColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); } // =================================================================== @@ -7375,7 +7694,292 @@ void ChangeColumnType::InternalSwap(ChangeColumnType* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnType::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); +} + +// =================================================================== + +AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse() {} +AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void AddFulltext_OptionsEntry_DoNotUse::MergeFrom(const AddFulltext_OptionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext_OptionsEntry_DoNotUse::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 AddFulltext::_Internal { + public: +}; + +AddFulltext::AddFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AddFulltext::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:greptime.v1.AddFulltext) +} +AddFulltext::AddFulltext(const AddFulltext& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AddFulltext* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.options_)*/{} + , decltype(_impl_.column_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.options_.MergeFrom(from._impl_.options_); + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.AddFulltext) +} + +inline void AddFulltext::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.column_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AddFulltext::~AddFulltext() { + // @@protoc_insertion_point(destructor:greptime.v1.AddFulltext) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void AddFulltext::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.options_.Destruct(); + _impl_.options_.~MapField(); + _impl_.column_name_.Destroy(); +} + +void AddFulltext::ArenaDtor(void* object) { + AddFulltext* _this = reinterpret_cast< AddFulltext* >(object); + _this->_impl_.options_.Destruct(); +} +void AddFulltext::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AddFulltext::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.AddFulltext) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.options_.Clear(); + _impl_.column_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string column_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.AddFulltext.column_name")); + } else + goto handle_unusual; + continue; + // map options = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.options_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* AddFulltext::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddFulltext) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.AddFulltext.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // map options = 2; + if (!this->_internal_options().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AddFulltext_OptionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_options(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.AddFulltext.OptionsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.AddFulltext.OptionsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + 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.AddFulltext) + return target; +} + +size_t AddFulltext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddFulltext) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map options = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_options().begin(); + it != this->_internal_options().end(); ++it) { + total_size += AddFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddFulltext::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AddFulltext::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddFulltext::GetClassData() const { return &_class_data_; } + + +void AddFulltext::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.AddFulltext) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.options_.MergeFrom(from._impl_.options_); + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AddFulltext::CopyFrom(const AddFulltext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddFulltext) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddFulltext::IsInitialized() const { + return true; +} + +void AddFulltext::InternalSwap(AddFulltext* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.options_.InternalSwap(&other->_impl_.options_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext::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]); } // =================================================================== @@ -7578,7 +8182,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[23]); } // =================================================================== @@ -7756,7 +8360,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[24]); } // =================================================================== @@ -7934,7 +8538,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[25]); } // =================================================================== @@ -8416,7 +9020,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[26]); } // =================================================================== @@ -8649,7 +9253,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[27]); } // @@protoc_insertion_point(namespace_scope) @@ -8724,6 +9328,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnTypes >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::AddFulltexts* +Arena::CreateMaybeMessage< ::greptime::v1::AddFulltexts >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::AddFulltexts >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::RenameTable* Arena::CreateMaybeMessage< ::greptime::v1::RenameTable >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::RenameTable >(arena); @@ -8736,6 +9344,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::AddFulltext_OptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::AddFulltext* +Arena::CreateMaybeMessage< ::greptime::v1::AddFulltext >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::AddFulltext >(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..06a4d1a6 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -60,6 +60,15 @@ extern AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_ class AddColumns; struct AddColumnsDefaultTypeInternal; extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_; +class AddFulltext; +struct AddFulltextDefaultTypeInternal; +extern AddFulltextDefaultTypeInternal _AddFulltext_default_instance_; +class AddFulltext_OptionsEntry_DoNotUse; +struct AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal; +extern AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _AddFulltext_OptionsEntry_DoNotUse_default_instance_; +class AddFulltexts; +struct AddFulltextsDefaultTypeInternal; +extern AddFulltextsDefaultTypeInternal _AddFulltexts_default_instance_; class AlterExpr; struct AlterExprDefaultTypeInternal; extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_; @@ -132,6 +141,9 @@ PROTOBUF_NAMESPACE_OPEN template<> ::greptime::v1::AddColumn* Arena::CreateMaybeMessage<::greptime::v1::AddColumn>(Arena*); template<> ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage<::greptime::v1::AddColumnLocation>(Arena*); template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::AddColumns>(Arena*); +template<> ::greptime::v1::AddFulltext* Arena::CreateMaybeMessage<::greptime::v1::AddFulltext>(Arena*); +template<> ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::AddFulltext_OptionsEntry_DoNotUse>(Arena*); +template<> ::greptime::v1::AddFulltexts* Arena::CreateMaybeMessage<::greptime::v1::AddFulltexts>(Arena*); template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*); template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*); template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*); @@ -2011,6 +2023,7 @@ class AlterExpr final : kDropColumns = 5, kRenameTable = 6, kChangeColumnTypes = 7, + kAddFulltexts = 8, KIND_NOT_SET = 0, }; @@ -2099,6 +2112,7 @@ class AlterExpr final : kDropColumnsFieldNumber = 5, kRenameTableFieldNumber = 6, kChangeColumnTypesFieldNumber = 7, + kAddFulltextsFieldNumber = 8, }; // string catalog_name = 1; void clear_catalog_name(); @@ -2214,6 +2228,24 @@ class AlterExpr final : ::greptime::v1::ChangeColumnTypes* change_column_types); ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + // .greptime.v1.AddFulltexts add_fulltexts = 8; + bool has_add_fulltexts() const; + private: + bool _internal_has_add_fulltexts() const; + public: + void clear_add_fulltexts(); + const ::greptime::v1::AddFulltexts& add_fulltexts() const; + PROTOBUF_NODISCARD ::greptime::v1::AddFulltexts* release_add_fulltexts(); + ::greptime::v1::AddFulltexts* mutable_add_fulltexts(); + void set_allocated_add_fulltexts(::greptime::v1::AddFulltexts* add_fulltexts); + private: + const ::greptime::v1::AddFulltexts& _internal_add_fulltexts() const; + ::greptime::v1::AddFulltexts* _internal_mutable_add_fulltexts(); + public: + void unsafe_arena_set_allocated_add_fulltexts( + ::greptime::v1::AddFulltexts* add_fulltexts); + ::greptime::v1::AddFulltexts* unsafe_arena_release_add_fulltexts(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.AlterExpr) @@ -2223,6 +2255,7 @@ class AlterExpr final : void set_has_drop_columns(); void set_has_rename_table(); void set_has_change_column_types(); + void set_has_add_fulltexts(); inline bool has_kind() const; inline void clear_has_kind(); @@ -2241,6 +2274,7 @@ class AlterExpr final : ::greptime::v1::DropColumns* drop_columns_; ::greptime::v1::RenameTable* rename_table_; ::greptime::v1::ChangeColumnTypes* change_column_types_; + ::greptime::v1::AddFulltexts* add_fulltexts_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -3557,6 +3591,163 @@ class ChangeColumnTypes final : }; // ------------------------------------------------------------------- +class AddFulltexts final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddFulltexts) */ { + public: + inline AddFulltexts() : AddFulltexts(nullptr) {} + ~AddFulltexts() override; + explicit PROTOBUF_CONSTEXPR AddFulltexts(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddFulltexts(const AddFulltexts& from); + AddFulltexts(AddFulltexts&& from) noexcept + : AddFulltexts() { + *this = ::std::move(from); + } + + inline AddFulltexts& operator=(const AddFulltexts& from) { + CopyFrom(from); + return *this; + } + inline AddFulltexts& operator=(AddFulltexts&& 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 AddFulltexts& default_instance() { + return *internal_default_instance(); + } + static inline const AddFulltexts* internal_default_instance() { + return reinterpret_cast( + &_AddFulltexts_default_instance_); + } + static constexpr int kIndexInFileMessages = + 17; + + friend void swap(AddFulltexts& a, AddFulltexts& b) { + a.Swap(&b); + } + inline void Swap(AddFulltexts* 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(AddFulltexts* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddFulltexts* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddFulltexts& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AddFulltexts& from) { + AddFulltexts::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(AddFulltexts* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.AddFulltexts"; + } + protected: + explicit AddFulltexts(::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 { + kAddFulltextsFieldNumber = 1, + }; + // repeated .greptime.v1.AddFulltext add_fulltexts = 1; + int add_fulltexts_size() const; + private: + int _internal_add_fulltexts_size() const; + public: + void clear_add_fulltexts(); + ::greptime::v1::AddFulltext* mutable_add_fulltexts(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext >* + mutable_add_fulltexts(); + private: + const ::greptime::v1::AddFulltext& _internal_add_fulltexts(int index) const; + ::greptime::v1::AddFulltext* _internal_add_add_fulltexts(); + public: + const ::greptime::v1::AddFulltext& add_fulltexts(int index) const; + ::greptime::v1::AddFulltext* add_add_fulltexts(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext >& + add_fulltexts() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltexts) + 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::AddFulltext > add_fulltexts_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class RenameTable final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RenameTable) */ { public: @@ -3605,7 +3796,7 @@ class RenameTable final : &_RenameTable_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; friend void swap(RenameTable& a, RenameTable& b) { a.Swap(&b); @@ -3758,7 +3949,7 @@ class AddColumn final : &_AddColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(AddColumn& a, AddColumn& b) { a.Swap(&b); @@ -3935,7 +4126,7 @@ class ChangeColumnType final : &_ChangeColumnType_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(ChangeColumnType& a, ChangeColumnType& b) { a.Swap(&b); @@ -4071,6 +4262,213 @@ class ChangeColumnType final : }; // ------------------------------------------------------------------- +class AddFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AddFulltext_OptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AddFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AddFulltext_OptionsEntry_DoNotUse& other); + static const AddFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AddFulltext_OptionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.AddFulltext.OptionsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.AddFulltext.OptionsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; + +// ------------------------------------------------------------------- + +class AddFulltext final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddFulltext) */ { + public: + inline AddFulltext() : AddFulltext(nullptr) {} + ~AddFulltext() override; + explicit PROTOBUF_CONSTEXPR AddFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + AddFulltext(const AddFulltext& from); + AddFulltext(AddFulltext&& from) noexcept + : AddFulltext() { + *this = ::std::move(from); + } + + inline AddFulltext& operator=(const AddFulltext& from) { + CopyFrom(from); + return *this; + } + inline AddFulltext& operator=(AddFulltext&& 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 AddFulltext& default_instance() { + return *internal_default_instance(); + } + static inline const AddFulltext* internal_default_instance() { + return reinterpret_cast( + &_AddFulltext_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(AddFulltext& a, AddFulltext& b) { + a.Swap(&b); + } + inline void Swap(AddFulltext* 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(AddFulltext* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + AddFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const AddFulltext& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const AddFulltext& from) { + AddFulltext::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(AddFulltext* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.AddFulltext"; + } + protected: + explicit AddFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + 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 { + kOptionsFieldNumber = 2, + kColumnNameFieldNumber = 1, + }; + // map options = 2; + int options_size() const; + private: + int _internal_options_size() const; + public: + void clear_options(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_options(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_options(); + + // string column_name = 1; + void clear_column_name(); + const std::string& column_name() const; + template + void set_column_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_column_name(); + PROTOBUF_NODISCARD std::string* release_column_name(); + void set_allocated_column_name(std::string* column_name); + private: + const std::string& _internal_column_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); + std::string* _internal_mutable_column_name(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltext) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AddFulltext_OptionsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + 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 +4517,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 23; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -4272,7 +4670,7 @@ class TableId final : &_TableId_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 24; friend void swap(TableId& a, TableId& b) { a.Swap(&b); @@ -4420,7 +4818,7 @@ class FlowId final : &_FlowId_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 25; friend void swap(FlowId& a, FlowId& b) { a.Swap(&b); @@ -4568,7 +4966,7 @@ class ColumnDef final : &_ColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 26; friend void swap(ColumnDef& a, ColumnDef& b) { a.Swap(&b); @@ -4826,7 +5224,7 @@ class AddColumnLocation final : &_AddColumnLocation_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 27; friend void swap(AddColumnLocation& a, AddColumnLocation& b) { a.Swap(&b); @@ -8107,6 +8505,80 @@ inline ::greptime::v1::ChangeColumnTypes* AlterExpr::mutable_change_column_types return _msg; } +// .greptime.v1.AddFulltexts add_fulltexts = 8; +inline bool AlterExpr::_internal_has_add_fulltexts() const { + return kind_case() == kAddFulltexts; +} +inline bool AlterExpr::has_add_fulltexts() const { + return _internal_has_add_fulltexts(); +} +inline void AlterExpr::set_has_add_fulltexts() { + _impl_._oneof_case_[0] = kAddFulltexts; +} +inline void AlterExpr::clear_add_fulltexts() { + if (_internal_has_add_fulltexts()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.add_fulltexts_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::AddFulltexts* AlterExpr::release_add_fulltexts() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.add_fulltexts) + if (_internal_has_add_fulltexts()) { + clear_has_kind(); + ::greptime::v1::AddFulltexts* temp = _impl_.kind_.add_fulltexts_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.add_fulltexts_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::AddFulltexts& AlterExpr::_internal_add_fulltexts() const { + return _internal_has_add_fulltexts() + ? *_impl_.kind_.add_fulltexts_ + : reinterpret_cast< ::greptime::v1::AddFulltexts&>(::greptime::v1::_AddFulltexts_default_instance_); +} +inline const ::greptime::v1::AddFulltexts& AlterExpr::add_fulltexts() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.add_fulltexts) + return _internal_add_fulltexts(); +} +inline ::greptime::v1::AddFulltexts* AlterExpr::unsafe_arena_release_add_fulltexts() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.add_fulltexts) + if (_internal_has_add_fulltexts()) { + clear_has_kind(); + ::greptime::v1::AddFulltexts* temp = _impl_.kind_.add_fulltexts_; + _impl_.kind_.add_fulltexts_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterExpr::unsafe_arena_set_allocated_add_fulltexts(::greptime::v1::AddFulltexts* add_fulltexts) { + clear_kind(); + if (add_fulltexts) { + set_has_add_fulltexts(); + _impl_.kind_.add_fulltexts_ = add_fulltexts; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.add_fulltexts) +} +inline ::greptime::v1::AddFulltexts* AlterExpr::_internal_mutable_add_fulltexts() { + if (!_internal_has_add_fulltexts()) { + clear_kind(); + set_has_add_fulltexts(); + _impl_.kind_.add_fulltexts_ = CreateMaybeMessage< ::greptime::v1::AddFulltexts >(GetArenaForAllocation()); + } + return _impl_.kind_.add_fulltexts_; +} +inline ::greptime::v1::AddFulltexts* AlterExpr::mutable_add_fulltexts() { + ::greptime::v1::AddFulltexts* _msg = _internal_mutable_add_fulltexts(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.add_fulltexts) + return _msg; +} + inline bool AlterExpr::has_kind() const { return kind_case() != KIND_NOT_SET; } @@ -9037,6 +9509,50 @@ ChangeColumnTypes::change_column_types() const { // ------------------------------------------------------------------- +// AddFulltexts + +// repeated .greptime.v1.AddFulltext add_fulltexts = 1; +inline int AddFulltexts::_internal_add_fulltexts_size() const { + return _impl_.add_fulltexts_.size(); +} +inline int AddFulltexts::add_fulltexts_size() const { + return _internal_add_fulltexts_size(); +} +inline void AddFulltexts::clear_add_fulltexts() { + _impl_.add_fulltexts_.Clear(); +} +inline ::greptime::v1::AddFulltext* AddFulltexts::mutable_add_fulltexts(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.AddFulltexts.add_fulltexts) + return _impl_.add_fulltexts_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext >* +AddFulltexts::mutable_add_fulltexts() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.AddFulltexts.add_fulltexts) + return &_impl_.add_fulltexts_; +} +inline const ::greptime::v1::AddFulltext& AddFulltexts::_internal_add_fulltexts(int index) const { + return _impl_.add_fulltexts_.Get(index); +} +inline const ::greptime::v1::AddFulltext& AddFulltexts::add_fulltexts(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.AddFulltexts.add_fulltexts) + return _internal_add_fulltexts(index); +} +inline ::greptime::v1::AddFulltext* AddFulltexts::_internal_add_add_fulltexts() { + return _impl_.add_fulltexts_.Add(); +} +inline ::greptime::v1::AddFulltext* AddFulltexts::add_add_fulltexts() { + ::greptime::v1::AddFulltext* _add = _internal_add_add_fulltexts(); + // @@protoc_insertion_point(field_add:greptime.v1.AddFulltexts.add_fulltexts) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext >& +AddFulltexts::add_fulltexts() const { + // @@protoc_insertion_point(field_list:greptime.v1.AddFulltexts.add_fulltexts) + return _impl_.add_fulltexts_; +} + +// ------------------------------------------------------------------- + // RenameTable // string new_table_name = 1; @@ -9434,6 +9950,91 @@ inline void ChangeColumnType::set_allocated_target_type_extension(::greptime::v1 // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// AddFulltext + +// string column_name = 1; +inline void AddFulltext::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); +} +inline const std::string& AddFulltext::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.AddFulltext.column_name) + return _internal_column_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void AddFulltext::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.AddFulltext.column_name) +} +inline std::string* AddFulltext::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AddFulltext.column_name) + return _s; +} +inline const std::string& AddFulltext::_internal_column_name() const { + return _impl_.column_name_.Get(); +} +inline void AddFulltext::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* AddFulltext::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* AddFulltext::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.AddFulltext.column_name) + return _impl_.column_name_.Release(); +} +inline void AddFulltext::set_allocated_column_name(std::string* column_name) { + if (column_name != nullptr) { + + } else { + + } + _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.column_name_.IsDefault()) { + _impl_.column_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AddFulltext.column_name) +} + +// map options = 2; +inline int AddFulltext::_internal_options_size() const { + return _impl_.options_.size(); +} +inline int AddFulltext::options_size() const { + return _internal_options_size(); +} +inline void AddFulltext::clear_options() { + _impl_.options_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AddFulltext::_internal_options() const { + return _impl_.options_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AddFulltext::options() const { + // @@protoc_insertion_point(field_map:greptime.v1.AddFulltext.options) + return _internal_options(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AddFulltext::_internal_mutable_options() { + return _impl_.options_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AddFulltext::mutable_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.AddFulltext.options) + return _internal_mutable_options(); +} + +// ------------------------------------------------------------------- + // DropColumn // string name = 1; @@ -10043,6 +10644,12 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 6e9b5f3a..c6e9549b 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_AddFulltexts Kind isAlterExpr_Kind `protobuf_oneof:"kind"` } @@ -888,6 +889,13 @@ func (x *AlterExpr) GetChangeColumnTypes() *ChangeColumnTypes { return nil } +func (x *AlterExpr) GetAddFulltexts() *AddFulltexts { + if x, ok := x.GetKind().(*AlterExpr_AddFulltexts); ok { + return x.AddFulltexts + } + 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_AddFulltexts struct { + AddFulltexts *AddFulltexts `protobuf:"bytes,8,opt,name=add_fulltexts,json=addFulltexts,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_AddFulltexts) isAlterExpr_Kind() {} + type DropTableExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1341,6 +1355,53 @@ func (x *ChangeColumnTypes) GetChangeColumnTypes() []*ChangeColumnType { return nil } +type AddFulltexts struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AddFulltexts []*AddFulltext `protobuf:"bytes,1,rep,name=add_fulltexts,json=addFulltexts,proto3" json:"add_fulltexts,omitempty"` +} + +func (x *AddFulltexts) Reset() { + *x = AddFulltexts{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddFulltexts) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddFulltexts) ProtoMessage() {} + +func (x *AddFulltexts) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AddFulltexts.ProtoReflect.Descriptor instead. +func (*AddFulltexts) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} +} + +func (x *AddFulltexts) GetAddFulltexts() []*AddFulltext { + if x != nil { + return x.AddFulltexts + } + return nil +} + type RenameTable struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1352,7 +1413,7 @@ type RenameTable struct { func (x *RenameTable) Reset() { *x = RenameTable{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1365,7 +1426,7 @@ func (x *RenameTable) String() string { func (*RenameTable) ProtoMessage() {} func (x *RenameTable) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1378,7 +1439,7 @@ func (x *RenameTable) ProtoReflect() protoreflect.Message { // Deprecated: Use RenameTable.ProtoReflect.Descriptor instead. func (*RenameTable) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} } func (x *RenameTable) GetNewTableName() string { @@ -1400,7 +1461,7 @@ type AddColumn struct { func (x *AddColumn) Reset() { *x = AddColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1413,7 +1474,7 @@ func (x *AddColumn) String() string { func (*AddColumn) ProtoMessage() {} func (x *AddColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1426,7 +1487,7 @@ func (x *AddColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumn.ProtoReflect.Descriptor instead. func (*AddColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} } func (x *AddColumn) GetColumnDef() *ColumnDef { @@ -1456,7 +1517,7 @@ type ChangeColumnType struct { func (x *ChangeColumnType) Reset() { *x = ChangeColumnType{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1469,7 +1530,7 @@ func (x *ChangeColumnType) String() string { func (*ChangeColumnType) ProtoMessage() {} func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1482,7 +1543,7 @@ func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeColumnType.ProtoReflect.Descriptor instead. func (*ChangeColumnType) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} } func (x *ChangeColumnType) GetColumnName() string { @@ -1506,6 +1567,61 @@ func (x *ChangeColumnType) GetTargetTypeExtension() *ColumnDataTypeExtension { return nil } +type AddFulltext struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` + Options map[string]string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *AddFulltext) Reset() { + *x = AddFulltext{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AddFulltext) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AddFulltext) ProtoMessage() {} + +func (x *AddFulltext) 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 AddFulltext.ProtoReflect.Descriptor instead. +func (*AddFulltext) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} +} + +func (x *AddFulltext) GetColumnName() string { + if x != nil { + return x.ColumnName + } + return "" +} + +func (x *AddFulltext) GetOptions() map[string]string { + if x != nil { + return x.Options + } + return nil +} + 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, 0xc4, 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,163 @@ 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, + 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x40, 0x0a, + 0x0d, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x73, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x73, 0x48, + 0x00, 0x52, 0x0c, 0x61, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x4d, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, + 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, + 0x78, 0x74, 0x52, 0x0c, 0x61, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0xab, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, + 0x65, 0x78, 0x74, 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, 0x3f, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, + 0x01, 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 +2276,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, 28) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest @@ -2157,23 +2293,26 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*AddColumns)(nil), // 12: greptime.v1.AddColumns (*DropColumns)(nil), // 13: greptime.v1.DropColumns (*ChangeColumnTypes)(nil), // 14: greptime.v1.ChangeColumnTypes - (*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 + (*AddFulltexts)(nil), // 15: greptime.v1.AddFulltexts + (*RenameTable)(nil), // 16: greptime.v1.RenameTable + (*AddColumn)(nil), // 17: greptime.v1.AddColumn + (*ChangeColumnType)(nil), // 18: greptime.v1.ChangeColumnType + (*AddFulltext)(nil), // 19: greptime.v1.AddFulltext + (*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 + nil, // 28: greptime.v1.AddFulltext.OptionsEntry + (*TableName)(nil), // 29: greptime.v1.TableName + (*ExpireAfter)(nil), // 30: greptime.v1.ExpireAfter + (ColumnDataType)(0), // 31: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 32: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 33: greptime.v1.SemanticType + (*ColumnOptions)(nil), // 34: 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 +2324,43 @@ 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 + 29, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName + 29, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName + 30, // 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 + 29, // 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 + 16, // 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 + 15, // 23: greptime.v1.AlterExpr.add_fulltexts:type_name -> greptime.v1.AddFulltexts + 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 + 17, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 20, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 18, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType + 19, // 30: greptime.v1.AddFulltexts.add_fulltexts:type_name -> greptime.v1.AddFulltext + 23, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 24, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 31, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 32, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 28, // 35: greptime.v1.AddFulltext.options:type_name -> greptime.v1.AddFulltext.OptionsEntry + 31, // 36: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 33, // 37: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 32, // 38: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 34, // 39: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 0, // 40: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 41, // [41:41] is the sub-list for method output_type + 41, // [41:41] is the sub-list for method input_type + 41, // [41:41] is the sub-list for extension type_name + 41, // [41:41] is the sub-list for extension extendee + 0, // [0:41] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -2397,7 +2539,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RenameTable); i { + switch v := v.(*AddFulltexts); i { case 0: return &v.state case 1: @@ -2409,7 +2551,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddColumn); i { + switch v := v.(*RenameTable); i { case 0: return &v.state case 1: @@ -2421,7 +2563,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeColumnType); i { + switch v := v.(*AddColumn); i { case 0: return &v.state case 1: @@ -2433,7 +2575,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.(*ChangeColumnType); i { case 0: return &v.state case 1: @@ -2445,7 +2587,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.(*AddFulltext); i { case 0: return &v.state case 1: @@ -2457,7 +2599,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 +2611,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 +2623,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 +2675,7 @@ func file_greptime_v1_ddl_proto_init() { (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), (*AlterExpr_ChangeColumnTypes)(nil), + (*AlterExpr_AddFulltexts)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -2516,7 +2683,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: 28, 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..1cab3c56 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.AddFulltexts add_fulltexts = 8; + * @return Whether the addFulltexts field is set. + */ + boolean hasAddFulltexts(); + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + * @return The addFulltexts. + */ + io.greptime.v1.Ddl.AddFulltexts getAddFulltexts(); + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + io.greptime.v1.Ddl.AddFulltextsOrBuilder getAddFulltextsOrBuilder(); + public io.greptime.v1.Ddl.AlterExpr.KindCase getKindCase(); } /** @@ -11861,6 +11876,20 @@ private AlterExpr( kindCase_ = 7; break; } + case 66: { + io.greptime.v1.Ddl.AddFulltexts.Builder subBuilder = null; + if (kindCase_ == 8) { + subBuilder = ((io.greptime.v1.Ddl.AddFulltexts) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.Ddl.AddFulltexts.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.AddFulltexts) 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), + ADD_FULLTEXTS(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 ADD_FULLTEXTS; 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 ADD_FULLTEXTS_FIELD_NUMBER = 8; + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + * @return Whether the addFulltexts field is set. + */ + @java.lang.Override + public boolean hasAddFulltexts() { + return kindCase_ == 8; + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + * @return The addFulltexts. + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddFulltexts getAddFulltexts() { + if (kindCase_ == 8) { + return (io.greptime.v1.Ddl.AddFulltexts) kind_; + } + return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddFulltextsOrBuilder getAddFulltextsOrBuilder() { + if (kindCase_ == 8) { + return (io.greptime.v1.Ddl.AddFulltexts) kind_; + } + return io.greptime.v1.Ddl.AddFulltexts.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.AddFulltexts) 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.AddFulltexts) 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 (!getAddFulltexts() + .equals(other.getAddFulltexts())) 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) + ADD_FULLTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getAddFulltexts().hashCode(); + break; case 0: default: } @@ -12524,6 +12601,13 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { result.kind_ = changeColumnTypesBuilder_.build(); } } + if (kindCase_ == 8) { + if (addFulltextsBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = addFulltextsBuilder_.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 ADD_FULLTEXTS: { + mergeAddFulltexts(other.getAddFulltexts()); + 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.AddFulltexts, io.greptime.v1.Ddl.AddFulltexts.Builder, io.greptime.v1.Ddl.AddFulltextsOrBuilder> addFulltextsBuilder_; + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + * @return Whether the addFulltexts field is set. + */ + @java.lang.Override + public boolean hasAddFulltexts() { + return kindCase_ == 8; + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + * @return The addFulltexts. + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddFulltexts getAddFulltexts() { + if (addFulltextsBuilder_ == null) { + if (kindCase_ == 8) { + return (io.greptime.v1.Ddl.AddFulltexts) kind_; + } + return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + } else { + if (kindCase_ == 8) { + return addFulltextsBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + } + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + public Builder setAddFulltexts(io.greptime.v1.Ddl.AddFulltexts value) { + if (addFulltextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + addFulltextsBuilder_.setMessage(value); + } + kindCase_ = 8; + return this; + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + public Builder setAddFulltexts( + io.greptime.v1.Ddl.AddFulltexts.Builder builderForValue) { + if (addFulltextsBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + addFulltextsBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 8; + return this; + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + public Builder mergeAddFulltexts(io.greptime.v1.Ddl.AddFulltexts value) { + if (addFulltextsBuilder_ == null) { + if (kindCase_ == 8 && + kind_ != io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.AddFulltexts.newBuilder((io.greptime.v1.Ddl.AddFulltexts) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 8) { + addFulltextsBuilder_.mergeFrom(value); + } else { + addFulltextsBuilder_.setMessage(value); + } + } + kindCase_ = 8; + return this; + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + public Builder clearAddFulltexts() { + if (addFulltextsBuilder_ == null) { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 8) { + kindCase_ = 0; + kind_ = null; + } + addFulltextsBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + public io.greptime.v1.Ddl.AddFulltexts.Builder getAddFulltextsBuilder() { + return getAddFulltextsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddFulltextsOrBuilder getAddFulltextsOrBuilder() { + if ((kindCase_ == 8) && (addFulltextsBuilder_ != null)) { + return addFulltextsBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 8) { + return (io.greptime.v1.Ddl.AddFulltexts) kind_; + } + return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + } + } + /** + * .greptime.v1.AddFulltexts add_fulltexts = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddFulltexts, io.greptime.v1.Ddl.AddFulltexts.Builder, io.greptime.v1.Ddl.AddFulltextsOrBuilder> + getAddFulltextsFieldBuilder() { + if (addFulltextsBuilder_ == null) { + if (!(kindCase_ == 8)) { + kind_ = io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + } + addFulltextsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddFulltexts, io.greptime.v1.Ddl.AddFulltexts.Builder, io.greptime.v1.Ddl.AddFulltextsOrBuilder>( + (io.greptime.v1.Ddl.AddFulltexts) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 8; + onChanged();; + return addFulltextsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -20007,43 +20237,55 @@ public io.greptime.v1.Ddl.ChangeColumnTypes getDefaultInstanceForType() { } - public interface RenameTableOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.RenameTable) + public interface AddFulltextsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.AddFulltexts) com.google.protobuf.MessageOrBuilder { /** - * string new_table_name = 1; - * @return The newTableName. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ - java.lang.String getNewTableName(); + java.util.List + getAddFulltextsList(); /** - * string new_table_name = 1; - * @return The bytes for newTableName. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ - com.google.protobuf.ByteString - getNewTableNameBytes(); + io.greptime.v1.Ddl.AddFulltext getAddFulltexts(int index); + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + int getAddFulltextsCount(); + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + java.util.List + getAddFulltextsOrBuilderList(); + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextsOrBuilder( + int index); } /** - * Protobuf type {@code greptime.v1.RenameTable} + * Protobuf type {@code greptime.v1.AddFulltexts} */ - public static final class RenameTable extends + public static final class AddFulltexts extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.RenameTable) - RenameTableOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.AddFulltexts) + AddFulltextsOrBuilder { private static final long serialVersionUID = 0L; - // Use RenameTable.newBuilder() to construct. - private RenameTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AddFulltexts.newBuilder() to construct. + private AddFulltexts(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private RenameTable() { - newTableName_ = ""; + private AddFulltexts() { + addFulltexts_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new RenameTable(); + return new AddFulltexts(); } @java.lang.Override @@ -20051,7 +20293,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private RenameTable( + private AddFulltexts( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20059,6 +20301,7 @@ private RenameTable( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -20070,9 +20313,12 @@ private RenameTable( done = true; break; case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - newTableName_ = s; + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + addFulltexts_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + addFulltexts_.add( + input.readMessage(io.greptime.v1.Ddl.AddFulltext.parser(), extensionRegistry)); break; } default: { @@ -20092,59 +20338,64 @@ private RenameTable( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + addFulltexts_ = java.util.Collections.unmodifiableList(addFulltexts_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RenameTable.class, io.greptime.v1.Ddl.RenameTable.Builder.class); + io.greptime.v1.Ddl.AddFulltexts.class, io.greptime.v1.Ddl.AddFulltexts.Builder.class); } - public static final int NEW_TABLE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object newTableName_; + public static final int ADD_FULLTEXTS_FIELD_NUMBER = 1; + private java.util.List addFulltexts_; /** - * string new_table_name = 1; - * @return The newTableName. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ @java.lang.Override - public java.lang.String getNewTableName() { - java.lang.Object ref = newTableName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newTableName_ = s; - return s; - } + public java.util.List getAddFulltextsList() { + return addFulltexts_; } /** - * string new_table_name = 1; - * @return The bytes for newTableName. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ @java.lang.Override - public com.google.protobuf.ByteString - getNewTableNameBytes() { - java.lang.Object ref = newTableName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newTableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public java.util.List + getAddFulltextsOrBuilderList() { + return addFulltexts_; + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + @java.lang.Override + public int getAddFulltextsCount() { + return addFulltexts_.size(); + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddFulltext getAddFulltexts(int index) { + return addFulltexts_.get(index); + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextsOrBuilder( + int index) { + return addFulltexts_.get(index); } private byte memoizedIsInitialized = -1; @@ -20161,8 +20412,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTableName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, newTableName_); + for (int i = 0; i < addFulltexts_.size(); i++) { + output.writeMessage(1, addFulltexts_.get(i)); } unknownFields.writeTo(output); } @@ -20173,8 +20424,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTableName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, newTableName_); + for (int i = 0; i < addFulltexts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, addFulltexts_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -20186,13 +20438,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.RenameTable)) { + if (!(obj instanceof io.greptime.v1.Ddl.AddFulltexts)) { return super.equals(obj); } - io.greptime.v1.Ddl.RenameTable other = (io.greptime.v1.Ddl.RenameTable) obj; + io.greptime.v1.Ddl.AddFulltexts other = (io.greptime.v1.Ddl.AddFulltexts) obj; - if (!getNewTableName() - .equals(other.getNewTableName())) return false; + if (!getAddFulltextsList() + .equals(other.getAddFulltextsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -20204,76 +20456,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NEW_TABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getNewTableName().hashCode(); + if (getAddFulltextsCount() > 0) { + hash = (37 * hash) + ADD_FULLTEXTS_FIELD_NUMBER; + hash = (53 * hash) + getAddFulltextsList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseFrom(byte[] data) + public static io.greptime.v1.Ddl.AddFulltexts parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.AddFulltexts parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.AddFulltexts parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RenameTable parseDelimitedFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.RenameTable parseFrom( + public static io.greptime.v1.Ddl.AddFulltexts parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20286,7 +20540,7 @@ public static io.greptime.v1.Ddl.RenameTable parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.RenameTable prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.AddFulltexts prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20302,26 +20556,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.RenameTable} + * Protobuf type {@code greptime.v1.AddFulltexts} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.RenameTable) - io.greptime.v1.Ddl.RenameTableOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.AddFulltexts) + io.greptime.v1.Ddl.AddFulltextsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.RenameTable.class, io.greptime.v1.Ddl.RenameTable.Builder.class); + io.greptime.v1.Ddl.AddFulltexts.class, io.greptime.v1.Ddl.AddFulltexts.Builder.class); } - // Construct using io.greptime.v1.Ddl.RenameTable.newBuilder() + // Construct using io.greptime.v1.Ddl.AddFulltexts.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -20334,30 +20588,35 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { + getAddFulltextsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - newTableName_ = ""; - + if (addFulltextsBuilder_ == null) { + addFulltexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + addFulltextsBuilder_.clear(); + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.RenameTable getDefaultInstanceForType() { - return io.greptime.v1.Ddl.RenameTable.getDefaultInstance(); + public io.greptime.v1.Ddl.AddFulltexts getDefaultInstanceForType() { + return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.RenameTable build() { - io.greptime.v1.Ddl.RenameTable result = buildPartial(); + public io.greptime.v1.Ddl.AddFulltexts build() { + io.greptime.v1.Ddl.AddFulltexts result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -20365,9 +20624,18 @@ public io.greptime.v1.Ddl.RenameTable build() { } @java.lang.Override - public io.greptime.v1.Ddl.RenameTable buildPartial() { - io.greptime.v1.Ddl.RenameTable result = new io.greptime.v1.Ddl.RenameTable(this); - result.newTableName_ = newTableName_; + public io.greptime.v1.Ddl.AddFulltexts buildPartial() { + io.greptime.v1.Ddl.AddFulltexts result = new io.greptime.v1.Ddl.AddFulltexts(this); + int from_bitField0_ = bitField0_; + if (addFulltextsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + addFulltexts_ = java.util.Collections.unmodifiableList(addFulltexts_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.addFulltexts_ = addFulltexts_; + } else { + result.addFulltexts_ = addFulltextsBuilder_.build(); + } onBuilt(); return result; } @@ -20406,19 +20674,41 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.RenameTable) { - return mergeFrom((io.greptime.v1.Ddl.RenameTable)other); + if (other instanceof io.greptime.v1.Ddl.AddFulltexts) { + return mergeFrom((io.greptime.v1.Ddl.AddFulltexts)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.RenameTable other) { - if (other == io.greptime.v1.Ddl.RenameTable.getDefaultInstance()) return this; - if (!other.getNewTableName().isEmpty()) { - newTableName_ = other.newTableName_; - onChanged(); + public Builder mergeFrom(io.greptime.v1.Ddl.AddFulltexts other) { + if (other == io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance()) return this; + if (addFulltextsBuilder_ == null) { + if (!other.addFulltexts_.isEmpty()) { + if (addFulltexts_.isEmpty()) { + addFulltexts_ = other.addFulltexts_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAddFulltextsIsMutable(); + addFulltexts_.addAll(other.addFulltexts_); + } + onChanged(); + } + } else { + if (!other.addFulltexts_.isEmpty()) { + if (addFulltextsBuilder_.isEmpty()) { + addFulltextsBuilder_.dispose(); + addFulltextsBuilder_ = null; + addFulltexts_ = other.addFulltexts_; + bitField0_ = (bitField0_ & ~0x00000001); + addFulltextsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getAddFulltextsFieldBuilder() : null; + } else { + addFulltextsBuilder_.addAllMessages(other.addFulltexts_); + } + } } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -20435,11 +20725,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.RenameTable parsedMessage = null; + io.greptime.v1.Ddl.AddFulltexts parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.RenameTable) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.AddFulltexts) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -20448,82 +20738,247 @@ public Builder mergeFrom( } return this; } + private int bitField0_; + + private java.util.List addFulltexts_ = + java.util.Collections.emptyList(); + private void ensureAddFulltextsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + addFulltexts_ = new java.util.ArrayList(addFulltexts_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder> addFulltextsBuilder_; - private java.lang.Object newTableName_ = ""; /** - * string new_table_name = 1; - * @return The newTableName. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ - public java.lang.String getNewTableName() { - java.lang.Object ref = newTableName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newTableName_ = s; - return s; + public java.util.List getAddFulltextsList() { + if (addFulltextsBuilder_ == null) { + return java.util.Collections.unmodifiableList(addFulltexts_); } else { - return (java.lang.String) ref; + return addFulltextsBuilder_.getMessageList(); } } /** - * string new_table_name = 1; - * @return The bytes for newTableName. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ - public com.google.protobuf.ByteString - getNewTableNameBytes() { - java.lang.Object ref = newTableName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - newTableName_ = b; - return b; + public int getAddFulltextsCount() { + if (addFulltextsBuilder_ == null) { + return addFulltexts_.size(); } else { - return (com.google.protobuf.ByteString) ref; + return addFulltextsBuilder_.getCount(); } } /** - * string new_table_name = 1; - * @param value The newTableName to set. - * @return This builder for chaining. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ - public Builder setNewTableName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - newTableName_ = value; - onChanged(); + public io.greptime.v1.Ddl.AddFulltext getAddFulltexts(int index) { + if (addFulltextsBuilder_ == null) { + return addFulltexts_.get(index); + } else { + return addFulltextsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public Builder setAddFulltexts( + int index, io.greptime.v1.Ddl.AddFulltext value) { + if (addFulltextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddFulltextsIsMutable(); + addFulltexts_.set(index, value); + onChanged(); + } else { + addFulltextsBuilder_.setMessage(index, value); + } return this; } /** - * string new_table_name = 1; - * @return This builder for chaining. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ - public Builder clearNewTableName() { - - newTableName_ = getDefaultInstance().getNewTableName(); - onChanged(); + public Builder setAddFulltexts( + int index, io.greptime.v1.Ddl.AddFulltext.Builder builderForValue) { + if (addFulltextsBuilder_ == null) { + ensureAddFulltextsIsMutable(); + addFulltexts_.set(index, builderForValue.build()); + onChanged(); + } else { + addFulltextsBuilder_.setMessage(index, builderForValue.build()); + } return this; } /** - * string new_table_name = 1; - * @param value The bytes for newTableName to set. - * @return This builder for chaining. + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; */ - public Builder setNewTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - newTableName_ = value; - onChanged(); + public Builder addAddFulltexts(io.greptime.v1.Ddl.AddFulltext value) { + if (addFulltextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddFulltextsIsMutable(); + addFulltexts_.add(value); + onChanged(); + } else { + addFulltextsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public Builder addAddFulltexts( + int index, io.greptime.v1.Ddl.AddFulltext value) { + if (addFulltextsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAddFulltextsIsMutable(); + addFulltexts_.add(index, value); + onChanged(); + } else { + addFulltextsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public Builder addAddFulltexts( + io.greptime.v1.Ddl.AddFulltext.Builder builderForValue) { + if (addFulltextsBuilder_ == null) { + ensureAddFulltextsIsMutable(); + addFulltexts_.add(builderForValue.build()); + onChanged(); + } else { + addFulltextsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public Builder addAddFulltexts( + int index, io.greptime.v1.Ddl.AddFulltext.Builder builderForValue) { + if (addFulltextsBuilder_ == null) { + ensureAddFulltextsIsMutable(); + addFulltexts_.add(index, builderForValue.build()); + onChanged(); + } else { + addFulltextsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public Builder addAllAddFulltexts( + java.lang.Iterable values) { + if (addFulltextsBuilder_ == null) { + ensureAddFulltextsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, addFulltexts_); + onChanged(); + } else { + addFulltextsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public Builder clearAddFulltexts() { + if (addFulltextsBuilder_ == null) { + addFulltexts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + addFulltextsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public Builder removeAddFulltexts(int index) { + if (addFulltextsBuilder_ == null) { + ensureAddFulltextsIsMutable(); + addFulltexts_.remove(index); + onChanged(); + } else { + addFulltextsBuilder_.remove(index); + } return this; } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public io.greptime.v1.Ddl.AddFulltext.Builder getAddFulltextsBuilder( + int index) { + return getAddFulltextsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextsOrBuilder( + int index) { + if (addFulltextsBuilder_ == null) { + return addFulltexts_.get(index); } else { + return addFulltextsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public java.util.List + getAddFulltextsOrBuilderList() { + if (addFulltextsBuilder_ != null) { + return addFulltextsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(addFulltexts_); + } + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public io.greptime.v1.Ddl.AddFulltext.Builder addAddFulltextsBuilder() { + return getAddFulltextsFieldBuilder().addBuilder( + io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()); + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public io.greptime.v1.Ddl.AddFulltext.Builder addAddFulltextsBuilder( + int index) { + return getAddFulltextsFieldBuilder().addBuilder( + index, io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()); + } + /** + * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + */ + public java.util.List + getAddFulltextsBuilderList() { + return getAddFulltextsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder> + getAddFulltextsFieldBuilder() { + if (addFulltextsBuilder_ == null) { + addFulltextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder>( + addFulltexts_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + addFulltexts_ = null; + } + return addFulltextsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -20537,100 +20992,1506 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.RenameTable) + // @@protoc_insertion_point(builder_scope:greptime.v1.AddFulltexts) } - // @@protoc_insertion_point(class_scope:greptime.v1.RenameTable) - private static final io.greptime.v1.Ddl.RenameTable DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltexts) + private static final io.greptime.v1.Ddl.AddFulltexts DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.RenameTable(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddFulltexts(); } - public static io.greptime.v1.Ddl.RenameTable getDefaultInstance() { + public static io.greptime.v1.Ddl.AddFulltexts getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AddFulltexts parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new AddFulltexts(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.AddFulltexts getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RenameTableOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.RenameTable) + com.google.protobuf.MessageOrBuilder { + + /** + * string new_table_name = 1; + * @return The newTableName. + */ + java.lang.String getNewTableName(); + /** + * string new_table_name = 1; + * @return The bytes for newTableName. + */ + com.google.protobuf.ByteString + getNewTableNameBytes(); + } + /** + * Protobuf type {@code greptime.v1.RenameTable} + */ + public static final class RenameTable extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.RenameTable) + RenameTableOrBuilder { + private static final long serialVersionUID = 0L; + // Use RenameTable.newBuilder() to construct. + private RenameTable(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RenameTable() { + newTableName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RenameTable(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private RenameTable( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + newTableName_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.RenameTable.class, io.greptime.v1.Ddl.RenameTable.Builder.class); + } + + public static final int NEW_TABLE_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object newTableName_; + /** + * string new_table_name = 1; + * @return The newTableName. + */ + @java.lang.Override + public java.lang.String getNewTableName() { + java.lang.Object ref = newTableName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newTableName_ = s; + return s; + } + } + /** + * string new_table_name = 1; + * @return The bytes for newTableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNewTableNameBytes() { + java.lang.Object ref = newTableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newTableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, newTableName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(newTableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, newTableName_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Ddl.RenameTable)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.RenameTable other = (io.greptime.v1.Ddl.RenameTable) obj; + + if (!getNewTableName() + .equals(other.getNewTableName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NEW_TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getNewTableName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.RenameTable parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.RenameTable parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.RenameTable parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.RenameTable parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Ddl.RenameTable prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.RenameTable} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.RenameTable) + io.greptime.v1.Ddl.RenameTableOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.RenameTable.class, io.greptime.v1.Ddl.RenameTable.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.RenameTable.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + newTableName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_RenameTable_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.RenameTable getDefaultInstanceForType() { + return io.greptime.v1.Ddl.RenameTable.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.RenameTable build() { + io.greptime.v1.Ddl.RenameTable result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.RenameTable buildPartial() { + io.greptime.v1.Ddl.RenameTable result = new io.greptime.v1.Ddl.RenameTable(this); + result.newTableName_ = newTableName_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.RenameTable) { + return mergeFrom((io.greptime.v1.Ddl.RenameTable)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.RenameTable other) { + if (other == io.greptime.v1.Ddl.RenameTable.getDefaultInstance()) return this; + if (!other.getNewTableName().isEmpty()) { + newTableName_ = other.newTableName_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Ddl.RenameTable parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.RenameTable) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object newTableName_ = ""; + /** + * string new_table_name = 1; + * @return The newTableName. + */ + public java.lang.String getNewTableName() { + java.lang.Object ref = newTableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + newTableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string new_table_name = 1; + * @return The bytes for newTableName. + */ + public com.google.protobuf.ByteString + getNewTableNameBytes() { + java.lang.Object ref = newTableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + newTableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string new_table_name = 1; + * @param value The newTableName to set. + * @return This builder for chaining. + */ + public Builder setNewTableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + newTableName_ = value; + onChanged(); + return this; + } + /** + * string new_table_name = 1; + * @return This builder for chaining. + */ + public Builder clearNewTableName() { + + newTableName_ = getDefaultInstance().getNewTableName(); + onChanged(); + return this; + } + /** + * string new_table_name = 1; + * @param value The bytes for newTableName to set. + * @return This builder for chaining. + */ + public Builder setNewTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + newTableName_ = value; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.RenameTable) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.RenameTable) + private static final io.greptime.v1.Ddl.RenameTable DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.RenameTable(); + } + + public static io.greptime.v1.Ddl.RenameTable getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RenameTable parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RenameTable(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Ddl.RenameTable getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface AddColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.AddColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return Whether the columnDef field is set. + */ + boolean hasColumnDef(); + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return The columnDef. + */ + io.greptime.v1.Ddl.ColumnDef getColumnDef(); + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder(); + + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return Whether the location field is set. + */ + boolean hasLocation(); + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return The location. + */ + io.greptime.v1.Ddl.AddColumnLocation getLocation(); + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.AddColumn} + */ + public static final class AddColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.AddColumn) + AddColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use AddColumn.newBuilder() to construct. + private AddColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AddColumn() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AddColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private AddColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.greptime.v1.Ddl.ColumnDef.Builder subBuilder = null; + if (columnDef_ != null) { + subBuilder = columnDef_.toBuilder(); + } + columnDef_ = input.readMessage(io.greptime.v1.Ddl.ColumnDef.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(columnDef_); + columnDef_ = subBuilder.buildPartial(); + } + + break; + } + case 26: { + io.greptime.v1.Ddl.AddColumnLocation.Builder subBuilder = null; + if (location_ != null) { + subBuilder = location_.toBuilder(); + } + location_ = input.readMessage(io.greptime.v1.Ddl.AddColumnLocation.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(location_); + location_ = subBuilder.buildPartial(); + } + + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.AddColumn.class, io.greptime.v1.Ddl.AddColumn.Builder.class); + } + + public static final int COLUMN_DEF_FIELD_NUMBER = 1; + private io.greptime.v1.Ddl.ColumnDef columnDef_; + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return Whether the columnDef field is set. + */ + @java.lang.Override + public boolean hasColumnDef() { + return columnDef_ != null; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return The columnDef. + */ + @java.lang.Override + public io.greptime.v1.Ddl.ColumnDef getColumnDef() { + return columnDef_ == null ? io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder() { + return getColumnDef(); + } + + public static final int LOCATION_FIELD_NUMBER = 3; + private io.greptime.v1.Ddl.AddColumnLocation location_; + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return Whether the location field is set. + */ + @java.lang.Override + public boolean hasLocation() { + return location_ != null; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return The location. + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddColumnLocation getLocation() { + return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + @java.lang.Override + public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { + return getLocation(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (columnDef_ != null) { + output.writeMessage(1, getColumnDef()); + } + if (location_ != null) { + output.writeMessage(3, getLocation()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (columnDef_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, getColumnDef()); + } + if (location_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getLocation()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Ddl.AddColumn)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.AddColumn other = (io.greptime.v1.Ddl.AddColumn) obj; + + if (hasColumnDef() != other.hasColumnDef()) return false; + if (hasColumnDef()) { + if (!getColumnDef() + .equals(other.getColumnDef())) return false; + } + if (hasLocation() != other.hasLocation()) return false; + if (hasLocation()) { + if (!getLocation() + .equals(other.getLocation())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasColumnDef()) { + hash = (37 * hash) + COLUMN_DEF_FIELD_NUMBER; + hash = (53 * hash) + getColumnDef().hashCode(); + } + if (hasLocation()) { + hash = (37 * hash) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.AddColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.AddColumn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.AddColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Ddl.AddColumn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.AddColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.AddColumn) + io.greptime.v1.Ddl.AddColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.AddColumn.class, io.greptime.v1.Ddl.AddColumn.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.AddColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (columnDefBuilder_ == null) { + columnDef_ = null; + } else { + columnDef_ = null; + columnDefBuilder_ = null; + } + if (locationBuilder_ == null) { + location_ = null; + } else { + location_ = null; + locationBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { + return io.greptime.v1.Ddl.AddColumn.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.AddColumn build() { + io.greptime.v1.Ddl.AddColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.AddColumn buildPartial() { + io.greptime.v1.Ddl.AddColumn result = new io.greptime.v1.Ddl.AddColumn(this); + if (columnDefBuilder_ == null) { + result.columnDef_ = columnDef_; + } else { + result.columnDef_ = columnDefBuilder_.build(); + } + if (locationBuilder_ == null) { + result.location_ = location_; + } else { + result.location_ = locationBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.AddColumn) { + return mergeFrom((io.greptime.v1.Ddl.AddColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.AddColumn other) { + if (other == io.greptime.v1.Ddl.AddColumn.getDefaultInstance()) return this; + if (other.hasColumnDef()) { + mergeColumnDef(other.getColumnDef()); + } + if (other.hasLocation()) { + mergeLocation(other.getLocation()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + 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.AddColumn parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.AddColumn) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private io.greptime.v1.Ddl.ColumnDef columnDef_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder> columnDefBuilder_; + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return Whether the columnDef field is set. + */ + public boolean hasColumnDef() { + return columnDefBuilder_ != null || columnDef_ != null; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + * @return The columnDef. + */ + public io.greptime.v1.Ddl.ColumnDef getColumnDef() { + if (columnDefBuilder_ == null) { + return columnDef_ == null ? io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + } else { + return columnDefBuilder_.getMessage(); + } + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public Builder setColumnDef(io.greptime.v1.Ddl.ColumnDef value) { + if (columnDefBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + columnDef_ = value; + onChanged(); + } else { + columnDefBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public Builder setColumnDef( + io.greptime.v1.Ddl.ColumnDef.Builder builderForValue) { + if (columnDefBuilder_ == null) { + columnDef_ = builderForValue.build(); + onChanged(); + } else { + columnDefBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public Builder mergeColumnDef(io.greptime.v1.Ddl.ColumnDef value) { + if (columnDefBuilder_ == null) { + if (columnDef_ != null) { + columnDef_ = + io.greptime.v1.Ddl.ColumnDef.newBuilder(columnDef_).mergeFrom(value).buildPartial(); + } else { + columnDef_ = value; + } + onChanged(); + } else { + columnDefBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public Builder clearColumnDef() { + if (columnDefBuilder_ == null) { + columnDef_ = null; + onChanged(); + } else { + columnDef_ = null; + columnDefBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public io.greptime.v1.Ddl.ColumnDef.Builder getColumnDefBuilder() { + + onChanged(); + return getColumnDefFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + public io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder() { + if (columnDefBuilder_ != null) { + return columnDefBuilder_.getMessageOrBuilder(); + } else { + return columnDef_ == null ? + io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + } + } + /** + * .greptime.v1.ColumnDef column_def = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder> + getColumnDefFieldBuilder() { + if (columnDefBuilder_ == null) { + columnDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder>( + getColumnDef(), + getParentForChildren(), + isClean()); + columnDef_ = null; + } + return columnDefBuilder_; + } + + private io.greptime.v1.Ddl.AddColumnLocation location_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> locationBuilder_; + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return Whether the location field is set. + */ + public boolean hasLocation() { + return locationBuilder_ != null || location_ != null; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + * @return The location. + */ + public io.greptime.v1.Ddl.AddColumnLocation getLocation() { + if (locationBuilder_ == null) { + return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + } else { + return locationBuilder_.getMessage(); + } + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public Builder setLocation(io.greptime.v1.Ddl.AddColumnLocation value) { + if (locationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + onChanged(); + } else { + locationBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public Builder setLocation( + io.greptime.v1.Ddl.AddColumnLocation.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); + onChanged(); + } else { + locationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public Builder mergeLocation(io.greptime.v1.Ddl.AddColumnLocation value) { + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + io.greptime.v1.Ddl.AddColumnLocation.newBuilder(location_).mergeFrom(value).buildPartial(); + } else { + location_ = value; + } + onChanged(); + } else { + locationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; + onChanged(); + } else { + location_ = null; + locationBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public io.greptime.v1.Ddl.AddColumnLocation.Builder getLocationBuilder() { + + onChanged(); + return getLocationFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); + } else { + return location_ == null ? + io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + } + } + /** + * .greptime.v1.AddColumnLocation location = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder>( + getLocation(), + getParentForChildren(), + isClean()); + location_ = null; + } + return locationBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.AddColumn) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.AddColumn) + private static final io.greptime.v1.Ddl.AddColumn DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddColumn(); + } + + public static io.greptime.v1.Ddl.AddColumn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public RenameTable parsePartialFrom( + public AddColumn parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RenameTable(input, extensionRegistry); + return new AddColumn(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.RenameTable getDefaultInstanceForType() { + public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AddColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.AddColumn) + public interface ChangeColumnTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnType) com.google.protobuf.MessageOrBuilder { /** - * .greptime.v1.ColumnDef column_def = 1; - * @return Whether the columnDef field is set. + * string column_name = 1; + * @return The columnName. */ - boolean hasColumnDef(); + java.lang.String getColumnName(); /** - * .greptime.v1.ColumnDef column_def = 1; - * @return The columnDef. + * string column_name = 1; + * @return The bytes for columnName. */ - io.greptime.v1.Ddl.ColumnDef getColumnDef(); + com.google.protobuf.ByteString + getColumnNameBytes(); + /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. */ - io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder(); + int getTargetTypeValue(); + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. + */ + io.greptime.v1.Common.ColumnDataType getTargetType(); /** - * .greptime.v1.AddColumnLocation location = 3; - * @return Whether the location field is set. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ - boolean hasLocation(); + boolean hasTargetTypeExtension(); /** - * .greptime.v1.AddColumnLocation location = 3; - * @return The location. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ - io.greptime.v1.Ddl.AddColumnLocation getLocation(); + io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension(); /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder(); + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder(); } /** - * Protobuf type {@code greptime.v1.AddColumn} + * Protobuf type {@code greptime.v1.ChangeColumnType} */ - public static final class AddColumn extends + public static final class ChangeColumnType extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.AddColumn) - AddColumnOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnType) + ChangeColumnTypeOrBuilder { private static final long serialVersionUID = 0L; - // Use AddColumn.newBuilder() to construct. - private AddColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ChangeColumnType.newBuilder() to construct. + private ChangeColumnType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddColumn() { + private ChangeColumnType() { + columnName_ = ""; + targetType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new AddColumn(); + return new ChangeColumnType(); } @java.lang.Override @@ -20638,7 +22499,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private AddColumn( + private ChangeColumnType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20657,27 +22518,26 @@ private AddColumn( done = true; break; case 10: { - io.greptime.v1.Ddl.ColumnDef.Builder subBuilder = null; - if (columnDef_ != null) { - subBuilder = columnDef_.toBuilder(); - } - columnDef_ = input.readMessage(io.greptime.v1.Ddl.ColumnDef.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(columnDef_); - columnDef_ = subBuilder.buildPartial(); - } + java.lang.String s = input.readStringRequireUtf8(); + + columnName_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + targetType_ = rawValue; break; } case 26: { - io.greptime.v1.Ddl.AddColumnLocation.Builder subBuilder = null; - if (location_ != null) { - subBuilder = location_.toBuilder(); + io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null; + if (targetTypeExtension_ != null) { + subBuilder = targetTypeExtension_.toBuilder(); } - location_ = input.readMessage(io.greptime.v1.Ddl.AddColumnLocation.parser(), extensionRegistry); + targetTypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(location_); - location_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(targetTypeExtension_); + targetTypeExtension_ = subBuilder.buildPartial(); } break; @@ -20705,67 +22565,98 @@ private AddColumn( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddColumn.class, io.greptime.v1.Ddl.AddColumn.Builder.class); + io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); } - public static final int COLUMN_DEF_FIELD_NUMBER = 1; - private io.greptime.v1.Ddl.ColumnDef columnDef_; + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object columnName_; /** - * .greptime.v1.ColumnDef column_def = 1; - * @return Whether the columnDef field is set. + * string column_name = 1; + * @return The columnName. */ @java.lang.Override - public boolean hasColumnDef() { - return columnDef_ != null; + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } } /** - * .greptime.v1.ColumnDef column_def = 1; - * @return The columnDef. + * string column_name = 1; + * @return The bytes for columnName. */ @java.lang.Override - public io.greptime.v1.Ddl.ColumnDef getColumnDef() { - return columnDef_ == null ? io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } + + public static final int TARGET_TYPE_FIELD_NUMBER = 2; + private int targetType_; /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. */ - @java.lang.Override - public io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder() { - return getColumnDef(); + @java.lang.Override public int getTargetTypeValue() { + return targetType_; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. + */ + @java.lang.Override public io.greptime.v1.Common.ColumnDataType getTargetType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; } - public static final int LOCATION_FIELD_NUMBER = 3; - private io.greptime.v1.Ddl.AddColumnLocation location_; + public static final int TARGET_TYPE_EXTENSION_FIELD_NUMBER = 3; + private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; /** - * .greptime.v1.AddColumnLocation location = 3; - * @return Whether the location field is set. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ @java.lang.Override - public boolean hasLocation() { - return location_ != null; + public boolean hasTargetTypeExtension() { + return targetTypeExtension_ != null; } /** - * .greptime.v1.AddColumnLocation location = 3; - * @return The location. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ @java.lang.Override - public io.greptime.v1.Ddl.AddColumnLocation getLocation() { - return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { + return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ @java.lang.Override - public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { - return getLocation(); + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { + return getTargetTypeExtension(); } private byte memoizedIsInitialized = -1; @@ -20782,11 +22673,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (columnDef_ != null) { - output.writeMessage(1, getColumnDef()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } - if (location_ != null) { - output.writeMessage(3, getLocation()); + if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + output.writeEnum(2, targetType_); + } + if (targetTypeExtension_ != null) { + output.writeMessage(3, getTargetTypeExtension()); } unknownFields.writeTo(output); } @@ -20797,13 +22691,16 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (columnDef_ != null) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); + } + if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getColumnDef()); + .computeEnumSize(2, targetType_); } - if (location_ != null) { + if (targetTypeExtension_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getLocation()); + .computeMessageSize(3, getTargetTypeExtension()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -20815,20 +22712,18 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.AddColumn)) { + if (!(obj instanceof io.greptime.v1.Ddl.ChangeColumnType)) { return super.equals(obj); } - io.greptime.v1.Ddl.AddColumn other = (io.greptime.v1.Ddl.AddColumn) obj; + io.greptime.v1.Ddl.ChangeColumnType other = (io.greptime.v1.Ddl.ChangeColumnType) obj; - if (hasColumnDef() != other.hasColumnDef()) return false; - if (hasColumnDef()) { - if (!getColumnDef() - .equals(other.getColumnDef())) return false; - } - if (hasLocation() != other.hasLocation()) return false; - if (hasLocation()) { - if (!getLocation() - .equals(other.getLocation())) return false; + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (targetType_ != other.targetType_) return false; + if (hasTargetTypeExtension() != other.hasTargetTypeExtension()) return false; + if (hasTargetTypeExtension()) { + if (!getTargetTypeExtension() + .equals(other.getTargetTypeExtension())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; @@ -20841,82 +22736,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasColumnDef()) { - hash = (37 * hash) + COLUMN_DEF_FIELD_NUMBER; - hash = (53 * hash) + getColumnDef().hashCode(); - } - if (hasLocation()) { - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); + hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnName().hashCode(); + hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + targetType_; + if (hasTargetTypeExtension()) { + hash = (37 * hash) + TARGET_TYPE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getTargetTypeExtension().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddColumn parseFrom(byte[] data) + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddColumn parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.AddColumn parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddColumn parseDelimitedFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddColumn parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20929,7 +22824,7 @@ public static io.greptime.v1.Ddl.AddColumn parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.AddColumn prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.ChangeColumnType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20945,26 +22840,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.AddColumn} + * Protobuf type {@code greptime.v1.ChangeColumnType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.AddColumn) - io.greptime.v1.Ddl.AddColumnOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnType) + io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddColumn.class, io.greptime.v1.Ddl.AddColumn.Builder.class); + io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); } - // Construct using io.greptime.v1.Ddl.AddColumn.newBuilder() + // Construct using io.greptime.v1.Ddl.ChangeColumnType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -20982,17 +22877,15 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (columnDefBuilder_ == null) { - columnDef_ = null; - } else { - columnDef_ = null; - columnDefBuilder_ = null; - } - if (locationBuilder_ == null) { - location_ = null; + columnName_ = ""; + + targetType_ = 0; + + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = null; } else { - location_ = null; - locationBuilder_ = null; + targetTypeExtension_ = null; + targetTypeExtensionBuilder_ = null; } return this; } @@ -21000,17 +22893,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { - return io.greptime.v1.Ddl.AddColumn.getDefaultInstance(); + public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.AddColumn build() { - io.greptime.v1.Ddl.AddColumn result = buildPartial(); + public io.greptime.v1.Ddl.ChangeColumnType build() { + io.greptime.v1.Ddl.ChangeColumnType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -21018,17 +22911,14 @@ public io.greptime.v1.Ddl.AddColumn build() { } @java.lang.Override - public io.greptime.v1.Ddl.AddColumn buildPartial() { - io.greptime.v1.Ddl.AddColumn result = new io.greptime.v1.Ddl.AddColumn(this); - if (columnDefBuilder_ == null) { - result.columnDef_ = columnDef_; - } else { - result.columnDef_ = columnDefBuilder_.build(); - } - if (locationBuilder_ == null) { - result.location_ = location_; + public io.greptime.v1.Ddl.ChangeColumnType buildPartial() { + io.greptime.v1.Ddl.ChangeColumnType result = new io.greptime.v1.Ddl.ChangeColumnType(this); + result.columnName_ = columnName_; + result.targetType_ = targetType_; + if (targetTypeExtensionBuilder_ == null) { + result.targetTypeExtension_ = targetTypeExtension_; } else { - result.location_ = locationBuilder_.build(); + result.targetTypeExtension_ = targetTypeExtensionBuilder_.build(); } onBuilt(); return result; @@ -21068,21 +22958,25 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.AddColumn) { - return mergeFrom((io.greptime.v1.Ddl.AddColumn)other); + if (other instanceof io.greptime.v1.Ddl.ChangeColumnType) { + return mergeFrom((io.greptime.v1.Ddl.ChangeColumnType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.AddColumn other) { - if (other == io.greptime.v1.Ddl.AddColumn.getDefaultInstance()) return this; - if (other.hasColumnDef()) { - mergeColumnDef(other.getColumnDef()); + public Builder mergeFrom(io.greptime.v1.Ddl.ChangeColumnType other) { + if (other == io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); } - if (other.hasLocation()) { - mergeLocation(other.getLocation()); + if (other.targetType_ != 0) { + setTargetTypeValue(other.getTargetTypeValue()); + } + if (other.hasTargetTypeExtension()) { + mergeTargetTypeExtension(other.getTargetTypeExtension()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -21099,11 +22993,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.AddColumn parsedMessage = null; + io.greptime.v1.Ddl.ChangeColumnType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.AddColumn) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.ChangeColumnType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -21113,242 +23007,253 @@ public Builder mergeFrom( return this; } - private io.greptime.v1.Ddl.ColumnDef columnDef_; - private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder> columnDefBuilder_; + private java.lang.Object columnName_ = ""; /** - * .greptime.v1.ColumnDef column_def = 1; - * @return Whether the columnDef field is set. + * string column_name = 1; + * @return The columnName. */ - public boolean hasColumnDef() { - return columnDefBuilder_ != null || columnDef_ != null; + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } } /** - * .greptime.v1.ColumnDef column_def = 1; - * @return The columnDef. + * string column_name = 1; + * @return The bytes for columnName. */ - public io.greptime.v1.Ddl.ColumnDef getColumnDef() { - if (columnDefBuilder_ == null) { - return columnDef_ == null ? io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; } else { - return columnDefBuilder_.getMessage(); + return (com.google.protobuf.ByteString) ref; } } /** - * .greptime.v1.ColumnDef column_def = 1; + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. */ - public Builder setColumnDef(io.greptime.v1.Ddl.ColumnDef value) { - if (columnDefBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - columnDef_ = value; - onChanged(); - } else { - columnDefBuilder_.setMessage(value); - } - + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; + onChanged(); return this; } /** - * .greptime.v1.ColumnDef column_def = 1; + * string column_name = 1; + * @return This builder for chaining. */ - public Builder setColumnDef( - io.greptime.v1.Ddl.ColumnDef.Builder builderForValue) { - if (columnDefBuilder_ == null) { - columnDef_ = builderForValue.build(); - onChanged(); - } else { - columnDefBuilder_.setMessage(builderForValue.build()); - } - + public Builder clearColumnName() { + + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); return this; } /** - * .greptime.v1.ColumnDef column_def = 1; + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. */ - public Builder mergeColumnDef(io.greptime.v1.Ddl.ColumnDef value) { - if (columnDefBuilder_ == null) { - if (columnDef_ != null) { - columnDef_ = - io.greptime.v1.Ddl.ColumnDef.newBuilder(columnDef_).mergeFrom(value).buildPartial(); - } else { - columnDef_ = value; - } - onChanged(); - } else { - columnDefBuilder_.mergeFrom(value); - } + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnName_ = value; + onChanged(); + return this; + } + private int targetType_ = 0; + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. + */ + @java.lang.Override public int getTargetTypeValue() { + return targetType_; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @param value The enum numeric value on the wire for targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetTypeValue(int value) { + + targetType_ = value; + onChanged(); return this; } /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. */ - public Builder clearColumnDef() { - if (columnDefBuilder_ == null) { - columnDef_ = null; - onChanged(); - } else { - columnDef_ = null; - columnDefBuilder_ = null; + @java.lang.Override + public io.greptime.v1.Common.ColumnDataType getTargetType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @param value The targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetType(io.greptime.v1.Common.ColumnDataType value) { + if (value == null) { + throw new NullPointerException(); } - + + targetType_ = value.getNumber(); + onChanged(); return this; } /** - * .greptime.v1.ColumnDef column_def = 1; + * .greptime.v1.ColumnDataType target_type = 2; + * @return This builder for chaining. */ - public io.greptime.v1.Ddl.ColumnDef.Builder getColumnDefBuilder() { + public Builder clearTargetType() { + targetType_ = 0; onChanged(); - return getColumnDefFieldBuilder().getBuilder(); - } - /** - * .greptime.v1.ColumnDef column_def = 1; - */ - public io.greptime.v1.Ddl.ColumnDefOrBuilder getColumnDefOrBuilder() { - if (columnDefBuilder_ != null) { - return columnDefBuilder_.getMessageOrBuilder(); - } else { - return columnDef_ == null ? - io.greptime.v1.Ddl.ColumnDef.getDefaultInstance() : columnDef_; - } - } - /** - * .greptime.v1.ColumnDef column_def = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder> - getColumnDefFieldBuilder() { - if (columnDefBuilder_ == null) { - columnDefBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ColumnDef, io.greptime.v1.Ddl.ColumnDef.Builder, io.greptime.v1.Ddl.ColumnDefOrBuilder>( - getColumnDef(), - getParentForChildren(), - isClean()); - columnDef_ = null; - } - return columnDefBuilder_; + return this; } - private io.greptime.v1.Ddl.AddColumnLocation location_; + private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> locationBuilder_; + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> targetTypeExtensionBuilder_; /** - * .greptime.v1.AddColumnLocation location = 3; - * @return Whether the location field is set. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ - public boolean hasLocation() { - return locationBuilder_ != null || location_ != null; + public boolean hasTargetTypeExtension() { + return targetTypeExtensionBuilder_ != null || targetTypeExtension_ != null; } /** - * .greptime.v1.AddColumnLocation location = 3; - * @return The location. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ - public io.greptime.v1.Ddl.AddColumnLocation getLocation() { - if (locationBuilder_ == null) { - return location_ == null ? io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { + if (targetTypeExtensionBuilder_ == null) { + return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; } else { - return locationBuilder_.getMessage(); + return targetTypeExtensionBuilder_.getMessage(); } } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder setLocation(io.greptime.v1.Ddl.AddColumnLocation value) { - if (locationBuilder_ == null) { + public Builder setTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (targetTypeExtensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - location_ = value; + targetTypeExtension_ = value; onChanged(); } else { - locationBuilder_.setMessage(value); + targetTypeExtensionBuilder_.setMessage(value); } return this; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder setLocation( - io.greptime.v1.Ddl.AddColumnLocation.Builder builderForValue) { - if (locationBuilder_ == null) { - location_ = builderForValue.build(); + public Builder setTargetTypeExtension( + io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = builderForValue.build(); onChanged(); } else { - locationBuilder_.setMessage(builderForValue.build()); + targetTypeExtensionBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder mergeLocation(io.greptime.v1.Ddl.AddColumnLocation value) { - if (locationBuilder_ == null) { - if (location_ != null) { - location_ = - io.greptime.v1.Ddl.AddColumnLocation.newBuilder(location_).mergeFrom(value).buildPartial(); + public Builder mergeTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (targetTypeExtensionBuilder_ == null) { + if (targetTypeExtension_ != null) { + targetTypeExtension_ = + io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(targetTypeExtension_).mergeFrom(value).buildPartial(); } else { - location_ = value; + targetTypeExtension_ = value; } onChanged(); } else { - locationBuilder_.mergeFrom(value); + targetTypeExtensionBuilder_.mergeFrom(value); } return this; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder clearLocation() { - if (locationBuilder_ == null) { - location_ = null; + public Builder clearTargetTypeExtension() { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = null; onChanged(); } else { - location_ = null; - locationBuilder_ = null; + targetTypeExtension_ = null; + targetTypeExtensionBuilder_ = null; } return this; } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public io.greptime.v1.Ddl.AddColumnLocation.Builder getLocationBuilder() { + public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getTargetTypeExtensionBuilder() { onChanged(); - return getLocationFieldBuilder().getBuilder(); + return getTargetTypeExtensionFieldBuilder().getBuilder(); } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { - if (locationBuilder_ != null) { - return locationBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { + if (targetTypeExtensionBuilder_ != null) { + return targetTypeExtensionBuilder_.getMessageOrBuilder(); } else { - return location_ == null ? - io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; + return targetTypeExtension_ == null ? + io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; } } /** - * .greptime.v1.AddColumnLocation location = 3; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder>( - getLocation(), + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> + getTargetTypeExtensionFieldBuilder() { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>( + getTargetTypeExtension(), getParentForChildren(), isClean()); - location_ = null; + targetTypeExtension_ = null; } - return locationBuilder_; + return targetTypeExtensionBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -21363,48 +23268,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.AddColumn) + // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeColumnType) } - // @@protoc_insertion_point(class_scope:greptime.v1.AddColumn) - private static final io.greptime.v1.Ddl.AddColumn DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnType) + private static final io.greptime.v1.Ddl.ChangeColumnType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddColumn(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnType(); } - public static io.greptime.v1.Ddl.AddColumn getDefaultInstance() { + public static io.greptime.v1.Ddl.ChangeColumnType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public AddColumn parsePartialFrom( + public ChangeColumnType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddColumn(input, extensionRegistry); + return new ChangeColumnType(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { + public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ChangeColumnTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnType) + public interface AddFulltextOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.AddFulltext) com.google.protobuf.MessageOrBuilder { /** @@ -21420,53 +23325,62 @@ public interface ChangeColumnTypeOrBuilder extends getColumnNameBytes(); /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The enum numeric value on the wire for targetType. + * map<string, string> options = 2; */ - int getTargetTypeValue(); + int getOptionsCount(); /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The targetType. + * map<string, string> options = 2; */ - io.greptime.v1.Common.ColumnDataType getTargetType(); - + boolean containsOptions( + java.lang.String key); /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return Whether the targetTypeExtension field is set. + * Use {@link #getOptionsMap()} instead. */ - boolean hasTargetTypeExtension(); + @java.lang.Deprecated + java.util.Map + getOptions(); /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return The targetTypeExtension. + * map<string, string> options = 2; */ - io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension(); + java.util.Map + getOptionsMap(); /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * map<string, string> options = 2; */ - io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder(); + + /* nullable */ +java.lang.String getOptionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> options = 2; + */ + + java.lang.String getOptionsOrThrow( + java.lang.String key); } /** - * Protobuf type {@code greptime.v1.ChangeColumnType} + * Protobuf type {@code greptime.v1.AddFulltext} */ - public static final class ChangeColumnType extends + public static final class AddFulltext extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnType) - ChangeColumnTypeOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.AddFulltext) + AddFulltextOrBuilder { private static final long serialVersionUID = 0L; - // Use ChangeColumnType.newBuilder() to construct. - private ChangeColumnType(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AddFulltext.newBuilder() to construct. + private AddFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ChangeColumnType() { + private AddFulltext() { columnName_ = ""; - targetType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ChangeColumnType(); + return new AddFulltext(); } @java.lang.Override @@ -21474,7 +23388,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ChangeColumnType( + private AddFulltext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21482,6 +23396,7 @@ private ChangeColumnType( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -21498,23 +23413,17 @@ private ChangeColumnType( columnName_ = s; break; } - case 16: { - int rawValue = input.readEnum(); - - targetType_ = rawValue; - break; - } - case 26: { - io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null; - if (targetTypeExtension_ != null) { - subBuilder = targetTypeExtension_.toBuilder(); - } - targetTypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetTypeExtension_); - targetTypeExtension_ = subBuilder.buildPartial(); + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; } - + com.google.protobuf.MapEntry + options__ = input.readMessage( + OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + options_.getMutableMap().put( + options__.getKey(), options__.getValue()); break; } default: { @@ -21540,15 +23449,27 @@ private ChangeColumnType( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); + io.greptime.v1.Ddl.AddFulltext.class, io.greptime.v1.Ddl.AddFulltext.Builder.class); } public static final int COLUMN_NAME_FIELD_NUMBER = 1; @@ -21589,49 +23510,85 @@ public java.lang.String getColumnName() { } } - public static final int TARGET_TYPE_FIELD_NUMBER = 2; - private int targetType_; + public static final int OPTIONS_FIELD_NUMBER = 2; + private static final class OptionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The enum numeric value on the wire for targetType. + * map<string, string> options = 2; */ - @java.lang.Override public int getTargetTypeValue() { - return targetType_; + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); } /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The targetType. + * Use {@link #getOptionsMap()} instead. */ - @java.lang.Override public io.greptime.v1.Common.ColumnDataType getTargetType() { - @SuppressWarnings("deprecation") - io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); - return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); } - - public static final int TARGET_TYPE_EXTENSION_FIELD_NUMBER = 3; - private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return Whether the targetTypeExtension field is set. + * map<string, string> options = 2; */ @java.lang.Override - public boolean hasTargetTypeExtension() { - return targetTypeExtension_ != null; + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return The targetTypeExtension. + * map<string, string> options = 2; */ @java.lang.Override - public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { - return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * map<string, string> options = 2; */ @java.lang.Override - public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { - return getTargetTypeExtension(); + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } private byte memoizedIsInitialized = -1; @@ -21651,12 +23608,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } - if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { - output.writeEnum(2, targetType_); - } - if (targetTypeExtension_ != null) { - output.writeMessage(3, getTargetTypeExtension()); - } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetOptions(), + OptionsDefaultEntryHolder.defaultEntry, + 2); unknownFields.writeTo(output); } @@ -21669,13 +23626,15 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); } - if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, targetType_); - } - if (targetTypeExtension_ != null) { + for (java.util.Map.Entry entry + : internalGetOptions().getMap().entrySet()) { + com.google.protobuf.MapEntry + options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTargetTypeExtension()); + .computeMessageSize(2, options__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -21687,19 +23646,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.ChangeColumnType)) { + if (!(obj instanceof io.greptime.v1.Ddl.AddFulltext)) { return super.equals(obj); } - io.greptime.v1.Ddl.ChangeColumnType other = (io.greptime.v1.Ddl.ChangeColumnType) obj; + io.greptime.v1.Ddl.AddFulltext other = (io.greptime.v1.Ddl.AddFulltext) obj; if (!getColumnName() .equals(other.getColumnName())) return false; - if (targetType_ != other.targetType_) return false; - if (hasTargetTypeExtension() != other.hasTargetTypeExtension()) return false; - if (hasTargetTypeExtension()) { - if (!getTargetTypeExtension() - .equals(other.getTargetTypeExtension())) return false; - } + if (!internalGetOptions().equals( + other.internalGetOptions())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -21713,80 +23668,78 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getColumnName().hashCode(); - hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; - hash = (53 * hash) + targetType_; - if (hasTargetTypeExtension()) { - hash = (37 * hash) + TARGET_TYPE_EXTENSION_FIELD_NUMBER; - hash = (53 * hash) + getTargetTypeExtension().hashCode(); + if (!internalGetOptions().getMap().isEmpty()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(byte[] data) + public static io.greptime.v1.Ddl.AddFulltext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.AddFulltext parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.AddFulltext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom( + public static io.greptime.v1.Ddl.AddFulltext parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -21799,7 +23752,7 @@ public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.ChangeColumnType prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.AddFulltext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -21815,26 +23768,48 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.ChangeColumnType} + * Protobuf type {@code greptime.v1.AddFulltext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnType) - io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.AddFulltext) + io.greptime.v1.Ddl.AddFulltextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); + io.greptime.v1.Ddl.AddFulltext.class, io.greptime.v1.Ddl.AddFulltext.Builder.class); } - // Construct using io.greptime.v1.Ddl.ChangeColumnType.newBuilder() + // Construct using io.greptime.v1.Ddl.AddFulltext.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -21854,31 +23829,24 @@ public Builder clear() { super.clear(); columnName_ = ""; - targetType_ = 0; - - if (targetTypeExtensionBuilder_ == null) { - targetTypeExtension_ = null; - } else { - targetTypeExtension_ = null; - targetTypeExtensionBuilder_ = null; - } + internalGetMutableOptions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { - return io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance(); + public io.greptime.v1.Ddl.AddFulltext getDefaultInstanceForType() { + return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType build() { - io.greptime.v1.Ddl.ChangeColumnType result = buildPartial(); + public io.greptime.v1.Ddl.AddFulltext build() { + io.greptime.v1.Ddl.AddFulltext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -21886,15 +23854,12 @@ public io.greptime.v1.Ddl.ChangeColumnType build() { } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType buildPartial() { - io.greptime.v1.Ddl.ChangeColumnType result = new io.greptime.v1.Ddl.ChangeColumnType(this); + public io.greptime.v1.Ddl.AddFulltext buildPartial() { + io.greptime.v1.Ddl.AddFulltext result = new io.greptime.v1.Ddl.AddFulltext(this); + int from_bitField0_ = bitField0_; result.columnName_ = columnName_; - result.targetType_ = targetType_; - if (targetTypeExtensionBuilder_ == null) { - result.targetTypeExtension_ = targetTypeExtension_; - } else { - result.targetTypeExtension_ = targetTypeExtensionBuilder_.build(); - } + result.options_ = internalGetOptions(); + result.options_.makeImmutable(); onBuilt(); return result; } @@ -21933,26 +23898,22 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.ChangeColumnType) { - return mergeFrom((io.greptime.v1.Ddl.ChangeColumnType)other); + if (other instanceof io.greptime.v1.Ddl.AddFulltext) { + return mergeFrom((io.greptime.v1.Ddl.AddFulltext)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.ChangeColumnType other) { - if (other == io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.Ddl.AddFulltext other) { + if (other == io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; onChanged(); } - if (other.targetType_ != 0) { - setTargetTypeValue(other.getTargetTypeValue()); - } - if (other.hasTargetTypeExtension()) { - mergeTargetTypeExtension(other.getTargetTypeExtension()); - } + internalGetMutableOptions().mergeFrom( + other.internalGetOptions()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -21968,11 +23929,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.ChangeColumnType parsedMessage = null; + io.greptime.v1.Ddl.AddFulltext parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.ChangeColumnType) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.AddFulltext) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -21981,6 +23942,7 @@ public Builder mergeFrom( } return this; } + private int bitField0_; private java.lang.Object columnName_ = ""; /** @@ -22021,214 +23983,172 @@ public java.lang.String getColumnName() { * @param value The columnName to set. * @return This builder for chaining. */ - public Builder setColumnName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - columnName_ = value; - onChanged(); - return this; - } - /** - * string column_name = 1; - * @return This builder for chaining. - */ - public Builder clearColumnName() { - - columnName_ = getDefaultInstance().getColumnName(); - onChanged(); - return this; - } - /** - * string column_name = 1; - * @param value The bytes for columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - columnName_ = value; - onChanged(); - return this; - } - - private int targetType_ = 0; - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The enum numeric value on the wire for targetType. - */ - @java.lang.Override public int getTargetTypeValue() { - return targetType_; - } - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @param value The enum numeric value on the wire for targetType to set. - * @return This builder for chaining. - */ - public Builder setTargetTypeValue(int value) { - - targetType_ = value; + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; onChanged(); return this; } /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The targetType. - */ - @java.lang.Override - public io.greptime.v1.Common.ColumnDataType getTargetType() { - @SuppressWarnings("deprecation") - io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); - return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; - } - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @param value The targetType to set. + * string column_name = 1; * @return This builder for chaining. */ - public Builder setTargetType(io.greptime.v1.Common.ColumnDataType value) { - if (value == null) { - throw new NullPointerException(); - } + public Builder clearColumnName() { - targetType_ = value.getNumber(); + columnName_ = getDefaultInstance().getColumnName(); onChanged(); return this; } /** - * .greptime.v1.ColumnDataType target_type = 2; + * string column_name = 1; + * @param value The bytes for columnName to set. * @return This builder for chaining. */ - public Builder clearTargetType() { + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); - targetType_ = 0; + columnName_ = value; onChanged(); return this; } - private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; - private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> targetTypeExtensionBuilder_; + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; + } + private com.google.protobuf.MapField + internalGetMutableOptions() { + onChanged();; + if (options_ == null) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + if (!options_.isMutable()) { + options_ = options_.copy(); + } + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return Whether the targetTypeExtension field is set. + * map<string, string> options = 2; */ - public boolean hasTargetTypeExtension() { - return targetTypeExtensionBuilder_ != null || targetTypeExtension_ != null; + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return The targetTypeExtension. + * Use {@link #getOptionsMap()} instead. */ - public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { - if (targetTypeExtensionBuilder_ == null) { - return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; - } else { - return targetTypeExtensionBuilder_.getMessage(); - } + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * map<string, string> options = 2; */ - public Builder setTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { - if (targetTypeExtensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetTypeExtension_ = value; - onChanged(); - } else { - targetTypeExtensionBuilder_.setMessage(value); - } + @java.lang.Override - return this; + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * map<string, string> options = 2; */ - public Builder setTargetTypeExtension( - io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { - if (targetTypeExtensionBuilder_ == null) { - targetTypeExtension_ = builderForValue.build(); - onChanged(); - } else { - targetTypeExtensionBuilder_.setMessage(builderForValue.build()); - } + @java.lang.Override - return this; + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * map<string, string> options = 2; */ - public Builder mergeTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { - if (targetTypeExtensionBuilder_ == null) { - if (targetTypeExtension_ != null) { - targetTypeExtension_ = - io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(targetTypeExtension_).mergeFrom(value).buildPartial(); - } else { - targetTypeExtension_ = value; - } - onChanged(); - } else { - targetTypeExtensionBuilder_.mergeFrom(value); + @java.lang.Override + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + public Builder clearOptions() { + internalGetMutableOptions().getMutableMap() + .clear(); return this; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * map<string, string> options = 2; */ - public Builder clearTargetTypeExtension() { - if (targetTypeExtensionBuilder_ == null) { - targetTypeExtension_ = null; - onChanged(); - } else { - targetTypeExtension_ = null; - targetTypeExtensionBuilder_ = null; - } + public Builder removeOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableOptions().getMutableMap() + .remove(key); return this; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * Use alternate mutation accessors instead. */ - public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getTargetTypeExtensionBuilder() { - - onChanged(); - return getTargetTypeExtensionFieldBuilder().getBuilder(); + @java.lang.Deprecated + public java.util.Map + getMutableOptions() { + return internalGetMutableOptions().getMutableMap(); } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * map<string, string> options = 2; */ - public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { - if (targetTypeExtensionBuilder_ != null) { - return targetTypeExtensionBuilder_.getMessageOrBuilder(); - } else { - return targetTypeExtension_ == null ? - io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; - } + public Builder putOptions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableOptions().getMutableMap() + .put(key, value); + return this; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * map<string, string> options = 2; */ - private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> - getTargetTypeExtensionFieldBuilder() { - if (targetTypeExtensionBuilder_ == null) { - targetTypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>( - getTargetTypeExtension(), - getParentForChildren(), - isClean()); - targetTypeExtension_ = null; - } - return targetTypeExtensionBuilder_; + + public Builder putAllOptions( + java.util.Map values) { + internalGetMutableOptions().getMutableMap() + .putAll(values); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -22243,41 +24163,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeColumnType) + // @@protoc_insertion_point(builder_scope:greptime.v1.AddFulltext) } - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnType) - private static final io.greptime.v1.Ddl.ChangeColumnType DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltext) + private static final io.greptime.v1.Ddl.AddFulltext DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnType(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddFulltext(); } - public static io.greptime.v1.Ddl.ChangeColumnType getDefaultInstance() { + public static io.greptime.v1.Ddl.AddFulltext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ChangeColumnType parsePartialFrom( + public AddFulltext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeColumnType(input, extensionRegistry); + return new AddFulltext(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { + public io.greptime.v1.Ddl.AddFulltext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -26308,6 +28228,11 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AddFulltexts_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AddFulltexts_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RenameTable_descriptor; private static final @@ -26323,6 +28248,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_AddFulltext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AddFulltext_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AddFulltext_OptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_DropColumn_descriptor; private static final @@ -26403,57 +28338,63 @@ 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\"\331\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\0222\n" + + "\radd_fulltexts\030\010 \001(\0132\031.greptime.v1.AddFu" + + "lltextsH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014c" + + "atalog_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.g" + + "reptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001" + + "(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_nam" + + "e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_i" + + "f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr" + + "eptime.v1.CreateDatabaseExpr.OptionsEntr" + + "y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo" + + "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab" + + "le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti" + + "me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat" + + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016" + + "drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad" + + "d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"" + + "<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g" + + "reptime.v1.DropColumn\"O\n\021ChangeColumnTyp" + + "es\022:\n\023change_column_types\030\001 \003(\0132\035.grepti" + + "me.v1.ChangeColumnType\"?\n\014AddFulltexts\022/" + + "\n\radd_fulltexts\030\001 \003(\0132\030.greptime.v1.AddF" + + "ulltext\"%\n\013RenameTable\022\026\n\016new_table_name" + + "\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132" + + "\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001(" + + "\0132\036.greptime.v1.AddColumnLocation\"\236\001\n\020Ch" + + "angeColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013t" + + "arget_type\030\002 \001(\0162\033.greptime.v1.ColumnDat" + + "aType\022C\n\025target_type_extension\030\003 \001(\0132$.g" + + "reptime.v1.ColumnDataTypeExtension\"\212\001\n\013A" + + "ddFulltext\022\023\n\013column_name\030\001 \001(\t\0226\n\007optio" + + "ns\030\002 \003(\0132%.greptime.v1.AddFulltext.Optio" + + "nsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + + "value\030\002 \001(\t:\0028\001\"\032\n\nDropColumn\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\002" + + "id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\t" + + "data_type\030\002 \001(\0162\033.greptime.v1.ColumnData" + + "Type\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_con" + + "straint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.g" + + "reptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t" + + "\022@\n\022datatype_extension\030\007 \001(\0132$.greptime." + + "v1.ColumnDataTypeExtension\022+\n\007options\030\010 " + + "\001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021AddC" + + "olumnLocation\022B\n\rlocation_type\030\001 \001(\0162+.g" + + "reptime.v1.AddColumnLocation.LocationTyp" + + "e\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Location" + + "Type\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptim" + + "e.v1B\003DdlZ5github.com/GreptimeTeam/grept" + + "ime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -26513,7 +28454,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", "AddFulltexts", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -26562,50 +28503,68 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeColumnTypes_descriptor, new java.lang.String[] { "ChangeColumnTypes", }); - internal_static_greptime_v1_RenameTable_descriptor = + internal_static_greptime_v1_AddFulltexts_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_greptime_v1_AddFulltexts_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_AddFulltexts_descriptor, + new java.lang.String[] { "AddFulltexts", }); + internal_static_greptime_v1_RenameTable_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_greptime_v1_RenameTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RenameTable_descriptor, new java.lang.String[] { "NewTableName", }); internal_static_greptime_v1_AddColumn_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_AddColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumn_descriptor, new java.lang.String[] { "ColumnDef", "Location", }); internal_static_greptime_v1_ChangeColumnType_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeColumnType_descriptor, new java.lang.String[] { "ColumnName", "TargetType", "TargetTypeExtension", }); + internal_static_greptime_v1_AddFulltext_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_greptime_v1_AddFulltext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_AddFulltext_descriptor, + new java.lang.String[] { "ColumnName", "Options", }); + internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor = + internal_static_greptime_v1_AddFulltext_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_AddFulltext_OptionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_DropColumn_descriptor = - getDescriptor().getMessageTypes().get(17); + 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/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 989bf668..40f9c9db 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -109,6 +109,7 @@ message AlterExpr { DropColumns drop_columns = 5; RenameTable rename_table = 6; ChangeColumnTypes change_column_types = 7; + AddFulltexts add_fulltexts = 8; } } @@ -146,6 +147,8 @@ message DropColumns { repeated DropColumn drop_columns = 1; } message ChangeColumnTypes { repeated ChangeColumnType change_column_types = 1; } +message AddFulltexts { repeated AddFulltext add_fulltexts = 1; } + message RenameTable { string new_table_name = 1; } message AddColumn { @@ -159,6 +162,11 @@ message ChangeColumnType { ColumnDataTypeExtension target_type_extension = 3; } +message AddFulltext { + string column_name = 1; + map options = 2; +} + message DropColumn { string name = 1; } message TableId { uint32 id = 1; } From ca5920ee9263650c37556edad4bc877a674af444 Mon Sep 17 00:00:00 2001 From: irenjj Date: Thu, 22 Aug 2024 20:48:28 +0800 Subject: [PATCH 02/12] simplify fulltext --- proto/greptime/v1/ddl.proto | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 40f9c9db..6e1b7f1e 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -109,7 +109,7 @@ message AlterExpr { DropColumns drop_columns = 5; RenameTable rename_table = 6; ChangeColumnTypes change_column_types = 7; - AddFulltexts add_fulltexts = 8; + AddFulltext add_fulltext = 8; } } @@ -147,7 +147,10 @@ message DropColumns { repeated DropColumn drop_columns = 1; } message ChangeColumnTypes { repeated ChangeColumnType change_column_types = 1; } -message AddFulltexts { repeated AddFulltext add_fulltexts = 1; } +message AddFulltext { + string column_name = 1; + map options = 2; +} message RenameTable { string new_table_name = 1; } @@ -162,11 +165,6 @@ message ChangeColumnType { ColumnDataTypeExtension target_type_extension = 3; } -message AddFulltext { - string column_name = 1; - map options = 2; -} - message DropColumn { string name = 1; } message TableId { uint32 id = 1; } From 58199ddc87abf8812c9d4dd46a734204512c139b Mon Sep 17 00:00:00 2001 From: irenjj Date: Sun, 1 Sep 2024 17:26:59 +0800 Subject: [PATCH 03/12] add region proto --- c++/greptime/v1/ddl.pb.cc | 796 ++--- c++/greptime/v1/ddl.pb.h | 663 ++-- c++/greptime/v1/region/server.pb.cc | 487 ++- c++/greptime/v1/region/server.pb.h | 410 ++- go/greptime/v1/ddl.pb.go | 560 ++-- java/src/main/java/io/greptime/v1/Ddl.java | 2701 ++++++----------- .../java/io/greptime/v1/region/Server.java | 1303 +++++++- proto/greptime/v1/region/server.proto | 7 + 8 files changed, 3800 insertions(+), 3127 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 6427c5ca..88bffed8 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -289,19 +289,31 @@ struct ChangeColumnTypesDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; -PROTOBUF_CONSTEXPR AddFulltexts::AddFulltexts( +PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {} + union { + AddFulltext_OptionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _AddFulltext_OptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR AddFulltext::AddFulltext( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.add_fulltexts_)*/{} + /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_._cached_size_)*/{}} {} -struct AddFulltextsDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddFulltextsDefaultTypeInternal() +struct AddFulltextDefaultTypeInternal { + PROTOBUF_CONSTEXPR AddFulltextDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddFulltextsDefaultTypeInternal() {} + ~AddFulltextDefaultTypeInternal() {} union { - AddFulltexts _instance; + AddFulltext _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltextsDefaultTypeInternal _AddFulltexts_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltextDefaultTypeInternal _AddFulltext_default_instance_; PROTOBUF_CONSTEXPR RenameTable::RenameTable( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.new_table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -344,31 +356,6 @@ struct ChangeColumnTypeDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; -PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {} - union { - AddFulltext_OptionsEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _AddFulltext_OptionsEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR AddFulltext::AddFulltext( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct AddFulltextDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddFulltextDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~AddFulltextDefaultTypeInternal() {} - union { - AddFulltext _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltextDefaultTypeInternal _AddFulltext_default_instance_; PROTOBUF_CONSTEXPR DropColumn::DropColumn( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -444,7 +431,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[28]; +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; @@ -641,13 +628,24 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _impl_.change_column_types_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, value_), + 0, + 1, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltexts, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltexts, _impl_.add_fulltexts_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::RenameTable, _internal_metadata_), ~0u, // no _extensions_ @@ -672,24 +670,6 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.column_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnType, _impl_.target_type_extension_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _impl_.column_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumn, _internal_metadata_), ~0u, // no _extensions_ @@ -752,17 +732,16 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 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::AddFulltexts)}, - { 199, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 206, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 214, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, - { 223, 231, -1, sizeof(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse)}, - { 233, -1, -1, sizeof(::greptime::v1::AddFulltext)}, - { 241, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 248, -1, -1, sizeof(::greptime::v1::TableId)}, - { 255, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 262, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 276, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 192, 200, -1, sizeof(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse)}, + { 202, -1, -1, sizeof(::greptime::v1::AddFulltext)}, + { 210, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 217, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 225, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, + { 234, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 241, -1, -1, sizeof(::greptime::v1::TableId)}, + { 248, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 255, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 269, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -783,12 +762,11 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_AddColumns_default_instance_._instance, &::greptime::v1::_DropColumns_default_instance_._instance, &::greptime::v1::_ChangeColumnTypes_default_instance_._instance, - &::greptime::v1::_AddFulltexts_default_instance_._instance, + &::greptime::v1::_AddFulltext_OptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::_AddFulltext_default_instance_._instance, &::greptime::v1::_RenameTable_default_instance_._instance, &::greptime::v1::_AddColumn_default_instance_._instance, &::greptime::v1::_ChangeColumnType_default_instance_._instance, - &::greptime::v1::_AddFulltext_OptionsEntry_DoNotUse_default_instance_._instance, - &::greptime::v1::_AddFulltext_default_instance_._instance, &::greptime::v1::_DropColumn_default_instance_._instance, &::greptime::v1::_TableId_default_instance_._instance, &::greptime::v1::_FlowId_default_instance_._instance, @@ -843,72 +821,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\"\331\002\n\tAlterE" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\327\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\000\0222\n" - "\radd_fulltexts\030\010 \001(\0132\031.greptime.v1.AddFu" - "lltextsH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014c" - "atalog_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.g" - "reptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001" - "(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_nam" - "e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_i" - "f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr" - "eptime.v1.CreateDatabaseExpr.OptionsEntr" - "y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" - "\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo" - "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab" - "le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti" - "me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat" - "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016" - "drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad" - "d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"" - "<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g" - "reptime.v1.DropColumn\"O\n\021ChangeColumnTyp" - "es\022:\n\023change_column_types\030\001 \003(\0132\035.grepti" - "me.v1.ChangeColumnType\"\?\n\014AddFulltexts\022/" - "\n\radd_fulltexts\030\001 \003(\0132\030.greptime.v1.AddF" - "ulltext\"%\n\013RenameTable\022\026\n\016new_table_name" - "\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132" - "\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001(" - "\0132\036.greptime.v1.AddColumnLocation\"\236\001\n\020Ch" - "angeColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013t" - "arget_type\030\002 \001(\0162\033.greptime.v1.ColumnDat" - "aType\022C\n\025target_type_extension\030\003 \001(\0132$.g" - "reptime.v1.ColumnDataTypeExtension\"\212\001\n\013A" - "ddFulltext\022\023\n\013column_name\030\001 \001(\t\0226\n\007optio" - "ns\030\002 \003(\0132%.greptime.v1.AddFulltext.Optio" - "nsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - "value\030\002 \001(\t:\0028\001\"\032\n\nDropColumn\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\002" - "id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\t" - "data_type\030\002 \001(\0162\033.greptime.v1.ColumnData" - "Type\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_con" - "straint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.g" - "reptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t" - "\022@\n\022datatype_extension\030\007 \001(\0132$.greptime." - "v1.ColumnDataTypeExtension\022+\n\007options\030\010 " - "\001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021AddC" - "olumnLocation\022B\n\rlocation_type\030\001 \001(\0162+.g" - "reptime.v1.AddColumnLocation.LocationTyp" - "e\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Location" - "Type\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptim" - "e.v1B\003DdlZ5github.com/GreptimeTeam/grept" - "ime-proto/go/greptime/v1b\006proto3" + "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\0220\n" + "\014add_fulltext\030\010 \001(\0132\030.greptime.v1.AddFul" + "ltextH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014cat" + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" + "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" + "ptime.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\007options\030\004 \003(\0132,.grep" + "time.v1.CreateDatabaseExpr.OptionsEntry\032" + ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + "\001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_" + "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable" + "_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime" + ".v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catal" + "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" + "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" + "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n" + "\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" + "ptime.v1.DropColumn\"O\n\021ChangeColumnTypes" + "\022:\n\023change_column_types\030\001 \003(\0132\035.greptime" + ".v1.ChangeColumnType\"\212\001\n\013AddFulltext\022\023\n\013" + "column_name\030\001 \001(\t\0226\n\007options\030\002 \003(\0132%.gre" + "ptime.v1.AddFulltext.OptionsEntry\032.\n\014Opt" + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + "\001\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t" + "\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grep" + "time.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.gr" + "eptime.v1.AddColumnLocation\"\236\001\n\020ChangeCo" + "lumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_" + "type\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022" + "C\n\025target_type_extension\030\003 \001(\0132$.greptim" + "e.v1.ColumnDataTypeExtension\"\032\n\nDropColu" + "mn\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\tColumnDef\022\014\n\004n" + "ame\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime." + "v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032" + "\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic_t" + "ype\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007" + "comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(" + "\0132$.greptime.v1.ColumnDataTypeExtension\022" + "+\n\007options\030\010 \001(\0132\032.greptime.v1.ColumnOpt" + "ions\"\230\001\n\021AddColumnLocation\022B\n\rlocation_t" + "ype\030\001 \001(\0162+.greptime.v1.AddColumnLocatio" + "n.LocationType\022\031\n\021after_column_name\030\002 \001(" + "\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001B" + "L\n\016io.greptime.v1B\003DdlZ5github.com/Grept" + "imeTeam/greptime-proto/go/greptime/v1b\006p" + "roto3" ; 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, 4112, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 4045, 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, 28, + &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, @@ -4244,7 +4221,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::AddFulltexts& add_fulltexts(const AlterExpr* msg); + static const ::greptime::v1::AddFulltext& add_fulltext(const AlterExpr* msg); }; const ::greptime::v1::AddColumns& @@ -4263,9 +4240,9 @@ const ::greptime::v1::ChangeColumnTypes& AlterExpr::_Internal::change_column_types(const AlterExpr* msg) { return *msg->_impl_.kind_.change_column_types_; } -const ::greptime::v1::AddFulltexts& -AlterExpr::_Internal::add_fulltexts(const AlterExpr* msg) { - return *msg->_impl_.kind_.add_fulltexts_; +const ::greptime::v1::AddFulltext& +AlterExpr::_Internal::add_fulltext(const AlterExpr* msg) { + return *msg->_impl_.kind_.add_fulltext_; } void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); @@ -4327,20 +4304,20 @@ 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_add_fulltexts(::greptime::v1::AddFulltexts* add_fulltexts) { +void AlterExpr::set_allocated_add_fulltext(::greptime::v1::AddFulltext* add_fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (add_fulltexts) { + if (add_fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(add_fulltexts); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(add_fulltext); if (message_arena != submessage_arena) { - add_fulltexts = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, add_fulltexts, submessage_arena); + add_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, add_fulltext, submessage_arena); } - set_has_add_fulltexts(); - _impl_.kind_.add_fulltexts_ = add_fulltexts; + set_has_add_fulltext(); + _impl_.kind_.add_fulltext_ = add_fulltext; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.add_fulltexts) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.add_fulltext) } AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -4406,9 +4383,9 @@ AlterExpr::AlterExpr(const AlterExpr& from) from._internal_change_column_types()); break; } - case kAddFulltexts: { - _this->_internal_mutable_add_fulltexts()->::greptime::v1::AddFulltexts::MergeFrom( - from._internal_add_fulltexts()); + case kAddFulltext: { + _this->_internal_mutable_add_fulltext()->::greptime::v1::AddFulltext::MergeFrom( + from._internal_add_fulltext()); break; } case KIND_NOT_SET: { @@ -4495,9 +4472,9 @@ void AlterExpr::clear_kind() { } break; } - case kAddFulltexts: { + case kAddFulltext: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.add_fulltexts_; + delete _impl_.kind_.add_fulltext_; } break; } @@ -4590,10 +4567,10 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; - // .greptime.v1.AddFulltexts add_fulltexts = 8; + // .greptime.v1.AddFulltext add_fulltext = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_add_fulltexts(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_add_fulltext(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -4685,11 +4662,11 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::change_column_types(this).GetCachedSize(), target, stream); } - // .greptime.v1.AddFulltexts add_fulltexts = 8; - if (_internal_has_add_fulltexts()) { + // .greptime.v1.AddFulltext add_fulltext = 8; + if (_internal_has_add_fulltext()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, _Internal::add_fulltexts(this), - _Internal::add_fulltexts(this).GetCachedSize(), target, stream); + InternalWriteMessage(8, _Internal::add_fulltext(this), + _Internal::add_fulltext(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4758,11 +4735,11 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.change_column_types_); break; } - // .greptime.v1.AddFulltexts add_fulltexts = 8; - case kAddFulltexts: { + // .greptime.v1.AddFulltext add_fulltext = 8; + case kAddFulltext: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.add_fulltexts_); + *_impl_.kind_.add_fulltext_); break; } case KIND_NOT_SET: { @@ -4817,9 +4794,9 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT from._internal_change_column_types()); break; } - case kAddFulltexts: { - _this->_internal_mutable_add_fulltexts()->::greptime::v1::AddFulltexts::MergeFrom( - from._internal_add_fulltexts()); + case kAddFulltext: { + _this->_internal_mutable_add_fulltext()->::greptime::v1::AddFulltext::MergeFrom( + from._internal_add_fulltext()); break; } case KIND_NOT_SET: { @@ -6787,81 +6764,131 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const { // =================================================================== -class AddFulltexts::_Internal { +AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse() {} +AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void AddFulltext_OptionsEntry_DoNotUse::MergeFrom(const AddFulltext_OptionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext_OptionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); +} + +// =================================================================== + +class AddFulltext::_Internal { public: }; -AddFulltexts::AddFulltexts(::PROTOBUF_NAMESPACE_ID::Arena* arena, +AddFulltext::AddFulltext(::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.AddFulltexts) + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &AddFulltext::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:greptime.v1.AddFulltext) } -AddFulltexts::AddFulltexts(const AddFulltexts& from) +AddFulltext::AddFulltext(const AddFulltext& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - AddFulltexts* const _this = this; (void)_this; + AddFulltext* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.add_fulltexts_){from._impl_.add_fulltexts_} + /*decltype(_impl_.options_)*/{} + , decltype(_impl_.column_name_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.AddFulltexts) + _this->_impl_.options_.MergeFrom(from._impl_.options_); + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.AddFulltext) } -inline void AddFulltexts::SharedCtor( +inline void AddFulltext::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.add_fulltexts_){arena} + /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.column_name_){} , /*decltype(_impl_._cached_size_)*/{} }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -AddFulltexts::~AddFulltexts() { - // @@protoc_insertion_point(destructor:greptime.v1.AddFulltexts) +AddFulltext::~AddFulltext() { + // @@protoc_insertion_point(destructor:greptime.v1.AddFulltext) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; + ArenaDtor(this); return; } SharedDtor(); } -inline void AddFulltexts::SharedDtor() { +inline void AddFulltext::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.add_fulltexts_.~RepeatedPtrField(); + _impl_.options_.Destruct(); + _impl_.options_.~MapField(); + _impl_.column_name_.Destroy(); } -void AddFulltexts::SetCachedSize(int size) const { +void AddFulltext::ArenaDtor(void* object) { + AddFulltext* _this = reinterpret_cast< AddFulltext* >(object); + _this->_impl_.options_.Destruct(); +} +void AddFulltext::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void AddFulltexts::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.AddFulltexts) +void AddFulltext::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.AddFulltext) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.add_fulltexts_.Clear(); + _impl_.options_.Clear(); + _impl_.column_name_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AddFulltexts::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* AddFulltext::_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.AddFulltext add_fulltexts = 1; + // string column_name = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.AddFulltext.column_name")); + } else + goto handle_unusual; + continue; + // map options = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr -= 1; do { ptr += 1; - ptr = ctx->ParseMessage(_internal_add_add_fulltexts(), ptr); + ptr = ctx->ParseMessage(&_impl_.options_, ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); } else goto handle_unusual; continue; @@ -6888,86 +6915,136 @@ const char* AddFulltexts::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* AddFulltexts::_InternalSerialize( +uint8_t* AddFulltext::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddFulltexts) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddFulltext) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .greptime.v1.AddFulltext add_fulltexts = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_add_fulltexts_size()); i < n; i++) { - const auto& repfield = this->_internal_add_fulltexts(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.AddFulltext.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // map options = 2; + if (!this->_internal_options().empty()) { + using MapType = ::_pb::Map; + using WireHelper = AddFulltext_OptionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_options(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.AddFulltext.OptionsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.AddFulltext.OptionsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } } 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.AddFulltexts) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.AddFulltext) return target; } -size_t AddFulltexts::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddFulltexts) +size_t AddFulltext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddFulltext) 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.AddFulltext add_fulltexts = 1; - total_size += 1UL * this->_internal_add_fulltexts_size(); - for (const auto& msg : this->_impl_.add_fulltexts_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // map options = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_options().begin(); + it != this->_internal_options().end(); ++it) { + total_size += AddFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddFulltexts::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddFulltext::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - AddFulltexts::MergeImpl + AddFulltext::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddFulltexts::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddFulltext::GetClassData() const { return &_class_data_; } -void AddFulltexts::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.AddFulltexts) +void AddFulltext::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.AddFulltext) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.add_fulltexts_.MergeFrom(from._impl_.add_fulltexts_); + _this->_impl_.options_.MergeFrom(from._impl_.options_); + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void AddFulltexts::CopyFrom(const AddFulltexts& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddFulltexts) +void AddFulltext::CopyFrom(const AddFulltext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddFulltext) if (&from == this) return; Clear(); MergeFrom(from); } -bool AddFulltexts::IsInitialized() const { +bool AddFulltext::IsInitialized() const { return true; } -void AddFulltexts::InternalSwap(AddFulltexts* other) { +void AddFulltext::InternalSwap(AddFulltext* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.add_fulltexts_.InternalSwap(&other->_impl_.add_fulltexts_); + _impl_.options_.InternalSwap(&other->_impl_.options_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); } -::PROTOBUF_NAMESPACE_ID::Metadata AddFulltexts::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); } // =================================================================== @@ -7170,7 +7247,7 @@ void RenameTable::InternalSwap(RenameTable* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); } // =================================================================== @@ -7409,7 +7486,7 @@ void AddColumn::InternalSwap(AddColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); } // =================================================================== @@ -7692,20 +7769,6 @@ void ChangeColumnType::InternalSwap(ChangeColumnType* other) { } ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnType::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); -} - -// =================================================================== - -AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse() {} -AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void AddFulltext_OptionsEntry_DoNotUse::MergeFrom(const AddFulltext_OptionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext_OptionsEntry_DoNotUse::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]); @@ -7713,277 +7776,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext_OptionsEntry_DoNotUse::GetMetadata // =================================================================== -class AddFulltext::_Internal { - public: -}; - -AddFulltext::AddFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &AddFulltext::ArenaDtor); - } - // @@protoc_insertion_point(arena_constructor:greptime.v1.AddFulltext) -} -AddFulltext::AddFulltext(const AddFulltext& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - AddFulltext* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_.options_)*/{} - , decltype(_impl_.column_name_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.options_.MergeFrom(from._impl_.options_); - _impl_.column_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.column_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_column_name().empty()) { - _this->_impl_.column_name_.Set(from._internal_column_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.AddFulltext) -} - -inline void AddFulltext::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.column_name_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.column_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.column_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -AddFulltext::~AddFulltext() { - // @@protoc_insertion_point(destructor:greptime.v1.AddFulltext) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void AddFulltext::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.options_.Destruct(); - _impl_.options_.~MapField(); - _impl_.column_name_.Destroy(); -} - -void AddFulltext::ArenaDtor(void* object) { - AddFulltext* _this = reinterpret_cast< AddFulltext* >(object); - _this->_impl_.options_.Destruct(); -} -void AddFulltext::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void AddFulltext::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.AddFulltext) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.options_.Clear(); - _impl_.column_name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* AddFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string column_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_column_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.AddFulltext.column_name")); - } else - goto handle_unusual; - continue; - // map options = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.options_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* AddFulltext::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddFulltext) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string column_name = 1; - if (!this->_internal_column_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.AddFulltext.column_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_column_name(), target); - } - - // map options = 2; - if (!this->_internal_options().empty()) { - using MapType = ::_pb::Map; - using WireHelper = AddFulltext_OptionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_options(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.AddFulltext.OptionsEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.AddFulltext.OptionsEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - 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.AddFulltext) - return target; -} - -size_t AddFulltext::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddFulltext) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map options = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_options().begin(); - it != this->_internal_options().end(); ++it) { - total_size += AddFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // string column_name = 1; - if (!this->_internal_column_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_column_name()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddFulltext::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - AddFulltext::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddFulltext::GetClassData() const { return &_class_data_; } - - -void AddFulltext::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.AddFulltext) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_impl_.options_.MergeFrom(from._impl_.options_); - if (!from._internal_column_name().empty()) { - _this->_internal_set_column_name(from._internal_column_name()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void AddFulltext::CopyFrom(const AddFulltext& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddFulltext) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AddFulltext::IsInitialized() const { - return true; -} - -void AddFulltext::InternalSwap(AddFulltext* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.options_.InternalSwap(&other->_impl_.options_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.column_name_, lhs_arena, - &other->_impl_.column_name_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext::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]); -} - -// =================================================================== - class DropColumn::_Internal { public: }; @@ -8182,7 +7974,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[23]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[22]); } // =================================================================== @@ -8360,7 +8152,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[24]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[23]); } // =================================================================== @@ -8538,7 +8330,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[25]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[24]); } // =================================================================== @@ -9020,7 +8812,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[26]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[25]); } // =================================================================== @@ -9253,7 +9045,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[27]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[26]); } // @@protoc_insertion_point(namespace_scope) @@ -9328,9 +9120,13 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnTypes >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::AddFulltexts* -Arena::CreateMaybeMessage< ::greptime::v1::AddFulltexts >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::AddFulltexts >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::AddFulltext* +Arena::CreateMaybeMessage< ::greptime::v1::AddFulltext >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::AddFulltext >(arena); } template<> PROTOBUF_NOINLINE ::greptime::v1::RenameTable* Arena::CreateMaybeMessage< ::greptime::v1::RenameTable >(Arena* arena) { @@ -9344,14 +9140,6 @@ 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::AddFulltext_OptionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::greptime::v1::AddFulltext* -Arena::CreateMaybeMessage< ::greptime::v1::AddFulltext >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::AddFulltext >(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 06a4d1a6..7fccaf44 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -66,9 +66,6 @@ extern AddFulltextDefaultTypeInternal _AddFulltext_default_instance_; class AddFulltext_OptionsEntry_DoNotUse; struct AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal; extern AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _AddFulltext_OptionsEntry_DoNotUse_default_instance_; -class AddFulltexts; -struct AddFulltextsDefaultTypeInternal; -extern AddFulltextsDefaultTypeInternal _AddFulltexts_default_instance_; class AlterExpr; struct AlterExprDefaultTypeInternal; extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_; @@ -143,7 +140,6 @@ template<> ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage<::grepti template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::AddColumns>(Arena*); template<> ::greptime::v1::AddFulltext* Arena::CreateMaybeMessage<::greptime::v1::AddFulltext>(Arena*); template<> ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::AddFulltext_OptionsEntry_DoNotUse>(Arena*); -template<> ::greptime::v1::AddFulltexts* Arena::CreateMaybeMessage<::greptime::v1::AddFulltexts>(Arena*); template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*); template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*); template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*); @@ -2023,7 +2019,7 @@ class AlterExpr final : kDropColumns = 5, kRenameTable = 6, kChangeColumnTypes = 7, - kAddFulltexts = 8, + kAddFulltext = 8, KIND_NOT_SET = 0, }; @@ -2112,7 +2108,7 @@ class AlterExpr final : kDropColumnsFieldNumber = 5, kRenameTableFieldNumber = 6, kChangeColumnTypesFieldNumber = 7, - kAddFulltextsFieldNumber = 8, + kAddFulltextFieldNumber = 8, }; // string catalog_name = 1; void clear_catalog_name(); @@ -2228,23 +2224,23 @@ class AlterExpr final : ::greptime::v1::ChangeColumnTypes* change_column_types); ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); - // .greptime.v1.AddFulltexts add_fulltexts = 8; - bool has_add_fulltexts() const; + // .greptime.v1.AddFulltext add_fulltext = 8; + bool has_add_fulltext() const; private: - bool _internal_has_add_fulltexts() const; + bool _internal_has_add_fulltext() const; public: - void clear_add_fulltexts(); - const ::greptime::v1::AddFulltexts& add_fulltexts() const; - PROTOBUF_NODISCARD ::greptime::v1::AddFulltexts* release_add_fulltexts(); - ::greptime::v1::AddFulltexts* mutable_add_fulltexts(); - void set_allocated_add_fulltexts(::greptime::v1::AddFulltexts* add_fulltexts); + void clear_add_fulltext(); + const ::greptime::v1::AddFulltext& add_fulltext() const; + PROTOBUF_NODISCARD ::greptime::v1::AddFulltext* release_add_fulltext(); + ::greptime::v1::AddFulltext* mutable_add_fulltext(); + void set_allocated_add_fulltext(::greptime::v1::AddFulltext* add_fulltext); private: - const ::greptime::v1::AddFulltexts& _internal_add_fulltexts() const; - ::greptime::v1::AddFulltexts* _internal_mutable_add_fulltexts(); + const ::greptime::v1::AddFulltext& _internal_add_fulltext() const; + ::greptime::v1::AddFulltext* _internal_mutable_add_fulltext(); public: - void unsafe_arena_set_allocated_add_fulltexts( - ::greptime::v1::AddFulltexts* add_fulltexts); - ::greptime::v1::AddFulltexts* unsafe_arena_release_add_fulltexts(); + void unsafe_arena_set_allocated_add_fulltext( + ::greptime::v1::AddFulltext* add_fulltext); + ::greptime::v1::AddFulltext* unsafe_arena_release_add_fulltext(); void clear_kind(); KindCase kind_case() const; @@ -2255,7 +2251,7 @@ class AlterExpr final : void set_has_drop_columns(); void set_has_rename_table(); void set_has_change_column_types(); - void set_has_add_fulltexts(); + void set_has_add_fulltext(); inline bool has_kind() const; inline void clear_has_kind(); @@ -2274,7 +2270,7 @@ class AlterExpr final : ::greptime::v1::DropColumns* drop_columns_; ::greptime::v1::RenameTable* rename_table_; ::greptime::v1::ChangeColumnTypes* change_column_types_; - ::greptime::v1::AddFulltexts* add_fulltexts_; + ::greptime::v1::AddFulltext* add_fulltext_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -3591,24 +3587,52 @@ class ChangeColumnTypes final : }; // ------------------------------------------------------------------- -class AddFulltexts final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddFulltexts) */ { +class AddFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + AddFulltext_OptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit AddFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const AddFulltext_OptionsEntry_DoNotUse& other); + static const AddFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AddFulltext_OptionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.AddFulltext.OptionsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.AddFulltext.OptionsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; + +// ------------------------------------------------------------------- + +class AddFulltext final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddFulltext) */ { public: - inline AddFulltexts() : AddFulltexts(nullptr) {} - ~AddFulltexts() override; - explicit PROTOBUF_CONSTEXPR AddFulltexts(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline AddFulltext() : AddFulltext(nullptr) {} + ~AddFulltext() override; + explicit PROTOBUF_CONSTEXPR AddFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - AddFulltexts(const AddFulltexts& from); - AddFulltexts(AddFulltexts&& from) noexcept - : AddFulltexts() { + AddFulltext(const AddFulltext& from); + AddFulltext(AddFulltext&& from) noexcept + : AddFulltext() { *this = ::std::move(from); } - inline AddFulltexts& operator=(const AddFulltexts& from) { + inline AddFulltext& operator=(const AddFulltext& from) { CopyFrom(from); return *this; } - inline AddFulltexts& operator=(AddFulltexts&& from) noexcept { + inline AddFulltext& operator=(AddFulltext&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3631,20 +3655,20 @@ class AddFulltexts final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddFulltexts& default_instance() { + static const AddFulltext& default_instance() { return *internal_default_instance(); } - static inline const AddFulltexts* internal_default_instance() { - return reinterpret_cast( - &_AddFulltexts_default_instance_); + static inline const AddFulltext* internal_default_instance() { + return reinterpret_cast( + &_AddFulltext_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 18; - friend void swap(AddFulltexts& a, AddFulltexts& b) { + friend void swap(AddFulltext& a, AddFulltext& b) { a.Swap(&b); } - inline void Swap(AddFulltexts* other) { + inline void Swap(AddFulltext* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3657,7 +3681,7 @@ class AddFulltexts final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddFulltexts* other) { + void UnsafeArenaSwap(AddFulltext* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3665,14 +3689,14 @@ class AddFulltexts final : // implements Message ---------------------------------------------- - AddFulltexts* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AddFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AddFulltexts& from); + void CopyFrom(const AddFulltext& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AddFulltexts& from) { - AddFulltexts::MergeImpl(*this, from); + void MergeFrom( const AddFulltext& from) { + AddFulltext::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3690,16 +3714,18 @@ class AddFulltexts final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(AddFulltexts* other); + void InternalSwap(AddFulltext* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.AddFulltexts"; + return "greptime.v1.AddFulltext"; } protected: - explicit AddFulltexts(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit AddFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -3709,30 +3735,45 @@ class AddFulltexts final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { - kAddFulltextsFieldNumber = 1, + kOptionsFieldNumber = 2, + kColumnNameFieldNumber = 1, }; - // repeated .greptime.v1.AddFulltext add_fulltexts = 1; - int add_fulltexts_size() const; + // map options = 2; + int options_size() const; private: - int _internal_add_fulltexts_size() const; + int _internal_options_size() const; public: - void clear_add_fulltexts(); - ::greptime::v1::AddFulltext* mutable_add_fulltexts(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext >* - mutable_add_fulltexts(); + void clear_options(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_options(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_options(); + + // string column_name = 1; + void clear_column_name(); + const std::string& column_name() const; + template + void set_column_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_column_name(); + PROTOBUF_NODISCARD std::string* release_column_name(); + void set_allocated_column_name(std::string* column_name); private: - const ::greptime::v1::AddFulltext& _internal_add_fulltexts(int index) const; - ::greptime::v1::AddFulltext* _internal_add_add_fulltexts(); + const std::string& _internal_column_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); + std::string* _internal_mutable_column_name(); public: - const ::greptime::v1::AddFulltext& add_fulltexts(int index) const; - ::greptime::v1::AddFulltext* add_add_fulltexts(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext >& - add_fulltexts() const; - // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltexts) + // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltext) private: class _Internal; @@ -3740,7 +3781,12 @@ class AddFulltexts final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext > add_fulltexts_; + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + AddFulltext_OptionsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -3796,7 +3842,7 @@ class RenameTable final : &_RenameTable_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 19; friend void swap(RenameTable& a, RenameTable& b) { a.Swap(&b); @@ -3949,7 +3995,7 @@ class AddColumn final : &_AddColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 20; friend void swap(AddColumn& a, AddColumn& b) { a.Swap(&b); @@ -4126,7 +4172,7 @@ class ChangeColumnType final : &_ChangeColumnType_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 21; friend void swap(ChangeColumnType& a, ChangeColumnType& b) { a.Swap(&b); @@ -4262,213 +4308,6 @@ class ChangeColumnType final : }; // ------------------------------------------------------------------- -class AddFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - AddFulltext_OptionsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit AddFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const AddFulltext_OptionsEntry_DoNotUse& other); - static const AddFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AddFulltext_OptionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.AddFulltext.OptionsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.AddFulltext.OptionsEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; -}; - -// ------------------------------------------------------------------- - -class AddFulltext final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddFulltext) */ { - public: - inline AddFulltext() : AddFulltext(nullptr) {} - ~AddFulltext() override; - explicit PROTOBUF_CONSTEXPR AddFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - AddFulltext(const AddFulltext& from); - AddFulltext(AddFulltext&& from) noexcept - : AddFulltext() { - *this = ::std::move(from); - } - - inline AddFulltext& operator=(const AddFulltext& from) { - CopyFrom(from); - return *this; - } - inline AddFulltext& operator=(AddFulltext&& 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 AddFulltext& default_instance() { - return *internal_default_instance(); - } - static inline const AddFulltext* internal_default_instance() { - return reinterpret_cast( - &_AddFulltext_default_instance_); - } - static constexpr int kIndexInFileMessages = - 22; - - friend void swap(AddFulltext& a, AddFulltext& b) { - a.Swap(&b); - } - inline void Swap(AddFulltext* 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(AddFulltext* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - AddFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AddFulltext& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AddFulltext& from) { - AddFulltext::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(AddFulltext* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.AddFulltext"; - } - protected: - explicit AddFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - 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 { - kOptionsFieldNumber = 2, - kColumnNameFieldNumber = 1, - }; - // map options = 2; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_options() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_options(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - options() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_options(); - - // string column_name = 1; - void clear_column_name(); - const std::string& column_name() const; - template - void set_column_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_column_name(); - PROTOBUF_NODISCARD std::string* release_column_name(); - void set_allocated_column_name(std::string* column_name); - private: - const std::string& _internal_column_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); - std::string* _internal_mutable_column_name(); - public: - - // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltext) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - AddFulltext_OptionsEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; - 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: @@ -4517,7 +4356,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 22; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -4670,7 +4509,7 @@ class TableId final : &_TableId_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 23; friend void swap(TableId& a, TableId& b) { a.Swap(&b); @@ -4818,7 +4657,7 @@ class FlowId final : &_FlowId_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 24; friend void swap(FlowId& a, FlowId& b) { a.Swap(&b); @@ -4966,7 +4805,7 @@ class ColumnDef final : &_ColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 25; friend void swap(ColumnDef& a, ColumnDef& b) { a.Swap(&b); @@ -5224,7 +5063,7 @@ class AddColumnLocation final : &_AddColumnLocation_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 26; friend void swap(AddColumnLocation& a, AddColumnLocation& b) { a.Swap(&b); @@ -8505,77 +8344,77 @@ inline ::greptime::v1::ChangeColumnTypes* AlterExpr::mutable_change_column_types return _msg; } -// .greptime.v1.AddFulltexts add_fulltexts = 8; -inline bool AlterExpr::_internal_has_add_fulltexts() const { - return kind_case() == kAddFulltexts; +// .greptime.v1.AddFulltext add_fulltext = 8; +inline bool AlterExpr::_internal_has_add_fulltext() const { + return kind_case() == kAddFulltext; } -inline bool AlterExpr::has_add_fulltexts() const { - return _internal_has_add_fulltexts(); +inline bool AlterExpr::has_add_fulltext() const { + return _internal_has_add_fulltext(); } -inline void AlterExpr::set_has_add_fulltexts() { - _impl_._oneof_case_[0] = kAddFulltexts; +inline void AlterExpr::set_has_add_fulltext() { + _impl_._oneof_case_[0] = kAddFulltext; } -inline void AlterExpr::clear_add_fulltexts() { - if (_internal_has_add_fulltexts()) { +inline void AlterExpr::clear_add_fulltext() { + if (_internal_has_add_fulltext()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.add_fulltexts_; + delete _impl_.kind_.add_fulltext_; } clear_has_kind(); } } -inline ::greptime::v1::AddFulltexts* AlterExpr::release_add_fulltexts() { - // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.add_fulltexts) - if (_internal_has_add_fulltexts()) { +inline ::greptime::v1::AddFulltext* AlterExpr::release_add_fulltext() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.add_fulltext) + if (_internal_has_add_fulltext()) { clear_has_kind(); - ::greptime::v1::AddFulltexts* temp = _impl_.kind_.add_fulltexts_; + ::greptime::v1::AddFulltext* temp = _impl_.kind_.add_fulltext_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.add_fulltexts_ = nullptr; + _impl_.kind_.add_fulltext_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::AddFulltexts& AlterExpr::_internal_add_fulltexts() const { - return _internal_has_add_fulltexts() - ? *_impl_.kind_.add_fulltexts_ - : reinterpret_cast< ::greptime::v1::AddFulltexts&>(::greptime::v1::_AddFulltexts_default_instance_); +inline const ::greptime::v1::AddFulltext& AlterExpr::_internal_add_fulltext() const { + return _internal_has_add_fulltext() + ? *_impl_.kind_.add_fulltext_ + : reinterpret_cast< ::greptime::v1::AddFulltext&>(::greptime::v1::_AddFulltext_default_instance_); } -inline const ::greptime::v1::AddFulltexts& AlterExpr::add_fulltexts() const { - // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.add_fulltexts) - return _internal_add_fulltexts(); +inline const ::greptime::v1::AddFulltext& AlterExpr::add_fulltext() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.add_fulltext) + return _internal_add_fulltext(); } -inline ::greptime::v1::AddFulltexts* AlterExpr::unsafe_arena_release_add_fulltexts() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.add_fulltexts) - if (_internal_has_add_fulltexts()) { +inline ::greptime::v1::AddFulltext* AlterExpr::unsafe_arena_release_add_fulltext() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.add_fulltext) + if (_internal_has_add_fulltext()) { clear_has_kind(); - ::greptime::v1::AddFulltexts* temp = _impl_.kind_.add_fulltexts_; - _impl_.kind_.add_fulltexts_ = nullptr; + ::greptime::v1::AddFulltext* temp = _impl_.kind_.add_fulltext_; + _impl_.kind_.add_fulltext_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterExpr::unsafe_arena_set_allocated_add_fulltexts(::greptime::v1::AddFulltexts* add_fulltexts) { +inline void AlterExpr::unsafe_arena_set_allocated_add_fulltext(::greptime::v1::AddFulltext* add_fulltext) { clear_kind(); - if (add_fulltexts) { - set_has_add_fulltexts(); - _impl_.kind_.add_fulltexts_ = add_fulltexts; + if (add_fulltext) { + set_has_add_fulltext(); + _impl_.kind_.add_fulltext_ = add_fulltext; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.add_fulltexts) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.add_fulltext) } -inline ::greptime::v1::AddFulltexts* AlterExpr::_internal_mutable_add_fulltexts() { - if (!_internal_has_add_fulltexts()) { +inline ::greptime::v1::AddFulltext* AlterExpr::_internal_mutable_add_fulltext() { + if (!_internal_has_add_fulltext()) { clear_kind(); - set_has_add_fulltexts(); - _impl_.kind_.add_fulltexts_ = CreateMaybeMessage< ::greptime::v1::AddFulltexts >(GetArenaForAllocation()); + set_has_add_fulltext(); + _impl_.kind_.add_fulltext_ = CreateMaybeMessage< ::greptime::v1::AddFulltext >(GetArenaForAllocation()); } - return _impl_.kind_.add_fulltexts_; + return _impl_.kind_.add_fulltext_; } -inline ::greptime::v1::AddFulltexts* AlterExpr::mutable_add_fulltexts() { - ::greptime::v1::AddFulltexts* _msg = _internal_mutable_add_fulltexts(); - // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.add_fulltexts) +inline ::greptime::v1::AddFulltext* AlterExpr::mutable_add_fulltext() { + ::greptime::v1::AddFulltext* _msg = _internal_mutable_add_fulltext(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.add_fulltext) return _msg; } @@ -9509,46 +9348,87 @@ ChangeColumnTypes::change_column_types() const { // ------------------------------------------------------------------- -// AddFulltexts +// ------------------------------------------------------------------- + +// AddFulltext -// repeated .greptime.v1.AddFulltext add_fulltexts = 1; -inline int AddFulltexts::_internal_add_fulltexts_size() const { - return _impl_.add_fulltexts_.size(); +// string column_name = 1; +inline void AddFulltext::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); } -inline int AddFulltexts::add_fulltexts_size() const { - return _internal_add_fulltexts_size(); +inline const std::string& AddFulltext::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.AddFulltext.column_name) + return _internal_column_name(); } -inline void AddFulltexts::clear_add_fulltexts() { - _impl_.add_fulltexts_.Clear(); +template +inline PROTOBUF_ALWAYS_INLINE +void AddFulltext::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.AddFulltext.column_name) } -inline ::greptime::v1::AddFulltext* AddFulltexts::mutable_add_fulltexts(int index) { - // @@protoc_insertion_point(field_mutable:greptime.v1.AddFulltexts.add_fulltexts) - return _impl_.add_fulltexts_.Mutable(index); +inline std::string* AddFulltext::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AddFulltext.column_name) + return _s; } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext >* -AddFulltexts::mutable_add_fulltexts() { - // @@protoc_insertion_point(field_mutable_list:greptime.v1.AddFulltexts.add_fulltexts) - return &_impl_.add_fulltexts_; +inline const std::string& AddFulltext::_internal_column_name() const { + return _impl_.column_name_.Get(); } -inline const ::greptime::v1::AddFulltext& AddFulltexts::_internal_add_fulltexts(int index) const { - return _impl_.add_fulltexts_.Get(index); +inline void AddFulltext::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); } -inline const ::greptime::v1::AddFulltext& AddFulltexts::add_fulltexts(int index) const { - // @@protoc_insertion_point(field_get:greptime.v1.AddFulltexts.add_fulltexts) - return _internal_add_fulltexts(index); +inline std::string* AddFulltext::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); } -inline ::greptime::v1::AddFulltext* AddFulltexts::_internal_add_add_fulltexts() { - return _impl_.add_fulltexts_.Add(); +inline std::string* AddFulltext::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.AddFulltext.column_name) + return _impl_.column_name_.Release(); } -inline ::greptime::v1::AddFulltext* AddFulltexts::add_add_fulltexts() { - ::greptime::v1::AddFulltext* _add = _internal_add_add_fulltexts(); - // @@protoc_insertion_point(field_add:greptime.v1.AddFulltexts.add_fulltexts) - return _add; +inline void AddFulltext::set_allocated_column_name(std::string* column_name) { + if (column_name != nullptr) { + + } else { + + } + _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.column_name_.IsDefault()) { + _impl_.column_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AddFulltext.column_name) +} + +// map options = 2; +inline int AddFulltext::_internal_options_size() const { + return _impl_.options_.size(); +} +inline int AddFulltext::options_size() const { + return _internal_options_size(); +} +inline void AddFulltext::clear_options() { + _impl_.options_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AddFulltext::_internal_options() const { + return _impl_.options_.GetMap(); } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddFulltext >& -AddFulltexts::add_fulltexts() const { - // @@protoc_insertion_point(field_list:greptime.v1.AddFulltexts.add_fulltexts) - return _impl_.add_fulltexts_; +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +AddFulltext::options() const { + // @@protoc_insertion_point(field_map:greptime.v1.AddFulltext.options) + return _internal_options(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AddFulltext::_internal_mutable_options() { + return _impl_.options_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +AddFulltext::mutable_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.AddFulltext.options) + return _internal_mutable_options(); } // ------------------------------------------------------------------- @@ -9950,91 +9830,6 @@ inline void ChangeColumnType::set_allocated_target_type_extension(::greptime::v1 // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// AddFulltext - -// string column_name = 1; -inline void AddFulltext::clear_column_name() { - _impl_.column_name_.ClearToEmpty(); -} -inline const std::string& AddFulltext::column_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.AddFulltext.column_name) - return _internal_column_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void AddFulltext::set_column_name(ArgT0&& arg0, ArgT... args) { - - _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.AddFulltext.column_name) -} -inline std::string* AddFulltext::mutable_column_name() { - std::string* _s = _internal_mutable_column_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.AddFulltext.column_name) - return _s; -} -inline const std::string& AddFulltext::_internal_column_name() const { - return _impl_.column_name_.Get(); -} -inline void AddFulltext::_internal_set_column_name(const std::string& value) { - - _impl_.column_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* AddFulltext::_internal_mutable_column_name() { - - return _impl_.column_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* AddFulltext::release_column_name() { - // @@protoc_insertion_point(field_release:greptime.v1.AddFulltext.column_name) - return _impl_.column_name_.Release(); -} -inline void AddFulltext::set_allocated_column_name(std::string* column_name) { - if (column_name != nullptr) { - - } else { - - } - _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.column_name_.IsDefault()) { - _impl_.column_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AddFulltext.column_name) -} - -// map options = 2; -inline int AddFulltext::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int AddFulltext::options_size() const { - return _internal_options_size(); -} -inline void AddFulltext::clear_options() { - _impl_.options_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -AddFulltext::_internal_options() const { - return _impl_.options_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -AddFulltext::options() const { - // @@protoc_insertion_point(field_map:greptime.v1.AddFulltext.options) - return _internal_options(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -AddFulltext::_internal_mutable_options() { - return _impl_.options_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -AddFulltext::mutable_options() { - // @@protoc_insertion_point(field_mutable_map:greptime.v1.AddFulltext.options) - return _internal_mutable_options(); -} - -// ------------------------------------------------------------------- - // DropColumn // string name = 1; @@ -10648,8 +10443,6 @@ 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 af96d172..59152fe2 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -363,6 +363,31 @@ struct FlushRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlushRequestDefaultTypeInternal _FlushRequest_default_instance_; +PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {} + union { + ChangeFulltext_OptionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR ChangeFulltext::ChangeFulltext( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ChangeFulltextDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeFulltextDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeFulltextDefaultTypeInternal() {} + union { + ChangeFulltext _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_; PROTOBUF_CONSTEXPR Regular::Regular( ::_pbi::ConstantInitialized) {} struct RegularDefaultTypeInternal { @@ -432,7 +457,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace region } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[32]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; @@ -622,6 +647,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_ @@ -660,6 +686,24 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::FlushRequest, _impl_.region_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::Regular, _internal_metadata_), ~0u, // no _extensions_ @@ -720,16 +764,18 @@ 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, 232, -1, sizeof(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse)}, + { 234, -1, -1, sizeof(::greptime::v1::region::ChangeFulltext)}, + { 242, -1, -1, sizeof(::greptime::v1::region::Regular)}, + { 248, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, + { 255, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 265, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, + { 272, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -758,6 +804,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::region::_AddColumn_default_instance_._instance, &::greptime::v1::region::_DropColumn_default_instance_._instance, &::greptime::v1::region::_FlushRequest_default_instance_._instance, + &::greptime::v1::region::_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::region::_ChangeFulltext_default_instance_._instance, &::greptime::v1::region::_Regular_default_instance_._instance, &::greptime::v1::region::_StrictWindow_default_instance_._instance, &::greptime::v1::region::_CompactRequest_default_instance_._instance, @@ -826,34 +874,40 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "OptionsEntry\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 .gre" - "ptime.v1.region.AlterRequest\"\360\001\n\014AlterRe" + "ptime.v1.region.AlterRequest\"\256\002\n\014AlterRe" "quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030" "\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022" "7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi" "on.DropColumnsH\000\022=\n\023change_column_types\030" "\005 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022" - "\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddCo" - "lumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1" - ".region.AddColumn\"C\n\013DropColumns\0224\n\014drop" - "_columns\030\001 \003(\0132\036.greptime.v1.region.Drop" - "Column\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132" - "#.greptime.v1.region.RegionColumnDef\0220\n\010" - "location\030\003 \001(\0132\036.greptime.v1.AddColumnLo" - "cation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Fl" - "ushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular" - "\"&\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.Reg" - "ularH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime" - ".v1.region.StrictWindowH\000B\t\n\007options\"$\n\017" - "TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Re" - "gionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grep" - "time.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006" - "Region\022O\n\006Handle\022!.greptime.v1.region.Re" - "gionRequest\032\".greptime.v1.region.RegionR" - "esponseB]\n\025io.greptime.v1.regionB\006Server" - "Z_impl_.kind_.change_column_types_; } +const ::greptime::v1::region::ChangeFulltext& +AlterRequest::_Internal::change_fulltex(const AlterRequest* msg) { + return *msg->_impl_.kind_.change_fulltex_; +} void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -5392,6 +5451,21 @@ void AlterRequest::clear_change_column_types() { clear_has_kind(); } } +void AlterRequest::set_allocated_change_fulltex(::greptime::v1::region::ChangeFulltext* change_fulltex) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (change_fulltex) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_fulltex); + if (message_arena != submessage_arena) { + change_fulltex = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_fulltex, submessage_arena); + } + set_has_change_fulltex(); + _impl_.kind_.change_fulltex_ = change_fulltex; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_fulltex) +} AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5429,6 +5503,11 @@ AlterRequest::AlterRequest(const AlterRequest& from) from._internal_change_column_types()); break; } + case kChangeFulltex: { + _this->_internal_mutable_change_fulltex()->::greptime::v1::region::ChangeFulltext::MergeFrom( + from._internal_change_fulltex()); + break; + } case KIND_NOT_SET: { break; } @@ -5491,6 +5570,12 @@ void AlterRequest::clear_kind() { } break; } + case kChangeFulltex: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_fulltex_; + } + break; + } case KIND_NOT_SET: { break; } @@ -5558,6 +5643,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.region.ChangeFulltext change_fulltex = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_change_fulltex(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5620,6 +5713,13 @@ uint8_t* AlterRequest::_InternalSerialize( _Internal::change_column_types(this).GetCachedSize(), target, stream); } + // .greptime.v1.region.ChangeFulltext change_fulltex = 6; + if (_internal_has_change_fulltex()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::change_fulltex(this), + _Internal::change_fulltex(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 +5768,13 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.change_column_types_); break; } + // .greptime.v1.region.ChangeFulltext change_fulltex = 6; + case kChangeFulltex: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.change_fulltex_); + break; + } case KIND_NOT_SET: { break; } @@ -5712,6 +5819,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P from._internal_change_column_types()); break; } + case kChangeFulltex: { + _this->_internal_mutable_change_fulltex()->::greptime::v1::region::ChangeFulltext::MergeFrom( + from._internal_change_fulltex()); + break; + } case KIND_NOT_SET: { break; } @@ -6747,6 +6859,291 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FlushRequest::GetMetadata() const { // =================================================================== +ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse() {} +ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ChangeFulltext_OptionsEntry_DoNotUse::MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext_OptionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[25]); +} + +// =================================================================== + +class ChangeFulltext::_Internal { + public: +}; + +ChangeFulltext::ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &ChangeFulltext::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:greptime.v1.region.ChangeFulltext) +} +ChangeFulltext::ChangeFulltext(const ChangeFulltext& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ChangeFulltext* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.options_)*/{} + , decltype(_impl_.column_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.options_.MergeFrom(from._impl_.options_); + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.ChangeFulltext) +} + +inline void ChangeFulltext::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.column_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ChangeFulltext::~ChangeFulltext() { + // @@protoc_insertion_point(destructor:greptime.v1.region.ChangeFulltext) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void ChangeFulltext::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.options_.Destruct(); + _impl_.options_.~MapField(); + _impl_.column_name_.Destroy(); +} + +void ChangeFulltext::ArenaDtor(void* object) { + ChangeFulltext* _this = reinterpret_cast< ChangeFulltext* >(object); + _this->_impl_.options_.Destruct(); +} +void ChangeFulltext::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ChangeFulltext::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.region.ChangeFulltext) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.options_.Clear(); + _impl_.column_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string column_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.ChangeFulltext.column_name")); + } else + goto handle_unusual; + continue; + // map options = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.options_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* ChangeFulltext::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.ChangeFulltext) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.ChangeFulltext.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // map options = 2; + if (!this->_internal_options().empty()) { + using MapType = ::_pb::Map; + using WireHelper = ChangeFulltext_OptionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_options(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.ChangeFulltext.OptionsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.region.ChangeFulltext.OptionsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.region.ChangeFulltext) + return target; +} + +size_t ChangeFulltext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.ChangeFulltext) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map options = 2; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_options().begin(); + it != this->_internal_options().end(); ++it) { + total_size += ChangeFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeFulltext::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ChangeFulltext::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeFulltext::GetClassData() const { return &_class_data_; } + + +void ChangeFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.region.ChangeFulltext) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.options_.MergeFrom(from._impl_.options_); + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChangeFulltext::CopyFrom(const ChangeFulltext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.ChangeFulltext) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangeFulltext::IsInitialized() const { + return true; +} + +void ChangeFulltext::InternalSwap(ChangeFulltext* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.options_.InternalSwap(&other->_impl_.options_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[26]); +} + +// =================================================================== + class Regular::_Internal { public: }; @@ -6782,7 +7179,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Regular::GetClassData() const ::PROTOBUF_NAMESPACE_ID::Metadata Regular::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[25]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[27]); } // =================================================================== @@ -6960,7 +7357,7 @@ void StrictWindow::InternalSwap(StrictWindow* other) { ::PROTOBUF_NAMESPACE_ID::Metadata StrictWindow::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[26]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[28]); } // =================================================================== @@ -7292,7 +7689,7 @@ void CompactRequest::InternalSwap(CompactRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CompactRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[27]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[29]); } // =================================================================== @@ -7470,7 +7867,7 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[28]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]); } // =================================================================== @@ -7700,7 +8097,7 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[29]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[31]); } // @@protoc_insertion_point(namespace_scope) @@ -7808,6 +8205,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::region::FlushRequest* Arena::CreateMaybeMessage< ::greptime::v1::region::FlushRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::FlushRequest >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::region::ChangeFulltext* +Arena::CreateMaybeMessage< ::greptime::v1::region::ChangeFulltext >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::ChangeFulltext >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::region::Regular* Arena::CreateMaybeMessage< ::greptime::v1::region::Regular >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::Regular >(arena); diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index c4a953c6..f3eb0aaf 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -66,6 +66,12 @@ extern AlterRequestDefaultTypeInternal _AlterRequest_default_instance_; class AlterRequests; struct AlterRequestsDefaultTypeInternal; extern AlterRequestsDefaultTypeInternal _AlterRequests_default_instance_; +class ChangeFulltext; +struct ChangeFulltextDefaultTypeInternal; +extern ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_; +class ChangeFulltext_OptionsEntry_DoNotUse; +struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal; +extern ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_; class CloseRequest; struct CloseRequestDefaultTypeInternal; extern CloseRequestDefaultTypeInternal _CloseRequest_default_instance_; @@ -152,6 +158,8 @@ template<> ::greptime::v1::region::AddColumn* Arena::CreateMaybeMessage<::grepti template<> ::greptime::v1::region::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::region::AddColumns>(Arena*); template<> ::greptime::v1::region::AlterRequest* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequest>(Arena*); template<> ::greptime::v1::region::AlterRequests* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequests>(Arena*); +template<> ::greptime::v1::region::ChangeFulltext* Arena::CreateMaybeMessage<::greptime::v1::region::ChangeFulltext>(Arena*); +template<> ::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::region::CloseRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CloseRequest>(Arena*); template<> ::greptime::v1::region::CompactRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CompactRequest>(Arena*); template<> ::greptime::v1::region::CreateRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CreateRequest>(Arena*); @@ -3251,6 +3259,7 @@ class AlterRequest final : kAddColumns = 2, kDropColumns = 3, kChangeColumnTypes = 5, + kChangeFulltex = 6, KIND_NOT_SET = 0, }; @@ -3337,6 +3346,7 @@ class AlterRequest final : kAddColumnsFieldNumber = 2, kDropColumnsFieldNumber = 3, kChangeColumnTypesFieldNumber = 5, + kChangeFulltexFieldNumber = 6, }; // uint64 region_id = 1; void clear_region_id(); @@ -3410,6 +3420,24 @@ class AlterRequest final : ::greptime::v1::ChangeColumnTypes* change_column_types); ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); + // .greptime.v1.region.ChangeFulltext change_fulltex = 6; + bool has_change_fulltex() const; + private: + bool _internal_has_change_fulltex() const; + public: + void clear_change_fulltex(); + const ::greptime::v1::region::ChangeFulltext& change_fulltex() const; + PROTOBUF_NODISCARD ::greptime::v1::region::ChangeFulltext* release_change_fulltex(); + ::greptime::v1::region::ChangeFulltext* mutable_change_fulltex(); + void set_allocated_change_fulltex(::greptime::v1::region::ChangeFulltext* change_fulltex); + private: + const ::greptime::v1::region::ChangeFulltext& _internal_change_fulltex() const; + ::greptime::v1::region::ChangeFulltext* _internal_mutable_change_fulltex(); + public: + void unsafe_arena_set_allocated_change_fulltex( + ::greptime::v1::region::ChangeFulltext* change_fulltex); + ::greptime::v1::region::ChangeFulltext* unsafe_arena_release_change_fulltex(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) @@ -3418,6 +3446,7 @@ class AlterRequest final : void set_has_add_columns(); void set_has_drop_columns(); void set_has_change_column_types(); + void set_has_change_fulltex(); inline bool has_kind() const; inline void clear_has_kind(); @@ -3434,6 +3463,7 @@ class AlterRequest final : ::greptime::v1::region::AddColumns* add_columns_; ::greptime::v1::region::DropColumns* drop_columns_; ::greptime::v1::ChangeColumnTypes* change_column_types_; + ::greptime::v1::region::ChangeFulltext* change_fulltex_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -4236,6 +4266,213 @@ class FlushRequest final : }; // ------------------------------------------------------------------- +class ChangeFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ChangeFulltext_OptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other); + static const ChangeFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.ChangeFulltext.OptionsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.ChangeFulltext.OptionsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; + +// ------------------------------------------------------------------- + +class ChangeFulltext final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.ChangeFulltext) */ { + public: + inline ChangeFulltext() : ChangeFulltext(nullptr) {} + ~ChangeFulltext() override; + explicit PROTOBUF_CONSTEXPR ChangeFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ChangeFulltext(const ChangeFulltext& from); + ChangeFulltext(ChangeFulltext&& from) noexcept + : ChangeFulltext() { + *this = ::std::move(from); + } + + inline ChangeFulltext& operator=(const ChangeFulltext& from) { + CopyFrom(from); + return *this; + } + inline ChangeFulltext& operator=(ChangeFulltext&& 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 ChangeFulltext& default_instance() { + return *internal_default_instance(); + } + static inline const ChangeFulltext* internal_default_instance() { + return reinterpret_cast( + &_ChangeFulltext_default_instance_); + } + static constexpr int kIndexInFileMessages = + 26; + + friend void swap(ChangeFulltext& a, ChangeFulltext& b) { + a.Swap(&b); + } + inline void Swap(ChangeFulltext* 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(ChangeFulltext* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChangeFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChangeFulltext& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ChangeFulltext& from) { + ChangeFulltext::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(ChangeFulltext* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.region.ChangeFulltext"; + } + protected: + explicit ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + 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 { + kOptionsFieldNumber = 2, + kColumnNameFieldNumber = 1, + }; + // map options = 2; + int options_size() const; + private: + int _internal_options_size() const; + public: + void clear_options(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_options(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_options(); + + // string column_name = 1; + void clear_column_name(); + const std::string& column_name() const; + template + void set_column_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_column_name(); + PROTOBUF_NODISCARD std::string* release_column_name(); + void set_allocated_column_name(std::string* column_name); + private: + const std::string& _internal_column_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); + std::string* _internal_mutable_column_name(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.region.ChangeFulltext) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ChangeFulltext_OptionsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; +}; +// ------------------------------------------------------------------- + class Regular final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:greptime.v1.region.Regular) */ { public: @@ -4283,7 +4520,7 @@ class Regular final : &_Regular_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 27; friend void swap(Regular& a, Regular& b) { a.Swap(&b); @@ -4402,7 +4639,7 @@ class StrictWindow final : &_StrictWindow_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 28; friend void swap(StrictWindow& a, StrictWindow& b) { a.Swap(&b); @@ -4556,7 +4793,7 @@ class CompactRequest final : &_CompactRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 29; friend void swap(CompactRequest& a, CompactRequest& b) { a.Swap(&b); @@ -4757,7 +4994,7 @@ class TruncateRequest final : &_TruncateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 30; friend void swap(TruncateRequest& a, TruncateRequest& b) { a.Swap(&b); @@ -4905,7 +5142,7 @@ class RegionColumnDef final : &_RegionColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 31; friend void swap(RegionColumnDef& a, RegionColumnDef& b) { a.Swap(&b); @@ -7690,6 +7927,80 @@ inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_ty return _msg; } +// .greptime.v1.region.ChangeFulltext change_fulltex = 6; +inline bool AlterRequest::_internal_has_change_fulltex() const { + return kind_case() == kChangeFulltex; +} +inline bool AlterRequest::has_change_fulltex() const { + return _internal_has_change_fulltex(); +} +inline void AlterRequest::set_has_change_fulltex() { + _impl_._oneof_case_[0] = kChangeFulltex; +} +inline void AlterRequest::clear_change_fulltex() { + if (_internal_has_change_fulltex()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_fulltex_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::region::ChangeFulltext* AlterRequest::release_change_fulltex() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_fulltex) + if (_internal_has_change_fulltex()) { + clear_has_kind(); + ::greptime::v1::region::ChangeFulltext* temp = _impl_.kind_.change_fulltex_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.change_fulltex_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::ChangeFulltext& AlterRequest::_internal_change_fulltex() const { + return _internal_has_change_fulltex() + ? *_impl_.kind_.change_fulltex_ + : reinterpret_cast< ::greptime::v1::region::ChangeFulltext&>(::greptime::v1::region::_ChangeFulltext_default_instance_); +} +inline const ::greptime::v1::region::ChangeFulltext& AlterRequest::change_fulltex() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_fulltex) + return _internal_change_fulltex(); +} +inline ::greptime::v1::region::ChangeFulltext* AlterRequest::unsafe_arena_release_change_fulltex() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_fulltex) + if (_internal_has_change_fulltex()) { + clear_has_kind(); + ::greptime::v1::region::ChangeFulltext* temp = _impl_.kind_.change_fulltex_; + _impl_.kind_.change_fulltex_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterRequest::unsafe_arena_set_allocated_change_fulltex(::greptime::v1::region::ChangeFulltext* change_fulltex) { + clear_kind(); + if (change_fulltex) { + set_has_change_fulltex(); + _impl_.kind_.change_fulltex_ = change_fulltex; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_fulltex) +} +inline ::greptime::v1::region::ChangeFulltext* AlterRequest::_internal_mutable_change_fulltex() { + if (!_internal_has_change_fulltex()) { + clear_kind(); + set_has_change_fulltex(); + _impl_.kind_.change_fulltex_ = CreateMaybeMessage< ::greptime::v1::region::ChangeFulltext >(GetArenaForAllocation()); + } + return _impl_.kind_.change_fulltex_; +} +inline ::greptime::v1::region::ChangeFulltext* AlterRequest::mutable_change_fulltex() { + ::greptime::v1::region::ChangeFulltext* _msg = _internal_mutable_change_fulltex(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_fulltex) + return _msg; +} + // uint64 schema_version = 4; inline void AlterRequest::clear_schema_version() { _impl_.schema_version_ = uint64_t{0u}; @@ -8066,6 +8377,91 @@ inline void FlushRequest::set_region_id(uint64_t value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ChangeFulltext + +// string column_name = 1; +inline void ChangeFulltext::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); +} +inline const std::string& ChangeFulltext::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.ChangeFulltext.column_name) + return _internal_column_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ChangeFulltext::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.region.ChangeFulltext.column_name) +} +inline std::string* ChangeFulltext::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.ChangeFulltext.column_name) + return _s; +} +inline const std::string& ChangeFulltext::_internal_column_name() const { + return _impl_.column_name_.Get(); +} +inline void ChangeFulltext::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChangeFulltext::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ChangeFulltext::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.region.ChangeFulltext.column_name) + return _impl_.column_name_.Release(); +} +inline void ChangeFulltext::set_allocated_column_name(std::string* column_name) { + if (column_name != nullptr) { + + } else { + + } + _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.column_name_.IsDefault()) { + _impl_.column_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ChangeFulltext.column_name) +} + +// map options = 2; +inline int ChangeFulltext::_internal_options_size() const { + return _impl_.options_.size(); +} +inline int ChangeFulltext::options_size() const { + return _internal_options_size(); +} +inline void ChangeFulltext::clear_options() { + _impl_.options_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ChangeFulltext::_internal_options() const { + return _impl_.options_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ChangeFulltext::options() const { + // @@protoc_insertion_point(field_map:greptime.v1.region.ChangeFulltext.options) + return _internal_options(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ChangeFulltext::_internal_mutable_options() { + return _impl_.options_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ChangeFulltext::mutable_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.region.ChangeFulltext.options) + return _internal_mutable_options(); +} + +// ------------------------------------------------------------------- + // Regular // ------------------------------------------------------------------- @@ -8467,6 +8863,10 @@ inline void RegionColumnDef::set_column_id(uint32_t value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index c6e9549b..5a547160 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{23, 0} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22, 0} } // "Data Definition Language" requests, that create, modify or delete the @@ -797,7 +797,7 @@ type AlterExpr struct { // *AlterExpr_DropColumns // *AlterExpr_RenameTable // *AlterExpr_ChangeColumnTypes - // *AlterExpr_AddFulltexts + // *AlterExpr_AddFulltext Kind isAlterExpr_Kind `protobuf_oneof:"kind"` } @@ -889,9 +889,9 @@ func (x *AlterExpr) GetChangeColumnTypes() *ChangeColumnTypes { return nil } -func (x *AlterExpr) GetAddFulltexts() *AddFulltexts { - if x, ok := x.GetKind().(*AlterExpr_AddFulltexts); ok { - return x.AddFulltexts +func (x *AlterExpr) GetAddFulltext() *AddFulltext { + if x, ok := x.GetKind().(*AlterExpr_AddFulltext); ok { + return x.AddFulltext } return nil } @@ -916,8 +916,8 @@ type AlterExpr_ChangeColumnTypes struct { ChangeColumnTypes *ChangeColumnTypes `protobuf:"bytes,7,opt,name=change_column_types,json=changeColumnTypes,proto3,oneof"` } -type AlterExpr_AddFulltexts struct { - AddFulltexts *AddFulltexts `protobuf:"bytes,8,opt,name=add_fulltexts,json=addFulltexts,proto3,oneof"` +type AlterExpr_AddFulltext struct { + AddFulltext *AddFulltext `protobuf:"bytes,8,opt,name=add_fulltext,json=addFulltext,proto3,oneof"` } func (*AlterExpr_AddColumns) isAlterExpr_Kind() {} @@ -928,7 +928,7 @@ func (*AlterExpr_RenameTable) isAlterExpr_Kind() {} func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {} -func (*AlterExpr_AddFulltexts) isAlterExpr_Kind() {} +func (*AlterExpr_AddFulltext) isAlterExpr_Kind() {} type DropTableExpr struct { state protoimpl.MessageState @@ -1355,16 +1355,17 @@ func (x *ChangeColumnTypes) GetChangeColumnTypes() []*ChangeColumnType { return nil } -type AddFulltexts struct { +type AddFulltext struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - AddFulltexts []*AddFulltext `protobuf:"bytes,1,rep,name=add_fulltexts,json=addFulltexts,proto3" json:"add_fulltexts,omitempty"` + ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` + Options map[string]string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (x *AddFulltexts) Reset() { - *x = AddFulltexts{} +func (x *AddFulltext) Reset() { + *x = AddFulltext{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1372,13 +1373,13 @@ func (x *AddFulltexts) Reset() { } } -func (x *AddFulltexts) String() string { +func (x *AddFulltext) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddFulltexts) ProtoMessage() {} +func (*AddFulltext) ProtoMessage() {} -func (x *AddFulltexts) ProtoReflect() protoreflect.Message { +func (x *AddFulltext) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_ddl_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1390,14 +1391,21 @@ func (x *AddFulltexts) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddFulltexts.ProtoReflect.Descriptor instead. -func (*AddFulltexts) Descriptor() ([]byte, []int) { +// Deprecated: Use AddFulltext.ProtoReflect.Descriptor instead. +func (*AddFulltext) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} } -func (x *AddFulltexts) GetAddFulltexts() []*AddFulltext { +func (x *AddFulltext) GetColumnName() string { + if x != nil { + return x.ColumnName + } + return "" +} + +func (x *AddFulltext) GetOptions() map[string]string { if x != nil { - return x.AddFulltexts + return x.Options } return nil } @@ -1567,61 +1575,6 @@ func (x *ChangeColumnType) GetTargetTypeExtension() *ColumnDataTypeExtension { return nil } -type AddFulltext struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` - Options map[string]string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *AddFulltext) Reset() { - *x = AddFulltext{} - if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AddFulltext) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AddFulltext) ProtoMessage() {} - -func (x *AddFulltext) 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 AddFulltext.ProtoReflect.Descriptor instead. -func (*AddFulltext) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} -} - -func (x *AddFulltext) GetColumnName() string { - if x != nil { - return x.ColumnName - } - return "" -} - -func (x *AddFulltext) GetOptions() map[string]string { - if x != nil { - return x.Options - } - return nil -} - type DropColumn struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1633,7 +1586,7 @@ type DropColumn struct { func (x *DropColumn) Reset() { *x = DropColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1646,7 +1599,7 @@ func (x *DropColumn) String() string { func (*DropColumn) ProtoMessage() {} func (x *DropColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1659,7 +1612,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{19} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} } func (x *DropColumn) GetName() string { @@ -1680,7 +1633,7 @@ type TableId struct { func (x *TableId) Reset() { *x = TableId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[20] + mi := &file_greptime_v1_ddl_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1693,7 +1646,7 @@ func (x *TableId) String() string { func (*TableId) ProtoMessage() {} func (x *TableId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[20] + mi := &file_greptime_v1_ddl_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1706,7 +1659,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{20} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19} } func (x *TableId) GetId() uint32 { @@ -1727,7 +1680,7 @@ type FlowId struct { func (x *FlowId) Reset() { *x = FlowId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[21] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1740,7 +1693,7 @@ func (x *FlowId) String() string { func (*FlowId) ProtoMessage() {} func (x *FlowId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[21] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1753,7 +1706,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{21} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20} } func (x *FlowId) GetId() uint32 { @@ -1783,7 +1736,7 @@ type ColumnDef struct { func (x *ColumnDef) Reset() { *x = ColumnDef{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[22] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1796,7 +1749,7 @@ func (x *ColumnDef) String() string { func (*ColumnDef) ProtoMessage() {} func (x *ColumnDef) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[22] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1809,7 +1762,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{22} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21} } func (x *ColumnDef) GetName() string { @@ -1880,7 +1833,7 @@ type AddColumnLocation struct { func (x *AddColumnLocation) Reset() { *x = AddColumnLocation{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[23] + mi := &file_greptime_v1_ddl_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1893,7 +1846,7 @@ func (x *AddColumnLocation) String() string { func (*AddColumnLocation) ProtoMessage() {} func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[23] + mi := &file_greptime_v1_ddl_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1906,7 +1859,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{23} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22} } func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType { @@ -2081,7 +2034,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, 0xc4, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x22, 0xc1, 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, @@ -2104,163 +2057,158 @@ 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, 0x12, 0x40, 0x0a, - 0x0d, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x73, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x73, 0x48, - 0x00, 0x52, 0x0c, 0x61, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x4d, 0x0a, 0x0c, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, - 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, - 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, - 0x78, 0x74, 0x52, 0x0c, 0x61, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, + 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x3d, 0x0a, + 0x0c, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, + 0x0b, 0x61, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 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, + 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, 0xab, + 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, + 0x3f, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, + 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 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, 0x13, - 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, - 0x69, 0x6f, 0x6e, 0x22, 0xab, 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, - 0x65, 0x78, 0x74, 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, 0x3f, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 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, + 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 ( @@ -2276,7 +2224,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, 28) +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 @@ -2293,26 +2241,25 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*AddColumns)(nil), // 12: greptime.v1.AddColumns (*DropColumns)(nil), // 13: greptime.v1.DropColumns (*ChangeColumnTypes)(nil), // 14: greptime.v1.ChangeColumnTypes - (*AddFulltexts)(nil), // 15: greptime.v1.AddFulltexts + (*AddFulltext)(nil), // 15: greptime.v1.AddFulltext (*RenameTable)(nil), // 16: greptime.v1.RenameTable (*AddColumn)(nil), // 17: greptime.v1.AddColumn (*ChangeColumnType)(nil), // 18: greptime.v1.ChangeColumnType - (*AddFulltext)(nil), // 19: greptime.v1.AddFulltext - (*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 - nil, // 28: greptime.v1.AddFulltext.OptionsEntry - (*TableName)(nil), // 29: greptime.v1.TableName - (*ExpireAfter)(nil), // 30: greptime.v1.ExpireAfter - (ColumnDataType)(0), // 31: greptime.v1.ColumnDataType - (*ColumnDataTypeExtension)(nil), // 32: greptime.v1.ColumnDataTypeExtension - (SemanticType)(0), // 33: greptime.v1.SemanticType - (*ColumnOptions)(nil), // 34: greptime.v1.ColumnOptions + (*DropColumn)(nil), // 19: greptime.v1.DropColumn + (*TableId)(nil), // 20: greptime.v1.TableId + (*FlowId)(nil), // 21: greptime.v1.FlowId + (*ColumnDef)(nil), // 22: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 23: greptime.v1.AddColumnLocation + nil, // 24: greptime.v1.CreateFlowExpr.FlowOptionsEntry + nil, // 25: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 26: greptime.v1.CreateDatabaseExpr.OptionsEntry + nil, // 27: greptime.v1.AddFulltext.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 @@ -2324,43 +2271,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 - 29, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName - 29, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName - 30, // 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 - 29, // 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 + 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 + 24, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry + 21, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId + 28, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName + 20, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId + 22, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 25, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 20, // 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 16, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable 14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes - 15, // 23: greptime.v1.AlterExpr.add_fulltexts:type_name -> greptime.v1.AddFulltexts - 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 + 15, // 23: greptime.v1.AlterExpr.add_fulltext:type_name -> greptime.v1.AddFulltext + 20, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 26, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 20, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId 17, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 20, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 19, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn 18, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType - 19, // 30: greptime.v1.AddFulltexts.add_fulltexts:type_name -> greptime.v1.AddFulltext - 23, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 24, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 31, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 32, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 28, // 35: greptime.v1.AddFulltext.options:type_name -> greptime.v1.AddFulltext.OptionsEntry - 31, // 36: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 33, // 37: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 32, // 38: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 34, // 39: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions - 0, // 40: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 41, // [41:41] is the sub-list for method output_type - 41, // [41:41] is the sub-list for method input_type - 41, // [41:41] is the sub-list for extension type_name - 41, // [41:41] is the sub-list for extension extendee - 0, // [0:41] is the sub-list for field type_name + 27, // 30: greptime.v1.AddFulltext.options:type_name -> greptime.v1.AddFulltext.OptionsEntry + 22, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 23, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 30, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 31, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 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() } @@ -2539,7 +2485,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddFulltexts); i { + switch v := v.(*AddFulltext); i { case 0: return &v.state case 1: @@ -2587,18 +2533,6 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddFulltext); 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[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DropColumn); i { case 0: return &v.state @@ -2610,7 +2544,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TableId); i { case 0: return &v.state @@ -2622,7 +2556,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*FlowId); i { case 0: return &v.state @@ -2634,7 +2568,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ColumnDef); i { case 0: return &v.state @@ -2646,7 +2580,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumnLocation); i { case 0: return &v.state @@ -2675,7 +2609,7 @@ func file_greptime_v1_ddl_proto_init() { (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), (*AlterExpr_ChangeColumnTypes)(nil), - (*AlterExpr_AddFulltexts)(nil), + (*AlterExpr_AddFulltext)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -2683,7 +2617,7 @@ func file_greptime_v1_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, NumEnums: 1, - NumMessages: 28, + 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 1cab3c56..c01f2ae7 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -11738,19 +11738,19 @@ public interface AlterExprOrBuilder extends io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; - * @return Whether the addFulltexts field is set. + * .greptime.v1.AddFulltext add_fulltext = 8; + * @return Whether the addFulltext field is set. */ - boolean hasAddFulltexts(); + boolean hasAddFulltext(); /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; - * @return The addFulltexts. + * .greptime.v1.AddFulltext add_fulltext = 8; + * @return The addFulltext. */ - io.greptime.v1.Ddl.AddFulltexts getAddFulltexts(); + io.greptime.v1.Ddl.AddFulltext getAddFulltext(); /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ - io.greptime.v1.Ddl.AddFulltextsOrBuilder getAddFulltextsOrBuilder(); + io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextOrBuilder(); public io.greptime.v1.Ddl.AlterExpr.KindCase getKindCase(); } @@ -11877,14 +11877,14 @@ private AlterExpr( break; } case 66: { - io.greptime.v1.Ddl.AddFulltexts.Builder subBuilder = null; + io.greptime.v1.Ddl.AddFulltext.Builder subBuilder = null; if (kindCase_ == 8) { - subBuilder = ((io.greptime.v1.Ddl.AddFulltexts) kind_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.AddFulltext) kind_).toBuilder(); } kind_ = - input.readMessage(io.greptime.v1.Ddl.AddFulltexts.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.AddFulltext.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.AddFulltexts) kind_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.AddFulltext) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 8; @@ -11933,7 +11933,7 @@ public enum KindCase DROP_COLUMNS(5), RENAME_TABLE(6), CHANGE_COLUMN_TYPES(7), - ADD_FULLTEXTS(8), + ADD_FULLTEXT(8), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -11955,7 +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 ADD_FULLTEXTS; + case 8: return ADD_FULLTEXT; case 0: return KIND_NOT_SET; default: return null; } @@ -12209,35 +12209,35 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); } - public static final int ADD_FULLTEXTS_FIELD_NUMBER = 8; + public static final int ADD_FULLTEXT_FIELD_NUMBER = 8; /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; - * @return Whether the addFulltexts field is set. + * .greptime.v1.AddFulltext add_fulltext = 8; + * @return Whether the addFulltext field is set. */ @java.lang.Override - public boolean hasAddFulltexts() { + public boolean hasAddFulltext() { return kindCase_ == 8; } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; - * @return The addFulltexts. + * .greptime.v1.AddFulltext add_fulltext = 8; + * @return The addFulltext. */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltexts getAddFulltexts() { + public io.greptime.v1.Ddl.AddFulltext getAddFulltext() { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.AddFulltexts) kind_; + return (io.greptime.v1.Ddl.AddFulltext) kind_; } - return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltextsOrBuilder getAddFulltextsOrBuilder() { + public io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextOrBuilder() { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.AddFulltexts) kind_; + return (io.greptime.v1.Ddl.AddFulltext) kind_; } - return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -12276,7 +12276,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(7, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); } if (kindCase_ == 8) { - output.writeMessage(8, (io.greptime.v1.Ddl.AddFulltexts) kind_); + output.writeMessage(8, (io.greptime.v1.Ddl.AddFulltext) kind_); } unknownFields.writeTo(output); } @@ -12314,7 +12314,7 @@ public int getSerializedSize() { } if (kindCase_ == 8) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (io.greptime.v1.Ddl.AddFulltexts) kind_); + .computeMessageSize(8, (io.greptime.v1.Ddl.AddFulltext) kind_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -12356,8 +12356,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getChangeColumnTypes())) return false; break; case 8: - if (!getAddFulltexts() - .equals(other.getAddFulltexts())) return false; + if (!getAddFulltext() + .equals(other.getAddFulltext())) return false; break; case 0: default: @@ -12397,8 +12397,8 @@ public int hashCode() { hash = (53 * hash) + getChangeColumnTypes().hashCode(); break; case 8: - hash = (37 * hash) + ADD_FULLTEXTS_FIELD_NUMBER; - hash = (53 * hash) + getAddFulltexts().hashCode(); + hash = (37 * hash) + ADD_FULLTEXT_FIELD_NUMBER; + hash = (53 * hash) + getAddFulltext().hashCode(); break; case 0: default: @@ -12602,10 +12602,10 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { } } if (kindCase_ == 8) { - if (addFulltextsBuilder_ == null) { + if (addFulltextBuilder_ == null) { result.kind_ = kind_; } else { - result.kind_ = addFulltextsBuilder_.build(); + result.kind_ = addFulltextBuilder_.build(); } } result.kindCase_ = kindCase_; @@ -12686,8 +12686,8 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterExpr other) { mergeChangeColumnTypes(other.getChangeColumnTypes()); break; } - case ADD_FULLTEXTS: { - mergeAddFulltexts(other.getAddFulltexts()); + case ADD_FULLTEXT: { + mergeAddFulltext(other.getAddFulltext()); break; } case KIND_NOT_SET: { @@ -13535,71 +13535,71 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltexts, io.greptime.v1.Ddl.AddFulltexts.Builder, io.greptime.v1.Ddl.AddFulltextsOrBuilder> addFulltextsBuilder_; + io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder> addFulltextBuilder_; /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; - * @return Whether the addFulltexts field is set. + * .greptime.v1.AddFulltext add_fulltext = 8; + * @return Whether the addFulltext field is set. */ @java.lang.Override - public boolean hasAddFulltexts() { + public boolean hasAddFulltext() { return kindCase_ == 8; } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; - * @return The addFulltexts. + * .greptime.v1.AddFulltext add_fulltext = 8; + * @return The addFulltext. */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltexts getAddFulltexts() { - if (addFulltextsBuilder_ == null) { + public io.greptime.v1.Ddl.AddFulltext getAddFulltext() { + if (addFulltextBuilder_ == null) { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.AddFulltexts) kind_; + return (io.greptime.v1.Ddl.AddFulltext) kind_; } - return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); } else { if (kindCase_ == 8) { - return addFulltextsBuilder_.getMessage(); + return addFulltextBuilder_.getMessage(); } - return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); } } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ - public Builder setAddFulltexts(io.greptime.v1.Ddl.AddFulltexts value) { - if (addFulltextsBuilder_ == null) { + public Builder setAddFulltext(io.greptime.v1.Ddl.AddFulltext value) { + if (addFulltextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { - addFulltextsBuilder_.setMessage(value); + addFulltextBuilder_.setMessage(value); } kindCase_ = 8; return this; } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ - public Builder setAddFulltexts( - io.greptime.v1.Ddl.AddFulltexts.Builder builderForValue) { - if (addFulltextsBuilder_ == null) { + public Builder setAddFulltext( + io.greptime.v1.Ddl.AddFulltext.Builder builderForValue) { + if (addFulltextBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - addFulltextsBuilder_.setMessage(builderForValue.build()); + addFulltextBuilder_.setMessage(builderForValue.build()); } kindCase_ = 8; return this; } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ - public Builder mergeAddFulltexts(io.greptime.v1.Ddl.AddFulltexts value) { - if (addFulltextsBuilder_ == null) { + public Builder mergeAddFulltext(io.greptime.v1.Ddl.AddFulltext value) { + if (addFulltextBuilder_ == null) { if (kindCase_ == 8 && - kind_ != io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance()) { - kind_ = io.greptime.v1.Ddl.AddFulltexts.newBuilder((io.greptime.v1.Ddl.AddFulltexts) kind_) + kind_ != io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.AddFulltext.newBuilder((io.greptime.v1.Ddl.AddFulltext) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; @@ -13607,19 +13607,19 @@ public Builder mergeAddFulltexts(io.greptime.v1.Ddl.AddFulltexts value) { onChanged(); } else { if (kindCase_ == 8) { - addFulltextsBuilder_.mergeFrom(value); + addFulltextBuilder_.mergeFrom(value); } else { - addFulltextsBuilder_.setMessage(value); + addFulltextBuilder_.setMessage(value); } } kindCase_ = 8; return this; } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ - public Builder clearAddFulltexts() { - if (addFulltextsBuilder_ == null) { + public Builder clearAddFulltext() { + if (addFulltextBuilder_ == null) { if (kindCase_ == 8) { kindCase_ = 0; kind_ = null; @@ -13630,50 +13630,50 @@ public Builder clearAddFulltexts() { kindCase_ = 0; kind_ = null; } - addFulltextsBuilder_.clear(); + addFulltextBuilder_.clear(); } return this; } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ - public io.greptime.v1.Ddl.AddFulltexts.Builder getAddFulltextsBuilder() { - return getAddFulltextsFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.AddFulltext.Builder getAddFulltextBuilder() { + return getAddFulltextFieldBuilder().getBuilder(); } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltextsOrBuilder getAddFulltextsOrBuilder() { - if ((kindCase_ == 8) && (addFulltextsBuilder_ != null)) { - return addFulltextsBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextOrBuilder() { + if ((kindCase_ == 8) && (addFulltextBuilder_ != null)) { + return addFulltextBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.AddFulltexts) kind_; + return (io.greptime.v1.Ddl.AddFulltext) kind_; } - return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); } } /** - * .greptime.v1.AddFulltexts add_fulltexts = 8; + * .greptime.v1.AddFulltext add_fulltext = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltexts, io.greptime.v1.Ddl.AddFulltexts.Builder, io.greptime.v1.Ddl.AddFulltextsOrBuilder> - getAddFulltextsFieldBuilder() { - if (addFulltextsBuilder_ == null) { + io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder> + getAddFulltextFieldBuilder() { + if (addFulltextBuilder_ == null) { if (!(kindCase_ == 8)) { - kind_ = io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + kind_ = io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); } - addFulltextsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltexts, io.greptime.v1.Ddl.AddFulltexts.Builder, io.greptime.v1.Ddl.AddFulltextsOrBuilder>( - (io.greptime.v1.Ddl.AddFulltexts) kind_, + addFulltextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder>( + (io.greptime.v1.Ddl.AddFulltext) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 8; onChanged();; - return addFulltextsBuilder_; + return addFulltextBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -20237,55 +20237,79 @@ public io.greptime.v1.Ddl.ChangeColumnTypes getDefaultInstanceForType() { } - public interface AddFulltextsOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.AddFulltexts) + public interface AddFulltextOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.AddFulltext) com.google.protobuf.MessageOrBuilder { /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * string column_name = 1; + * @return The columnName. + */ + java.lang.String getColumnName(); + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + com.google.protobuf.ByteString + getColumnNameBytes(); + + /** + * map<string, string> options = 2; */ - java.util.List - getAddFulltextsList(); + int getOptionsCount(); /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - io.greptime.v1.Ddl.AddFulltext getAddFulltexts(int index); + boolean containsOptions( + java.lang.String key); /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * Use {@link #getOptionsMap()} instead. */ - int getAddFulltextsCount(); + @java.lang.Deprecated + java.util.Map + getOptions(); /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - java.util.List - getAddFulltextsOrBuilderList(); + java.util.Map + getOptionsMap(); /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextsOrBuilder( - int index); + + /* nullable */ +java.lang.String getOptionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> options = 2; + */ + + java.lang.String getOptionsOrThrow( + java.lang.String key); } /** - * Protobuf type {@code greptime.v1.AddFulltexts} + * Protobuf type {@code greptime.v1.AddFulltext} */ - public static final class AddFulltexts extends + public static final class AddFulltext extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.AddFulltexts) - AddFulltextsOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.AddFulltext) + AddFulltextOrBuilder { private static final long serialVersionUID = 0L; - // Use AddFulltexts.newBuilder() to construct. - private AddFulltexts(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use AddFulltext.newBuilder() to construct. + private AddFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddFulltexts() { - addFulltexts_ = java.util.Collections.emptyList(); + private AddFulltext() { + columnName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new AddFulltexts(); + return new AddFulltext(); } @java.lang.Override @@ -20293,7 +20317,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private AddFulltexts( + private AddFulltext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20313,12 +20337,22 @@ private AddFulltexts( done = true; break; case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + columnName_ = s; + break; + } + case 18: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { - addFulltexts_ = new java.util.ArrayList(); + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } - addFulltexts_.add( - input.readMessage(io.greptime.v1.Ddl.AddFulltext.parser(), extensionRegistry)); + com.google.protobuf.MapEntry + options__ = input.readMessage( + OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + options_.getMutableMap().put( + options__.getKey(), options__.getValue()); break; } default: { @@ -20338,64 +20372,152 @@ private AddFulltexts( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - addFulltexts_ = java.util.Collections.unmodifiableList(addFulltexts_); - } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddFulltexts.class, io.greptime.v1.Ddl.AddFulltexts.Builder.class); + io.greptime.v1.Ddl.AddFulltext.class, io.greptime.v1.Ddl.AddFulltext.Builder.class); + } + + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object columnName_; + /** + * string column_name = 1; + * @return The columnName. + */ + @java.lang.Override + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPTIONS_FIELD_NUMBER = 2; + private static final class OptionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; } - public static final int ADD_FULLTEXTS_FIELD_NUMBER = 1; - private java.util.List addFulltexts_; + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ + @java.lang.Override - public java.util.List getAddFulltextsList() { - return addFulltexts_; + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * Use {@link #getOptionsMap()} instead. */ @java.lang.Override - public java.util.List - getAddFulltextsOrBuilderList() { - return addFulltexts_; + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ @java.lang.Override - public int getAddFulltextsCount() { - return addFulltexts_.size(); + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext getAddFulltexts(int index) { - return addFulltexts_.get(index); + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextsOrBuilder( - int index) { - return addFulltexts_.get(index); + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); } private byte memoizedIsInitialized = -1; @@ -20412,9 +20534,15 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < addFulltexts_.size(); i++) { - output.writeMessage(1, addFulltexts_.get(i)); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetOptions(), + OptionsDefaultEntryHolder.defaultEntry, + 2); unknownFields.writeTo(output); } @@ -20424,9 +20552,18 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < addFulltexts_.size(); i++) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); + } + for (java.util.Map.Entry entry + : internalGetOptions().getMap().entrySet()) { + com.google.protobuf.MapEntry + options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, addFulltexts_.get(i)); + .computeMessageSize(2, options__); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -20438,13 +20575,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.AddFulltexts)) { + if (!(obj instanceof io.greptime.v1.Ddl.AddFulltext)) { return super.equals(obj); } - io.greptime.v1.Ddl.AddFulltexts other = (io.greptime.v1.Ddl.AddFulltexts) obj; + io.greptime.v1.Ddl.AddFulltext other = (io.greptime.v1.Ddl.AddFulltext) obj; - if (!getAddFulltextsList() - .equals(other.getAddFulltextsList())) return false; + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (!internalGetOptions().equals( + other.internalGetOptions())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -20456,78 +20595,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddFulltextsCount() > 0) { - hash = (37 * hash) + ADD_FULLTEXTS_FIELD_NUMBER; - hash = (53 * hash) + getAddFulltextsList().hashCode(); + hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnName().hashCode(); + if (!internalGetOptions().getMap().isEmpty()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.AddFulltexts parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltexts parseFrom( + public static io.greptime.v1.Ddl.AddFulltext 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.AddFulltexts parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltexts parseFrom( + public static io.greptime.v1.Ddl.AddFulltext 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.AddFulltexts parseFrom(byte[] data) + public static io.greptime.v1.Ddl.AddFulltext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltexts parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddFulltexts parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.AddFulltext parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltexts parseFrom( + public static io.greptime.v1.Ddl.AddFulltext 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.AddFulltexts parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.AddFulltext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltexts parseDelimitedFrom( + public static io.greptime.v1.Ddl.AddFulltext 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.AddFulltexts parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltexts parseFrom( + public static io.greptime.v1.Ddl.AddFulltext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20540,7 +20681,7 @@ public static io.greptime.v1.Ddl.AddFulltexts parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.AddFulltexts prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.AddFulltext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20556,26 +20697,48 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.AddFulltexts} + * Protobuf type {@code greptime.v1.AddFulltext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.AddFulltexts) - io.greptime.v1.Ddl.AddFulltextsOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.AddFulltext) + io.greptime.v1.Ddl.AddFulltextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddFulltexts.class, io.greptime.v1.Ddl.AddFulltexts.Builder.class); + io.greptime.v1.Ddl.AddFulltext.class, io.greptime.v1.Ddl.AddFulltext.Builder.class); } - // Construct using io.greptime.v1.Ddl.AddFulltexts.newBuilder() + // Construct using io.greptime.v1.Ddl.AddFulltext.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -20588,35 +20751,31 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getAddFulltextsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (addFulltextsBuilder_ == null) { - addFulltexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - addFulltextsBuilder_.clear(); - } + columnName_ = ""; + + internalGetMutableOptions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltexts_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltexts getDefaultInstanceForType() { - return io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance(); + public io.greptime.v1.Ddl.AddFulltext getDefaultInstanceForType() { + return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltexts build() { - io.greptime.v1.Ddl.AddFulltexts result = buildPartial(); + public io.greptime.v1.Ddl.AddFulltext build() { + io.greptime.v1.Ddl.AddFulltext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -20624,18 +20783,12 @@ public io.greptime.v1.Ddl.AddFulltexts build() { } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltexts buildPartial() { - io.greptime.v1.Ddl.AddFulltexts result = new io.greptime.v1.Ddl.AddFulltexts(this); + public io.greptime.v1.Ddl.AddFulltext buildPartial() { + io.greptime.v1.Ddl.AddFulltext result = new io.greptime.v1.Ddl.AddFulltext(this); int from_bitField0_ = bitField0_; - if (addFulltextsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - addFulltexts_ = java.util.Collections.unmodifiableList(addFulltexts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addFulltexts_ = addFulltexts_; - } else { - result.addFulltexts_ = addFulltextsBuilder_.build(); - } + result.columnName_ = columnName_; + result.options_ = internalGetOptions(); + result.options_.makeImmutable(); onBuilt(); return result; } @@ -20674,42 +20827,22 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.AddFulltexts) { - return mergeFrom((io.greptime.v1.Ddl.AddFulltexts)other); + if (other instanceof io.greptime.v1.Ddl.AddFulltext) { + return mergeFrom((io.greptime.v1.Ddl.AddFulltext)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.AddFulltexts other) { - if (other == io.greptime.v1.Ddl.AddFulltexts.getDefaultInstance()) return this; - if (addFulltextsBuilder_ == null) { - if (!other.addFulltexts_.isEmpty()) { - if (addFulltexts_.isEmpty()) { - addFulltexts_ = other.addFulltexts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddFulltextsIsMutable(); - addFulltexts_.addAll(other.addFulltexts_); - } - onChanged(); - } - } else { - if (!other.addFulltexts_.isEmpty()) { - if (addFulltextsBuilder_.isEmpty()) { - addFulltextsBuilder_.dispose(); - addFulltextsBuilder_ = null; - addFulltexts_ = other.addFulltexts_; - bitField0_ = (bitField0_ & ~0x00000001); - addFulltextsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAddFulltextsFieldBuilder() : null; - } else { - addFulltextsBuilder_.addAllMessages(other.addFulltexts_); - } - } + public Builder mergeFrom(io.greptime.v1.Ddl.AddFulltext other) { + if (other == io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); } + internalGetMutableOptions().mergeFrom( + other.internalGetOptions()); this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -20725,11 +20858,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.AddFulltexts parsedMessage = null; + io.greptime.v1.Ddl.AddFulltext parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.AddFulltexts) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.AddFulltext) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -20740,244 +20873,211 @@ public Builder mergeFrom( } private int bitField0_; - private java.util.List addFulltexts_ = - java.util.Collections.emptyList(); - private void ensureAddFulltextsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - addFulltexts_ = new java.util.ArrayList(addFulltexts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder> addFulltextsBuilder_; - - /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; - */ - public java.util.List getAddFulltextsList() { - if (addFulltextsBuilder_ == null) { - return java.util.Collections.unmodifiableList(addFulltexts_); - } else { - return addFulltextsBuilder_.getMessageList(); - } - } + private java.lang.Object columnName_ = ""; /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * string column_name = 1; + * @return The columnName. */ - public int getAddFulltextsCount() { - if (addFulltextsBuilder_ == null) { - return addFulltexts_.size(); + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; } else { - return addFulltextsBuilder_.getCount(); + return (java.lang.String) ref; } } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * string column_name = 1; + * @return The bytes for columnName. */ - public io.greptime.v1.Ddl.AddFulltext getAddFulltexts(int index) { - if (addFulltextsBuilder_ == null) { - return addFulltexts_.get(index); + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; } else { - return addFulltextsBuilder_.getMessage(index); + return (com.google.protobuf.ByteString) ref; } } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. */ - public Builder setAddFulltexts( - int index, io.greptime.v1.Ddl.AddFulltext value) { - if (addFulltextsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddFulltextsIsMutable(); - addFulltexts_.set(index, value); - onChanged(); - } else { - addFulltextsBuilder_.setMessage(index, value); - } + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; + onChanged(); return this; } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * string column_name = 1; + * @return This builder for chaining. */ - public Builder setAddFulltexts( - int index, io.greptime.v1.Ddl.AddFulltext.Builder builderForValue) { - if (addFulltextsBuilder_ == null) { - ensureAddFulltextsIsMutable(); - addFulltexts_.set(index, builderForValue.build()); - onChanged(); - } else { - addFulltextsBuilder_.setMessage(index, builderForValue.build()); - } + public Builder clearColumnName() { + + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); return this; } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. */ - public Builder addAddFulltexts(io.greptime.v1.Ddl.AddFulltext value) { - if (addFulltextsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddFulltextsIsMutable(); - addFulltexts_.add(value); - onChanged(); - } else { - addFulltextsBuilder_.addMessage(value); - } + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnName_ = value; + onChanged(); return this; } - /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; - */ - public Builder addAddFulltexts( - int index, io.greptime.v1.Ddl.AddFulltext value) { - if (addFulltextsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddFulltextsIsMutable(); - addFulltexts_.add(index, value); - onChanged(); - } else { - addFulltextsBuilder_.addMessage(index, value); + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); } - return this; + return options_; } - /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; - */ - public Builder addAddFulltexts( - io.greptime.v1.Ddl.AddFulltext.Builder builderForValue) { - if (addFulltextsBuilder_ == null) { - ensureAddFulltextsIsMutable(); - addFulltexts_.add(builderForValue.build()); - onChanged(); - } else { - addFulltextsBuilder_.addMessage(builderForValue.build()); + private com.google.protobuf.MapField + internalGetMutableOptions() { + onChanged();; + if (options_ == null) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); } - return this; - } - /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; - */ - public Builder addAddFulltexts( - int index, io.greptime.v1.Ddl.AddFulltext.Builder builderForValue) { - if (addFulltextsBuilder_ == null) { - ensureAddFulltextsIsMutable(); - addFulltexts_.add(index, builderForValue.build()); - onChanged(); - } else { - addFulltextsBuilder_.addMessage(index, builderForValue.build()); + if (!options_.isMutable()) { + options_ = options_.copy(); } - return this; + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - public Builder addAllAddFulltexts( - java.lang.Iterable values) { - if (addFulltextsBuilder_ == null) { - ensureAddFulltextsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addFulltexts_); - onChanged(); - } else { - addFulltextsBuilder_.addAllMessages(values); - } - return this; + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * Use {@link #getOptionsMap()} instead. */ - public Builder clearAddFulltexts() { - if (addFulltextsBuilder_ == null) { - addFulltexts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - addFulltextsBuilder_.clear(); - } - return this; + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - public Builder removeAddFulltexts(int index) { - if (addFulltextsBuilder_ == null) { - ensureAddFulltextsIsMutable(); - addFulltexts_.remove(index); - onChanged(); - } else { - addFulltextsBuilder_.remove(index); - } - return this; + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - public io.greptime.v1.Ddl.AddFulltext.Builder getAddFulltextsBuilder( - int index) { - return getAddFulltextsFieldBuilder().getBuilder(index); + @java.lang.Override + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - public io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextsOrBuilder( - int index) { - if (addFulltextsBuilder_ == null) { - return addFulltexts_.get(index); } else { - return addFulltextsBuilder_.getMessageOrBuilder(index); + @java.lang.Override + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); } + return map.get(key); + } + + public Builder clearOptions() { + internalGetMutableOptions().getMutableMap() + .clear(); + return this; } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - public java.util.List - getAddFulltextsOrBuilderList() { - if (addFulltextsBuilder_ != null) { - return addFulltextsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(addFulltexts_); - } + + public Builder removeOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableOptions().getMutableMap() + .remove(key); + return this; } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * Use alternate mutation accessors instead. */ - public io.greptime.v1.Ddl.AddFulltext.Builder addAddFulltextsBuilder() { - return getAddFulltextsFieldBuilder().addBuilder( - io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()); + @java.lang.Deprecated + public java.util.Map + getMutableOptions() { + return internalGetMutableOptions().getMutableMap(); } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - public io.greptime.v1.Ddl.AddFulltext.Builder addAddFulltextsBuilder( - int index) { - return getAddFulltextsFieldBuilder().addBuilder( - index, io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()); + public Builder putOptions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableOptions().getMutableMap() + .put(key, value); + return this; } /** - * repeated .greptime.v1.AddFulltext add_fulltexts = 1; + * map<string, string> options = 2; */ - public java.util.List - getAddFulltextsBuilderList() { - return getAddFulltextsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder> - getAddFulltextsFieldBuilder() { - if (addFulltextsBuilder_ == null) { - addFulltextsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder>( - addFulltexts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - addFulltexts_ = null; - } - return addFulltextsBuilder_; + + public Builder putAllOptions( + java.util.Map values) { + internalGetMutableOptions().getMutableMap() + .putAll(values); + return this; } @java.lang.Override public final Builder setUnknownFields( @@ -20992,41 +21092,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.AddFulltexts) + // @@protoc_insertion_point(builder_scope:greptime.v1.AddFulltext) } - // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltexts) - private static final io.greptime.v1.Ddl.AddFulltexts DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltext) + private static final io.greptime.v1.Ddl.AddFulltext DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddFulltexts(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddFulltext(); } - public static io.greptime.v1.Ddl.AddFulltexts getDefaultInstance() { + public static io.greptime.v1.Ddl.AddFulltext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public AddFulltexts parsePartialFrom( + public AddFulltext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddFulltexts(input, extensionRegistry); + return new AddFulltext(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltexts getDefaultInstanceForType() { + public io.greptime.v1.Ddl.AddFulltext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -22289,971 +22389,91 @@ public Builder setLocation(io.greptime.v1.Ddl.AddColumnLocation value) { location_ = value; onChanged(); } else { - locationBuilder_.setMessage(value); - } - - return this; - } - /** - * .greptime.v1.AddColumnLocation location = 3; - */ - public Builder setLocation( - io.greptime.v1.Ddl.AddColumnLocation.Builder builderForValue) { - if (locationBuilder_ == null) { - location_ = builderForValue.build(); - onChanged(); - } else { - locationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .greptime.v1.AddColumnLocation location = 3; - */ - public Builder mergeLocation(io.greptime.v1.Ddl.AddColumnLocation value) { - if (locationBuilder_ == null) { - if (location_ != null) { - location_ = - io.greptime.v1.Ddl.AddColumnLocation.newBuilder(location_).mergeFrom(value).buildPartial(); - } else { - location_ = value; - } - onChanged(); - } else { - locationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .greptime.v1.AddColumnLocation location = 3; - */ - public Builder clearLocation() { - if (locationBuilder_ == null) { - location_ = null; - onChanged(); - } else { - location_ = null; - locationBuilder_ = null; - } - - return this; - } - /** - * .greptime.v1.AddColumnLocation location = 3; - */ - public io.greptime.v1.Ddl.AddColumnLocation.Builder getLocationBuilder() { - - onChanged(); - return getLocationFieldBuilder().getBuilder(); - } - /** - * .greptime.v1.AddColumnLocation location = 3; - */ - public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { - if (locationBuilder_ != null) { - return locationBuilder_.getMessageOrBuilder(); - } else { - return location_ == null ? - io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; - } - } - /** - * .greptime.v1.AddColumnLocation location = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> - getLocationFieldBuilder() { - if (locationBuilder_ == null) { - locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder>( - getLocation(), - getParentForChildren(), - isClean()); - location_ = null; - } - return locationBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:greptime.v1.AddColumn) - } - - // @@protoc_insertion_point(class_scope:greptime.v1.AddColumn) - private static final io.greptime.v1.Ddl.AddColumn DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddColumn(); - } - - public static io.greptime.v1.Ddl.AddColumn getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AddColumn parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AddColumn(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public interface ChangeColumnTypeOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnType) - com.google.protobuf.MessageOrBuilder { - - /** - * string column_name = 1; - * @return The columnName. - */ - java.lang.String getColumnName(); - /** - * string column_name = 1; - * @return The bytes for columnName. - */ - com.google.protobuf.ByteString - getColumnNameBytes(); - - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The enum numeric value on the wire for targetType. - */ - int getTargetTypeValue(); - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The targetType. - */ - io.greptime.v1.Common.ColumnDataType getTargetType(); - - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return Whether the targetTypeExtension field is set. - */ - boolean hasTargetTypeExtension(); - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return The targetTypeExtension. - */ - io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension(); - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - */ - io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder(); - } - /** - * Protobuf type {@code greptime.v1.ChangeColumnType} - */ - public static final class ChangeColumnType extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnType) - ChangeColumnTypeOrBuilder { - private static final long serialVersionUID = 0L; - // Use ChangeColumnType.newBuilder() to construct. - private ChangeColumnType(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ChangeColumnType() { - columnName_ = ""; - targetType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ChangeColumnType(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ChangeColumnType( - 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(); - - columnName_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - targetType_ = rawValue; - break; - } - case 26: { - io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null; - if (targetTypeExtension_ != null) { - subBuilder = targetTypeExtension_.toBuilder(); - } - targetTypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(targetTypeExtension_); - targetTypeExtension_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); - } - - public static final int COLUMN_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object columnName_; - /** - * string column_name = 1; - * @return The columnName. - */ - @java.lang.Override - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - columnName_ = s; - return s; - } - } - /** - * string column_name = 1; - * @return The bytes for columnName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getColumnNameBytes() { - java.lang.Object ref = columnName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - columnName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TARGET_TYPE_FIELD_NUMBER = 2; - private int targetType_; - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The enum numeric value on the wire for targetType. - */ - @java.lang.Override public int getTargetTypeValue() { - return targetType_; - } - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The targetType. - */ - @java.lang.Override public io.greptime.v1.Common.ColumnDataType getTargetType() { - @SuppressWarnings("deprecation") - io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); - return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; - } - - public static final int TARGET_TYPE_EXTENSION_FIELD_NUMBER = 3; - private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return Whether the targetTypeExtension field is set. - */ - @java.lang.Override - public boolean hasTargetTypeExtension() { - return targetTypeExtension_ != null; - } - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return The targetTypeExtension. - */ - @java.lang.Override - public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { - return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; - } - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - */ - @java.lang.Override - public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { - return getTargetTypeExtension(); - } - - 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(columnName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); - } - if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { - output.writeEnum(2, targetType_); - } - if (targetTypeExtension_ != null) { - output.writeMessage(3, getTargetTypeExtension()); - } - 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(columnName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); - } - if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, targetType_); - } - if (targetTypeExtension_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getTargetTypeExtension()); - } - 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.ChangeColumnType)) { - return super.equals(obj); - } - io.greptime.v1.Ddl.ChangeColumnType other = (io.greptime.v1.Ddl.ChangeColumnType) obj; - - if (!getColumnName() - .equals(other.getColumnName())) return false; - if (targetType_ != other.targetType_) return false; - if (hasTargetTypeExtension() != other.hasTargetTypeExtension()) return false; - if (hasTargetTypeExtension()) { - if (!getTargetTypeExtension() - .equals(other.getTargetTypeExtension())) return false; - } - if (!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) + COLUMN_NAME_FIELD_NUMBER; - hash = (53 * hash) + getColumnName().hashCode(); - hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; - hash = (53 * hash) + targetType_; - if (hasTargetTypeExtension()) { - hash = (37 * hash) + TARGET_TYPE_EXTENSION_FIELD_NUMBER; - hash = (53 * hash) + getTargetTypeExtension().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.greptime.v1.Ddl.ChangeColumnType 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.ChangeColumnType 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.ChangeColumnType} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnType) - io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); - } - - // Construct using io.greptime.v1.Ddl.ChangeColumnType.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(); - columnName_ = ""; - - targetType_ = 0; - - if (targetTypeExtensionBuilder_ == null) { - targetTypeExtension_ = null; - } else { - targetTypeExtension_ = null; - targetTypeExtensionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; - } - - @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { - return io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance(); - } - - @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType build() { - io.greptime.v1.Ddl.ChangeColumnType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType buildPartial() { - io.greptime.v1.Ddl.ChangeColumnType result = new io.greptime.v1.Ddl.ChangeColumnType(this); - result.columnName_ = columnName_; - result.targetType_ = targetType_; - if (targetTypeExtensionBuilder_ == null) { - result.targetTypeExtension_ = targetTypeExtension_; - } else { - result.targetTypeExtension_ = targetTypeExtensionBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.ChangeColumnType) { - return mergeFrom((io.greptime.v1.Ddl.ChangeColumnType)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.greptime.v1.Ddl.ChangeColumnType other) { - if (other == io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()) return this; - if (!other.getColumnName().isEmpty()) { - columnName_ = other.columnName_; - onChanged(); - } - if (other.targetType_ != 0) { - setTargetTypeValue(other.getTargetTypeValue()); - } - if (other.hasTargetTypeExtension()) { - mergeTargetTypeExtension(other.getTargetTypeExtension()); - } - 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.ChangeColumnType parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.ChangeColumnType) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object columnName_ = ""; - /** - * string column_name = 1; - * @return The columnName. - */ - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - columnName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string column_name = 1; - * @return The bytes for columnName. - */ - public com.google.protobuf.ByteString - getColumnNameBytes() { - java.lang.Object ref = columnName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - columnName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string column_name = 1; - * @param value The columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - columnName_ = value; - onChanged(); - return this; - } - /** - * string column_name = 1; - * @return This builder for chaining. - */ - public Builder clearColumnName() { - - columnName_ = getDefaultInstance().getColumnName(); - onChanged(); - return this; - } - /** - * string column_name = 1; - * @param value The bytes for columnName to set. - * @return This builder for chaining. - */ - public Builder setColumnNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - columnName_ = value; - onChanged(); - return this; - } - - private int targetType_ = 0; - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The enum numeric value on the wire for targetType. - */ - @java.lang.Override public int getTargetTypeValue() { - return targetType_; - } - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @param value The enum numeric value on the wire for targetType to set. - * @return This builder for chaining. - */ - public Builder setTargetTypeValue(int value) { - - targetType_ = value; - onChanged(); - return this; - } - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return The targetType. - */ - @java.lang.Override - public io.greptime.v1.Common.ColumnDataType getTargetType() { - @SuppressWarnings("deprecation") - io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); - return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; - } - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @param value The targetType to set. - * @return This builder for chaining. - */ - public Builder setTargetType(io.greptime.v1.Common.ColumnDataType value) { - if (value == null) { - throw new NullPointerException(); - } - - targetType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .greptime.v1.ColumnDataType target_type = 2; - * @return This builder for chaining. - */ - public Builder clearTargetType() { - - targetType_ = 0; - onChanged(); - return this; - } - - private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; - private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> targetTypeExtensionBuilder_; - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return Whether the targetTypeExtension field is set. - */ - public boolean hasTargetTypeExtension() { - return targetTypeExtensionBuilder_ != null || targetTypeExtension_ != null; - } - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - * @return The targetTypeExtension. - */ - public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { - if (targetTypeExtensionBuilder_ == null) { - return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; - } else { - return targetTypeExtensionBuilder_.getMessage(); - } - } - /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - */ - public Builder setTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { - if (targetTypeExtensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - targetTypeExtension_ = value; - onChanged(); - } else { - targetTypeExtensionBuilder_.setMessage(value); + locationBuilder_.setMessage(value); } return this; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * .greptime.v1.AddColumnLocation location = 3; */ - public Builder setTargetTypeExtension( - io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { - if (targetTypeExtensionBuilder_ == null) { - targetTypeExtension_ = builderForValue.build(); + public Builder setLocation( + io.greptime.v1.Ddl.AddColumnLocation.Builder builderForValue) { + if (locationBuilder_ == null) { + location_ = builderForValue.build(); onChanged(); } else { - targetTypeExtensionBuilder_.setMessage(builderForValue.build()); + locationBuilder_.setMessage(builderForValue.build()); } return this; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * .greptime.v1.AddColumnLocation location = 3; */ - public Builder mergeTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { - if (targetTypeExtensionBuilder_ == null) { - if (targetTypeExtension_ != null) { - targetTypeExtension_ = - io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(targetTypeExtension_).mergeFrom(value).buildPartial(); + public Builder mergeLocation(io.greptime.v1.Ddl.AddColumnLocation value) { + if (locationBuilder_ == null) { + if (location_ != null) { + location_ = + io.greptime.v1.Ddl.AddColumnLocation.newBuilder(location_).mergeFrom(value).buildPartial(); } else { - targetTypeExtension_ = value; + location_ = value; } onChanged(); } else { - targetTypeExtensionBuilder_.mergeFrom(value); + locationBuilder_.mergeFrom(value); } return this; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * .greptime.v1.AddColumnLocation location = 3; */ - public Builder clearTargetTypeExtension() { - if (targetTypeExtensionBuilder_ == null) { - targetTypeExtension_ = null; + public Builder clearLocation() { + if (locationBuilder_ == null) { + location_ = null; onChanged(); } else { - targetTypeExtension_ = null; - targetTypeExtensionBuilder_ = null; + location_ = null; + locationBuilder_ = null; } return this; } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * .greptime.v1.AddColumnLocation location = 3; */ - public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getTargetTypeExtensionBuilder() { + public io.greptime.v1.Ddl.AddColumnLocation.Builder getLocationBuilder() { onChanged(); - return getTargetTypeExtensionFieldBuilder().getBuilder(); + return getLocationFieldBuilder().getBuilder(); } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * .greptime.v1.AddColumnLocation location = 3; */ - public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { - if (targetTypeExtensionBuilder_ != null) { - return targetTypeExtensionBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.AddColumnLocationOrBuilder getLocationOrBuilder() { + if (locationBuilder_ != null) { + return locationBuilder_.getMessageOrBuilder(); } else { - return targetTypeExtension_ == null ? - io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; + return location_ == null ? + io.greptime.v1.Ddl.AddColumnLocation.getDefaultInstance() : location_; } } /** - * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * .greptime.v1.AddColumnLocation location = 3; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> - getTargetTypeExtensionFieldBuilder() { - if (targetTypeExtensionBuilder_ == null) { - targetTypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>( - getTargetTypeExtension(), + io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder> + getLocationFieldBuilder() { + if (locationBuilder_ == null) { + locationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.AddColumnLocation, io.greptime.v1.Ddl.AddColumnLocation.Builder, io.greptime.v1.Ddl.AddColumnLocationOrBuilder>( + getLocation(), getParentForChildren(), isClean()); - targetTypeExtension_ = null; + location_ = null; } - return targetTypeExtensionBuilder_; + return locationBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -23268,48 +22488,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeColumnType) + // @@protoc_insertion_point(builder_scope:greptime.v1.AddColumn) } - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnType) - private static final io.greptime.v1.Ddl.ChangeColumnType DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.AddColumn) + private static final io.greptime.v1.Ddl.AddColumn DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnType(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddColumn(); } - public static io.greptime.v1.Ddl.ChangeColumnType getDefaultInstance() { + public static io.greptime.v1.Ddl.AddColumn getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ChangeColumnType parsePartialFrom( + public AddColumn parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeColumnType(input, extensionRegistry); + return new AddColumn(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { + public io.greptime.v1.Ddl.AddColumn getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface AddFulltextOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.AddFulltext) + public interface ChangeColumnTypeOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnType) com.google.protobuf.MessageOrBuilder { /** @@ -23325,62 +22545,53 @@ public interface AddFulltextOrBuilder extends getColumnNameBytes(); /** - * map<string, string> options = 2; - */ - int getOptionsCount(); - /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. */ - boolean containsOptions( - java.lang.String key); + int getTargetTypeValue(); /** - * Use {@link #getOptionsMap()} instead. + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. */ - @java.lang.Deprecated - java.util.Map - getOptions(); + io.greptime.v1.Common.ColumnDataType getTargetType(); + /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ - java.util.Map - getOptionsMap(); + boolean hasTargetTypeExtension(); /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ - - /* nullable */ -java.lang.String getOptionsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); + io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension(); /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - - java.lang.String getOptionsOrThrow( - java.lang.String key); + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder(); } /** - * Protobuf type {@code greptime.v1.AddFulltext} + * Protobuf type {@code greptime.v1.ChangeColumnType} */ - public static final class AddFulltext extends + public static final class ChangeColumnType extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.AddFulltext) - AddFulltextOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnType) + ChangeColumnTypeOrBuilder { private static final long serialVersionUID = 0L; - // Use AddFulltext.newBuilder() to construct. - private AddFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ChangeColumnType.newBuilder() to construct. + private ChangeColumnType(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddFulltext() { + private ChangeColumnType() { columnName_ = ""; + targetType_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new AddFulltext(); + return new ChangeColumnType(); } @java.lang.Override @@ -23388,7 +22599,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private AddFulltext( + private ChangeColumnType( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23396,7 +22607,6 @@ private AddFulltext( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -23413,17 +22623,23 @@ private AddFulltext( columnName_ = s; break; } - case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - options_ = com.google.protobuf.MapField.newMapField( - OptionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + case 16: { + int rawValue = input.readEnum(); + + targetType_ = rawValue; + break; + } + case 26: { + io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null; + if (targetTypeExtension_ != null) { + subBuilder = targetTypeExtension_.toBuilder(); } - com.google.protobuf.MapEntry - options__ = input.readMessage( - OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - options_.getMutableMap().put( - options__.getKey(), options__.getValue()); + targetTypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(targetTypeExtension_); + targetTypeExtension_ = subBuilder.buildPartial(); + } + break; } default: { @@ -23449,27 +22665,15 @@ private AddFulltext( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetOptions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddFulltext.class, io.greptime.v1.Ddl.AddFulltext.Builder.class); + io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); } public static final int COLUMN_NAME_FIELD_NUMBER = 1; @@ -23510,85 +22714,49 @@ public java.lang.String getColumnName() { } } - public static final int OPTIONS_FIELD_NUMBER = 2; - private static final class OptionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> options_; - private com.google.protobuf.MapField - internalGetOptions() { - if (options_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OptionsDefaultEntryHolder.defaultEntry); - } - return options_; - } - - public int getOptionsCount() { - return internalGetOptions().getMap().size(); - } + public static final int TARGET_TYPE_FIELD_NUMBER = 2; + private int targetType_; /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. */ - - @java.lang.Override - public boolean containsOptions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetOptions().getMap().containsKey(key); + @java.lang.Override public int getTargetTypeValue() { + return targetType_; } /** - * Use {@link #getOptionsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getOptions() { - return getOptionsMap(); + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. + */ + @java.lang.Override public io.greptime.v1.Common.ColumnDataType getTargetType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; } + + public static final int TARGET_TYPE_EXTENSION_FIELD_NUMBER = 3; + private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ @java.lang.Override - - public java.util.Map getOptionsMap() { - return internalGetOptions().getMap(); + public boolean hasTargetTypeExtension() { + return targetTypeExtension_ != null; } /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ @java.lang.Override - - public java.lang.String getOptionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOptions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { + return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; } /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ @java.lang.Override - - public java.lang.String getOptionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOptions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { + return getTargetTypeExtension(); } private byte memoizedIsInitialized = -1; @@ -23608,12 +22776,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetOptions(), - OptionsDefaultEntryHolder.defaultEntry, - 2); + if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + output.writeEnum(2, targetType_); + } + if (targetTypeExtension_ != null) { + output.writeMessage(3, getTargetTypeExtension()); + } unknownFields.writeTo(output); } @@ -23626,15 +22794,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); } - for (java.util.Map.Entry entry - : internalGetOptions().getMap().entrySet()) { - com.google.protobuf.MapEntry - options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); + if (targetType_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, options__); + .computeEnumSize(2, targetType_); + } + if (targetTypeExtension_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTargetTypeExtension()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -23646,15 +22812,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.AddFulltext)) { + if (!(obj instanceof io.greptime.v1.Ddl.ChangeColumnType)) { return super.equals(obj); } - io.greptime.v1.Ddl.AddFulltext other = (io.greptime.v1.Ddl.AddFulltext) obj; + io.greptime.v1.Ddl.ChangeColumnType other = (io.greptime.v1.Ddl.ChangeColumnType) obj; if (!getColumnName() .equals(other.getColumnName())) return false; - if (!internalGetOptions().equals( - other.internalGetOptions())) return false; + if (targetType_ != other.targetType_) return false; + if (hasTargetTypeExtension() != other.hasTargetTypeExtension()) return false; + if (hasTargetTypeExtension()) { + if (!getTargetTypeExtension() + .equals(other.getTargetTypeExtension())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -23668,78 +22838,80 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getColumnName().hashCode(); - if (!internalGetOptions().getMap().isEmpty()) { - hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetOptions().hashCode(); + hash = (37 * hash) + TARGET_TYPE_FIELD_NUMBER; + hash = (53 * hash) + targetType_; + if (hasTargetTypeExtension()) { + hash = (37 * hash) + TARGET_TYPE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getTargetTypeExtension().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom(byte[] data) + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.AddFulltext parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltext parseDelimitedFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeColumnType parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -23752,7 +22924,7 @@ public static io.greptime.v1.Ddl.AddFulltext parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.AddFulltext prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.ChangeColumnType prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -23768,48 +22940,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.AddFulltext} + * Protobuf type {@code greptime.v1.ChangeColumnType} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.AddFulltext) - io.greptime.v1.Ddl.AddFulltextOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnType) + io.greptime.v1.Ddl.ChangeColumnTypeOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetOptions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableOptions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddFulltext.class, io.greptime.v1.Ddl.AddFulltext.Builder.class); + io.greptime.v1.Ddl.ChangeColumnType.class, io.greptime.v1.Ddl.ChangeColumnType.Builder.class); } - // Construct using io.greptime.v1.Ddl.AddFulltext.newBuilder() + // Construct using io.greptime.v1.Ddl.ChangeColumnType.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -23829,24 +22979,31 @@ public Builder clear() { super.clear(); columnName_ = ""; - internalGetMutableOptions().clear(); + targetType_ = 0; + + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = null; + } else { + targetTypeExtension_ = null; + targetTypeExtensionBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnType_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext getDefaultInstanceForType() { - return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); + public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext build() { - io.greptime.v1.Ddl.AddFulltext result = buildPartial(); + public io.greptime.v1.Ddl.ChangeColumnType build() { + io.greptime.v1.Ddl.ChangeColumnType result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -23854,12 +23011,15 @@ public io.greptime.v1.Ddl.AddFulltext build() { } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext buildPartial() { - io.greptime.v1.Ddl.AddFulltext result = new io.greptime.v1.Ddl.AddFulltext(this); - int from_bitField0_ = bitField0_; + public io.greptime.v1.Ddl.ChangeColumnType buildPartial() { + io.greptime.v1.Ddl.ChangeColumnType result = new io.greptime.v1.Ddl.ChangeColumnType(this); result.columnName_ = columnName_; - result.options_ = internalGetOptions(); - result.options_.makeImmutable(); + result.targetType_ = targetType_; + if (targetTypeExtensionBuilder_ == null) { + result.targetTypeExtension_ = targetTypeExtension_; + } else { + result.targetTypeExtension_ = targetTypeExtensionBuilder_.build(); + } onBuilt(); return result; } @@ -23898,22 +23058,26 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.AddFulltext) { - return mergeFrom((io.greptime.v1.Ddl.AddFulltext)other); + if (other instanceof io.greptime.v1.Ddl.ChangeColumnType) { + return mergeFrom((io.greptime.v1.Ddl.ChangeColumnType)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.AddFulltext other) { - if (other == io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.Ddl.ChangeColumnType other) { + if (other == io.greptime.v1.Ddl.ChangeColumnType.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; onChanged(); } - internalGetMutableOptions().mergeFrom( - other.internalGetOptions()); + if (other.targetType_ != 0) { + setTargetTypeValue(other.getTargetTypeValue()); + } + if (other.hasTargetTypeExtension()) { + mergeTargetTypeExtension(other.getTargetTypeExtension()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -23929,11 +23093,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.AddFulltext parsedMessage = null; + io.greptime.v1.Ddl.ChangeColumnType parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.AddFulltext) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.ChangeColumnType) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -23942,7 +23106,6 @@ public Builder mergeFrom( } return this; } - private int bitField0_; private java.lang.Object columnName_ = ""; /** @@ -24015,140 +23178,182 @@ public Builder setColumnNameBytes( } checkByteStringIsUtf8(value); - columnName_ = value; + columnName_ = value; + onChanged(); + return this; + } + + private int targetType_ = 0; + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return The enum numeric value on the wire for targetType. + */ + @java.lang.Override public int getTargetTypeValue() { + return targetType_; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @param value The enum numeric value on the wire for targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetTypeValue(int value) { + + targetType_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return The targetType. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataType getTargetType() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(targetType_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @param value The targetType to set. + * @return This builder for chaining. + */ + public Builder setTargetType(io.greptime.v1.Common.ColumnDataType value) { + if (value == null) { + throw new NullPointerException(); + } + + targetType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType target_type = 2; + * @return This builder for chaining. + */ + public Builder clearTargetType() { + + targetType_ = 0; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> options_; - private com.google.protobuf.MapField - internalGetOptions() { - if (options_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OptionsDefaultEntryHolder.defaultEntry); - } - return options_; - } - private com.google.protobuf.MapField - internalGetMutableOptions() { - onChanged();; - if (options_ == null) { - options_ = com.google.protobuf.MapField.newMapField( - OptionsDefaultEntryHolder.defaultEntry); - } - if (!options_.isMutable()) { - options_ = options_.copy(); - } - return options_; - } - - public int getOptionsCount() { - return internalGetOptions().getMap().size(); - } + private io.greptime.v1.Common.ColumnDataTypeExtension targetTypeExtension_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> targetTypeExtensionBuilder_; /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return Whether the targetTypeExtension field is set. */ - - @java.lang.Override - public boolean containsOptions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetOptions().getMap().containsKey(key); + public boolean hasTargetTypeExtension() { + return targetTypeExtensionBuilder_ != null || targetTypeExtension_ != null; } /** - * Use {@link #getOptionsMap()} instead. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + * @return The targetTypeExtension. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getOptions() { - return getOptionsMap(); + public io.greptime.v1.Common.ColumnDataTypeExtension getTargetTypeExtension() { + if (targetTypeExtensionBuilder_ == null) { + return targetTypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; + } else { + return targetTypeExtensionBuilder_.getMessage(); + } } /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - @java.lang.Override + public Builder setTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (targetTypeExtensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + targetTypeExtension_ = value; + onChanged(); + } else { + targetTypeExtensionBuilder_.setMessage(value); + } - public java.util.Map getOptionsMap() { - return internalGetOptions().getMap(); + return this; } /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - @java.lang.Override + public Builder setTargetTypeExtension( + io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = builderForValue.build(); + onChanged(); + } else { + targetTypeExtensionBuilder_.setMessage(builderForValue.build()); + } - public java.lang.String getOptionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOptions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + return this; } /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - @java.lang.Override - - public java.lang.String getOptionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOptions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); + public Builder mergeTargetTypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (targetTypeExtensionBuilder_ == null) { + if (targetTypeExtension_ != null) { + targetTypeExtension_ = + io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(targetTypeExtension_).mergeFrom(value).buildPartial(); + } else { + targetTypeExtension_ = value; + } + onChanged(); + } else { + targetTypeExtensionBuilder_.mergeFrom(value); } - return map.get(key); - } - public Builder clearOptions() { - internalGetMutableOptions().getMutableMap() - .clear(); return this; } /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ + public Builder clearTargetTypeExtension() { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtension_ = null; + onChanged(); + } else { + targetTypeExtension_ = null; + targetTypeExtensionBuilder_ = null; + } - public Builder removeOptions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableOptions().getMutableMap() - .remove(key); return this; } /** - * Use alternate mutation accessors instead. + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - @java.lang.Deprecated - public java.util.Map - getMutableOptions() { - return internalGetMutableOptions().getMutableMap(); + public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getTargetTypeExtensionBuilder() { + + onChanged(); + return getTargetTypeExtensionFieldBuilder().getBuilder(); } /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - public Builder putOptions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableOptions().getMutableMap() - .put(key, value); - return this; + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getTargetTypeExtensionOrBuilder() { + if (targetTypeExtensionBuilder_ != null) { + return targetTypeExtensionBuilder_.getMessageOrBuilder(); + } else { + return targetTypeExtension_ == null ? + io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : targetTypeExtension_; + } } /** - * map<string, string> options = 2; + * .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; */ - - public Builder putAllOptions( - java.util.Map values) { - internalGetMutableOptions().getMutableMap() - .putAll(values); - return this; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> + getTargetTypeExtensionFieldBuilder() { + if (targetTypeExtensionBuilder_ == null) { + targetTypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>( + getTargetTypeExtension(), + getParentForChildren(), + isClean()); + targetTypeExtension_ = null; + } + return targetTypeExtensionBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -24163,41 +23368,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.AddFulltext) + // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeColumnType) } - // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltext) - private static final io.greptime.v1.Ddl.AddFulltext DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnType) + private static final io.greptime.v1.Ddl.ChangeColumnType DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddFulltext(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnType(); } - public static io.greptime.v1.Ddl.AddFulltext getDefaultInstance() { + public static io.greptime.v1.Ddl.ChangeColumnType getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public AddFulltext parsePartialFrom( + public ChangeColumnType parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddFulltext(input, extensionRegistry); + return new ChangeColumnType(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext getDefaultInstanceForType() { + public io.greptime.v1.Ddl.ChangeColumnType getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -28229,10 +27434,15 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AddFulltexts_descriptor; + internal_static_greptime_v1_AddFulltext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AddFulltext_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AddFulltexts_fieldAccessorTable; + internal_static_greptime_v1_AddFulltext_OptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RenameTable_descriptor; private static final @@ -28248,16 +27458,6 @@ 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_AddFulltext_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AddFulltext_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AddFulltext_OptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_DropColumn_descriptor; private static final @@ -28338,63 +27538,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\"\331\002\n\tAlterE" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\327\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\000\0222\n" + - "\radd_fulltexts\030\010 \001(\0132\031.greptime.v1.AddFu" + - "lltextsH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014c" + - "atalog_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.g" + - "reptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001" + - "(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_nam" + - "e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_i" + - "f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr" + - "eptime.v1.CreateDatabaseExpr.OptionsEntr" + - "y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + - "\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo" + - "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab" + - "le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti" + - "me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat" + - "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016" + - "drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad" + - "d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"" + - "<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g" + - "reptime.v1.DropColumn\"O\n\021ChangeColumnTyp" + - "es\022:\n\023change_column_types\030\001 \003(\0132\035.grepti" + - "me.v1.ChangeColumnType\"?\n\014AddFulltexts\022/" + - "\n\radd_fulltexts\030\001 \003(\0132\030.greptime.v1.AddF" + - "ulltext\"%\n\013RenameTable\022\026\n\016new_table_name" + - "\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132" + - "\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001(" + - "\0132\036.greptime.v1.AddColumnLocation\"\236\001\n\020Ch" + - "angeColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013t" + - "arget_type\030\002 \001(\0162\033.greptime.v1.ColumnDat" + - "aType\022C\n\025target_type_extension\030\003 \001(\0132$.g" + - "reptime.v1.ColumnDataTypeExtension\"\212\001\n\013A" + - "ddFulltext\022\023\n\013column_name\030\001 \001(\t\0226\n\007optio" + - "ns\030\002 \003(\0132%.greptime.v1.AddFulltext.Optio" + - "nsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"\032\n\nDropColumn\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\002" + - "id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\t" + - "data_type\030\002 \001(\0162\033.greptime.v1.ColumnData" + - "Type\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_con" + - "straint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.g" + - "reptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t" + - "\022@\n\022datatype_extension\030\007 \001(\0132$.greptime." + - "v1.ColumnDataTypeExtension\022+\n\007options\030\010 " + - "\001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021AddC" + - "olumnLocation\022B\n\rlocation_type\030\001 \001(\0162+.g" + - "reptime.v1.AddColumnLocation.LocationTyp" + - "e\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Location" + - "Type\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptim" + - "e.v1B\003DdlZ5github.com/GreptimeTeam/grept" + - "ime-proto/go/greptime/v1b\006proto3" + "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\0220\n" + + "\014add_fulltext\030\010 \001(\0132\030.greptime.v1.AddFul" + + "ltextH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014cat" + + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" + + "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" + + "ptime.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\007options\030\004 \003(\0132,.grep" + + "time.v1.CreateDatabaseExpr.OptionsEntry\032" + + ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + + "\001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_" + + "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable" + + "_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime" + + ".v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catal" + + "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" + + "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" + + "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n" + + "\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" + + "ptime.v1.DropColumn\"O\n\021ChangeColumnTypes" + + "\022:\n\023change_column_types\030\001 \003(\0132\035.greptime" + + ".v1.ChangeColumnType\"\212\001\n\013AddFulltext\022\023\n\013" + + "column_name\030\001 \001(\t\0226\n\007options\030\002 \003(\0132%.gre" + + "ptime.v1.AddFulltext.OptionsEntry\032.\n\014Opt" + + "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t" + + "\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grep" + + "time.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.gr" + + "eptime.v1.AddColumnLocation\"\236\001\n\020ChangeCo" + + "lumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_" + + "type\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022" + + "C\n\025target_type_extension\030\003 \001(\0132$.greptim" + + "e.v1.ColumnDataTypeExtension\"\032\n\nDropColu" + + "mn\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\tColumnDef\022\014\n\004n" + + "ame\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime." + + "v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032" + + "\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic_t" + + "ype\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007" + + "comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(" + + "\0132$.greptime.v1.ColumnDataTypeExtension\022" + + "+\n\007options\030\010 \001(\0132\032.greptime.v1.ColumnOpt" + + "ions\"\230\001\n\021AddColumnLocation\022B\n\rlocation_t" + + "ype\030\001 \001(\0162+.greptime.v1.AddColumnLocatio" + + "n.LocationType\022\031\n\021after_column_name\030\002 \001(" + + "\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001B" + + "L\n\016io.greptime.v1B\003DdlZ5github.com/Grept" + + "imeTeam/greptime-proto/go/greptime/v1b\006p" + + "roto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -28454,7 +27653,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", "AddFulltexts", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ChangeColumnTypes", "AddFulltext", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -28503,12 +27702,18 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeColumnTypes_descriptor, new java.lang.String[] { "ChangeColumnTypes", }); - internal_static_greptime_v1_AddFulltexts_descriptor = + internal_static_greptime_v1_AddFulltext_descriptor = getDescriptor().getMessageTypes().get(14); - internal_static_greptime_v1_AddFulltexts_fieldAccessorTable = new + internal_static_greptime_v1_AddFulltext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_AddFulltext_descriptor, + new java.lang.String[] { "ColumnName", "Options", }); + internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor = + internal_static_greptime_v1_AddFulltext_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_AddFulltext_OptionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_AddFulltexts_descriptor, - new java.lang.String[] { "AddFulltexts", }); + internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_RenameTable_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_greptime_v1_RenameTable_fieldAccessorTable = new @@ -28527,44 +27732,32 @@ 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_AddFulltext_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_greptime_v1_AddFulltext_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_AddFulltext_descriptor, - new java.lang.String[] { "ColumnName", "Options", }); - internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor = - internal_static_greptime_v1_AddFulltext_descriptor.getNestedTypes().get(0); - internal_static_greptime_v1_AddFulltext_OptionsEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_DropColumn_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(18); 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(20); + getDescriptor().getMessageTypes().get(19); 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(21); + getDescriptor().getMessageTypes().get(20); 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(22); + getDescriptor().getMessageTypes().get(21); 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(23); + getDescriptor().getMessageTypes().get(22); 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 0e986955..3149796d 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.region.ChangeFulltext change_fulltex = 6; + * @return Whether the changeFulltex field is set. + */ + boolean hasChangeFulltex(); + /** + * .greptime.v1.region.ChangeFulltext change_fulltex = 6; + * @return The changeFulltex. + */ + io.greptime.v1.region.Server.ChangeFulltext getChangeFulltex(); + /** + * .greptime.v1.region.ChangeFulltext change_fulltex = 6; + */ + io.greptime.v1.region.Server.ChangeFulltextOrBuilder getChangeFulltexOrBuilder(); + /** *
      * The version of the schema before applying the alteration.
@@ -16542,6 +16557,20 @@ private AlterRequest(
               kindCase_ = 5;
               break;
             }
+            case 50: {
+              io.greptime.v1.region.Server.ChangeFulltext.Builder subBuilder = null;
+              if (kindCase_ == 6) {
+                subBuilder = ((io.greptime.v1.region.Server.ChangeFulltext) kind_).toBuilder();
+              }
+              kind_ =
+                  input.readMessage(io.greptime.v1.region.Server.ChangeFulltext.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((io.greptime.v1.region.Server.ChangeFulltext) 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_FULLTEX(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_FULLTEX;
           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_FULLTEX_FIELD_NUMBER = 6;
+    /**
+     * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+     * @return Whether the changeFulltex field is set.
+     */
+    @java.lang.Override
+    public boolean hasChangeFulltex() {
+      return kindCase_ == 6;
+    }
+    /**
+     * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+     * @return The changeFulltex.
+     */
+    @java.lang.Override
+    public io.greptime.v1.region.Server.ChangeFulltext getChangeFulltex() {
+      if (kindCase_ == 6) {
+         return (io.greptime.v1.region.Server.ChangeFulltext) kind_;
+      }
+      return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+    }
+    /**
+     * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+     */
+    @java.lang.Override
+    public io.greptime.v1.region.Server.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
+      if (kindCase_ == 6) {
+         return (io.greptime.v1.region.Server.ChangeFulltext) kind_;
+      }
+      return io.greptime.v1.region.Server.ChangeFulltext.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.region.Server.ChangeFulltext) 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.region.Server.ChangeFulltext) 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 (!getChangeFulltex()
+              .equals(other.getChangeFulltex())) 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_FULLTEX_FIELD_NUMBER;
+          hash = (53 * hash) + getChangeFulltex().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 (changeFulltexBuilder_ == null) {
+            result.kind_ = kind_;
+          } else {
+            result.kind_ = changeFulltexBuilder_.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_FULLTEX: {
+            mergeChangeFulltex(other.getChangeFulltex());
+            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.region.Server.ChangeFulltext, io.greptime.v1.region.Server.ChangeFulltext.Builder, io.greptime.v1.region.Server.ChangeFulltextOrBuilder> changeFulltexBuilder_;
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * @return Whether the changeFulltex field is set.
+       */
+      @java.lang.Override
+      public boolean hasChangeFulltex() {
+        return kindCase_ == 6;
+      }
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * @return The changeFulltex.
+       */
+      @java.lang.Override
+      public io.greptime.v1.region.Server.ChangeFulltext getChangeFulltex() {
+        if (changeFulltexBuilder_ == null) {
+          if (kindCase_ == 6) {
+            return (io.greptime.v1.region.Server.ChangeFulltext) kind_;
+          }
+          return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+        } else {
+          if (kindCase_ == 6) {
+            return changeFulltexBuilder_.getMessage();
+          }
+          return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       */
+      public Builder setChangeFulltex(io.greptime.v1.region.Server.ChangeFulltext value) {
+        if (changeFulltexBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          kind_ = value;
+          onChanged();
+        } else {
+          changeFulltexBuilder_.setMessage(value);
+        }
+        kindCase_ = 6;
+        return this;
+      }
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       */
+      public Builder setChangeFulltex(
+          io.greptime.v1.region.Server.ChangeFulltext.Builder builderForValue) {
+        if (changeFulltexBuilder_ == null) {
+          kind_ = builderForValue.build();
+          onChanged();
+        } else {
+          changeFulltexBuilder_.setMessage(builderForValue.build());
+        }
+        kindCase_ = 6;
+        return this;
+      }
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       */
+      public Builder mergeChangeFulltex(io.greptime.v1.region.Server.ChangeFulltext value) {
+        if (changeFulltexBuilder_ == null) {
+          if (kindCase_ == 6 &&
+              kind_ != io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance()) {
+            kind_ = io.greptime.v1.region.Server.ChangeFulltext.newBuilder((io.greptime.v1.region.Server.ChangeFulltext) kind_)
+                .mergeFrom(value).buildPartial();
+          } else {
+            kind_ = value;
+          }
+          onChanged();
+        } else {
+          if (kindCase_ == 6) {
+            changeFulltexBuilder_.mergeFrom(value);
+          } else {
+            changeFulltexBuilder_.setMessage(value);
+          }
+        }
+        kindCase_ = 6;
+        return this;
+      }
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       */
+      public Builder clearChangeFulltex() {
+        if (changeFulltexBuilder_ == null) {
+          if (kindCase_ == 6) {
+            kindCase_ = 0;
+            kind_ = null;
+            onChanged();
+          }
+        } else {
+          if (kindCase_ == 6) {
+            kindCase_ = 0;
+            kind_ = null;
+          }
+          changeFulltexBuilder_.clear();
+        }
+        return this;
+      }
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       */
+      public io.greptime.v1.region.Server.ChangeFulltext.Builder getChangeFulltexBuilder() {
+        return getChangeFulltexFieldBuilder().getBuilder();
+      }
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       */
+      @java.lang.Override
+      public io.greptime.v1.region.Server.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
+        if ((kindCase_ == 6) && (changeFulltexBuilder_ != null)) {
+          return changeFulltexBuilder_.getMessageOrBuilder();
+        } else {
+          if (kindCase_ == 6) {
+            return (io.greptime.v1.region.Server.ChangeFulltext) kind_;
+          }
+          return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       */
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.region.Server.ChangeFulltext, io.greptime.v1.region.Server.ChangeFulltext.Builder, io.greptime.v1.region.Server.ChangeFulltextOrBuilder> 
+          getChangeFulltexFieldBuilder() {
+        if (changeFulltexBuilder_ == null) {
+          if (!(kindCase_ == 6)) {
+            kind_ = io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+          }
+          changeFulltexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.region.Server.ChangeFulltext, io.greptime.v1.region.Server.ChangeFulltext.Builder, io.greptime.v1.region.Server.ChangeFulltextOrBuilder>(
+                  (io.greptime.v1.region.Server.ChangeFulltext) kind_,
+                  getParentForChildren(),
+                  isClean());
+          kind_ = null;
+        }
+        kindCase_ = 6;
+        onChanged();;
+        return changeFulltexBuilder_;
+      }
+
       private long schemaVersion_ ;
       /**
        * 
@@ -21198,34 +21428,79 @@ public io.greptime.v1.region.Server.FlushRequest getDefaultInstanceForType() {
 
   }
 
-  public interface RegularOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:greptime.v1.region.Regular)
+  public interface ChangeFulltextOrBuilder extends
+      // @@protoc_insertion_point(interface_extends:greptime.v1.region.ChangeFulltext)
       com.google.protobuf.MessageOrBuilder {
+
+    /**
+     * string column_name = 1;
+     * @return The columnName.
+     */
+    java.lang.String getColumnName();
+    /**
+     * string column_name = 1;
+     * @return The bytes for columnName.
+     */
+    com.google.protobuf.ByteString
+        getColumnNameBytes();
+
+    /**
+     * map<string, string> options = 2;
+     */
+    int getOptionsCount();
+    /**
+     * map<string, string> options = 2;
+     */
+    boolean containsOptions(
+        java.lang.String key);
+    /**
+     * Use {@link #getOptionsMap()} instead.
+     */
+    @java.lang.Deprecated
+    java.util.Map
+    getOptions();
+    /**
+     * map<string, string> options = 2;
+     */
+    java.util.Map
+    getOptionsMap();
+    /**
+     * map<string, string> options = 2;
+     */
+
+    /* nullable */
+java.lang.String getOptionsOrDefault(
+        java.lang.String key,
+        /* nullable */
+java.lang.String defaultValue);
+    /**
+     * map<string, string> options = 2;
+     */
+
+    java.lang.String getOptionsOrThrow(
+        java.lang.String key);
   }
   /**
-   * 
-   */ Regular compaction
-   * 
- * - * Protobuf type {@code greptime.v1.region.Regular} + * Protobuf type {@code greptime.v1.region.ChangeFulltext} */ - public static final class Regular extends + public static final class ChangeFulltext extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.region.Regular) - RegularOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.region.ChangeFulltext) + ChangeFulltextOrBuilder { private static final long serialVersionUID = 0L; - // Use Regular.newBuilder() to construct. - private Regular(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ChangeFulltext.newBuilder() to construct. + private ChangeFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private Regular() { + private ChangeFulltext() { + columnName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new Regular(); + return new ChangeFulltext(); } @java.lang.Override @@ -21233,7 +21508,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private Regular( + private ChangeFulltext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -21241,6 +21516,7 @@ private Regular( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -21251,6 +21527,25 @@ private Regular( case 0: done = true; break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + columnName_ = s; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + options__ = input.readMessage( + OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + options_.getMutableMap().put( + options__.getKey(), options__.getValue()); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -21274,50 +21569,880 @@ private Regular( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.region.Server.internal_static_greptime_v1_region_Regular_descriptor; + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.region.Server.internal_static_greptime_v1_region_Regular_fieldAccessorTable + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.region.Server.Regular.class, io.greptime.v1.region.Server.Regular.Builder.class); - } - - 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; + io.greptime.v1.region.Server.ChangeFulltext.class, io.greptime.v1.region.Server.ChangeFulltext.Builder.class); } + public static final int COLUMN_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object columnName_; + /** + * string column_name = 1; + * @return The columnName. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - unknownFields.writeTo(output); + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } } - + /** + * string column_name = 1; + * @return The bytes for columnName. + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } + public static final int OPTIONS_FIELD_NUMBER = 2; + private static final class OptionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_OptionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } + /** + * map<string, string> options = 2; + */ + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); + } + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); + } + /** + * map<string, string> options = 2; + */ + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); + } + /** + * map<string, string> options = 2; + */ + @java.lang.Override + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> options = 2; + */ + @java.lang.Override + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetOptions(), + OptionsDefaultEntryHolder.defaultEntry, + 2); + 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(columnName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); + } + for (java.util.Map.Entry entry + : internalGetOptions().getMap().entrySet()) { + com.google.protobuf.MapEntry + options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, options__); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.region.Server.ChangeFulltext)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.ChangeFulltext other = (io.greptime.v1.region.Server.ChangeFulltext) obj; + + if (!getColumnName() + .equals(other.getColumnName())) return false; + if (!internalGetOptions().equals( + other.internalGetOptions())) 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) + COLUMN_NAME_FIELD_NUMBER; + hash = (53 * hash) + getColumnName().hashCode(); + if (!internalGetOptions().getMap().isEmpty()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.ChangeFulltext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.region.Server.ChangeFulltext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.region.ChangeFulltext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.ChangeFulltext) + io.greptime.v1.region.Server.ChangeFulltextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.ChangeFulltext.class, io.greptime.v1.region.Server.ChangeFulltext.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.ChangeFulltext.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(); + columnName_ = ""; + + internalGetMutableOptions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.ChangeFulltext getDefaultInstanceForType() { + return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.ChangeFulltext build() { + io.greptime.v1.region.Server.ChangeFulltext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.ChangeFulltext buildPartial() { + io.greptime.v1.region.Server.ChangeFulltext result = new io.greptime.v1.region.Server.ChangeFulltext(this); + int from_bitField0_ = bitField0_; + result.columnName_ = columnName_; + result.options_ = internalGetOptions(); + result.options_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.region.Server.ChangeFulltext) { + return mergeFrom((io.greptime.v1.region.Server.ChangeFulltext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.ChangeFulltext other) { + if (other == io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); + } + internalGetMutableOptions().mergeFrom( + other.internalGetOptions()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.region.Server.ChangeFulltext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.ChangeFulltext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object columnName_ = ""; + /** + * string column_name = 1; + * @return The columnName. + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; + onChanged(); + return this; + } + /** + * string column_name = 1; + * @return This builder for chaining. + */ + public Builder clearColumnName() { + + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); + return this; + } + /** + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> options_; + private com.google.protobuf.MapField + internalGetOptions() { + if (options_ == null) { + return com.google.protobuf.MapField.emptyMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + return options_; + } + private com.google.protobuf.MapField + internalGetMutableOptions() { + onChanged();; + if (options_ == null) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + } + if (!options_.isMutable()) { + options_ = options_.copy(); + } + return options_; + } + + public int getOptionsCount() { + return internalGetOptions().getMap().size(); + } + /** + * map<string, string> options = 2; + */ + + @java.lang.Override + public boolean containsOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetOptions().getMap().containsKey(key); + } + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getOptions() { + return getOptionsMap(); + } + /** + * map<string, string> options = 2; + */ + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); + } + /** + * map<string, string> options = 2; + */ + @java.lang.Override + + public java.lang.String getOptionsOrDefault( + java.lang.String key, + java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> options = 2; + */ + @java.lang.Override + + public java.lang.String getOptionsOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetOptions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearOptions() { + internalGetMutableOptions().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> options = 2; + */ + + public Builder removeOptions( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableOptions().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableOptions() { + return internalGetMutableOptions().getMutableMap(); + } + /** + * map<string, string> options = 2; + */ + public Builder putOptions( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { + throw new NullPointerException("map value"); +} + + internalGetMutableOptions().getMutableMap() + .put(key, value); + return this; + } + /** + * map<string, string> options = 2; + */ + + public Builder putAllOptions( + java.util.Map values) { + internalGetMutableOptions().getMutableMap() + .putAll(values); + 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.region.ChangeFulltext) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.ChangeFulltext) + private static final io.greptime.v1.region.Server.ChangeFulltext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.ChangeFulltext(); + } + + public static io.greptime.v1.region.Server.ChangeFulltext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeFulltext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeFulltext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.region.Server.ChangeFulltext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RegularOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.Regular) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   */ Regular compaction
+   * 
+ * + * Protobuf type {@code greptime.v1.region.Regular} + */ + public static final class Regular extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.Regular) + RegularOrBuilder { + private static final long serialVersionUID = 0L; + // Use Regular.newBuilder() to construct. + private Regular(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Regular() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Regular(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Regular( + 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; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_Regular_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_Regular_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.Regular.class, io.greptime.v1.region.Server.Regular.Builder.class); + } + + 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 { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } if (!(obj instanceof io.greptime.v1.region.Server.Regular)) { return super.equals(obj); } @@ -24470,6 +25595,16 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType() private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_region_FlushRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_ChangeFulltext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_ChangeFulltext_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_ChangeFulltext_OptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_ChangeFulltext_OptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_region_Regular_descriptor; private static final @@ -24564,34 +25699,40 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType() "OptionsEntry\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 .gre" + - "ptime.v1.region.AlterRequest\"\360\001\n\014AlterRe" + + "ptime.v1.region.AlterRequest\"\256\002\n\014AlterRe" + "quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030" + "\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022" + "7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi" + "on.DropColumnsH\000\022=\n\023change_column_types\030" + "\005 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022" + - "\026\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddCo" + - "lumns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1" + - ".region.AddColumn\"C\n\013DropColumns\0224\n\014drop" + - "_columns\030\001 \003(\0132\036.greptime.v1.region.Drop" + - "Column\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132" + - "#.greptime.v1.region.RegionColumnDef\0220\n\010" + - "location\030\003 \001(\0132\036.greptime.v1.AddColumnLo" + - "cation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Fl" + - "ushRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular" + - "\"&\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.Reg" + - "ularH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime" + - ".v1.region.StrictWindowH\000B\t\n\007options\"$\n\017" + - "TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Re" + - "gionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grep" + - "time.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006" + - "Region\022O\n\006Handle\022!.greptime.v1.region.Re" + - "gionRequest\032\".greptime.v1.region.RegionR" + - "esponseB]\n\025io.greptime.v1.regionB\006Server" + - "Z options = 2; +} + /// Regular compaction message Regular {} From f8d6959312a772e939eecfb80814fead118c281a Mon Sep 17 00:00:00 2001 From: irenjj Date: Sun, 1 Sep 2024 21:13:24 +0800 Subject: [PATCH 04/12] update --- proto/greptime/v1/ddl.proto | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 6e1b7f1e..55f55e2c 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -109,7 +109,7 @@ message AlterExpr { DropColumns drop_columns = 5; RenameTable rename_table = 6; ChangeColumnTypes change_column_types = 7; - AddFulltext add_fulltext = 8; + ChangeFulltext change_fulltext = 8; } } @@ -147,7 +147,7 @@ message DropColumns { repeated DropColumn drop_columns = 1; } message ChangeColumnTypes { repeated ChangeColumnType change_column_types = 1; } -message AddFulltext { +message ChangeFulltext { string column_name = 1; map options = 2; } From 2ae26c3ae30b465809578092f81e8a2e92d43790 Mon Sep 17 00:00:00 2001 From: irenjj Date: Sun, 1 Sep 2024 21:16:15 +0800 Subject: [PATCH 05/12] fix make --- c++/greptime/v1/ddl.pb.cc | 306 +++++++-------- c++/greptime/v1/ddl.pb.h | 250 ++++++------ go/greptime/v1/ddl.pb.go | 339 ++++++++--------- java/src/main/java/io/greptime/v1/Ddl.java | 422 ++++++++++----------- 4 files changed, 659 insertions(+), 658 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 88bffed8..90a69622 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -289,31 +289,31 @@ struct ChangeColumnTypesDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; -PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse( +PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} -struct AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() +struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {} + ~ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {} union { - AddFulltext_OptionsEntry_DoNotUse _instance; + ChangeFulltext_OptionsEntry_DoNotUse _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _AddFulltext_OptionsEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR AddFulltext::AddFulltext( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR ChangeFulltext::ChangeFulltext( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_._cached_size_)*/{}} {} -struct AddFulltextDefaultTypeInternal { - PROTOBUF_CONSTEXPR AddFulltextDefaultTypeInternal() +struct ChangeFulltextDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeFulltextDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~AddFulltextDefaultTypeInternal() {} + ~ChangeFulltextDefaultTypeInternal() {} union { - AddFulltext _instance; + ChangeFulltext _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddFulltextDefaultTypeInternal _AddFulltext_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_; PROTOBUF_CONSTEXPR RenameTable::RenameTable( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.new_table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -628,24 +628,24 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _impl_.change_column_types_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse, value_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, value_), 0, 1, ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _impl_.column_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::AddFulltext, _impl_.options_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::RenameTable, _internal_metadata_), ~0u, // no _extensions_ @@ -732,8 +732,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 171, -1, -1, sizeof(::greptime::v1::AddColumns)}, { 178, -1, -1, sizeof(::greptime::v1::DropColumns)}, { 185, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, - { 192, 200, -1, sizeof(::greptime::v1::AddFulltext_OptionsEntry_DoNotUse)}, - { 202, -1, -1, sizeof(::greptime::v1::AddFulltext)}, + { 192, 200, -1, sizeof(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse)}, + { 202, -1, -1, sizeof(::greptime::v1::ChangeFulltext)}, { 210, -1, -1, sizeof(::greptime::v1::RenameTable)}, { 217, -1, -1, sizeof(::greptime::v1::AddColumn)}, { 225, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, @@ -762,8 +762,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_AddColumns_default_instance_._instance, &::greptime::v1::_DropColumns_default_instance_._instance, &::greptime::v1::_ChangeColumnTypes_default_instance_._instance, - &::greptime::v1::_AddFulltext_OptionsEntry_DoNotUse_default_instance_._instance, - &::greptime::v1::_AddFulltext_default_instance_._instance, + &::greptime::v1::_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::_ChangeFulltext_default_instance_._instance, &::greptime::v1::_RenameTable_default_instance_._instance, &::greptime::v1::_AddColumn_default_instance_._instance, &::greptime::v1::_ChangeColumnType_default_instance_._instance, @@ -821,69 +821,69 @@ 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\"\327\002\n\tAlterE" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\335\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\000\0220\n" - "\014add_fulltext\030\010 \001(\0132\030.greptime.v1.AddFul" - "ltextH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014cat" - "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" - "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" - "ptime.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\007options\030\004 \003(\0132,.grep" - "time.v1.CreateDatabaseExpr.OptionsEntry\032" - ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " - "\001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_" - "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable" - "_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime" - ".v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catal" - "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" - "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" - "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n" - "\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" - "ptime.v1.DropColumn\"O\n\021ChangeColumnTypes" - "\022:\n\023change_column_types\030\001 \003(\0132\035.greptime" - ".v1.ChangeColumnType\"\212\001\n\013AddFulltext\022\023\n\013" - "column_name\030\001 \001(\t\0226\n\007options\030\002 \003(\0132%.gre" - "ptime.v1.AddFulltext.OptionsEntry\032.\n\014Opt" - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - "\001\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t" - "\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grep" - "time.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.gr" - "eptime.v1.AddColumnLocation\"\236\001\n\020ChangeCo" - "lumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_" - "type\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022" - "C\n\025target_type_extension\030\003 \001(\0132$.greptim" - "e.v1.ColumnDataTypeExtension\"\032\n\nDropColu" - "mn\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\tColumnDef\022\014\n\004n" - "ame\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime." - "v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032" - "\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic_t" - "ype\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007" - "comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(" - "\0132$.greptime.v1.ColumnDataTypeExtension\022" - "+\n\007options\030\010 \001(\0132\032.greptime.v1.ColumnOpt" - "ions\"\230\001\n\021AddColumnLocation\022B\n\rlocation_t" - "ype\030\001 \001(\0162+.greptime.v1.AddColumnLocatio" - "n.LocationType\022\031\n\021after_column_name\030\002 \001(" - "\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001B" - "L\n\016io.greptime.v1B\003DdlZ5github.com/Grept" - "imeTeam/greptime-proto/go/greptime/v1b\006p" - "roto3" + "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\0226\n" + "\017change_fulltext\030\010 \001(\0132\033.greptime.v1.Cha" + "ngeFulltextH\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(\013" + "2\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\024crea" + "te_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132" + ",.greptime.v1.CreateDatabaseExpr.Options" + "Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014ca" + "talog_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.gr" + "eptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n" + "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" + "\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+" + "\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddCol" + "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013" + "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum" + "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr" + "eptime.v1.ChangeColumnType\"\220\001\n\016ChangeFul" + "ltext\022\023\n\013column_name\030\001 \001(\t\0229\n\007options\030\002 " + "\003(\0132(.greptime.v1.ChangeFulltext.Options" + "Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + "lue\030\002 \001(\t:\0028\001\"%\n\013RenameTable\022\026\n\016new_tabl" + "e_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030" + "\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010locatio" + "n\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.Col" + "umnDataType\022C\n\025target_type_extension\030\003 \001" + "(\0132$.greptime.v1.ColumnDataTypeExtension" + "\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022" + "\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tCo" + "lumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\016" + "2\033.greptime.v1.ColumnDataType\022\023\n\013is_null" + "able\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220" + "\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Sema" + "nticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_ex" + "tension\030\007 \001(\0132$.greptime.v1.ColumnDataTy" + "peExtension\022+\n\007options\030\010 \001(\0132\032.greptime." + "v1.ColumnOptions\"\230\001\n\021AddColumnLocation\022B" + "\n\rlocation_type\030\001 \001(\0162+.greptime.v1.AddC" + "olumnLocation.LocationType\022\031\n\021after_colu" + "mn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000" + "\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5gith" + "ub.com/GreptimeTeam/greptime-proto/go/gr" + "eptime/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, 4045, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 4057, 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, 27, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -4221,7 +4221,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::AddFulltext& add_fulltext(const AlterExpr* msg); + static const ::greptime::v1::ChangeFulltext& change_fulltext(const AlterExpr* msg); }; const ::greptime::v1::AddColumns& @@ -4240,9 +4240,9 @@ const ::greptime::v1::ChangeColumnTypes& AlterExpr::_Internal::change_column_types(const AlterExpr* msg) { return *msg->_impl_.kind_.change_column_types_; } -const ::greptime::v1::AddFulltext& -AlterExpr::_Internal::add_fulltext(const AlterExpr* msg) { - return *msg->_impl_.kind_.add_fulltext_; +const ::greptime::v1::ChangeFulltext& +AlterExpr::_Internal::change_fulltext(const AlterExpr* msg) { + return *msg->_impl_.kind_.change_fulltext_; } void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); @@ -4304,20 +4304,20 @@ 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_add_fulltext(::greptime::v1::AddFulltext* add_fulltext) { +void AlterExpr::set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (add_fulltext) { + if (change_fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(add_fulltext); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_fulltext); if (message_arena != submessage_arena) { - add_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, add_fulltext, submessage_arena); + change_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_fulltext, submessage_arena); } - set_has_add_fulltext(); - _impl_.kind_.add_fulltext_ = add_fulltext; + set_has_change_fulltext(); + _impl_.kind_.change_fulltext_ = change_fulltext; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.add_fulltext) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_fulltext) } AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -4383,9 +4383,9 @@ AlterExpr::AlterExpr(const AlterExpr& from) from._internal_change_column_types()); break; } - case kAddFulltext: { - _this->_internal_mutable_add_fulltext()->::greptime::v1::AddFulltext::MergeFrom( - from._internal_add_fulltext()); + case kChangeFulltext: { + _this->_internal_mutable_change_fulltext()->::greptime::v1::ChangeFulltext::MergeFrom( + from._internal_change_fulltext()); break; } case KIND_NOT_SET: { @@ -4472,9 +4472,9 @@ void AlterExpr::clear_kind() { } break; } - case kAddFulltext: { + case kChangeFulltext: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.add_fulltext_; + delete _impl_.kind_.change_fulltext_; } break; } @@ -4567,10 +4567,10 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; - // .greptime.v1.AddFulltext add_fulltext = 8; + // .greptime.v1.ChangeFulltext change_fulltext = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_add_fulltext(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_change_fulltext(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -4662,11 +4662,11 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::change_column_types(this).GetCachedSize(), target, stream); } - // .greptime.v1.AddFulltext add_fulltext = 8; - if (_internal_has_add_fulltext()) { + // .greptime.v1.ChangeFulltext change_fulltext = 8; + if (_internal_has_change_fulltext()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, _Internal::add_fulltext(this), - _Internal::add_fulltext(this).GetCachedSize(), target, stream); + InternalWriteMessage(8, _Internal::change_fulltext(this), + _Internal::change_fulltext(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -4735,11 +4735,11 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.change_column_types_); break; } - // .greptime.v1.AddFulltext add_fulltext = 8; - case kAddFulltext: { + // .greptime.v1.ChangeFulltext change_fulltext = 8; + case kChangeFulltext: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.add_fulltext_); + *_impl_.kind_.change_fulltext_); break; } case KIND_NOT_SET: { @@ -4794,9 +4794,9 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT from._internal_change_column_types()); break; } - case kAddFulltext: { - _this->_internal_mutable_add_fulltext()->::greptime::v1::AddFulltext::MergeFrom( - from._internal_add_fulltext()); + case kChangeFulltext: { + _this->_internal_mutable_change_fulltext()->::greptime::v1::ChangeFulltext::MergeFrom( + from._internal_change_fulltext()); break; } case KIND_NOT_SET: { @@ -6764,13 +6764,13 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const { // =================================================================== -AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse() {} -AddFulltext_OptionsEntry_DoNotUse::AddFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) +ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse() {} +ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) : SuperType(arena) {} -void AddFulltext_OptionsEntry_DoNotUse::MergeFrom(const AddFulltext_OptionsEntry_DoNotUse& other) { +void ChangeFulltext_OptionsEntry_DoNotUse::MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other) { MergeFromInternal(other); } -::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext_OptionsEntry_DoNotUse::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext_OptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); @@ -6778,22 +6778,22 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext_OptionsEntry_DoNotUse::GetMetadata // =================================================================== -class AddFulltext::_Internal { +class ChangeFulltext::_Internal { public: }; -AddFulltext::AddFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ChangeFulltext::ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &AddFulltext::ArenaDtor); + arena->OwnCustomDestructor(this, &ChangeFulltext::ArenaDtor); } - // @@protoc_insertion_point(arena_constructor:greptime.v1.AddFulltext) + // @@protoc_insertion_point(arena_constructor:greptime.v1.ChangeFulltext) } -AddFulltext::AddFulltext(const AddFulltext& from) +ChangeFulltext::ChangeFulltext(const ChangeFulltext& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - AddFulltext* const _this = this; (void)_this; + ChangeFulltext* const _this = this; (void)_this; new (&_impl_) Impl_{ /*decltype(_impl_.options_)*/{} , decltype(_impl_.column_name_){} @@ -6809,10 +6809,10 @@ AddFulltext::AddFulltext(const AddFulltext& from) _this->_impl_.column_name_.Set(from._internal_column_name(), _this->GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.AddFulltext) + // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeFulltext) } -inline void AddFulltext::SharedCtor( +inline void ChangeFulltext::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -6827,8 +6827,8 @@ inline void AddFulltext::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -AddFulltext::~AddFulltext() { - // @@protoc_insertion_point(destructor:greptime.v1.AddFulltext) +ChangeFulltext::~ChangeFulltext() { + // @@protoc_insertion_point(destructor:greptime.v1.ChangeFulltext) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; ArenaDtor(this); @@ -6837,23 +6837,23 @@ AddFulltext::~AddFulltext() { SharedDtor(); } -inline void AddFulltext::SharedDtor() { +inline void ChangeFulltext::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.options_.Destruct(); _impl_.options_.~MapField(); _impl_.column_name_.Destroy(); } -void AddFulltext::ArenaDtor(void* object) { - AddFulltext* _this = reinterpret_cast< AddFulltext* >(object); +void ChangeFulltext::ArenaDtor(void* object) { + ChangeFulltext* _this = reinterpret_cast< ChangeFulltext* >(object); _this->_impl_.options_.Destruct(); } -void AddFulltext::SetCachedSize(int size) const { +void ChangeFulltext::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void AddFulltext::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.AddFulltext) +void ChangeFulltext::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeFulltext) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -6863,7 +6863,7 @@ void AddFulltext::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AddFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -6875,7 +6875,7 @@ const char* AddFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* c auto str = _internal_mutable_column_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.AddFulltext.column_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeFulltext.column_name")); } else goto handle_unusual; continue; @@ -6915,9 +6915,9 @@ const char* AddFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* c #undef CHK_ } -uint8_t* AddFulltext::_InternalSerialize( +uint8_t* ChangeFulltext::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddFulltext) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeFulltext) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -6926,7 +6926,7 @@ uint8_t* AddFulltext::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.AddFulltext.column_name"); + "greptime.v1.ChangeFulltext.column_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_column_name(), target); } @@ -6934,18 +6934,18 @@ uint8_t* AddFulltext::_InternalSerialize( // map options = 2; if (!this->_internal_options().empty()) { using MapType = ::_pb::Map; - using WireHelper = AddFulltext_OptionsEntry_DoNotUse::Funcs; + using WireHelper = ChangeFulltext_OptionsEntry_DoNotUse::Funcs; const auto& map_field = this->_internal_options(); auto check_utf8 = [](const MapType::value_type& entry) { (void)entry; ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( entry.first.data(), static_cast(entry.first.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.AddFulltext.OptionsEntry.key"); + "greptime.v1.ChangeFulltext.OptionsEntry.key"); ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( entry.second.data(), static_cast(entry.second.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.AddFulltext.OptionsEntry.value"); + "greptime.v1.ChangeFulltext.OptionsEntry.value"); }; if (stream->IsSerializationDeterministic() && map_field.size() > 1) { @@ -6965,12 +6965,12 @@ uint8_t* AddFulltext::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.AddFulltext) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeFulltext) return target; } -size_t AddFulltext::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddFulltext) +size_t ChangeFulltext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeFulltext) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -6983,7 +6983,7 @@ size_t AddFulltext::ByteSizeLong() const { for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator it = this->_internal_options().begin(); it != this->_internal_options().end(); ++it) { - total_size += AddFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + total_size += ChangeFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); } // string column_name = 1; @@ -6996,17 +6996,17 @@ size_t AddFulltext::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddFulltext::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeFulltext::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - AddFulltext::MergeImpl + ChangeFulltext::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddFulltext::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeFulltext::GetClassData() const { return &_class_data_; } -void AddFulltext::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.AddFulltext) +void ChangeFulltext::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.ChangeFulltext) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -7018,18 +7018,18 @@ void AddFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void AddFulltext::CopyFrom(const AddFulltext& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddFulltext) +void ChangeFulltext::CopyFrom(const ChangeFulltext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeFulltext) if (&from == this) return; Clear(); MergeFrom(from); } -bool AddFulltext::IsInitialized() const { +bool ChangeFulltext::IsInitialized() const { return true; } -void AddFulltext::InternalSwap(AddFulltext* other) { +void ChangeFulltext::InternalSwap(ChangeFulltext* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -7041,7 +7041,7 @@ void AddFulltext::InternalSwap(AddFulltext* other) { ); } -::PROTOBUF_NAMESPACE_ID::Metadata AddFulltext::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); @@ -9120,13 +9120,13 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnTypes >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::AddFulltext* -Arena::CreateMaybeMessage< ::greptime::v1::AddFulltext >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::AddFulltext >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext* +Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ChangeFulltext >(arena); } template<> PROTOBUF_NOINLINE ::greptime::v1::RenameTable* Arena::CreateMaybeMessage< ::greptime::v1::RenameTable >(Arena* arena) { diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 7fccaf44..a3db71b4 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -60,12 +60,6 @@ extern AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_ class AddColumns; struct AddColumnsDefaultTypeInternal; extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_; -class AddFulltext; -struct AddFulltextDefaultTypeInternal; -extern AddFulltextDefaultTypeInternal _AddFulltext_default_instance_; -class AddFulltext_OptionsEntry_DoNotUse; -struct AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal; -extern AddFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _AddFulltext_OptionsEntry_DoNotUse_default_instance_; class AlterExpr; struct AlterExprDefaultTypeInternal; extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_; @@ -75,6 +69,12 @@ extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; class ChangeColumnTypes; struct ChangeColumnTypesDefaultTypeInternal; extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; +class ChangeFulltext; +struct ChangeFulltextDefaultTypeInternal; +extern ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_; +class ChangeFulltext_OptionsEntry_DoNotUse; +struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal; +extern ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_; class ColumnDef; struct ColumnDefDefaultTypeInternal; extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_; @@ -138,11 +138,11 @@ PROTOBUF_NAMESPACE_OPEN template<> ::greptime::v1::AddColumn* Arena::CreateMaybeMessage<::greptime::v1::AddColumn>(Arena*); template<> ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage<::greptime::v1::AddColumnLocation>(Arena*); template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::AddColumns>(Arena*); -template<> ::greptime::v1::AddFulltext* Arena::CreateMaybeMessage<::greptime::v1::AddFulltext>(Arena*); -template<> ::greptime::v1::AddFulltext_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::AddFulltext_OptionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*); template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*); template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*); +template<> ::greptime::v1::ChangeFulltext* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext>(Arena*); +template<> ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse>(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*); @@ -2019,7 +2019,7 @@ class AlterExpr final : kDropColumns = 5, kRenameTable = 6, kChangeColumnTypes = 7, - kAddFulltext = 8, + kChangeFulltext = 8, KIND_NOT_SET = 0, }; @@ -2108,7 +2108,7 @@ class AlterExpr final : kDropColumnsFieldNumber = 5, kRenameTableFieldNumber = 6, kChangeColumnTypesFieldNumber = 7, - kAddFulltextFieldNumber = 8, + kChangeFulltextFieldNumber = 8, }; // string catalog_name = 1; void clear_catalog_name(); @@ -2224,23 +2224,23 @@ class AlterExpr final : ::greptime::v1::ChangeColumnTypes* change_column_types); ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); - // .greptime.v1.AddFulltext add_fulltext = 8; - bool has_add_fulltext() const; + // .greptime.v1.ChangeFulltext change_fulltext = 8; + bool has_change_fulltext() const; private: - bool _internal_has_add_fulltext() const; + bool _internal_has_change_fulltext() const; public: - void clear_add_fulltext(); - const ::greptime::v1::AddFulltext& add_fulltext() const; - PROTOBUF_NODISCARD ::greptime::v1::AddFulltext* release_add_fulltext(); - ::greptime::v1::AddFulltext* mutable_add_fulltext(); - void set_allocated_add_fulltext(::greptime::v1::AddFulltext* add_fulltext); + void clear_change_fulltext(); + const ::greptime::v1::ChangeFulltext& change_fulltext() const; + PROTOBUF_NODISCARD ::greptime::v1::ChangeFulltext* release_change_fulltext(); + ::greptime::v1::ChangeFulltext* mutable_change_fulltext(); + void set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext); private: - const ::greptime::v1::AddFulltext& _internal_add_fulltext() const; - ::greptime::v1::AddFulltext* _internal_mutable_add_fulltext(); + const ::greptime::v1::ChangeFulltext& _internal_change_fulltext() const; + ::greptime::v1::ChangeFulltext* _internal_mutable_change_fulltext(); public: - void unsafe_arena_set_allocated_add_fulltext( - ::greptime::v1::AddFulltext* add_fulltext); - ::greptime::v1::AddFulltext* unsafe_arena_release_add_fulltext(); + void unsafe_arena_set_allocated_change_fulltext( + ::greptime::v1::ChangeFulltext* change_fulltext); + ::greptime::v1::ChangeFulltext* unsafe_arena_release_change_fulltext(); void clear_kind(); KindCase kind_case() const; @@ -2251,7 +2251,7 @@ class AlterExpr final : void set_has_drop_columns(); void set_has_rename_table(); void set_has_change_column_types(); - void set_has_add_fulltext(); + void set_has_change_fulltext(); inline bool has_kind() const; inline void clear_has_kind(); @@ -2270,7 +2270,7 @@ class AlterExpr final : ::greptime::v1::DropColumns* drop_columns_; ::greptime::v1::RenameTable* rename_table_; ::greptime::v1::ChangeColumnTypes* change_column_types_; - ::greptime::v1::AddFulltext* add_fulltext_; + ::greptime::v1::ChangeFulltext* change_fulltext_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -3587,26 +3587,26 @@ class ChangeColumnTypes final : }; // ------------------------------------------------------------------- -class AddFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - AddFulltext_OptionsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR AddFulltext_OptionsEntry_DoNotUse( + ChangeFulltext_OptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse( ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit AddFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const AddFulltext_OptionsEntry_DoNotUse& other); - static const AddFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_AddFulltext_OptionsEntry_DoNotUse_default_instance_); } + explicit ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other); + static const ChangeFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_); } static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.AddFulltext.OptionsEntry.key"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.ChangeFulltext.OptionsEntry.key"); } static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.AddFulltext.OptionsEntry.value"); + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.ChangeFulltext.OptionsEntry.value"); } using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; @@ -3615,24 +3615,24 @@ class AddFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::intern // ------------------------------------------------------------------- -class AddFulltext final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddFulltext) */ { +class ChangeFulltext final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeFulltext) */ { public: - inline AddFulltext() : AddFulltext(nullptr) {} - ~AddFulltext() override; - explicit PROTOBUF_CONSTEXPR AddFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ChangeFulltext() : ChangeFulltext(nullptr) {} + ~ChangeFulltext() override; + explicit PROTOBUF_CONSTEXPR ChangeFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - AddFulltext(const AddFulltext& from); - AddFulltext(AddFulltext&& from) noexcept - : AddFulltext() { + ChangeFulltext(const ChangeFulltext& from); + ChangeFulltext(ChangeFulltext&& from) noexcept + : ChangeFulltext() { *this = ::std::move(from); } - inline AddFulltext& operator=(const AddFulltext& from) { + inline ChangeFulltext& operator=(const ChangeFulltext& from) { CopyFrom(from); return *this; } - inline AddFulltext& operator=(AddFulltext&& from) noexcept { + inline ChangeFulltext& operator=(ChangeFulltext&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3655,20 +3655,20 @@ class AddFulltext final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddFulltext& default_instance() { + static const ChangeFulltext& default_instance() { return *internal_default_instance(); } - static inline const AddFulltext* internal_default_instance() { - return reinterpret_cast( - &_AddFulltext_default_instance_); + static inline const ChangeFulltext* internal_default_instance() { + return reinterpret_cast( + &_ChangeFulltext_default_instance_); } static constexpr int kIndexInFileMessages = 18; - friend void swap(AddFulltext& a, AddFulltext& b) { + friend void swap(ChangeFulltext& a, ChangeFulltext& b) { a.Swap(&b); } - inline void Swap(AddFulltext* other) { + inline void Swap(ChangeFulltext* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3681,7 +3681,7 @@ class AddFulltext final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddFulltext* other) { + void UnsafeArenaSwap(ChangeFulltext* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3689,14 +3689,14 @@ class AddFulltext final : // implements Message ---------------------------------------------- - AddFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ChangeFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AddFulltext& from); + void CopyFrom(const ChangeFulltext& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AddFulltext& from) { - AddFulltext::MergeImpl(*this, from); + void MergeFrom( const ChangeFulltext& from) { + ChangeFulltext::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3714,15 +3714,15 @@ class AddFulltext final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(AddFulltext* other); + void InternalSwap(ChangeFulltext* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.AddFulltext"; + return "greptime.v1.ChangeFulltext"; } protected: - explicit AddFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); private: static void ArenaDtor(void* object); @@ -3773,7 +3773,7 @@ class AddFulltext final : std::string* _internal_mutable_column_name(); public: - // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltext) + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext) private: class _Internal; @@ -3782,7 +3782,7 @@ class AddFulltext final : typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::MapField< - AddFulltext_OptionsEntry_DoNotUse, + ChangeFulltext_OptionsEntry_DoNotUse, std::string, std::string, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; @@ -8344,77 +8344,77 @@ inline ::greptime::v1::ChangeColumnTypes* AlterExpr::mutable_change_column_types return _msg; } -// .greptime.v1.AddFulltext add_fulltext = 8; -inline bool AlterExpr::_internal_has_add_fulltext() const { - return kind_case() == kAddFulltext; +// .greptime.v1.ChangeFulltext change_fulltext = 8; +inline bool AlterExpr::_internal_has_change_fulltext() const { + return kind_case() == kChangeFulltext; } -inline bool AlterExpr::has_add_fulltext() const { - return _internal_has_add_fulltext(); +inline bool AlterExpr::has_change_fulltext() const { + return _internal_has_change_fulltext(); } -inline void AlterExpr::set_has_add_fulltext() { - _impl_._oneof_case_[0] = kAddFulltext; +inline void AlterExpr::set_has_change_fulltext() { + _impl_._oneof_case_[0] = kChangeFulltext; } -inline void AlterExpr::clear_add_fulltext() { - if (_internal_has_add_fulltext()) { +inline void AlterExpr::clear_change_fulltext() { + if (_internal_has_change_fulltext()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.add_fulltext_; + delete _impl_.kind_.change_fulltext_; } clear_has_kind(); } } -inline ::greptime::v1::AddFulltext* AlterExpr::release_add_fulltext() { - // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.add_fulltext) - if (_internal_has_add_fulltext()) { +inline ::greptime::v1::ChangeFulltext* AlterExpr::release_change_fulltext() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.change_fulltext) + if (_internal_has_change_fulltext()) { clear_has_kind(); - ::greptime::v1::AddFulltext* temp = _impl_.kind_.add_fulltext_; + ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltext_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.add_fulltext_ = nullptr; + _impl_.kind_.change_fulltext_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::AddFulltext& AlterExpr::_internal_add_fulltext() const { - return _internal_has_add_fulltext() - ? *_impl_.kind_.add_fulltext_ - : reinterpret_cast< ::greptime::v1::AddFulltext&>(::greptime::v1::_AddFulltext_default_instance_); +inline const ::greptime::v1::ChangeFulltext& AlterExpr::_internal_change_fulltext() const { + return _internal_has_change_fulltext() + ? *_impl_.kind_.change_fulltext_ + : reinterpret_cast< ::greptime::v1::ChangeFulltext&>(::greptime::v1::_ChangeFulltext_default_instance_); } -inline const ::greptime::v1::AddFulltext& AlterExpr::add_fulltext() const { - // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.add_fulltext) - return _internal_add_fulltext(); +inline const ::greptime::v1::ChangeFulltext& AlterExpr::change_fulltext() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.change_fulltext) + return _internal_change_fulltext(); } -inline ::greptime::v1::AddFulltext* AlterExpr::unsafe_arena_release_add_fulltext() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.add_fulltext) - if (_internal_has_add_fulltext()) { +inline ::greptime::v1::ChangeFulltext* AlterExpr::unsafe_arena_release_change_fulltext() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.change_fulltext) + if (_internal_has_change_fulltext()) { clear_has_kind(); - ::greptime::v1::AddFulltext* temp = _impl_.kind_.add_fulltext_; - _impl_.kind_.add_fulltext_ = nullptr; + ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltext_; + _impl_.kind_.change_fulltext_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterExpr::unsafe_arena_set_allocated_add_fulltext(::greptime::v1::AddFulltext* add_fulltext) { +inline void AlterExpr::unsafe_arena_set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext) { clear_kind(); - if (add_fulltext) { - set_has_add_fulltext(); - _impl_.kind_.add_fulltext_ = add_fulltext; + if (change_fulltext) { + set_has_change_fulltext(); + _impl_.kind_.change_fulltext_ = change_fulltext; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.add_fulltext) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.change_fulltext) } -inline ::greptime::v1::AddFulltext* AlterExpr::_internal_mutable_add_fulltext() { - if (!_internal_has_add_fulltext()) { +inline ::greptime::v1::ChangeFulltext* AlterExpr::_internal_mutable_change_fulltext() { + if (!_internal_has_change_fulltext()) { clear_kind(); - set_has_add_fulltext(); - _impl_.kind_.add_fulltext_ = CreateMaybeMessage< ::greptime::v1::AddFulltext >(GetArenaForAllocation()); + set_has_change_fulltext(); + _impl_.kind_.change_fulltext_ = CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(GetArenaForAllocation()); } - return _impl_.kind_.add_fulltext_; + return _impl_.kind_.change_fulltext_; } -inline ::greptime::v1::AddFulltext* AlterExpr::mutable_add_fulltext() { - ::greptime::v1::AddFulltext* _msg = _internal_mutable_add_fulltext(); - // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.add_fulltext) +inline ::greptime::v1::ChangeFulltext* AlterExpr::mutable_change_fulltext() { + ::greptime::v1::ChangeFulltext* _msg = _internal_mutable_change_fulltext(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.change_fulltext) return _msg; } @@ -9350,44 +9350,44 @@ ChangeColumnTypes::change_column_types() const { // ------------------------------------------------------------------- -// AddFulltext +// ChangeFulltext // string column_name = 1; -inline void AddFulltext::clear_column_name() { +inline void ChangeFulltext::clear_column_name() { _impl_.column_name_.ClearToEmpty(); } -inline const std::string& AddFulltext::column_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.AddFulltext.column_name) +inline const std::string& ChangeFulltext::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.column_name) return _internal_column_name(); } template inline PROTOBUF_ALWAYS_INLINE -void AddFulltext::set_column_name(ArgT0&& arg0, ArgT... args) { +void ChangeFulltext::set_column_name(ArgT0&& arg0, ArgT... args) { _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.AddFulltext.column_name) + // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.column_name) } -inline std::string* AddFulltext::mutable_column_name() { +inline std::string* ChangeFulltext::mutable_column_name() { std::string* _s = _internal_mutable_column_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.AddFulltext.column_name) + // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeFulltext.column_name) return _s; } -inline const std::string& AddFulltext::_internal_column_name() const { +inline const std::string& ChangeFulltext::_internal_column_name() const { return _impl_.column_name_.Get(); } -inline void AddFulltext::_internal_set_column_name(const std::string& value) { +inline void ChangeFulltext::_internal_set_column_name(const std::string& value) { _impl_.column_name_.Set(value, GetArenaForAllocation()); } -inline std::string* AddFulltext::_internal_mutable_column_name() { +inline std::string* ChangeFulltext::_internal_mutable_column_name() { return _impl_.column_name_.Mutable(GetArenaForAllocation()); } -inline std::string* AddFulltext::release_column_name() { - // @@protoc_insertion_point(field_release:greptime.v1.AddFulltext.column_name) +inline std::string* ChangeFulltext::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.ChangeFulltext.column_name) return _impl_.column_name_.Release(); } -inline void AddFulltext::set_allocated_column_name(std::string* column_name) { +inline void ChangeFulltext::set_allocated_column_name(std::string* column_name) { if (column_name != nullptr) { } else { @@ -9399,35 +9399,35 @@ inline void AddFulltext::set_allocated_column_name(std::string* column_name) { _impl_.column_name_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AddFulltext.column_name) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.column_name) } // map options = 2; -inline int AddFulltext::_internal_options_size() const { +inline int ChangeFulltext::_internal_options_size() const { return _impl_.options_.size(); } -inline int AddFulltext::options_size() const { +inline int ChangeFulltext::options_size() const { return _internal_options_size(); } -inline void AddFulltext::clear_options() { +inline void ChangeFulltext::clear_options() { _impl_.options_.Clear(); } inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -AddFulltext::_internal_options() const { +ChangeFulltext::_internal_options() const { return _impl_.options_.GetMap(); } inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -AddFulltext::options() const { - // @@protoc_insertion_point(field_map:greptime.v1.AddFulltext.options) +ChangeFulltext::options() const { + // @@protoc_insertion_point(field_map:greptime.v1.ChangeFulltext.options) return _internal_options(); } inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -AddFulltext::_internal_mutable_options() { +ChangeFulltext::_internal_mutable_options() { return _impl_.options_.MutableMap(); } inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -AddFulltext::mutable_options() { - // @@protoc_insertion_point(field_mutable_map:greptime.v1.AddFulltext.options) +ChangeFulltext::mutable_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.ChangeFulltext.options) return _internal_mutable_options(); } diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 5a547160..1f5cc283 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -797,7 +797,7 @@ type AlterExpr struct { // *AlterExpr_DropColumns // *AlterExpr_RenameTable // *AlterExpr_ChangeColumnTypes - // *AlterExpr_AddFulltext + // *AlterExpr_ChangeFulltext Kind isAlterExpr_Kind `protobuf_oneof:"kind"` } @@ -889,9 +889,9 @@ func (x *AlterExpr) GetChangeColumnTypes() *ChangeColumnTypes { return nil } -func (x *AlterExpr) GetAddFulltext() *AddFulltext { - if x, ok := x.GetKind().(*AlterExpr_AddFulltext); ok { - return x.AddFulltext +func (x *AlterExpr) GetChangeFulltext() *ChangeFulltext { + if x, ok := x.GetKind().(*AlterExpr_ChangeFulltext); ok { + return x.ChangeFulltext } return nil } @@ -916,8 +916,8 @@ type AlterExpr_ChangeColumnTypes struct { ChangeColumnTypes *ChangeColumnTypes `protobuf:"bytes,7,opt,name=change_column_types,json=changeColumnTypes,proto3,oneof"` } -type AlterExpr_AddFulltext struct { - AddFulltext *AddFulltext `protobuf:"bytes,8,opt,name=add_fulltext,json=addFulltext,proto3,oneof"` +type AlterExpr_ChangeFulltext struct { + ChangeFulltext *ChangeFulltext `protobuf:"bytes,8,opt,name=change_fulltext,json=changeFulltext,proto3,oneof"` } func (*AlterExpr_AddColumns) isAlterExpr_Kind() {} @@ -928,7 +928,7 @@ func (*AlterExpr_RenameTable) isAlterExpr_Kind() {} func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {} -func (*AlterExpr_AddFulltext) isAlterExpr_Kind() {} +func (*AlterExpr_ChangeFulltext) isAlterExpr_Kind() {} type DropTableExpr struct { state protoimpl.MessageState @@ -1355,7 +1355,7 @@ func (x *ChangeColumnTypes) GetChangeColumnTypes() []*ChangeColumnType { return nil } -type AddFulltext struct { +type ChangeFulltext struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1364,8 +1364,8 @@ type AddFulltext struct { Options map[string]string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } -func (x *AddFulltext) Reset() { - *x = AddFulltext{} +func (x *ChangeFulltext) Reset() { + *x = ChangeFulltext{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1373,13 +1373,13 @@ func (x *AddFulltext) Reset() { } } -func (x *AddFulltext) String() string { +func (x *ChangeFulltext) String() string { return protoimpl.X.MessageStringOf(x) } -func (*AddFulltext) ProtoMessage() {} +func (*ChangeFulltext) ProtoMessage() {} -func (x *AddFulltext) ProtoReflect() protoreflect.Message { +func (x *ChangeFulltext) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_ddl_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1391,19 +1391,19 @@ func (x *AddFulltext) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use AddFulltext.ProtoReflect.Descriptor instead. -func (*AddFulltext) Descriptor() ([]byte, []int) { +// Deprecated: Use ChangeFulltext.ProtoReflect.Descriptor instead. +func (*ChangeFulltext) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} } -func (x *AddFulltext) GetColumnName() string { +func (x *ChangeFulltext) GetColumnName() string { if x != nil { return x.ColumnName } return "" } -func (x *AddFulltext) GetOptions() map[string]string { +func (x *ChangeFulltext) GetOptions() map[string]string { if x != nil { return x.Options } @@ -2034,7 +2034,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, 0xc1, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x22, 0xca, 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, @@ -2057,158 +2057,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, 0x12, 0x3d, 0x0a, - 0x0c, 0x61, 0x64, 0x64, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x08, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, - 0x0b, 0x61, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, + 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x46, 0x0a, + 0x0f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, + 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x0e, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x46, 0x75, 0x6c, + 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 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, + 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, 0xb1, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x42, 0x0a, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 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, 0xab, - 0x01, 0x0a, 0x0b, 0x41, 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, - 0x3f, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, - 0x64, 0x64, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 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, + 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 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, 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, + 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, } var ( @@ -2241,7 +2242,7 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*AddColumns)(nil), // 12: greptime.v1.AddColumns (*DropColumns)(nil), // 13: greptime.v1.DropColumns (*ChangeColumnTypes)(nil), // 14: greptime.v1.ChangeColumnTypes - (*AddFulltext)(nil), // 15: greptime.v1.AddFulltext + (*ChangeFulltext)(nil), // 15: greptime.v1.ChangeFulltext (*RenameTable)(nil), // 16: greptime.v1.RenameTable (*AddColumn)(nil), // 17: greptime.v1.AddColumn (*ChangeColumnType)(nil), // 18: greptime.v1.ChangeColumnType @@ -2253,7 +2254,7 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ nil, // 24: greptime.v1.CreateFlowExpr.FlowOptionsEntry nil, // 25: greptime.v1.CreateTableExpr.TableOptionsEntry nil, // 26: greptime.v1.CreateDatabaseExpr.OptionsEntry - nil, // 27: greptime.v1.AddFulltext.OptionsEntry + nil, // 27: greptime.v1.ChangeFulltext.OptionsEntry (*TableName)(nil), // 28: greptime.v1.TableName (*ExpireAfter)(nil), // 29: greptime.v1.ExpireAfter (ColumnDataType)(0), // 30: greptime.v1.ColumnDataType @@ -2285,14 +2286,14 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 13, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns 16, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable 14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes - 15, // 23: greptime.v1.AlterExpr.add_fulltext:type_name -> greptime.v1.AddFulltext + 15, // 23: greptime.v1.AlterExpr.change_fulltext:type_name -> greptime.v1.ChangeFulltext 20, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId 26, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry 20, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId 17, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn 19, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn 18, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType - 27, // 30: greptime.v1.AddFulltext.options:type_name -> greptime.v1.AddFulltext.OptionsEntry + 27, // 30: greptime.v1.ChangeFulltext.options:type_name -> greptime.v1.ChangeFulltext.OptionsEntry 22, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef 23, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation 30, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType @@ -2485,7 +2486,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddFulltext); i { + switch v := v.(*ChangeFulltext); i { case 0: return &v.state case 1: @@ -2609,7 +2610,7 @@ func file_greptime_v1_ddl_proto_init() { (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), (*AlterExpr_ChangeColumnTypes)(nil), - (*AlterExpr_AddFulltext)(nil), + (*AlterExpr_ChangeFulltext)(nil), } type x struct{} out := protoimpl.TypeBuilder{ diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index c01f2ae7..9bc68531 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -11738,19 +11738,19 @@ public interface AlterExprOrBuilder extends io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); /** - * .greptime.v1.AddFulltext add_fulltext = 8; - * @return Whether the addFulltext field is set. + * .greptime.v1.ChangeFulltext change_fulltext = 8; + * @return Whether the changeFulltext field is set. */ - boolean hasAddFulltext(); + boolean hasChangeFulltext(); /** - * .greptime.v1.AddFulltext add_fulltext = 8; - * @return The addFulltext. + * .greptime.v1.ChangeFulltext change_fulltext = 8; + * @return The changeFulltext. */ - io.greptime.v1.Ddl.AddFulltext getAddFulltext(); + io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext(); /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ - io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextOrBuilder(); + io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder(); public io.greptime.v1.Ddl.AlterExpr.KindCase getKindCase(); } @@ -11877,14 +11877,14 @@ private AlterExpr( break; } case 66: { - io.greptime.v1.Ddl.AddFulltext.Builder subBuilder = null; + io.greptime.v1.Ddl.ChangeFulltext.Builder subBuilder = null; if (kindCase_ == 8) { - subBuilder = ((io.greptime.v1.Ddl.AddFulltext) kind_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.ChangeFulltext) kind_).toBuilder(); } kind_ = - input.readMessage(io.greptime.v1.Ddl.AddFulltext.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.ChangeFulltext.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.AddFulltext) kind_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeFulltext) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 8; @@ -11933,7 +11933,7 @@ public enum KindCase DROP_COLUMNS(5), RENAME_TABLE(6), CHANGE_COLUMN_TYPES(7), - ADD_FULLTEXT(8), + CHANGE_FULLTEXT(8), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -11955,7 +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 ADD_FULLTEXT; + case 8: return CHANGE_FULLTEXT; case 0: return KIND_NOT_SET; default: return null; } @@ -12209,35 +12209,35 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance(); } - public static final int ADD_FULLTEXT_FIELD_NUMBER = 8; + public static final int CHANGE_FULLTEXT_FIELD_NUMBER = 8; /** - * .greptime.v1.AddFulltext add_fulltext = 8; - * @return Whether the addFulltext field is set. + * .greptime.v1.ChangeFulltext change_fulltext = 8; + * @return Whether the changeFulltext field is set. */ @java.lang.Override - public boolean hasAddFulltext() { + public boolean hasChangeFulltext() { return kindCase_ == 8; } /** - * .greptime.v1.AddFulltext add_fulltext = 8; - * @return The addFulltext. + * .greptime.v1.ChangeFulltext change_fulltext = 8; + * @return The changeFulltext. */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext getAddFulltext() { + public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext() { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.AddFulltext) kind_; + return (io.greptime.v1.Ddl.ChangeFulltext) kind_; } - return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); + return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); } /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextOrBuilder() { + public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder() { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.AddFulltext) kind_; + return (io.greptime.v1.Ddl.ChangeFulltext) kind_; } - return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); + return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @@ -12276,7 +12276,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(7, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_); } if (kindCase_ == 8) { - output.writeMessage(8, (io.greptime.v1.Ddl.AddFulltext) kind_); + output.writeMessage(8, (io.greptime.v1.Ddl.ChangeFulltext) kind_); } unknownFields.writeTo(output); } @@ -12314,7 +12314,7 @@ public int getSerializedSize() { } if (kindCase_ == 8) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (io.greptime.v1.Ddl.AddFulltext) kind_); + .computeMessageSize(8, (io.greptime.v1.Ddl.ChangeFulltext) kind_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -12356,8 +12356,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getChangeColumnTypes())) return false; break; case 8: - if (!getAddFulltext() - .equals(other.getAddFulltext())) return false; + if (!getChangeFulltext() + .equals(other.getChangeFulltext())) return false; break; case 0: default: @@ -12397,8 +12397,8 @@ public int hashCode() { hash = (53 * hash) + getChangeColumnTypes().hashCode(); break; case 8: - hash = (37 * hash) + ADD_FULLTEXT_FIELD_NUMBER; - hash = (53 * hash) + getAddFulltext().hashCode(); + hash = (37 * hash) + CHANGE_FULLTEXT_FIELD_NUMBER; + hash = (53 * hash) + getChangeFulltext().hashCode(); break; case 0: default: @@ -12602,10 +12602,10 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { } } if (kindCase_ == 8) { - if (addFulltextBuilder_ == null) { + if (changeFulltextBuilder_ == null) { result.kind_ = kind_; } else { - result.kind_ = addFulltextBuilder_.build(); + result.kind_ = changeFulltextBuilder_.build(); } } result.kindCase_ = kindCase_; @@ -12686,8 +12686,8 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterExpr other) { mergeChangeColumnTypes(other.getChangeColumnTypes()); break; } - case ADD_FULLTEXT: { - mergeAddFulltext(other.getAddFulltext()); + case CHANGE_FULLTEXT: { + mergeChangeFulltext(other.getChangeFulltext()); break; } case KIND_NOT_SET: { @@ -13535,71 +13535,71 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder> addFulltextBuilder_; + io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> changeFulltextBuilder_; /** - * .greptime.v1.AddFulltext add_fulltext = 8; - * @return Whether the addFulltext field is set. + * .greptime.v1.ChangeFulltext change_fulltext = 8; + * @return Whether the changeFulltext field is set. */ @java.lang.Override - public boolean hasAddFulltext() { + public boolean hasChangeFulltext() { return kindCase_ == 8; } /** - * .greptime.v1.AddFulltext add_fulltext = 8; - * @return The addFulltext. + * .greptime.v1.ChangeFulltext change_fulltext = 8; + * @return The changeFulltext. */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext getAddFulltext() { - if (addFulltextBuilder_ == null) { + public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext() { + if (changeFulltextBuilder_ == null) { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.AddFulltext) kind_; + return (io.greptime.v1.Ddl.ChangeFulltext) kind_; } - return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); + return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); } else { if (kindCase_ == 8) { - return addFulltextBuilder_.getMessage(); + return changeFulltextBuilder_.getMessage(); } - return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); + return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); } } /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ - public Builder setAddFulltext(io.greptime.v1.Ddl.AddFulltext value) { - if (addFulltextBuilder_ == null) { + public Builder setChangeFulltext(io.greptime.v1.Ddl.ChangeFulltext value) { + if (changeFulltextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { - addFulltextBuilder_.setMessage(value); + changeFulltextBuilder_.setMessage(value); } kindCase_ = 8; return this; } /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ - public Builder setAddFulltext( - io.greptime.v1.Ddl.AddFulltext.Builder builderForValue) { - if (addFulltextBuilder_ == null) { + public Builder setChangeFulltext( + io.greptime.v1.Ddl.ChangeFulltext.Builder builderForValue) { + if (changeFulltextBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - addFulltextBuilder_.setMessage(builderForValue.build()); + changeFulltextBuilder_.setMessage(builderForValue.build()); } kindCase_ = 8; return this; } /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ - public Builder mergeAddFulltext(io.greptime.v1.Ddl.AddFulltext value) { - if (addFulltextBuilder_ == null) { + public Builder mergeChangeFulltext(io.greptime.v1.Ddl.ChangeFulltext value) { + if (changeFulltextBuilder_ == null) { if (kindCase_ == 8 && - kind_ != io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()) { - kind_ = io.greptime.v1.Ddl.AddFulltext.newBuilder((io.greptime.v1.Ddl.AddFulltext) kind_) + kind_ != io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.ChangeFulltext.newBuilder((io.greptime.v1.Ddl.ChangeFulltext) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; @@ -13607,19 +13607,19 @@ public Builder mergeAddFulltext(io.greptime.v1.Ddl.AddFulltext value) { onChanged(); } else { if (kindCase_ == 8) { - addFulltextBuilder_.mergeFrom(value); + changeFulltextBuilder_.mergeFrom(value); } else { - addFulltextBuilder_.setMessage(value); + changeFulltextBuilder_.setMessage(value); } } kindCase_ = 8; return this; } /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ - public Builder clearAddFulltext() { - if (addFulltextBuilder_ == null) { + public Builder clearChangeFulltext() { + if (changeFulltextBuilder_ == null) { if (kindCase_ == 8) { kindCase_ = 0; kind_ = null; @@ -13630,50 +13630,50 @@ public Builder clearAddFulltext() { kindCase_ = 0; kind_ = null; } - addFulltextBuilder_.clear(); + changeFulltextBuilder_.clear(); } return this; } /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ - public io.greptime.v1.Ddl.AddFulltext.Builder getAddFulltextBuilder() { - return getAddFulltextFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.ChangeFulltext.Builder getChangeFulltextBuilder() { + return getChangeFulltextFieldBuilder().getBuilder(); } /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ @java.lang.Override - public io.greptime.v1.Ddl.AddFulltextOrBuilder getAddFulltextOrBuilder() { - if ((kindCase_ == 8) && (addFulltextBuilder_ != null)) { - return addFulltextBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder() { + if ((kindCase_ == 8) && (changeFulltextBuilder_ != null)) { + return changeFulltextBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.AddFulltext) kind_; + return (io.greptime.v1.Ddl.ChangeFulltext) kind_; } - return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); + return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); } } /** - * .greptime.v1.AddFulltext add_fulltext = 8; + * .greptime.v1.ChangeFulltext change_fulltext = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder> - getAddFulltextFieldBuilder() { - if (addFulltextBuilder_ == null) { + io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> + getChangeFulltextFieldBuilder() { + if (changeFulltextBuilder_ == null) { if (!(kindCase_ == 8)) { - kind_ = io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); + kind_ = io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); } - addFulltextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.AddFulltext, io.greptime.v1.Ddl.AddFulltext.Builder, io.greptime.v1.Ddl.AddFulltextOrBuilder>( - (io.greptime.v1.Ddl.AddFulltext) kind_, + changeFulltextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder>( + (io.greptime.v1.Ddl.ChangeFulltext) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 8; onChanged();; - return addFulltextBuilder_; + return changeFulltextBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -20237,8 +20237,8 @@ public io.greptime.v1.Ddl.ChangeColumnTypes getDefaultInstanceForType() { } - public interface AddFulltextOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.AddFulltext) + public interface ChangeFulltextOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeFulltext) com.google.protobuf.MessageOrBuilder { /** @@ -20290,18 +20290,18 @@ java.lang.String getOptionsOrThrow( java.lang.String key); } /** - * Protobuf type {@code greptime.v1.AddFulltext} + * Protobuf type {@code greptime.v1.ChangeFulltext} */ - public static final class AddFulltext extends + public static final class ChangeFulltext extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.AddFulltext) - AddFulltextOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.ChangeFulltext) + ChangeFulltextOrBuilder { private static final long serialVersionUID = 0L; - // Use AddFulltext.newBuilder() to construct. - private AddFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use ChangeFulltext.newBuilder() to construct. + private ChangeFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private AddFulltext() { + private ChangeFulltext() { columnName_ = ""; } @@ -20309,7 +20309,7 @@ private AddFulltext() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new AddFulltext(); + return new ChangeFulltext(); } @java.lang.Override @@ -20317,7 +20317,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private AddFulltext( + private ChangeFulltext( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -20378,7 +20378,7 @@ private AddFulltext( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -20396,9 +20396,9 @@ protected com.google.protobuf.MapField internalGetMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddFulltext.class, io.greptime.v1.Ddl.AddFulltext.Builder.class); + io.greptime.v1.Ddl.ChangeFulltext.class, io.greptime.v1.Ddl.ChangeFulltext.Builder.class); } public static final int COLUMN_NAME_FIELD_NUMBER = 1; @@ -20445,7 +20445,7 @@ private static final class OptionsDefaultEntryHolder { java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( - io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor, + io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, @@ -20575,10 +20575,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.AddFulltext)) { + if (!(obj instanceof io.greptime.v1.Ddl.ChangeFulltext)) { return super.equals(obj); } - io.greptime.v1.Ddl.AddFulltext other = (io.greptime.v1.Ddl.AddFulltext) obj; + io.greptime.v1.Ddl.ChangeFulltext other = (io.greptime.v1.Ddl.ChangeFulltext) obj; if (!getColumnName() .equals(other.getColumnName())) return false; @@ -20606,69 +20606,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeFulltext 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.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeFulltext 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.AddFulltext parseFrom(byte[] data) + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeFulltext 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.AddFulltext parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.ChangeFulltext parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltext parseDelimitedFrom( + public static io.greptime.v1.Ddl.ChangeFulltext 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.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.AddFulltext parseFrom( + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20681,7 +20681,7 @@ public static io.greptime.v1.Ddl.AddFulltext parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.AddFulltext prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.ChangeFulltext prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20697,15 +20697,15 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.AddFulltext} + * Protobuf type {@code greptime.v1.ChangeFulltext} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.AddFulltext) - io.greptime.v1.Ddl.AddFulltextOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeFulltext) + io.greptime.v1.Ddl.ChangeFulltextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor; } @SuppressWarnings({"rawtypes"}) @@ -20733,12 +20733,12 @@ protected com.google.protobuf.MapField internalGetMutableMapField( @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.AddFulltext.class, io.greptime.v1.Ddl.AddFulltext.Builder.class); + io.greptime.v1.Ddl.ChangeFulltext.class, io.greptime.v1.Ddl.ChangeFulltext.Builder.class); } - // Construct using io.greptime.v1.Ddl.AddFulltext.newBuilder() + // Construct using io.greptime.v1.Ddl.ChangeFulltext.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -20765,17 +20765,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_AddFulltext_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext getDefaultInstanceForType() { - return io.greptime.v1.Ddl.AddFulltext.getDefaultInstance(); + public io.greptime.v1.Ddl.ChangeFulltext getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext build() { - io.greptime.v1.Ddl.AddFulltext result = buildPartial(); + public io.greptime.v1.Ddl.ChangeFulltext build() { + io.greptime.v1.Ddl.ChangeFulltext result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -20783,8 +20783,8 @@ public io.greptime.v1.Ddl.AddFulltext build() { } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext buildPartial() { - io.greptime.v1.Ddl.AddFulltext result = new io.greptime.v1.Ddl.AddFulltext(this); + public io.greptime.v1.Ddl.ChangeFulltext buildPartial() { + io.greptime.v1.Ddl.ChangeFulltext result = new io.greptime.v1.Ddl.ChangeFulltext(this); int from_bitField0_ = bitField0_; result.columnName_ = columnName_; result.options_ = internalGetOptions(); @@ -20827,16 +20827,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.AddFulltext) { - return mergeFrom((io.greptime.v1.Ddl.AddFulltext)other); + if (other instanceof io.greptime.v1.Ddl.ChangeFulltext) { + return mergeFrom((io.greptime.v1.Ddl.ChangeFulltext)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.AddFulltext other) { - if (other == io.greptime.v1.Ddl.AddFulltext.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext other) { + if (other == io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance()) return this; if (!other.getColumnName().isEmpty()) { columnName_ = other.columnName_; onChanged(); @@ -20858,11 +20858,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.AddFulltext parsedMessage = null; + io.greptime.v1.Ddl.ChangeFulltext parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.AddFulltext) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.ChangeFulltext) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -21092,41 +21092,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.AddFulltext) + // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeFulltext) } - // @@protoc_insertion_point(class_scope:greptime.v1.AddFulltext) - private static final io.greptime.v1.Ddl.AddFulltext DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext) + private static final io.greptime.v1.Ddl.ChangeFulltext DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.AddFulltext(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeFulltext(); } - public static io.greptime.v1.Ddl.AddFulltext getDefaultInstance() { + public static io.greptime.v1.Ddl.ChangeFulltext getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public AddFulltext parsePartialFrom( + public ChangeFulltext parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new AddFulltext(input, extensionRegistry); + return new ChangeFulltext(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.AddFulltext getDefaultInstanceForType() { + public io.greptime.v1.Ddl.ChangeFulltext getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -27434,15 +27434,15 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AddFulltext_descriptor; + internal_static_greptime_v1_ChangeFulltext_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AddFulltext_fieldAccessorTable; + internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor; + internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AddFulltext_OptionsEntry_fieldAccessorTable; + internal_static_greptime_v1_ChangeFulltext_OptionsEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RenameTable_descriptor; private static final @@ -27538,62 +27538,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\"\327\002\n\tAlterE" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\335\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\000\0220\n" + - "\014add_fulltext\030\010 \001(\0132\030.greptime.v1.AddFul" + - "ltextH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014cat" + - "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\n" + - "table_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.gre" + - "ptime.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\007options\030\004 \003(\0132,.grep" + - "time.v1.CreateDatabaseExpr.OptionsEntry\032" + - ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " + - "\001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_" + - "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable" + - "_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime" + - ".v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014catal" + - "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" + - "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" + - "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n" + - "\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" + - "ptime.v1.DropColumn\"O\n\021ChangeColumnTypes" + - "\022:\n\023change_column_types\030\001 \003(\0132\035.greptime" + - ".v1.ChangeColumnType\"\212\001\n\013AddFulltext\022\023\n\013" + - "column_name\030\001 \001(\t\0226\n\007options\030\002 \003(\0132%.gre" + - "ptime.v1.AddFulltext.OptionsEntry\032.\n\014Opt" + - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t" + - "\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grep" + - "time.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.gr" + - "eptime.v1.AddColumnLocation\"\236\001\n\020ChangeCo" + - "lumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_" + - "type\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022" + - "C\n\025target_type_extension\030\003 \001(\0132$.greptim" + - "e.v1.ColumnDataTypeExtension\"\032\n\nDropColu" + - "mn\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\tColumnDef\022\014\n\004n" + - "ame\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime." + - "v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032" + - "\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic_t" + - "ype\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007" + - "comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(" + - "\0132$.greptime.v1.ColumnDataTypeExtension\022" + - "+\n\007options\030\010 \001(\0132\032.greptime.v1.ColumnOpt" + - "ions\"\230\001\n\021AddColumnLocation\022B\n\rlocation_t" + - "ype\030\001 \001(\0162+.greptime.v1.AddColumnLocatio" + - "n.LocationType\022\031\n\021after_column_name\030\002 \001(" + - "\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001B" + - "L\n\016io.greptime.v1B\003DdlZ5github.com/Grept" + - "imeTeam/greptime-proto/go/greptime/v1b\006p" + - "roto3" + "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\0226\n" + + "\017change_fulltext\030\010 \001(\0132\033.greptime.v1.Cha" + + "ngeFulltextH\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(\013" + + "2\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\024crea" + + "te_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132" + + ",.greptime.v1.CreateDatabaseExpr.Options" + + "Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014ca" + + "talog_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.gr" + + "eptime.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n" + + "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" + + "\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+" + + "\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddCol" + + "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013" + + "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum" + + "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr" + + "eptime.v1.ChangeColumnType\"\220\001\n\016ChangeFul" + + "ltext\022\023\n\013column_name\030\001 \001(\t\0229\n\007options\030\002 " + + "\003(\0132(.greptime.v1.ChangeFulltext.Options" + + "Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + + "lue\030\002 \001(\t:\0028\001\"%\n\013RenameTable\022\026\n\016new_tabl" + + "e_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030" + + "\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010locatio" + + "n\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.Col" + + "umnDataType\022C\n\025target_type_extension\030\003 \001" + + "(\0132$.greptime.v1.ColumnDataTypeExtension" + + "\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022" + + "\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tCo" + + "lumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\016" + + "2\033.greptime.v1.ColumnDataType\022\023\n\013is_null" + + "able\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220" + + "\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Sema" + + "nticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_ex" + + "tension\030\007 \001(\0132$.greptime.v1.ColumnDataTy" + + "peExtension\022+\n\007options\030\010 \001(\0132\032.greptime." + + "v1.ColumnOptions\"\230\001\n\021AddColumnLocation\022B" + + "\n\rlocation_type\030\001 \001(\0162+.greptime.v1.AddC" + + "olumnLocation.LocationType\022\031\n\021after_colu" + + "mn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000" + + "\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5gith" + + "ub.com/GreptimeTeam/greptime-proto/go/gr" + + "eptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -27653,7 +27653,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", "AddFulltext", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ChangeColumnTypes", "ChangeFulltext", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -27702,17 +27702,17 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeColumnTypes_descriptor, new java.lang.String[] { "ChangeColumnTypes", }); - internal_static_greptime_v1_AddFulltext_descriptor = + internal_static_greptime_v1_ChangeFulltext_descriptor = getDescriptor().getMessageTypes().get(14); - internal_static_greptime_v1_AddFulltext_fieldAccessorTable = new + internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_AddFulltext_descriptor, + internal_static_greptime_v1_ChangeFulltext_descriptor, new java.lang.String[] { "ColumnName", "Options", }); - internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor = - internal_static_greptime_v1_AddFulltext_descriptor.getNestedTypes().get(0); - internal_static_greptime_v1_AddFulltext_OptionsEntry_fieldAccessorTable = new + internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor = + internal_static_greptime_v1_ChangeFulltext_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_ChangeFulltext_OptionsEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_AddFulltext_OptionsEntry_descriptor, + internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_RenameTable_descriptor = getDescriptor().getMessageTypes().get(15); From d942e6bc84beaf48a59b00ce9064eafb16539336 Mon Sep 17 00:00:00 2001 From: irenjj Date: Tue, 3 Sep 2024 22:38:16 +0800 Subject: [PATCH 06/12] update --- c++/greptime/v1/region/server.pb.cc | 447 +------ c++/greptime/v1/region/server.pb.h | 368 +----- .../java/io/greptime/v1/region/Server.java | 1075 ++--------------- proto/greptime/v1/region/server.proto | 6 - 4 files changed, 161 insertions(+), 1735 deletions(-) diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index 59152fe2..9b871971 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -363,31 +363,6 @@ struct FlushRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlushRequestDefaultTypeInternal _FlushRequest_default_instance_; -PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {} - union { - ChangeFulltext_OptionsEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_; -PROTOBUF_CONSTEXPR ChangeFulltext::ChangeFulltext( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct ChangeFulltextDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeFulltextDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeFulltextDefaultTypeInternal() {} - union { - ChangeFulltext _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_; PROTOBUF_CONSTEXPR Regular::Regular( ::_pbi::ConstantInitialized) {} struct RegularDefaultTypeInternal { @@ -457,7 +432,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace region } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[32]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; @@ -686,24 +661,6 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::FlushRequest, _impl_.region_id_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse, value_), - 0, - 1, - ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext, _impl_.column_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::region::ChangeFulltext, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::Regular, _internal_metadata_), ~0u, // no _extensions_ @@ -769,13 +726,11 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 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, 232, -1, sizeof(::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse)}, - { 234, -1, -1, sizeof(::greptime::v1::region::ChangeFulltext)}, - { 242, -1, -1, sizeof(::greptime::v1::region::Regular)}, - { 248, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, - { 255, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 265, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 272, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 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[] = { @@ -804,8 +759,6 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::region::_AddColumn_default_instance_._instance, &::greptime::v1::region::_DropColumn_default_instance_._instance, &::greptime::v1::region::_FlushRequest_default_instance_._instance, - &::greptime::v1::region::_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_._instance, - &::greptime::v1::region::_ChangeFulltext_default_instance_._instance, &::greptime::v1::region::_Regular_default_instance_._instance, &::greptime::v1::region::_StrictWindow_default_instance_._instance, &::greptime::v1::region::_CompactRequest_default_instance_._instance, @@ -874,40 +827,36 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "OptionsEntry\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 .gre" - "ptime.v1.region.AlterRequest\"\256\002\n\014AlterRe" + "ptime.v1.region.AlterRequest\"\247\002\n\014AlterRe" "quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030" "\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022" "7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi" "on.DropColumnsH\000\022=\n\023change_column_types\030" "\005 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022" - "<\n\016change_fulltex\030\006 \001(\0132\".greptime.v1.re" - "gion.ChangeFulltextH\000\022\026\n\016schema_version\030" - "\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_colum" - "ns\030\001 \003(\0132\035.greptime.v1.region.AddColumn\"" - "C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036.g" - "reptime.v1.region.DropColumn\"v\n\tAddColum" - "n\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.regi" - "on.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036.g" - "reptime.v1.AddColumnLocation\"\032\n\nDropColu" - "mn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregi" - "on_id\030\001 \001(\004\"\227\001\n\016ChangeFulltext\022\023\n\013column" - "_name\030\001 \001(\t\022@\n\007options\030\002 \003(\0132/.greptime." - "v1.region.ChangeFulltext.OptionsEntry\032.\n" - "\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - "\t:\0028\001\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016wind" - "ow_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tr" - "egion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.grepti" - "me.v1.region.RegularH\000\0229\n\rstrict_window\030" - "\003 \001(\0132 .greptime.v1.region.StrictWindowH" - "\000B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregio" - "n_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_" - "def\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcol" - "umn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grept" - "ime.v1.region.RegionRequest\032\".greptime.v" - "1.region.RegionResponseB]\n\025io.greptime.v" - "1.regionB\006ServerZ_impl_.kind_.change_column_types_; } -const ::greptime::v1::region::ChangeFulltext& +const ::greptime::v1::ChangeFulltext& AlterRequest::_Internal::change_fulltex(const AlterRequest* msg) { return *msg->_impl_.kind_.change_fulltex_; } @@ -5451,12 +5400,13 @@ void AlterRequest::clear_change_column_types() { clear_has_kind(); } } -void AlterRequest::set_allocated_change_fulltex(::greptime::v1::region::ChangeFulltext* change_fulltex) { +void AlterRequest::set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); if (change_fulltex) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_fulltex); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_fulltex)); if (message_arena != submessage_arena) { change_fulltex = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, change_fulltex, submessage_arena); @@ -5466,6 +5416,14 @@ void AlterRequest::set_allocated_change_fulltex(::greptime::v1::region::ChangeFu } // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_fulltex) } +void AlterRequest::clear_change_fulltex() { + if (_internal_has_change_fulltex()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_fulltex_; + } + clear_has_kind(); + } +} AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5504,7 +5462,7 @@ AlterRequest::AlterRequest(const AlterRequest& from) break; } case kChangeFulltex: { - _this->_internal_mutable_change_fulltex()->::greptime::v1::region::ChangeFulltext::MergeFrom( + _this->_internal_mutable_change_fulltex()->::greptime::v1::ChangeFulltext::MergeFrom( from._internal_change_fulltex()); break; } @@ -5643,7 +5601,7 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // .greptime.v1.region.ChangeFulltext change_fulltex = 6; + // .greptime.v1.ChangeFulltext change_fulltex = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { ptr = ctx->ParseMessage(_internal_mutable_change_fulltex(), ptr); @@ -5713,7 +5671,7 @@ uint8_t* AlterRequest::_InternalSerialize( _Internal::change_column_types(this).GetCachedSize(), target, stream); } - // .greptime.v1.region.ChangeFulltext change_fulltex = 6; + // .greptime.v1.ChangeFulltext change_fulltex = 6; if (_internal_has_change_fulltex()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(6, _Internal::change_fulltex(this), @@ -5768,7 +5726,7 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.change_column_types_); break; } - // .greptime.v1.region.ChangeFulltext change_fulltex = 6; + // .greptime.v1.ChangeFulltext change_fulltex = 6; case kChangeFulltex: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( @@ -5820,7 +5778,7 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P break; } case kChangeFulltex: { - _this->_internal_mutable_change_fulltex()->::greptime::v1::region::ChangeFulltext::MergeFrom( + _this->_internal_mutable_change_fulltex()->::greptime::v1::ChangeFulltext::MergeFrom( from._internal_change_fulltex()); break; } @@ -6859,291 +6817,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FlushRequest::GetMetadata() const { // =================================================================== -ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse() {} -ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void ChangeFulltext_OptionsEntry_DoNotUse::MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext_OptionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[25]); -} - -// =================================================================== - -class ChangeFulltext::_Internal { - public: -}; - -ChangeFulltext::ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned) - : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { - SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &ChangeFulltext::ArenaDtor); - } - // @@protoc_insertion_point(arena_constructor:greptime.v1.region.ChangeFulltext) -} -ChangeFulltext::ChangeFulltext(const ChangeFulltext& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - ChangeFulltext* const _this = this; (void)_this; - new (&_impl_) Impl_{ - /*decltype(_impl_.options_)*/{} - , decltype(_impl_.column_name_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.options_.MergeFrom(from._impl_.options_); - _impl_.column_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.column_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_column_name().empty()) { - _this->_impl_.column_name_.Set(from._internal_column_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.region.ChangeFulltext) -} - -inline void ChangeFulltext::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.column_name_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.column_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.column_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -ChangeFulltext::~ChangeFulltext() { - // @@protoc_insertion_point(destructor:greptime.v1.region.ChangeFulltext) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - ArenaDtor(this); - return; - } - SharedDtor(); -} - -inline void ChangeFulltext::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.options_.Destruct(); - _impl_.options_.~MapField(); - _impl_.column_name_.Destroy(); -} - -void ChangeFulltext::ArenaDtor(void* object) { - ChangeFulltext* _this = reinterpret_cast< ChangeFulltext* >(object); - _this->_impl_.options_.Destruct(); -} -void ChangeFulltext::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void ChangeFulltext::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.region.ChangeFulltext) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.options_.Clear(); - _impl_.column_name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { -#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure - while (!ctx->Done(&ptr)) { - uint32_t tag; - ptr = ::_pbi::ReadTag(ptr, &tag); - switch (tag >> 3) { - // string column_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_column_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.region.ChangeFulltext.column_name")); - } else - goto handle_unusual; - continue; - // map options = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.options_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* ChangeFulltext::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.region.ChangeFulltext) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string column_name = 1; - if (!this->_internal_column_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.ChangeFulltext.column_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_column_name(), target); - } - - // map options = 2; - if (!this->_internal_options().empty()) { - using MapType = ::_pb::Map; - using WireHelper = ChangeFulltext_OptionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_options(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.ChangeFulltext.OptionsEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.region.ChangeFulltext.OptionsEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.region.ChangeFulltext) - return target; -} - -size_t ChangeFulltext::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.region.ChangeFulltext) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // map options = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_options().begin(); - it != this->_internal_options().end(); ++it) { - total_size += ChangeFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // string column_name = 1; - if (!this->_internal_column_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_column_name()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeFulltext::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ChangeFulltext::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeFulltext::GetClassData() const { return &_class_data_; } - - -void ChangeFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.region.ChangeFulltext) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - _this->_impl_.options_.MergeFrom(from._impl_.options_); - if (!from._internal_column_name().empty()) { - _this->_internal_set_column_name(from._internal_column_name()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void ChangeFulltext::CopyFrom(const ChangeFulltext& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.region.ChangeFulltext) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool ChangeFulltext::IsInitialized() const { - return true; -} - -void ChangeFulltext::InternalSwap(ChangeFulltext* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.options_.InternalSwap(&other->_impl_.options_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.column_name_, lhs_arena, - &other->_impl_.column_name_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[26]); -} - -// =================================================================== - class Regular::_Internal { public: }; @@ -7179,7 +6852,7 @@ const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Regular::GetClassData() const ::PROTOBUF_NAMESPACE_ID::Metadata Regular::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[27]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[25]); } // =================================================================== @@ -7357,7 +7030,7 @@ void StrictWindow::InternalSwap(StrictWindow* other) { ::PROTOBUF_NAMESPACE_ID::Metadata StrictWindow::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[28]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[26]); } // =================================================================== @@ -7689,7 +7362,7 @@ void CompactRequest::InternalSwap(CompactRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CompactRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[29]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[27]); } // =================================================================== @@ -7867,7 +7540,7 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[28]); } // =================================================================== @@ -8097,7 +7770,7 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[31]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[29]); } // @@protoc_insertion_point(namespace_scope) @@ -8205,14 +7878,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::region::FlushRequest* Arena::CreateMaybeMessage< ::greptime::v1::region::FlushRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::FlushRequest >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse >(arena); -} -template<> PROTOBUF_NOINLINE ::greptime::v1::region::ChangeFulltext* -Arena::CreateMaybeMessage< ::greptime::v1::region::ChangeFulltext >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::region::ChangeFulltext >(arena); -} template<> PROTOBUF_NOINLINE ::greptime::v1::region::Regular* Arena::CreateMaybeMessage< ::greptime::v1::region::Regular >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::Regular >(arena); diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index f3eb0aaf..b8d658ab 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -66,12 +66,6 @@ extern AlterRequestDefaultTypeInternal _AlterRequest_default_instance_; class AlterRequests; struct AlterRequestsDefaultTypeInternal; extern AlterRequestsDefaultTypeInternal _AlterRequests_default_instance_; -class ChangeFulltext; -struct ChangeFulltextDefaultTypeInternal; -extern ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_; -class ChangeFulltext_OptionsEntry_DoNotUse; -struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal; -extern ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_; class CloseRequest; struct CloseRequestDefaultTypeInternal; extern CloseRequestDefaultTypeInternal _CloseRequest_default_instance_; @@ -158,8 +152,6 @@ template<> ::greptime::v1::region::AddColumn* Arena::CreateMaybeMessage<::grepti template<> ::greptime::v1::region::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::region::AddColumns>(Arena*); template<> ::greptime::v1::region::AlterRequest* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequest>(Arena*); template<> ::greptime::v1::region::AlterRequests* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequests>(Arena*); -template<> ::greptime::v1::region::ChangeFulltext* Arena::CreateMaybeMessage<::greptime::v1::region::ChangeFulltext>(Arena*); -template<> ::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::region::ChangeFulltext_OptionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::region::CloseRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CloseRequest>(Arena*); template<> ::greptime::v1::region::CompactRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CompactRequest>(Arena*); template<> ::greptime::v1::region::CreateRequest* Arena::CreateMaybeMessage<::greptime::v1::region::CreateRequest>(Arena*); @@ -3420,23 +3412,23 @@ class AlterRequest final : ::greptime::v1::ChangeColumnTypes* change_column_types); ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); - // .greptime.v1.region.ChangeFulltext change_fulltex = 6; + // .greptime.v1.ChangeFulltext change_fulltex = 6; bool has_change_fulltex() const; private: bool _internal_has_change_fulltex() const; public: void clear_change_fulltex(); - const ::greptime::v1::region::ChangeFulltext& change_fulltex() const; - PROTOBUF_NODISCARD ::greptime::v1::region::ChangeFulltext* release_change_fulltex(); - ::greptime::v1::region::ChangeFulltext* mutable_change_fulltex(); - void set_allocated_change_fulltex(::greptime::v1::region::ChangeFulltext* change_fulltex); + const ::greptime::v1::ChangeFulltext& change_fulltex() const; + PROTOBUF_NODISCARD ::greptime::v1::ChangeFulltext* release_change_fulltex(); + ::greptime::v1::ChangeFulltext* mutable_change_fulltex(); + void set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex); private: - const ::greptime::v1::region::ChangeFulltext& _internal_change_fulltex() const; - ::greptime::v1::region::ChangeFulltext* _internal_mutable_change_fulltex(); + const ::greptime::v1::ChangeFulltext& _internal_change_fulltex() const; + ::greptime::v1::ChangeFulltext* _internal_mutable_change_fulltex(); public: void unsafe_arena_set_allocated_change_fulltex( - ::greptime::v1::region::ChangeFulltext* change_fulltex); - ::greptime::v1::region::ChangeFulltext* unsafe_arena_release_change_fulltex(); + ::greptime::v1::ChangeFulltext* change_fulltex); + ::greptime::v1::ChangeFulltext* unsafe_arena_release_change_fulltex(); void clear_kind(); KindCase kind_case() const; @@ -3463,7 +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::region::ChangeFulltext* change_fulltex_; + ::greptime::v1::ChangeFulltext* change_fulltex_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -4266,213 +4258,6 @@ class FlushRequest final : }; // ------------------------------------------------------------------- -class ChangeFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - ChangeFulltext_OptionsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other); - static const ChangeFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.ChangeFulltext.OptionsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.region.ChangeFulltext.OptionsEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; -}; - -// ------------------------------------------------------------------- - -class ChangeFulltext final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.region.ChangeFulltext) */ { - public: - inline ChangeFulltext() : ChangeFulltext(nullptr) {} - ~ChangeFulltext() override; - explicit PROTOBUF_CONSTEXPR ChangeFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - ChangeFulltext(const ChangeFulltext& from); - ChangeFulltext(ChangeFulltext&& from) noexcept - : ChangeFulltext() { - *this = ::std::move(from); - } - - inline ChangeFulltext& operator=(const ChangeFulltext& from) { - CopyFrom(from); - return *this; - } - inline ChangeFulltext& operator=(ChangeFulltext&& 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 ChangeFulltext& default_instance() { - return *internal_default_instance(); - } - static inline const ChangeFulltext* internal_default_instance() { - return reinterpret_cast( - &_ChangeFulltext_default_instance_); - } - static constexpr int kIndexInFileMessages = - 26; - - friend void swap(ChangeFulltext& a, ChangeFulltext& b) { - a.Swap(&b); - } - inline void Swap(ChangeFulltext* 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(ChangeFulltext* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - ChangeFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ChangeFulltext& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ChangeFulltext& from) { - ChangeFulltext::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(ChangeFulltext* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.region.ChangeFulltext"; - } - protected: - explicit ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, - bool is_message_owned = false); - private: - static void ArenaDtor(void* object); - 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 { - kOptionsFieldNumber = 2, - kColumnNameFieldNumber = 1, - }; - // map options = 2; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_options() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_options(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - options() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_options(); - - // string column_name = 1; - void clear_column_name(); - const std::string& column_name() const; - template - void set_column_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_column_name(); - PROTOBUF_NODISCARD std::string* release_column_name(); - void set_allocated_column_name(std::string* column_name); - private: - const std::string& _internal_column_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); - std::string* _internal_mutable_column_name(); - public: - - // @@protoc_insertion_point(class_scope:greptime.v1.region.ChangeFulltext) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - ChangeFulltext_OptionsEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; -}; -// ------------------------------------------------------------------- - class Regular final : public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:greptime.v1.region.Regular) */ { public: @@ -4520,7 +4305,7 @@ class Regular final : &_Regular_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 25; friend void swap(Regular& a, Regular& b) { a.Swap(&b); @@ -4639,7 +4424,7 @@ class StrictWindow final : &_StrictWindow_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 26; friend void swap(StrictWindow& a, StrictWindow& b) { a.Swap(&b); @@ -4793,7 +4578,7 @@ class CompactRequest final : &_CompactRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 29; + 27; friend void swap(CompactRequest& a, CompactRequest& b) { a.Swap(&b); @@ -4994,7 +4779,7 @@ class TruncateRequest final : &_TruncateRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 28; friend void swap(TruncateRequest& a, TruncateRequest& b) { a.Swap(&b); @@ -5142,7 +4927,7 @@ class RegionColumnDef final : &_RegionColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 29; friend void swap(RegionColumnDef& a, RegionColumnDef& b) { a.Swap(&b); @@ -7927,7 +7712,7 @@ inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_ty return _msg; } -// .greptime.v1.region.ChangeFulltext change_fulltex = 6; +// .greptime.v1.ChangeFulltext change_fulltex = 6; inline bool AlterRequest::_internal_has_change_fulltex() const { return kind_case() == kChangeFulltex; } @@ -7937,19 +7722,11 @@ inline bool AlterRequest::has_change_fulltex() const { inline void AlterRequest::set_has_change_fulltex() { _impl_._oneof_case_[0] = kChangeFulltex; } -inline void AlterRequest::clear_change_fulltex() { - if (_internal_has_change_fulltex()) { - if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_fulltex_; - } - clear_has_kind(); - } -} -inline ::greptime::v1::region::ChangeFulltext* AlterRequest::release_change_fulltex() { +inline ::greptime::v1::ChangeFulltext* AlterRequest::release_change_fulltex() { // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_fulltex) if (_internal_has_change_fulltex()) { clear_has_kind(); - ::greptime::v1::region::ChangeFulltext* temp = _impl_.kind_.change_fulltex_; + ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltex_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } @@ -7959,27 +7736,27 @@ inline ::greptime::v1::region::ChangeFulltext* AlterRequest::release_change_full return nullptr; } } -inline const ::greptime::v1::region::ChangeFulltext& AlterRequest::_internal_change_fulltex() const { +inline const ::greptime::v1::ChangeFulltext& AlterRequest::_internal_change_fulltex() const { return _internal_has_change_fulltex() ? *_impl_.kind_.change_fulltex_ - : reinterpret_cast< ::greptime::v1::region::ChangeFulltext&>(::greptime::v1::region::_ChangeFulltext_default_instance_); + : reinterpret_cast< ::greptime::v1::ChangeFulltext&>(::greptime::v1::_ChangeFulltext_default_instance_); } -inline const ::greptime::v1::region::ChangeFulltext& AlterRequest::change_fulltex() const { +inline const ::greptime::v1::ChangeFulltext& AlterRequest::change_fulltex() const { // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_fulltex) return _internal_change_fulltex(); } -inline ::greptime::v1::region::ChangeFulltext* AlterRequest::unsafe_arena_release_change_fulltex() { +inline ::greptime::v1::ChangeFulltext* AlterRequest::unsafe_arena_release_change_fulltex() { // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_fulltex) if (_internal_has_change_fulltex()) { clear_has_kind(); - ::greptime::v1::region::ChangeFulltext* temp = _impl_.kind_.change_fulltex_; + ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltex_; _impl_.kind_.change_fulltex_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterRequest::unsafe_arena_set_allocated_change_fulltex(::greptime::v1::region::ChangeFulltext* change_fulltex) { +inline void AlterRequest::unsafe_arena_set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex) { clear_kind(); if (change_fulltex) { set_has_change_fulltex(); @@ -7987,16 +7764,16 @@ inline void AlterRequest::unsafe_arena_set_allocated_change_fulltex(::greptime:: } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_fulltex) } -inline ::greptime::v1::region::ChangeFulltext* AlterRequest::_internal_mutable_change_fulltex() { +inline ::greptime::v1::ChangeFulltext* AlterRequest::_internal_mutable_change_fulltex() { if (!_internal_has_change_fulltex()) { clear_kind(); set_has_change_fulltex(); - _impl_.kind_.change_fulltex_ = CreateMaybeMessage< ::greptime::v1::region::ChangeFulltext >(GetArenaForAllocation()); + _impl_.kind_.change_fulltex_ = CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(GetArenaForAllocation()); } return _impl_.kind_.change_fulltex_; } -inline ::greptime::v1::region::ChangeFulltext* AlterRequest::mutable_change_fulltex() { - ::greptime::v1::region::ChangeFulltext* _msg = _internal_mutable_change_fulltex(); +inline ::greptime::v1::ChangeFulltext* AlterRequest::mutable_change_fulltex() { + ::greptime::v1::ChangeFulltext* _msg = _internal_mutable_change_fulltex(); // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_fulltex) return _msg; } @@ -8377,91 +8154,6 @@ inline void FlushRequest::set_region_id(uint64_t value) { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// ChangeFulltext - -// string column_name = 1; -inline void ChangeFulltext::clear_column_name() { - _impl_.column_name_.ClearToEmpty(); -} -inline const std::string& ChangeFulltext::column_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.region.ChangeFulltext.column_name) - return _internal_column_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void ChangeFulltext::set_column_name(ArgT0&& arg0, ArgT... args) { - - _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.region.ChangeFulltext.column_name) -} -inline std::string* ChangeFulltext::mutable_column_name() { - std::string* _s = _internal_mutable_column_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.region.ChangeFulltext.column_name) - return _s; -} -inline const std::string& ChangeFulltext::_internal_column_name() const { - return _impl_.column_name_.Get(); -} -inline void ChangeFulltext::_internal_set_column_name(const std::string& value) { - - _impl_.column_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* ChangeFulltext::_internal_mutable_column_name() { - - return _impl_.column_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* ChangeFulltext::release_column_name() { - // @@protoc_insertion_point(field_release:greptime.v1.region.ChangeFulltext.column_name) - return _impl_.column_name_.Release(); -} -inline void ChangeFulltext::set_allocated_column_name(std::string* column_name) { - if (column_name != nullptr) { - - } else { - - } - _impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.column_name_.IsDefault()) { - _impl_.column_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.ChangeFulltext.column_name) -} - -// map options = 2; -inline int ChangeFulltext::_internal_options_size() const { - return _impl_.options_.size(); -} -inline int ChangeFulltext::options_size() const { - return _internal_options_size(); -} -inline void ChangeFulltext::clear_options() { - _impl_.options_.Clear(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -ChangeFulltext::_internal_options() const { - return _impl_.options_.GetMap(); -} -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -ChangeFulltext::options() const { - // @@protoc_insertion_point(field_map:greptime.v1.region.ChangeFulltext.options) - return _internal_options(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -ChangeFulltext::_internal_mutable_options() { - return _impl_.options_.MutableMap(); -} -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -ChangeFulltext::mutable_options() { - // @@protoc_insertion_point(field_mutable_map:greptime.v1.region.ChangeFulltext.options) - return _internal_mutable_options(); -} - -// ------------------------------------------------------------------- - // Regular // ------------------------------------------------------------------- @@ -8863,10 +8555,6 @@ inline void RegionColumnDef::set_column_id(uint32_t value) { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java index 3149796d..ada71e1b 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -16434,19 +16434,19 @@ public interface AlterRequestOrBuilder extends io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); /** - * .greptime.v1.region.ChangeFulltext change_fulltex = 6; + * .greptime.v1.ChangeFulltext change_fulltex = 6; * @return Whether the changeFulltex field is set. */ boolean hasChangeFulltex(); /** - * .greptime.v1.region.ChangeFulltext change_fulltex = 6; + * .greptime.v1.ChangeFulltext change_fulltex = 6; * @return The changeFulltex. */ - io.greptime.v1.region.Server.ChangeFulltext getChangeFulltex(); + io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex(); /** - * .greptime.v1.region.ChangeFulltext change_fulltex = 6; + * .greptime.v1.ChangeFulltext change_fulltex = 6; */ - io.greptime.v1.region.Server.ChangeFulltextOrBuilder getChangeFulltexOrBuilder(); + io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder(); /** *
@@ -16558,14 +16558,14 @@ private AlterRequest(
               break;
             }
             case 50: {
-              io.greptime.v1.region.Server.ChangeFulltext.Builder subBuilder = null;
+              io.greptime.v1.Ddl.ChangeFulltext.Builder subBuilder = null;
               if (kindCase_ == 6) {
-                subBuilder = ((io.greptime.v1.region.Server.ChangeFulltext) kind_).toBuilder();
+                subBuilder = ((io.greptime.v1.Ddl.ChangeFulltext) kind_).toBuilder();
               }
               kind_ =
-                  input.readMessage(io.greptime.v1.region.Server.ChangeFulltext.parser(), extensionRegistry);
+                  input.readMessage(io.greptime.v1.Ddl.ChangeFulltext.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom((io.greptime.v1.region.Server.ChangeFulltext) kind_);
+                subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeFulltext) kind_);
                 kind_ = subBuilder.buildPartial();
               }
               kindCase_ = 6;
@@ -16756,7 +16756,7 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild
 
     public static final int CHANGE_FULLTEX_FIELD_NUMBER = 6;
     /**
-     * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+     * .greptime.v1.ChangeFulltext change_fulltex = 6;
      * @return Whether the changeFulltex field is set.
      */
     @java.lang.Override
@@ -16764,25 +16764,25 @@ public boolean hasChangeFulltex() {
       return kindCase_ == 6;
     }
     /**
-     * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+     * .greptime.v1.ChangeFulltext change_fulltex = 6;
      * @return The changeFulltex.
      */
     @java.lang.Override
-    public io.greptime.v1.region.Server.ChangeFulltext getChangeFulltex() {
+    public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex() {
       if (kindCase_ == 6) {
-         return (io.greptime.v1.region.Server.ChangeFulltext) kind_;
+         return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
       }
-      return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+      return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
     }
     /**
-     * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+     * .greptime.v1.ChangeFulltext change_fulltex = 6;
      */
     @java.lang.Override
-    public io.greptime.v1.region.Server.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
+    public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
       if (kindCase_ == 6) {
-         return (io.greptime.v1.region.Server.ChangeFulltext) kind_;
+         return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
       }
-      return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+      return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
     }
 
     public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
@@ -16830,7 +16830,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
         output.writeMessage(5, (io.greptime.v1.Ddl.ChangeColumnTypes) kind_);
       }
       if (kindCase_ == 6) {
-        output.writeMessage(6, (io.greptime.v1.region.Server.ChangeFulltext) kind_);
+        output.writeMessage(6, (io.greptime.v1.Ddl.ChangeFulltext) kind_);
       }
       unknownFields.writeTo(output);
     }
@@ -16863,7 +16863,7 @@ public int getSerializedSize() {
       }
       if (kindCase_ == 6) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, (io.greptime.v1.region.Server.ChangeFulltext) kind_);
+          .computeMessageSize(6, (io.greptime.v1.Ddl.ChangeFulltext) kind_);
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -17715,9 +17715,9 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.region.Server.ChangeFulltext, io.greptime.v1.region.Server.ChangeFulltext.Builder, io.greptime.v1.region.Server.ChangeFulltextOrBuilder> changeFulltexBuilder_;
+          io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> changeFulltexBuilder_;
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        * @return Whether the changeFulltex field is set.
        */
       @java.lang.Override
@@ -17725,27 +17725,27 @@ public boolean hasChangeFulltex() {
         return kindCase_ == 6;
       }
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        * @return The changeFulltex.
        */
       @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeFulltext getChangeFulltex() {
+      public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex() {
         if (changeFulltexBuilder_ == null) {
           if (kindCase_ == 6) {
-            return (io.greptime.v1.region.Server.ChangeFulltext) kind_;
+            return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
           }
-          return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+          return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
         } else {
           if (kindCase_ == 6) {
             return changeFulltexBuilder_.getMessage();
           }
-          return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+          return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
         }
       }
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        */
-      public Builder setChangeFulltex(io.greptime.v1.region.Server.ChangeFulltext value) {
+      public Builder setChangeFulltex(io.greptime.v1.Ddl.ChangeFulltext value) {
         if (changeFulltexBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
@@ -17759,10 +17759,10 @@ public Builder setChangeFulltex(io.greptime.v1.region.Server.ChangeFulltext valu
         return this;
       }
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        */
       public Builder setChangeFulltex(
-          io.greptime.v1.region.Server.ChangeFulltext.Builder builderForValue) {
+          io.greptime.v1.Ddl.ChangeFulltext.Builder builderForValue) {
         if (changeFulltexBuilder_ == null) {
           kind_ = builderForValue.build();
           onChanged();
@@ -17773,13 +17773,13 @@ public Builder setChangeFulltex(
         return this;
       }
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        */
-      public Builder mergeChangeFulltex(io.greptime.v1.region.Server.ChangeFulltext value) {
+      public Builder mergeChangeFulltex(io.greptime.v1.Ddl.ChangeFulltext value) {
         if (changeFulltexBuilder_ == null) {
           if (kindCase_ == 6 &&
-              kind_ != io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance()) {
-            kind_ = io.greptime.v1.region.Server.ChangeFulltext.newBuilder((io.greptime.v1.region.Server.ChangeFulltext) kind_)
+              kind_ != io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance()) {
+            kind_ = io.greptime.v1.Ddl.ChangeFulltext.newBuilder((io.greptime.v1.Ddl.ChangeFulltext) kind_)
                 .mergeFrom(value).buildPartial();
           } else {
             kind_ = value;
@@ -17796,7 +17796,7 @@ public Builder mergeChangeFulltex(io.greptime.v1.region.Server.ChangeFulltext va
         return this;
       }
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        */
       public Builder clearChangeFulltex() {
         if (changeFulltexBuilder_ == null) {
@@ -17815,38 +17815,38 @@ public Builder clearChangeFulltex() {
         return this;
       }
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        */
-      public io.greptime.v1.region.Server.ChangeFulltext.Builder getChangeFulltexBuilder() {
+      public io.greptime.v1.Ddl.ChangeFulltext.Builder getChangeFulltexBuilder() {
         return getChangeFulltexFieldBuilder().getBuilder();
       }
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        */
       @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
+      public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
         if ((kindCase_ == 6) && (changeFulltexBuilder_ != null)) {
           return changeFulltexBuilder_.getMessageOrBuilder();
         } else {
           if (kindCase_ == 6) {
-            return (io.greptime.v1.region.Server.ChangeFulltext) kind_;
+            return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
           }
-          return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+          return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
         }
       }
       /**
-       * .greptime.v1.region.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltex = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.region.Server.ChangeFulltext, io.greptime.v1.region.Server.ChangeFulltext.Builder, io.greptime.v1.region.Server.ChangeFulltextOrBuilder> 
+          io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> 
           getChangeFulltexFieldBuilder() {
         if (changeFulltexBuilder_ == null) {
           if (!(kindCase_ == 6)) {
-            kind_ = io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
+            kind_ = io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
           }
           changeFulltexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              io.greptime.v1.region.Server.ChangeFulltext, io.greptime.v1.region.Server.ChangeFulltext.Builder, io.greptime.v1.region.Server.ChangeFulltextOrBuilder>(
-                  (io.greptime.v1.region.Server.ChangeFulltext) kind_,
+              io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder>(
+                  (io.greptime.v1.Ddl.ChangeFulltext) kind_,
                   getParentForChildren(),
                   isClean());
           kind_ = null;
@@ -21428,901 +21428,6 @@ public io.greptime.v1.region.Server.FlushRequest getDefaultInstanceForType() {
 
   }
 
-  public interface ChangeFulltextOrBuilder extends
-      // @@protoc_insertion_point(interface_extends:greptime.v1.region.ChangeFulltext)
-      com.google.protobuf.MessageOrBuilder {
-
-    /**
-     * string column_name = 1;
-     * @return The columnName.
-     */
-    java.lang.String getColumnName();
-    /**
-     * string column_name = 1;
-     * @return The bytes for columnName.
-     */
-    com.google.protobuf.ByteString
-        getColumnNameBytes();
-
-    /**
-     * map<string, string> options = 2;
-     */
-    int getOptionsCount();
-    /**
-     * map<string, string> options = 2;
-     */
-    boolean containsOptions(
-        java.lang.String key);
-    /**
-     * Use {@link #getOptionsMap()} instead.
-     */
-    @java.lang.Deprecated
-    java.util.Map
-    getOptions();
-    /**
-     * map<string, string> options = 2;
-     */
-    java.util.Map
-    getOptionsMap();
-    /**
-     * map<string, string> options = 2;
-     */
-
-    /* nullable */
-java.lang.String getOptionsOrDefault(
-        java.lang.String key,
-        /* nullable */
-java.lang.String defaultValue);
-    /**
-     * map<string, string> options = 2;
-     */
-
-    java.lang.String getOptionsOrThrow(
-        java.lang.String key);
-  }
-  /**
-   * Protobuf type {@code greptime.v1.region.ChangeFulltext}
-   */
-  public static final class ChangeFulltext extends
-      com.google.protobuf.GeneratedMessageV3 implements
-      // @@protoc_insertion_point(message_implements:greptime.v1.region.ChangeFulltext)
-      ChangeFulltextOrBuilder {
-  private static final long serialVersionUID = 0L;
-    // Use ChangeFulltext.newBuilder() to construct.
-    private ChangeFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-      super(builder);
-    }
-    private ChangeFulltext() {
-      columnName_ = "";
-    }
-
-    @java.lang.Override
-    @SuppressWarnings({"unused"})
-    protected java.lang.Object newInstance(
-        UnusedPrivateParameter unused) {
-      return new ChangeFulltext();
-    }
-
-    @java.lang.Override
-    public final com.google.protobuf.UnknownFieldSet
-    getUnknownFields() {
-      return this.unknownFields;
-    }
-    private ChangeFulltext(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      this();
-      if (extensionRegistry == null) {
-        throw new java.lang.NullPointerException();
-      }
-      int mutable_bitField0_ = 0;
-      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
-          com.google.protobuf.UnknownFieldSet.newBuilder();
-      try {
-        boolean done = false;
-        while (!done) {
-          int tag = input.readTag();
-          switch (tag) {
-            case 0:
-              done = true;
-              break;
-            case 10: {
-              java.lang.String s = input.readStringRequireUtf8();
-
-              columnName_ = s;
-              break;
-            }
-            case 18: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                options_ = com.google.protobuf.MapField.newMapField(
-                    OptionsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
-              }
-              com.google.protobuf.MapEntry
-              options__ = input.readMessage(
-                  OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              options_.getMutableMap().put(
-                  options__.getKey(), options__.getValue());
-              break;
-            }
-            default: {
-              if (!parseUnknownField(
-                  input, unknownFields, extensionRegistry, tag)) {
-                done = true;
-              }
-              break;
-            }
-          }
-        }
-      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-        throw e.setUnfinishedMessage(this);
-      } catch (com.google.protobuf.UninitializedMessageException e) {
-        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
-      } catch (java.io.IOException e) {
-        throw new com.google.protobuf.InvalidProtocolBufferException(
-            e).setUnfinishedMessage(this);
-      } finally {
-        this.unknownFields = unknownFields.build();
-        makeExtensionsImmutable();
-      }
-    }
-    public static final com.google.protobuf.Descriptors.Descriptor
-        getDescriptor() {
-      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_descriptor;
-    }
-
-    @SuppressWarnings({"rawtypes"})
-    @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
-      switch (number) {
-        case 2:
-          return internalGetOptions();
-        default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
-      }
-    }
-    @java.lang.Override
-    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-        internalGetFieldAccessorTable() {
-      return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_fieldAccessorTable
-          .ensureFieldAccessorsInitialized(
-              io.greptime.v1.region.Server.ChangeFulltext.class, io.greptime.v1.region.Server.ChangeFulltext.Builder.class);
-    }
-
-    public static final int COLUMN_NAME_FIELD_NUMBER = 1;
-    private volatile java.lang.Object columnName_;
-    /**
-     * string column_name = 1;
-     * @return The columnName.
-     */
-    @java.lang.Override
-    public java.lang.String getColumnName() {
-      java.lang.Object ref = columnName_;
-      if (ref instanceof java.lang.String) {
-        return (java.lang.String) ref;
-      } else {
-        com.google.protobuf.ByteString bs = 
-            (com.google.protobuf.ByteString) ref;
-        java.lang.String s = bs.toStringUtf8();
-        columnName_ = s;
-        return s;
-      }
-    }
-    /**
-     * string column_name = 1;
-     * @return The bytes for columnName.
-     */
-    @java.lang.Override
-    public com.google.protobuf.ByteString
-        getColumnNameBytes() {
-      java.lang.Object ref = columnName_;
-      if (ref instanceof java.lang.String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
-        columnName_ = b;
-        return b;
-      } else {
-        return (com.google.protobuf.ByteString) ref;
-      }
-    }
-
-    public static final int OPTIONS_FIELD_NUMBER = 2;
-    private static final class OptionsDefaultEntryHolder {
-      static final com.google.protobuf.MapEntry<
-          java.lang.String, java.lang.String> defaultEntry =
-              com.google.protobuf.MapEntry
-              .newDefaultInstance(
-                  io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_OptionsEntry_descriptor, 
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "",
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "");
-    }
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> options_;
-    private com.google.protobuf.MapField
-    internalGetOptions() {
-      if (options_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            OptionsDefaultEntryHolder.defaultEntry);
-      }
-      return options_;
-    }
-
-    public int getOptionsCount() {
-      return internalGetOptions().getMap().size();
-    }
-    /**
-     * map<string, string> options = 2;
-     */
-
-    @java.lang.Override
-    public boolean containsOptions(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      return internalGetOptions().getMap().containsKey(key);
-    }
-    /**
-     * Use {@link #getOptionsMap()} instead.
-     */
-    @java.lang.Override
-    @java.lang.Deprecated
-    public java.util.Map getOptions() {
-      return getOptionsMap();
-    }
-    /**
-     * map<string, string> options = 2;
-     */
-    @java.lang.Override
-
-    public java.util.Map getOptionsMap() {
-      return internalGetOptions().getMap();
-    }
-    /**
-     * map<string, string> options = 2;
-     */
-    @java.lang.Override
-
-    public java.lang.String getOptionsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetOptions().getMap();
-      return map.containsKey(key) ? map.get(key) : defaultValue;
-    }
-    /**
-     * map<string, string> options = 2;
-     */
-    @java.lang.Override
-
-    public java.lang.String getOptionsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetOptions().getMap();
-      if (!map.containsKey(key)) {
-        throw new java.lang.IllegalArgumentException();
-      }
-      return map.get(key);
-    }
-
-    private byte memoizedIsInitialized = -1;
-    @java.lang.Override
-    public final boolean isInitialized() {
-      byte isInitialized = memoizedIsInitialized;
-      if (isInitialized == 1) return true;
-      if (isInitialized == 0) return false;
-
-      memoizedIsInitialized = 1;
-      return true;
-    }
-
-    @java.lang.Override
-    public void writeTo(com.google.protobuf.CodedOutputStream output)
-                        throws java.io.IOException {
-      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
-        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_);
-      }
-      com.google.protobuf.GeneratedMessageV3
-        .serializeStringMapTo(
-          output,
-          internalGetOptions(),
-          OptionsDefaultEntryHolder.defaultEntry,
-          2);
-      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(columnName_)) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
-      }
-      for (java.util.Map.Entry entry
-           : internalGetOptions().getMap().entrySet()) {
-        com.google.protobuf.MapEntry
-        options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType()
-            .setKey(entry.getKey())
-            .setValue(entry.getValue())
-            .build();
-        size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(2, options__);
-      }
-      size += unknownFields.getSerializedSize();
-      memoizedSize = size;
-      return size;
-    }
-
-    @java.lang.Override
-    public boolean equals(final java.lang.Object obj) {
-      if (obj == this) {
-       return true;
-      }
-      if (!(obj instanceof io.greptime.v1.region.Server.ChangeFulltext)) {
-        return super.equals(obj);
-      }
-      io.greptime.v1.region.Server.ChangeFulltext other = (io.greptime.v1.region.Server.ChangeFulltext) obj;
-
-      if (!getColumnName()
-          .equals(other.getColumnName())) return false;
-      if (!internalGetOptions().equals(
-          other.internalGetOptions())) 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) + COLUMN_NAME_FIELD_NUMBER;
-      hash = (53 * hash) + getColumnName().hashCode();
-      if (!internalGetOptions().getMap().isEmpty()) {
-        hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
-        hash = (53 * hash) + internalGetOptions().hashCode();
-      }
-      hash = (29 * hash) + unknownFields.hashCode();
-      memoizedHashCode = hash;
-      return hash;
-    }
-
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(
-        java.nio.ByteBuffer data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(
-        java.nio.ByteBuffer data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(
-        com.google.protobuf.ByteString data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(
-        com.google.protobuf.ByteString data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(byte[] data)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(
-        byte[] data,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws com.google.protobuf.InvalidProtocolBufferException {
-      return PARSER.parseFrom(data, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseDelimitedFrom(java.io.InputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseDelimitedFrom(
-        java.io.InputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(
-        com.google.protobuf.CodedInputStream input)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input);
-    }
-    public static io.greptime.v1.region.Server.ChangeFulltext parseFrom(
-        com.google.protobuf.CodedInputStream input,
-        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-        throws java.io.IOException {
-      return com.google.protobuf.GeneratedMessageV3
-          .parseWithIOException(PARSER, input, extensionRegistry);
-    }
-
-    @java.lang.Override
-    public Builder newBuilderForType() { return newBuilder(); }
-    public static Builder newBuilder() {
-      return DEFAULT_INSTANCE.toBuilder();
-    }
-    public static Builder newBuilder(io.greptime.v1.region.Server.ChangeFulltext prototype) {
-      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
-    }
-    @java.lang.Override
-    public Builder toBuilder() {
-      return this == DEFAULT_INSTANCE
-          ? new Builder() : new Builder().mergeFrom(this);
-    }
-
-    @java.lang.Override
-    protected Builder newBuilderForType(
-        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
-      Builder builder = new Builder(parent);
-      return builder;
-    }
-    /**
-     * Protobuf type {@code greptime.v1.region.ChangeFulltext}
-     */
-    public static final class Builder extends
-        com.google.protobuf.GeneratedMessageV3.Builder implements
-        // @@protoc_insertion_point(builder_implements:greptime.v1.region.ChangeFulltext)
-        io.greptime.v1.region.Server.ChangeFulltextOrBuilder {
-      public static final com.google.protobuf.Descriptors.Descriptor
-          getDescriptor() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_descriptor;
-      }
-
-      @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
-        switch (number) {
-          case 2:
-            return internalGetOptions();
-          default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
-        }
-      }
-      @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(
-          int number) {
-        switch (number) {
-          case 2:
-            return internalGetMutableOptions();
-          default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
-        }
-      }
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                io.greptime.v1.region.Server.ChangeFulltext.class, io.greptime.v1.region.Server.ChangeFulltext.Builder.class);
-      }
-
-      // Construct using io.greptime.v1.region.Server.ChangeFulltext.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();
-        columnName_ = "";
-
-        internalGetMutableOptions().clear();
-        return this;
-      }
-
-      @java.lang.Override
-      public com.google.protobuf.Descriptors.Descriptor
-          getDescriptorForType() {
-        return io.greptime.v1.region.Server.internal_static_greptime_v1_region_ChangeFulltext_descriptor;
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeFulltext getDefaultInstanceForType() {
-        return io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance();
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeFulltext build() {
-        io.greptime.v1.region.Server.ChangeFulltext result = buildPartial();
-        if (!result.isInitialized()) {
-          throw newUninitializedMessageException(result);
-        }
-        return result;
-      }
-
-      @java.lang.Override
-      public io.greptime.v1.region.Server.ChangeFulltext buildPartial() {
-        io.greptime.v1.region.Server.ChangeFulltext result = new io.greptime.v1.region.Server.ChangeFulltext(this);
-        int from_bitField0_ = bitField0_;
-        result.columnName_ = columnName_;
-        result.options_ = internalGetOptions();
-        result.options_.makeImmutable();
-        onBuilt();
-        return result;
-      }
-
-      @java.lang.Override
-      public Builder clone() {
-        return super.clone();
-      }
-      @java.lang.Override
-      public Builder setField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.setField(field, value);
-      }
-      @java.lang.Override
-      public Builder clearField(
-          com.google.protobuf.Descriptors.FieldDescriptor field) {
-        return super.clearField(field);
-      }
-      @java.lang.Override
-      public Builder clearOneof(
-          com.google.protobuf.Descriptors.OneofDescriptor oneof) {
-        return super.clearOneof(oneof);
-      }
-      @java.lang.Override
-      public Builder setRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          int index, java.lang.Object value) {
-        return super.setRepeatedField(field, index, value);
-      }
-      @java.lang.Override
-      public Builder addRepeatedField(
-          com.google.protobuf.Descriptors.FieldDescriptor field,
-          java.lang.Object value) {
-        return super.addRepeatedField(field, value);
-      }
-      @java.lang.Override
-      public Builder mergeFrom(com.google.protobuf.Message other) {
-        if (other instanceof io.greptime.v1.region.Server.ChangeFulltext) {
-          return mergeFrom((io.greptime.v1.region.Server.ChangeFulltext)other);
-        } else {
-          super.mergeFrom(other);
-          return this;
-        }
-      }
-
-      public Builder mergeFrom(io.greptime.v1.region.Server.ChangeFulltext other) {
-        if (other == io.greptime.v1.region.Server.ChangeFulltext.getDefaultInstance()) return this;
-        if (!other.getColumnName().isEmpty()) {
-          columnName_ = other.columnName_;
-          onChanged();
-        }
-        internalGetMutableOptions().mergeFrom(
-            other.internalGetOptions());
-        this.mergeUnknownFields(other.unknownFields);
-        onChanged();
-        return this;
-      }
-
-      @java.lang.Override
-      public final boolean isInitialized() {
-        return true;
-      }
-
-      @java.lang.Override
-      public Builder mergeFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws java.io.IOException {
-        io.greptime.v1.region.Server.ChangeFulltext parsedMessage = null;
-        try {
-          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-          parsedMessage = (io.greptime.v1.region.Server.ChangeFulltext) e.getUnfinishedMessage();
-          throw e.unwrapIOException();
-        } finally {
-          if (parsedMessage != null) {
-            mergeFrom(parsedMessage);
-          }
-        }
-        return this;
-      }
-      private int bitField0_;
-
-      private java.lang.Object columnName_ = "";
-      /**
-       * string column_name = 1;
-       * @return The columnName.
-       */
-      public java.lang.String getColumnName() {
-        java.lang.Object ref = columnName_;
-        if (!(ref instanceof java.lang.String)) {
-          com.google.protobuf.ByteString bs =
-              (com.google.protobuf.ByteString) ref;
-          java.lang.String s = bs.toStringUtf8();
-          columnName_ = s;
-          return s;
-        } else {
-          return (java.lang.String) ref;
-        }
-      }
-      /**
-       * string column_name = 1;
-       * @return The bytes for columnName.
-       */
-      public com.google.protobuf.ByteString
-          getColumnNameBytes() {
-        java.lang.Object ref = columnName_;
-        if (ref instanceof String) {
-          com.google.protobuf.ByteString b = 
-              com.google.protobuf.ByteString.copyFromUtf8(
-                  (java.lang.String) ref);
-          columnName_ = b;
-          return b;
-        } else {
-          return (com.google.protobuf.ByteString) ref;
-        }
-      }
-      /**
-       * string column_name = 1;
-       * @param value The columnName to set.
-       * @return This builder for chaining.
-       */
-      public Builder setColumnName(
-          java.lang.String value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  
-        columnName_ = value;
-        onChanged();
-        return this;
-      }
-      /**
-       * string column_name = 1;
-       * @return This builder for chaining.
-       */
-      public Builder clearColumnName() {
-        
-        columnName_ = getDefaultInstance().getColumnName();
-        onChanged();
-        return this;
-      }
-      /**
-       * string column_name = 1;
-       * @param value The bytes for columnName to set.
-       * @return This builder for chaining.
-       */
-      public Builder setColumnNameBytes(
-          com.google.protobuf.ByteString value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  checkByteStringIsUtf8(value);
-        
-        columnName_ = value;
-        onChanged();
-        return this;
-      }
-
-      private com.google.protobuf.MapField<
-          java.lang.String, java.lang.String> options_;
-      private com.google.protobuf.MapField
-      internalGetOptions() {
-        if (options_ == null) {
-          return com.google.protobuf.MapField.emptyMapField(
-              OptionsDefaultEntryHolder.defaultEntry);
-        }
-        return options_;
-      }
-      private com.google.protobuf.MapField
-      internalGetMutableOptions() {
-        onChanged();;
-        if (options_ == null) {
-          options_ = com.google.protobuf.MapField.newMapField(
-              OptionsDefaultEntryHolder.defaultEntry);
-        }
-        if (!options_.isMutable()) {
-          options_ = options_.copy();
-        }
-        return options_;
-      }
-
-      public int getOptionsCount() {
-        return internalGetOptions().getMap().size();
-      }
-      /**
-       * map<string, string> options = 2;
-       */
-
-      @java.lang.Override
-      public boolean containsOptions(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        return internalGetOptions().getMap().containsKey(key);
-      }
-      /**
-       * Use {@link #getOptionsMap()} instead.
-       */
-      @java.lang.Override
-      @java.lang.Deprecated
-      public java.util.Map getOptions() {
-        return getOptionsMap();
-      }
-      /**
-       * map<string, string> options = 2;
-       */
-      @java.lang.Override
-
-      public java.util.Map getOptionsMap() {
-        return internalGetOptions().getMap();
-      }
-      /**
-       * map<string, string> options = 2;
-       */
-      @java.lang.Override
-
-      public java.lang.String getOptionsOrDefault(
-          java.lang.String key,
-          java.lang.String defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetOptions().getMap();
-        return map.containsKey(key) ? map.get(key) : defaultValue;
-      }
-      /**
-       * map<string, string> options = 2;
-       */
-      @java.lang.Override
-
-      public java.lang.String getOptionsOrThrow(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetOptions().getMap();
-        if (!map.containsKey(key)) {
-          throw new java.lang.IllegalArgumentException();
-        }
-        return map.get(key);
-      }
-
-      public Builder clearOptions() {
-        internalGetMutableOptions().getMutableMap()
-            .clear();
-        return this;
-      }
-      /**
-       * map<string, string> options = 2;
-       */
-
-      public Builder removeOptions(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        internalGetMutableOptions().getMutableMap()
-            .remove(key);
-        return this;
-      }
-      /**
-       * Use alternate mutation accessors instead.
-       */
-      @java.lang.Deprecated
-      public java.util.Map
-      getMutableOptions() {
-        return internalGetMutableOptions().getMutableMap();
-      }
-      /**
-       * map<string, string> options = 2;
-       */
-      public Builder putOptions(
-          java.lang.String key,
-          java.lang.String value) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        if (value == null) {
-  throw new NullPointerException("map value");
-}
-
-        internalGetMutableOptions().getMutableMap()
-            .put(key, value);
-        return this;
-      }
-      /**
-       * map<string, string> options = 2;
-       */
-
-      public Builder putAllOptions(
-          java.util.Map values) {
-        internalGetMutableOptions().getMutableMap()
-            .putAll(values);
-        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.region.ChangeFulltext)
-    }
-
-    // @@protoc_insertion_point(class_scope:greptime.v1.region.ChangeFulltext)
-    private static final io.greptime.v1.region.Server.ChangeFulltext DEFAULT_INSTANCE;
-    static {
-      DEFAULT_INSTANCE = new io.greptime.v1.region.Server.ChangeFulltext();
-    }
-
-    public static io.greptime.v1.region.Server.ChangeFulltext getDefaultInstance() {
-      return DEFAULT_INSTANCE;
-    }
-
-    private static final com.google.protobuf.Parser
-        PARSER = new com.google.protobuf.AbstractParser() {
-      @java.lang.Override
-      public ChangeFulltext parsePartialFrom(
-          com.google.protobuf.CodedInputStream input,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return new ChangeFulltext(input, extensionRegistry);
-      }
-    };
-
-    public static com.google.protobuf.Parser parser() {
-      return PARSER;
-    }
-
-    @java.lang.Override
-    public com.google.protobuf.Parser getParserForType() {
-      return PARSER;
-    }
-
-    @java.lang.Override
-    public io.greptime.v1.region.Server.ChangeFulltext getDefaultInstanceForType() {
-      return DEFAULT_INSTANCE;
-    }
-
-  }
-
   public interface RegularOrBuilder extends
       // @@protoc_insertion_point(interface_extends:greptime.v1.region.Regular)
       com.google.protobuf.MessageOrBuilder {
@@ -25595,16 +24700,6 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
   private static final 
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_greptime_v1_region_FlushRequest_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_greptime_v1_region_ChangeFulltext_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_greptime_v1_region_ChangeFulltext_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_greptime_v1_region_ChangeFulltext_OptionsEntry_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_greptime_v1_region_ChangeFulltext_OptionsEntry_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
     internal_static_greptime_v1_region_Regular_descriptor;
   private static final 
@@ -25699,40 +24794,36 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
       "OptionsEntry\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 .gre" +
-      "ptime.v1.region.AlterRequest\"\256\002\n\014AlterRe" +
+      "ptime.v1.region.AlterRequest\"\247\002\n\014AlterRe" +
       "quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030" +
       "\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022" +
       "7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi" +
       "on.DropColumnsH\000\022=\n\023change_column_types\030" +
       "\005 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022" +
-      "<\n\016change_fulltex\030\006 \001(\0132\".greptime.v1.re" +
-      "gion.ChangeFulltextH\000\022\026\n\016schema_version\030" +
-      "\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_colum" +
-      "ns\030\001 \003(\0132\035.greptime.v1.region.AddColumn\"" +
-      "C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036.g" +
-      "reptime.v1.region.DropColumn\"v\n\tAddColum" +
-      "n\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.regi" +
-      "on.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036.g" +
-      "reptime.v1.AddColumnLocation\"\032\n\nDropColu" +
-      "mn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregi" +
-      "on_id\030\001 \001(\004\"\227\001\n\016ChangeFulltext\022\023\n\013column" +
-      "_name\030\001 \001(\t\022@\n\007options\030\002 \003(\0132/.greptime." +
-      "v1.region.ChangeFulltext.OptionsEntry\032.\n" +
-      "\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" +
-      "\t:\0028\001\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016wind" +
-      "ow_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tr" +
-      "egion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.grepti" +
-      "me.v1.region.RegularH\000\0229\n\rstrict_window\030" +
-      "\003 \001(\0132 .greptime.v1.region.StrictWindowH" +
-      "\000B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregio" +
-      "n_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_" +
-      "def\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcol" +
-      "umn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grept" +
-      "ime.v1.region.RegionRequest\032\".greptime.v" +
-      "1.region.RegionResponseB]\n\025io.greptime.v" +
-      "1.regionB\006ServerZ options = 2;
-}
-
 /// Regular compaction
 message Regular {}
 

From 6df0c7ba6d0c9acfcf155483d19889ffed3ef99d Mon Sep 17 00:00:00 2001
From: irenjj 
Date: Wed, 11 Sep 2024 21:26:00 +0800
Subject: [PATCH 07/12] typo

---
 proto/greptime/v1/region/server.proto | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/proto/greptime/v1/region/server.proto b/proto/greptime/v1/region/server.proto
index 82fc672b..defd2204 100644
--- a/proto/greptime/v1/region/server.proto
+++ b/proto/greptime/v1/region/server.proto
@@ -128,7 +128,7 @@ message AlterRequest {
     AddColumns add_columns = 2;
     DropColumns drop_columns = 3;
     ChangeColumnTypes change_column_types = 5;
-    ChangeFulltext change_fulltex = 6;
+    ChangeFulltext change_fulltext = 6;
   }
   // The version of the schema before applying the alteration.
   uint64 schema_version = 4;

From c4dd90b9998f3498ae853364f30b8da9033b8a14 Mon Sep 17 00:00:00 2001
From: irenjj 
Date: Tue, 8 Oct 2024 22:48:01 +0800
Subject: [PATCH 08/12] use struct

---
 c++/greptime/v1/ddl.pb.cc                     |  481 +++++--
 c++/greptime/v1/ddl.pb.h                      |  436 +++++-
 c++/greptime/v1/region/server.pb.cc           |  114 +-
 c++/greptime/v1/region/server.pb.h            |  106 +-
 go/greptime/v1/ddl.pb.go                      |  316 +++--
 java/src/main/java/io/greptime/v1/Ddl.java    | 1201 ++++++++++++-----
 .../java/io/greptime/v1/region/Server.java    |  182 +--
 proto/greptime/v1/ddl.proto                   |    8 +-
 8 files changed, 2021 insertions(+), 823 deletions(-)

diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc
index 90a69622..6ebf6eea 100644
--- a/c++/greptime/v1/ddl.pb.cc
+++ b/c++/greptime/v1/ddl.pb.cc
@@ -289,21 +289,25 @@ struct ChangeColumnTypesDefaultTypeInternal {
   };
 };
 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_;
-PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse(
-    ::_pbi::ConstantInitialized) {}
-struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal {
-  PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal()
+PROTOBUF_CONSTEXPR ChangeFulltext_FulltextOptions::ChangeFulltext_FulltextOptions(
+    ::_pbi::ConstantInitialized): _impl_{
+    /*decltype(_impl_.analyzer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
+  , /*decltype(_impl_.enable_)*/false
+  , /*decltype(_impl_.case_sensitive_)*/false
+  , /*decltype(_impl_._cached_size_)*/{}} {}
+struct ChangeFulltext_FulltextOptionsDefaultTypeInternal {
+  PROTOBUF_CONSTEXPR ChangeFulltext_FulltextOptionsDefaultTypeInternal()
       : _instance(::_pbi::ConstantInitialized{}) {}
-  ~ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {}
+  ~ChangeFulltext_FulltextOptionsDefaultTypeInternal() {}
   union {
-    ChangeFulltext_OptionsEntry_DoNotUse _instance;
+    ChangeFulltext_FulltextOptions _instance;
   };
 };
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_;
+PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltext_FulltextOptionsDefaultTypeInternal _ChangeFulltext_FulltextOptions_default_instance_;
 PROTOBUF_CONSTEXPR ChangeFulltext::ChangeFulltext(
     ::_pbi::ConstantInitialized): _impl_{
-    /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()}
-  , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
+    /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
+  , /*decltype(_impl_.options_)*/nullptr
   , /*decltype(_impl_._cached_size_)*/{}} {}
 struct ChangeFulltextDefaultTypeInternal {
   PROTOBUF_CONSTEXPR ChangeFulltextDefaultTypeInternal()
@@ -628,16 +632,15 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
   ~0u,  // no _weak_field_map_
   ~0u,  // no _inlined_string_donated_
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _impl_.change_column_types_),
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, _has_bits_),
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, _internal_metadata_),
+  ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_FulltextOptions, _internal_metadata_),
   ~0u,  // no _extensions_
   ~0u,  // no _oneof_case_
   ~0u,  // no _weak_field_map_
   ~0u,  // no _inlined_string_donated_
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, key_),
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, value_),
-  0,
-  1,
+  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_FulltextOptions, _impl_.enable_),
+  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_FulltextOptions, _impl_.analyzer_),
+  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_FulltextOptions, _impl_.case_sensitive_),
   ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _internal_metadata_),
   ~0u,  // no _extensions_
@@ -732,16 +735,16 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
   { 171, -1, -1, sizeof(::greptime::v1::AddColumns)},
   { 178, -1, -1, sizeof(::greptime::v1::DropColumns)},
   { 185, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
-  { 192, 200, -1, sizeof(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse)},
-  { 202, -1, -1, sizeof(::greptime::v1::ChangeFulltext)},
-  { 210, -1, -1, sizeof(::greptime::v1::RenameTable)},
-  { 217, -1, -1, sizeof(::greptime::v1::AddColumn)},
-  { 225, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
-  { 234, -1, -1, sizeof(::greptime::v1::DropColumn)},
-  { 241, -1, -1, sizeof(::greptime::v1::TableId)},
-  { 248, -1, -1, sizeof(::greptime::v1::FlowId)},
-  { 255, -1, -1, sizeof(::greptime::v1::ColumnDef)},
-  { 269, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
+  { 192, -1, -1, sizeof(::greptime::v1::ChangeFulltext_FulltextOptions)},
+  { 201, -1, -1, sizeof(::greptime::v1::ChangeFulltext)},
+  { 209, -1, -1, sizeof(::greptime::v1::RenameTable)},
+  { 216, -1, -1, sizeof(::greptime::v1::AddColumn)},
+  { 224, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
+  { 233, -1, -1, sizeof(::greptime::v1::DropColumn)},
+  { 240, -1, -1, sizeof(::greptime::v1::TableId)},
+  { 247, -1, -1, sizeof(::greptime::v1::FlowId)},
+  { 254, -1, -1, sizeof(::greptime::v1::ColumnDef)},
+  { 268, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
 };
 
 static const ::_pb::Message* const file_default_instances[] = {
@@ -762,7 +765,7 @@ static const ::_pb::Message* const file_default_instances[] = {
   &::greptime::v1::_AddColumns_default_instance_._instance,
   &::greptime::v1::_DropColumns_default_instance_._instance,
   &::greptime::v1::_ChangeColumnTypes_default_instance_._instance,
-  &::greptime::v1::_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_._instance,
+  &::greptime::v1::_ChangeFulltext_FulltextOptions_default_instance_._instance,
   &::greptime::v1::_ChangeFulltext_default_instance_._instance,
   &::greptime::v1::_RenameTable_default_instance_._instance,
   &::greptime::v1::_AddColumn_default_instance_._instance,
@@ -849,41 +852,42 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
   "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013"
   "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum"
   "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr"
-  "eptime.v1.ChangeColumnType\"\220\001\n\016ChangeFul"
-  "ltext\022\023\n\013column_name\030\001 \001(\t\0229\n\007options\030\002 "
-  "\003(\0132(.greptime.v1.ChangeFulltext.Options"
-  "Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
-  "lue\030\002 \001(\t:\0028\001\"%\n\013RenameTable\022\026\n\016new_tabl"
-  "e_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030"
-  "\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010locatio"
-  "n\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.Col"
-  "umnDataType\022C\n\025target_type_extension\030\003 \001"
-  "(\0132$.greptime.v1.ColumnDataTypeExtension"
-  "\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022"
-  "\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tCo"
-  "lumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\016"
-  "2\033.greptime.v1.ColumnDataType\022\023\n\013is_null"
-  "able\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220"
-  "\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Sema"
-  "nticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_ex"
-  "tension\030\007 \001(\0132$.greptime.v1.ColumnDataTy"
-  "peExtension\022+\n\007options\030\010 \001(\0132\032.greptime."
-  "v1.ColumnOptions\"\230\001\n\021AddColumnLocation\022B"
-  "\n\rlocation_type\030\001 \001(\0162+.greptime.v1.AddC"
-  "olumnLocation.LocationType\022\031\n\021after_colu"
-  "mn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000"
-  "\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5gith"
-  "ub.com/GreptimeTeam/greptime-proto/go/gr"
-  "eptime/v1b\006proto3"
+  "eptime.v1.ChangeColumnType\"\260\001\n\016ChangeFul"
+  "ltext\022\023\n\013column_name\030\001 \001(\t\022<\n\007options\030\002 "
+  "\001(\0132+.greptime.v1.ChangeFulltext.Fulltex"
+  "tOptions\032K\n\017FulltextOptions\022\016\n\006enable\030\001 "
+  "\001(\010\022\020\n\010analyzer\030\002 \001(\t\022\026\n\016case_sensitive\030"
+  "\003 \001(\010\"%\n\013RenameTable\022\026\n\016new_table_name\030\001"
+  " \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026."
+  "greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132"
+  "\036.greptime.v1.AddColumnLocation\"\236\001\n\020Chan"
+  "geColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013tar"
+  "get_type\030\002 \001(\0162\033.greptime.v1.ColumnDataT"
+  "ype\022C\n\025target_type_extension\030\003 \001(\0132$.gre"
+  "ptime.v1.ColumnDataTypeExtension\"\032\n\nDrop"
+  "Column\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\tColumnDef\022"
+  "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept"
+  "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001"
+  "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant"
+  "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType"
+  "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030"
+  "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens"
+  "ion\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Colum"
+  "nOptions\"\230\001\n\021AddColumnLocation\022B\n\rlocati"
+  "on_type\030\001 \001(\0162+.greptime.v1.AddColumnLoc"
+  "ation.LocationType\022\031\n\021after_column_name\030"
+  "\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTE"
+  "R\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/G"
+  "reptimeTeam/greptime-proto/go/greptime/v"
+  "1b\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, 4057, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
+    false, false, 4089, 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, 27,
     schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
@@ -6764,13 +6768,262 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const {
 
 // ===================================================================
 
-ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse() {}
-ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
-    : SuperType(arena) {}
-void ChangeFulltext_OptionsEntry_DoNotUse::MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other) {
-  MergeFromInternal(other);
+class ChangeFulltext_FulltextOptions::_Internal {
+ public:
+};
+
+ChangeFulltext_FulltextOptions::ChangeFulltext_FulltextOptions(::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.ChangeFulltext.FulltextOptions)
+}
+ChangeFulltext_FulltextOptions::ChangeFulltext_FulltextOptions(const ChangeFulltext_FulltextOptions& from)
+  : ::PROTOBUF_NAMESPACE_ID::Message() {
+  ChangeFulltext_FulltextOptions* const _this = this; (void)_this;
+  new (&_impl_) Impl_{
+      decltype(_impl_.analyzer_){}
+    , decltype(_impl_.enable_){}
+    , decltype(_impl_.case_sensitive_){}
+    , /*decltype(_impl_._cached_size_)*/{}};
+
+  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+  _impl_.analyzer_.InitDefault();
+  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+    _impl_.analyzer_.Set("", GetArenaForAllocation());
+  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+  if (!from._internal_analyzer().empty()) {
+    _this->_impl_.analyzer_.Set(from._internal_analyzer(), 
+      _this->GetArenaForAllocation());
+  }
+  ::memcpy(&_impl_.enable_, &from._impl_.enable_,
+    static_cast(reinterpret_cast(&_impl_.case_sensitive_) -
+    reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_));
+  // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeFulltext.FulltextOptions)
+}
+
+inline void ChangeFulltext_FulltextOptions::SharedCtor(
+    ::_pb::Arena* arena, bool is_message_owned) {
+  (void)arena;
+  (void)is_message_owned;
+  new (&_impl_) Impl_{
+      decltype(_impl_.analyzer_){}
+    , decltype(_impl_.enable_){false}
+    , decltype(_impl_.case_sensitive_){false}
+    , /*decltype(_impl_._cached_size_)*/{}
+  };
+  _impl_.analyzer_.InitDefault();
+  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+    _impl_.analyzer_.Set("", GetArenaForAllocation());
+  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+}
+
+ChangeFulltext_FulltextOptions::~ChangeFulltext_FulltextOptions() {
+  // @@protoc_insertion_point(destructor:greptime.v1.ChangeFulltext.FulltextOptions)
+  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
+  (void)arena;
+    return;
+  }
+  SharedDtor();
+}
+
+inline void ChangeFulltext_FulltextOptions::SharedDtor() {
+  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
+  _impl_.analyzer_.Destroy();
+}
+
+void ChangeFulltext_FulltextOptions::SetCachedSize(int size) const {
+  _impl_._cached_size_.Set(size);
+}
+
+void ChangeFulltext_FulltextOptions::Clear() {
+// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeFulltext.FulltextOptions)
+  uint32_t cached_has_bits = 0;
+  // Prevent compiler warnings about cached_has_bits being unused
+  (void) cached_has_bits;
+
+  _impl_.analyzer_.ClearToEmpty();
+  ::memset(&_impl_.enable_, 0, static_cast(
+      reinterpret_cast(&_impl_.case_sensitive_) -
+      reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_));
+  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
+}
+
+const char* ChangeFulltext_FulltextOptions::_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) {
+      // bool enable = 1;
+      case 1:
+        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) {
+          _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
+          CHK_(ptr);
+        } else
+          goto handle_unusual;
+        continue;
+      // string analyzer = 2;
+      case 2:
+        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
+          auto str = _internal_mutable_analyzer();
+          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
+          CHK_(ptr);
+          CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeFulltext.FulltextOptions.analyzer"));
+        } else
+          goto handle_unusual;
+        continue;
+      // bool case_sensitive = 3;
+      case 3:
+        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) {
+          _impl_.case_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
+          CHK_(ptr);
+        } else
+          goto handle_unusual;
+        continue;
+      default:
+        goto handle_unusual;
+    }  // switch
+  handle_unusual:
+    if ((tag == 0) || ((tag & 7) == 4)) {
+      CHK_(ptr);
+      ctx->SetLastTag(tag);
+      goto message_done;
+    }
+    ptr = UnknownFieldParse(
+        tag,
+        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
+        ptr, ctx);
+    CHK_(ptr != nullptr);
+  }  // while
+message_done:
+  return ptr;
+failure:
+  ptr = nullptr;
+  goto message_done;
+#undef CHK_
+}
+
+uint8_t* ChangeFulltext_FulltextOptions::_InternalSerialize(
+    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
+  // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeFulltext.FulltextOptions)
+  uint32_t cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  // bool enable = 1;
+  if (this->_internal_enable() != 0) {
+    target = stream->EnsureSpace(target);
+    target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_enable(), target);
+  }
+
+  // string analyzer = 2;
+  if (!this->_internal_analyzer().empty()) {
+    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+      this->_internal_analyzer().data(), static_cast(this->_internal_analyzer().length()),
+      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+      "greptime.v1.ChangeFulltext.FulltextOptions.analyzer");
+    target = stream->WriteStringMaybeAliased(
+        2, this->_internal_analyzer(), target);
+  }
+
+  // bool case_sensitive = 3;
+  if (this->_internal_case_sensitive() != 0) {
+    target = stream->EnsureSpace(target);
+    target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_case_sensitive(), 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.ChangeFulltext.FulltextOptions)
+  return target;
 }
-::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext_OptionsEntry_DoNotUse::GetMetadata() const {
+
+size_t ChangeFulltext_FulltextOptions::ByteSizeLong() const {
+// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeFulltext.FulltextOptions)
+  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 analyzer = 2;
+  if (!this->_internal_analyzer().empty()) {
+    total_size += 1 +
+      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+        this->_internal_analyzer());
+  }
+
+  // bool enable = 1;
+  if (this->_internal_enable() != 0) {
+    total_size += 1 + 1;
+  }
+
+  // bool case_sensitive = 3;
+  if (this->_internal_case_sensitive() != 0) {
+    total_size += 1 + 1;
+  }
+
+  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
+}
+
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeFulltext_FulltextOptions::_class_data_ = {
+    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
+    ChangeFulltext_FulltextOptions::MergeImpl
+};
+const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeFulltext_FulltextOptions::GetClassData() const { return &_class_data_; }
+
+
+void ChangeFulltext_FulltextOptions::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.ChangeFulltext.FulltextOptions)
+  GOOGLE_DCHECK_NE(&from, _this);
+  uint32_t cached_has_bits = 0;
+  (void) cached_has_bits;
+
+  if (!from._internal_analyzer().empty()) {
+    _this->_internal_set_analyzer(from._internal_analyzer());
+  }
+  if (from._internal_enable() != 0) {
+    _this->_internal_set_enable(from._internal_enable());
+  }
+  if (from._internal_case_sensitive() != 0) {
+    _this->_internal_set_case_sensitive(from._internal_case_sensitive());
+  }
+  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+}
+
+void ChangeFulltext_FulltextOptions::CopyFrom(const ChangeFulltext_FulltextOptions& from) {
+// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeFulltext.FulltextOptions)
+  if (&from == this) return;
+  Clear();
+  MergeFrom(from);
+}
+
+bool ChangeFulltext_FulltextOptions::IsInitialized() const {
+  return true;
+}
+
+void ChangeFulltext_FulltextOptions::InternalSwap(ChangeFulltext_FulltextOptions* 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_.analyzer_, lhs_arena,
+      &other->_impl_.analyzer_, rhs_arena
+  );
+  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+      PROTOBUF_FIELD_OFFSET(ChangeFulltext_FulltextOptions, _impl_.case_sensitive_)
+      + sizeof(ChangeFulltext_FulltextOptions::_impl_.case_sensitive_)
+      - PROTOBUF_FIELD_OFFSET(ChangeFulltext_FulltextOptions, _impl_.enable_)>(
+          reinterpret_cast(&_impl_.enable_),
+          reinterpret_cast(&other->_impl_.enable_));
+}
+
+::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext_FulltextOptions::GetMetadata() const {
   return ::_pbi::AssignDescriptors(
       &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
       file_level_metadata_greptime_2fv1_2fddl_2eproto[17]);
@@ -6780,27 +7033,28 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext_OptionsEntry_DoNotUse::GetMetad
 
 class ChangeFulltext::_Internal {
  public:
+  static const ::greptime::v1::ChangeFulltext_FulltextOptions& options(const ChangeFulltext* msg);
 };
 
+const ::greptime::v1::ChangeFulltext_FulltextOptions&
+ChangeFulltext::_Internal::options(const ChangeFulltext* msg) {
+  return *msg->_impl_.options_;
+}
 ChangeFulltext::ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                          bool is_message_owned)
   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
   SharedCtor(arena, is_message_owned);
-  if (arena != nullptr && !is_message_owned) {
-    arena->OwnCustomDestructor(this, &ChangeFulltext::ArenaDtor);
-  }
   // @@protoc_insertion_point(arena_constructor:greptime.v1.ChangeFulltext)
 }
 ChangeFulltext::ChangeFulltext(const ChangeFulltext& from)
   : ::PROTOBUF_NAMESPACE_ID::Message() {
   ChangeFulltext* const _this = this; (void)_this;
   new (&_impl_) Impl_{
-      /*decltype(_impl_.options_)*/{}
-    , decltype(_impl_.column_name_){}
+      decltype(_impl_.column_name_){}
+    , decltype(_impl_.options_){nullptr}
     , /*decltype(_impl_._cached_size_)*/{}};
 
   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
-  _this->_impl_.options_.MergeFrom(from._impl_.options_);
   _impl_.column_name_.InitDefault();
   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
     _impl_.column_name_.Set("", GetArenaForAllocation());
@@ -6809,6 +7063,9 @@ ChangeFulltext::ChangeFulltext(const ChangeFulltext& from)
     _this->_impl_.column_name_.Set(from._internal_column_name(), 
       _this->GetArenaForAllocation());
   }
+  if (from._internal_has_options()) {
+    _this->_impl_.options_ = new ::greptime::v1::ChangeFulltext_FulltextOptions(*from._impl_.options_);
+  }
   // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeFulltext)
 }
 
@@ -6817,8 +7074,8 @@ inline void ChangeFulltext::SharedCtor(
   (void)arena;
   (void)is_message_owned;
   new (&_impl_) Impl_{
-      /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena}
-    , decltype(_impl_.column_name_){}
+      decltype(_impl_.column_name_){}
+    , decltype(_impl_.options_){nullptr}
     , /*decltype(_impl_._cached_size_)*/{}
   };
   _impl_.column_name_.InitDefault();
@@ -6831,7 +7088,6 @@ ChangeFulltext::~ChangeFulltext() {
   // @@protoc_insertion_point(destructor:greptime.v1.ChangeFulltext)
   if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
   (void)arena;
-    ArenaDtor(this);
     return;
   }
   SharedDtor();
@@ -6839,15 +7095,10 @@ ChangeFulltext::~ChangeFulltext() {
 
 inline void ChangeFulltext::SharedDtor() {
   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
-  _impl_.options_.Destruct();
-  _impl_.options_.~MapField();
   _impl_.column_name_.Destroy();
+  if (this != internal_default_instance()) delete _impl_.options_;
 }
 
-void ChangeFulltext::ArenaDtor(void* object) {
-  ChangeFulltext* _this = reinterpret_cast< ChangeFulltext* >(object);
-  _this->_impl_.options_.Destruct();
-}
 void ChangeFulltext::SetCachedSize(int size) const {
   _impl_._cached_size_.Set(size);
 }
@@ -6858,8 +7109,11 @@ void ChangeFulltext::Clear() {
   // Prevent compiler warnings about cached_has_bits being unused
   (void) cached_has_bits;
 
-  _impl_.options_.Clear();
   _impl_.column_name_.ClearToEmpty();
+  if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) {
+    delete _impl_.options_;
+  }
+  _impl_.options_ = nullptr;
   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
 }
 
@@ -6879,16 +7133,11 @@ const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext
         } else
           goto handle_unusual;
         continue;
-      // map options = 2;
+      // .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
       case 2:
         if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
-          ptr -= 1;
-          do {
-            ptr += 1;
-            ptr = ctx->ParseMessage(&_impl_.options_, ptr);
-            CHK_(ptr);
-            if (!ctx->DataAvailable(ptr)) break;
-          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
+          ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
+          CHK_(ptr);
         } else
           goto handle_unusual;
         continue;
@@ -6931,34 +7180,11 @@ uint8_t* ChangeFulltext::_InternalSerialize(
         1, this->_internal_column_name(), target);
   }
 
-  // map options = 2;
-  if (!this->_internal_options().empty()) {
-    using MapType = ::_pb::Map;
-    using WireHelper = ChangeFulltext_OptionsEntry_DoNotUse::Funcs;
-    const auto& map_field = this->_internal_options();
-    auto check_utf8 = [](const MapType::value_type& entry) {
-      (void)entry;
-      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
-        entry.first.data(), static_cast(entry.first.length()),
-        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
-        "greptime.v1.ChangeFulltext.OptionsEntry.key");
-      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
-        entry.second.data(), static_cast(entry.second.length()),
-        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
-        "greptime.v1.ChangeFulltext.OptionsEntry.value");
-    };
-
-    if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
-      for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) {
-        target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream);
-        check_utf8(entry);
-      }
-    } else {
-      for (const auto& entry : map_field) {
-        target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream);
-        check_utf8(entry);
-      }
-    }
+  // .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+  if (this->_internal_has_options()) {
+    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
+      InternalWriteMessage(2, _Internal::options(this),
+        _Internal::options(this).GetCachedSize(), target, stream);
   }
 
   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -6977,15 +7203,6 @@ size_t ChangeFulltext::ByteSizeLong() const {
   // Prevent compiler warnings about cached_has_bits being unused
   (void) cached_has_bits;
 
-  // map options = 2;
-  total_size += 1 *
-      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size());
-  for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
-      it = this->_internal_options().begin();
-      it != this->_internal_options().end(); ++it) {
-    total_size += ChangeFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
-  }
-
   // string column_name = 1;
   if (!this->_internal_column_name().empty()) {
     total_size += 1 +
@@ -6993,6 +7210,13 @@ size_t ChangeFulltext::ByteSizeLong() const {
         this->_internal_column_name());
   }
 
+  // .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+  if (this->_internal_has_options()) {
+    total_size += 1 +
+      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
+        *_impl_.options_);
+  }
+
   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
 }
 
@@ -7011,10 +7235,13 @@ void ChangeFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
   uint32_t cached_has_bits = 0;
   (void) cached_has_bits;
 
-  _this->_impl_.options_.MergeFrom(from._impl_.options_);
   if (!from._internal_column_name().empty()) {
     _this->_internal_set_column_name(from._internal_column_name());
   }
+  if (from._internal_has_options()) {
+    _this->_internal_mutable_options()->::greptime::v1::ChangeFulltext_FulltextOptions::MergeFrom(
+        from._internal_options());
+  }
   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
 }
 
@@ -7034,11 +7261,11 @@ void ChangeFulltext::InternalSwap(ChangeFulltext* other) {
   auto* lhs_arena = GetArenaForAllocation();
   auto* rhs_arena = other->GetArenaForAllocation();
   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
-  _impl_.options_.InternalSwap(&other->_impl_.options_);
   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
       &_impl_.column_name_, lhs_arena,
       &other->_impl_.column_name_, rhs_arena
   );
+  swap(_impl_.options_, other->_impl_.options_);
 }
 
 ::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext::GetMetadata() const {
@@ -9120,9 +9347,9 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnTypes*
 Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(Arena* arena) {
   return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnTypes >(arena);
 }
-template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse*
-Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse >(Arena* arena) {
-  return Arena::CreateMessageInternal< ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse >(arena);
+template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext_FulltextOptions*
+Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext_FulltextOptions >(Arena* arena) {
+  return Arena::CreateMessageInternal< ::greptime::v1::ChangeFulltext_FulltextOptions >(arena);
 }
 template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext*
 Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(Arena* arena) {
diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h
index a3db71b4..839ebcc4 100644
--- a/c++/greptime/v1/ddl.pb.h
+++ b/c++/greptime/v1/ddl.pb.h
@@ -72,9 +72,9 @@ extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_
 class ChangeFulltext;
 struct ChangeFulltextDefaultTypeInternal;
 extern ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_;
-class ChangeFulltext_OptionsEntry_DoNotUse;
-struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal;
-extern ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_;
+class ChangeFulltext_FulltextOptions;
+struct ChangeFulltext_FulltextOptionsDefaultTypeInternal;
+extern ChangeFulltext_FulltextOptionsDefaultTypeInternal _ChangeFulltext_FulltextOptions_default_instance_;
 class ColumnDef;
 struct ColumnDefDefaultTypeInternal;
 extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
@@ -142,7 +142,7 @@ template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::
 template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*);
 template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*);
 template<> ::greptime::v1::ChangeFulltext* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext>(Arena*);
-template<> ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse>(Arena*);
+template<> ::greptime::v1::ChangeFulltext_FulltextOptions* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext_FulltextOptions>(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*);
@@ -3587,32 +3587,179 @@ class ChangeColumnTypes final :
 };
 // -------------------------------------------------------------------
 
-class ChangeFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry {
-public:
-  typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType;
-  ChangeFulltext_OptionsEntry_DoNotUse();
-  explicit PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse(
-      ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-  explicit ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
-  void MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other);
-  static const ChangeFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_); }
-  static bool ValidateKey(std::string* s) {
-    return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.ChangeFulltext.OptionsEntry.key");
- }
-  static bool ValidateValue(std::string* s) {
-    return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.ChangeFulltext.OptionsEntry.value");
- }
+class ChangeFulltext_FulltextOptions final :
+    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeFulltext.FulltextOptions) */ {
+ public:
+  inline ChangeFulltext_FulltextOptions() : ChangeFulltext_FulltextOptions(nullptr) {}
+  ~ChangeFulltext_FulltextOptions() override;
+  explicit PROTOBUF_CONSTEXPR ChangeFulltext_FulltextOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
+
+  ChangeFulltext_FulltextOptions(const ChangeFulltext_FulltextOptions& from);
+  ChangeFulltext_FulltextOptions(ChangeFulltext_FulltextOptions&& from) noexcept
+    : ChangeFulltext_FulltextOptions() {
+    *this = ::std::move(from);
+  }
+
+  inline ChangeFulltext_FulltextOptions& operator=(const ChangeFulltext_FulltextOptions& from) {
+    CopyFrom(from);
+    return *this;
+  }
+  inline ChangeFulltext_FulltextOptions& operator=(ChangeFulltext_FulltextOptions&& 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 ChangeFulltext_FulltextOptions& default_instance() {
+    return *internal_default_instance();
+  }
+  static inline const ChangeFulltext_FulltextOptions* internal_default_instance() {
+    return reinterpret_cast(
+               &_ChangeFulltext_FulltextOptions_default_instance_);
+  }
+  static constexpr int kIndexInFileMessages =
+    17;
+
+  friend void swap(ChangeFulltext_FulltextOptions& a, ChangeFulltext_FulltextOptions& b) {
+    a.Swap(&b);
+  }
+  inline void Swap(ChangeFulltext_FulltextOptions* 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(ChangeFulltext_FulltextOptions* other) {
+    if (other == this) return;
+    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
+    InternalSwap(other);
+  }
+
+  // implements Message ----------------------------------------------
+
+  ChangeFulltext_FulltextOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
+    return CreateMaybeMessage(arena);
+  }
+  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
+  void CopyFrom(const ChangeFulltext_FulltextOptions& from);
   using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
+  void MergeFrom( const ChangeFulltext_FulltextOptions& from) {
+    ChangeFulltext_FulltextOptions::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(ChangeFulltext_FulltextOptions* other);
+
+  private:
+  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
+  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
+    return "greptime.v1.ChangeFulltext.FulltextOptions";
+  }
+  protected:
+  explicit ChangeFulltext_FulltextOptions(::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 {
+    kAnalyzerFieldNumber = 2,
+    kEnableFieldNumber = 1,
+    kCaseSensitiveFieldNumber = 3,
+  };
+  // string analyzer = 2;
+  void clear_analyzer();
+  const std::string& analyzer() const;
+  template 
+  void set_analyzer(ArgT0&& arg0, ArgT... args);
+  std::string* mutable_analyzer();
+  PROTOBUF_NODISCARD std::string* release_analyzer();
+  void set_allocated_analyzer(std::string* analyzer);
+  private:
+  const std::string& _internal_analyzer() const;
+  inline PROTOBUF_ALWAYS_INLINE void _internal_set_analyzer(const std::string& value);
+  std::string* _internal_mutable_analyzer();
+  public:
+
+  // bool enable = 1;
+  void clear_enable();
+  bool enable() const;
+  void set_enable(bool value);
+  private:
+  bool _internal_enable() const;
+  void _internal_set_enable(bool value);
+  public:
+
+  // bool case_sensitive = 3;
+  void clear_case_sensitive();
+  bool case_sensitive() const;
+  void set_case_sensitive(bool value);
+  private:
+  bool _internal_case_sensitive() const;
+  void _internal_set_case_sensitive(bool value);
+  public:
+
+  // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext.FulltextOptions)
+ private:
+  class _Internal;
+
+  template  friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
+  typedef void InternalArenaConstructable_;
+  typedef void DestructorSkippable_;
+  struct Impl_ {
+    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr analyzer_;
+    bool enable_;
+    bool case_sensitive_;
+    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
+  };
+  union { Impl_ _impl_; };
   friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
 };
-
 // -------------------------------------------------------------------
 
 class ChangeFulltext final :
@@ -3724,8 +3871,6 @@ class ChangeFulltext final :
   protected:
   explicit ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                        bool is_message_owned = false);
-  private:
-  static void ArenaDtor(void* object);
   public:
 
   static const ClassData _class_data_;
@@ -3735,30 +3880,14 @@ class ChangeFulltext final :
 
   // nested types ----------------------------------------------------
 
+  typedef ChangeFulltext_FulltextOptions FulltextOptions;
 
   // accessors -------------------------------------------------------
 
   enum : int {
-    kOptionsFieldNumber = 2,
     kColumnNameFieldNumber = 1,
+    kOptionsFieldNumber = 2,
   };
-  // map options = 2;
-  int options_size() const;
-  private:
-  int _internal_options_size() const;
-  public:
-  void clear_options();
-  private:
-  const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
-      _internal_options() const;
-  ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
-      _internal_mutable_options();
-  public:
-  const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
-      options() const;
-  ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
-      mutable_options();
-
   // string column_name = 1;
   void clear_column_name();
   const std::string& column_name() const;
@@ -3773,6 +3902,24 @@ class ChangeFulltext final :
   std::string* _internal_mutable_column_name();
   public:
 
+  // .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+  bool has_options() const;
+  private:
+  bool _internal_has_options() const;
+  public:
+  void clear_options();
+  const ::greptime::v1::ChangeFulltext_FulltextOptions& options() const;
+  PROTOBUF_NODISCARD ::greptime::v1::ChangeFulltext_FulltextOptions* release_options();
+  ::greptime::v1::ChangeFulltext_FulltextOptions* mutable_options();
+  void set_allocated_options(::greptime::v1::ChangeFulltext_FulltextOptions* options);
+  private:
+  const ::greptime::v1::ChangeFulltext_FulltextOptions& _internal_options() const;
+  ::greptime::v1::ChangeFulltext_FulltextOptions* _internal_mutable_options();
+  public:
+  void unsafe_arena_set_allocated_options(
+      ::greptime::v1::ChangeFulltext_FulltextOptions* options);
+  ::greptime::v1::ChangeFulltext_FulltextOptions* unsafe_arena_release_options();
+
   // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext)
  private:
   class _Internal;
@@ -3781,12 +3928,8 @@ class ChangeFulltext final :
   typedef void InternalArenaConstructable_;
   typedef void DestructorSkippable_;
   struct Impl_ {
-    ::PROTOBUF_NAMESPACE_ID::internal::MapField<
-        ChangeFulltext_OptionsEntry_DoNotUse,
-        std::string, std::string,
-        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
-        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_;
     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_;
+    ::greptime::v1::ChangeFulltext_FulltextOptions* options_;
     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
   };
   union { Impl_ _impl_; };
@@ -9348,6 +9491,98 @@ ChangeColumnTypes::change_column_types() const {
 
 // -------------------------------------------------------------------
 
+// ChangeFulltext_FulltextOptions
+
+// bool enable = 1;
+inline void ChangeFulltext_FulltextOptions::clear_enable() {
+  _impl_.enable_ = false;
+}
+inline bool ChangeFulltext_FulltextOptions::_internal_enable() const {
+  return _impl_.enable_;
+}
+inline bool ChangeFulltext_FulltextOptions::enable() const {
+  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.FulltextOptions.enable)
+  return _internal_enable();
+}
+inline void ChangeFulltext_FulltextOptions::_internal_set_enable(bool value) {
+  
+  _impl_.enable_ = value;
+}
+inline void ChangeFulltext_FulltextOptions::set_enable(bool value) {
+  _internal_set_enable(value);
+  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.FulltextOptions.enable)
+}
+
+// string analyzer = 2;
+inline void ChangeFulltext_FulltextOptions::clear_analyzer() {
+  _impl_.analyzer_.ClearToEmpty();
+}
+inline const std::string& ChangeFulltext_FulltextOptions::analyzer() const {
+  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
+  return _internal_analyzer();
+}
+template 
+inline PROTOBUF_ALWAYS_INLINE
+void ChangeFulltext_FulltextOptions::set_analyzer(ArgT0&& arg0, ArgT... args) {
+ 
+ _impl_.analyzer_.Set(static_cast(arg0), args..., GetArenaForAllocation());
+  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
+}
+inline std::string* ChangeFulltext_FulltextOptions::mutable_analyzer() {
+  std::string* _s = _internal_mutable_analyzer();
+  // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
+  return _s;
+}
+inline const std::string& ChangeFulltext_FulltextOptions::_internal_analyzer() const {
+  return _impl_.analyzer_.Get();
+}
+inline void ChangeFulltext_FulltextOptions::_internal_set_analyzer(const std::string& value) {
+  
+  _impl_.analyzer_.Set(value, GetArenaForAllocation());
+}
+inline std::string* ChangeFulltext_FulltextOptions::_internal_mutable_analyzer() {
+  
+  return _impl_.analyzer_.Mutable(GetArenaForAllocation());
+}
+inline std::string* ChangeFulltext_FulltextOptions::release_analyzer() {
+  // @@protoc_insertion_point(field_release:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
+  return _impl_.analyzer_.Release();
+}
+inline void ChangeFulltext_FulltextOptions::set_allocated_analyzer(std::string* analyzer) {
+  if (analyzer != nullptr) {
+    
+  } else {
+    
+  }
+  _impl_.analyzer_.SetAllocated(analyzer, GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+  if (_impl_.analyzer_.IsDefault()) {
+    _impl_.analyzer_.Set("", GetArenaForAllocation());
+  }
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+  // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
+}
+
+// bool case_sensitive = 3;
+inline void ChangeFulltext_FulltextOptions::clear_case_sensitive() {
+  _impl_.case_sensitive_ = false;
+}
+inline bool ChangeFulltext_FulltextOptions::_internal_case_sensitive() const {
+  return _impl_.case_sensitive_;
+}
+inline bool ChangeFulltext_FulltextOptions::case_sensitive() const {
+  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.FulltextOptions.case_sensitive)
+  return _internal_case_sensitive();
+}
+inline void ChangeFulltext_FulltextOptions::_internal_set_case_sensitive(bool value) {
+  
+  _impl_.case_sensitive_ = value;
+}
+inline void ChangeFulltext_FulltextOptions::set_case_sensitive(bool value) {
+  _internal_set_case_sensitive(value);
+  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.FulltextOptions.case_sensitive)
+}
+
 // -------------------------------------------------------------------
 
 // ChangeFulltext
@@ -9402,33 +9637,94 @@ inline void ChangeFulltext::set_allocated_column_name(std::string* column_name)
   // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.column_name)
 }
 
-// map options = 2;
-inline int ChangeFulltext::_internal_options_size() const {
-  return _impl_.options_.size();
+// .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+inline bool ChangeFulltext::_internal_has_options() const {
+  return this != internal_default_instance() && _impl_.options_ != nullptr;
 }
-inline int ChangeFulltext::options_size() const {
-  return _internal_options_size();
+inline bool ChangeFulltext::has_options() const {
+  return _internal_has_options();
 }
 inline void ChangeFulltext::clear_options() {
-  _impl_.options_.Clear();
+  if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) {
+    delete _impl_.options_;
+  }
+  _impl_.options_ = nullptr;
 }
-inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
-ChangeFulltext::_internal_options() const {
-  return _impl_.options_.GetMap();
+inline const ::greptime::v1::ChangeFulltext_FulltextOptions& ChangeFulltext::_internal_options() const {
+  const ::greptime::v1::ChangeFulltext_FulltextOptions* p = _impl_.options_;
+  return p != nullptr ? *p : reinterpret_cast(
+      ::greptime::v1::_ChangeFulltext_FulltextOptions_default_instance_);
 }
-inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
-ChangeFulltext::options() const {
-  // @@protoc_insertion_point(field_map:greptime.v1.ChangeFulltext.options)
+inline const ::greptime::v1::ChangeFulltext_FulltextOptions& ChangeFulltext::options() const {
+  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.options)
   return _internal_options();
 }
-inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
-ChangeFulltext::_internal_mutable_options() {
-  return _impl_.options_.MutableMap();
+inline void ChangeFulltext::unsafe_arena_set_allocated_options(
+    ::greptime::v1::ChangeFulltext_FulltextOptions* options) {
+  if (GetArenaForAllocation() == nullptr) {
+    delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
+  }
+  _impl_.options_ = options;
+  if (options) {
+    
+  } else {
+    
+  }
+  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ChangeFulltext.options)
 }
-inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
-ChangeFulltext::mutable_options() {
-  // @@protoc_insertion_point(field_mutable_map:greptime.v1.ChangeFulltext.options)
-  return _internal_mutable_options();
+inline ::greptime::v1::ChangeFulltext_FulltextOptions* ChangeFulltext::release_options() {
+  
+  ::greptime::v1::ChangeFulltext_FulltextOptions* temp = _impl_.options_;
+  _impl_.options_ = nullptr;
+#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
+  auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
+  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+  if (GetArenaForAllocation() == nullptr) { delete old; }
+#else  // PROTOBUF_FORCE_COPY_IN_RELEASE
+  if (GetArenaForAllocation() != nullptr) {
+    temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
+  }
+#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
+  return temp;
+}
+inline ::greptime::v1::ChangeFulltext_FulltextOptions* ChangeFulltext::unsafe_arena_release_options() {
+  // @@protoc_insertion_point(field_release:greptime.v1.ChangeFulltext.options)
+  
+  ::greptime::v1::ChangeFulltext_FulltextOptions* temp = _impl_.options_;
+  _impl_.options_ = nullptr;
+  return temp;
+}
+inline ::greptime::v1::ChangeFulltext_FulltextOptions* ChangeFulltext::_internal_mutable_options() {
+  
+  if (_impl_.options_ == nullptr) {
+    auto* p = CreateMaybeMessage<::greptime::v1::ChangeFulltext_FulltextOptions>(GetArenaForAllocation());
+    _impl_.options_ = p;
+  }
+  return _impl_.options_;
+}
+inline ::greptime::v1::ChangeFulltext_FulltextOptions* ChangeFulltext::mutable_options() {
+  ::greptime::v1::ChangeFulltext_FulltextOptions* _msg = _internal_mutable_options();
+  // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeFulltext.options)
+  return _msg;
+}
+inline void ChangeFulltext::set_allocated_options(::greptime::v1::ChangeFulltext_FulltextOptions* options) {
+  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
+  if (message_arena == nullptr) {
+    delete _impl_.options_;
+  }
+  if (options) {
+    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
+        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
+    if (message_arena != submessage_arena) {
+      options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+          message_arena, options, submessage_arena);
+    }
+    
+  } else {
+    
+  }
+  _impl_.options_ = options;
+  // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.options)
 }
 
 // -------------------------------------------------------------------
diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc
index 9b871971..f165086b 100644
--- a/c++/greptime/v1/region/server.pb.cc
+++ b/c++/greptime/v1/region/server.pb.cc
@@ -827,36 +827,36 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
   "OptionsEntry\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 .gre"
-  "ptime.v1.region.AlterRequest\"\247\002\n\014AlterRe"
+  "ptime.v1.region.AlterRequest\"\250\002\n\014AlterRe"
   "quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030"
   "\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022"
   "7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi"
   "on.DropColumnsH\000\022=\n\023change_column_types\030"
   "\005 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022"
-  "5\n\016change_fulltex\030\006 \001(\0132\033.greptime.v1.Ch"
-  "angeFulltextH\000\022\026\n\016schema_version\030\004 \001(\004B\006"
-  "\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003("
-  "\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop"
-  "Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime"
-  ".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco"
-  "lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi"
-  "onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime"
-  ".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n"
-  "ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001"
-  " \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo"
-  "w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre"
-  "gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim"
-  "e.v1.region.RegularH\000\0229\n\rstrict_window\030\003"
-  " \001(\0132 .greptime.v1.region.StrictWindowH\000"
-  "B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion"
-  "_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d"
-  "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu"
-  "mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti"
-  "me.v1.region.RegionRequest\032\".greptime.v1"
-  ".region.RegionResponseB]\n\025io.greptime.v1"
-  ".regionB\006ServerZ_impl_.kind_.change_column_types_;
 }
 const ::greptime::v1::ChangeFulltext&
-AlterRequest::_Internal::change_fulltex(const AlterRequest* msg) {
-  return *msg->_impl_.kind_.change_fulltex_;
+AlterRequest::_Internal::change_fulltext(const AlterRequest* msg) {
+  return *msg->_impl_.kind_.change_fulltext_;
 }
 void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) {
   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
@@ -5400,26 +5400,26 @@ void AlterRequest::clear_change_column_types() {
     clear_has_kind();
   }
 }
-void AlterRequest::set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex) {
+void AlterRequest::set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext) {
   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
   clear_kind();
-  if (change_fulltex) {
+  if (change_fulltext) {
     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
-                reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_fulltex));
+                reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_fulltext));
     if (message_arena != submessage_arena) {
-      change_fulltex = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
-          message_arena, change_fulltex, submessage_arena);
+      change_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
+          message_arena, change_fulltext, submessage_arena);
     }
-    set_has_change_fulltex();
-    _impl_.kind_.change_fulltex_ = change_fulltex;
+    set_has_change_fulltext();
+    _impl_.kind_.change_fulltext_ = change_fulltext;
   }
-  // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_fulltex)
+  // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_fulltext)
 }
-void AlterRequest::clear_change_fulltex() {
-  if (_internal_has_change_fulltex()) {
+void AlterRequest::clear_change_fulltext() {
+  if (_internal_has_change_fulltext()) {
     if (GetArenaForAllocation() == nullptr) {
-      delete _impl_.kind_.change_fulltex_;
+      delete _impl_.kind_.change_fulltext_;
     }
     clear_has_kind();
   }
@@ -5461,9 +5461,9 @@ AlterRequest::AlterRequest(const AlterRequest& from)
           from._internal_change_column_types());
       break;
     }
-    case kChangeFulltex: {
-      _this->_internal_mutable_change_fulltex()->::greptime::v1::ChangeFulltext::MergeFrom(
-          from._internal_change_fulltex());
+    case kChangeFulltext: {
+      _this->_internal_mutable_change_fulltext()->::greptime::v1::ChangeFulltext::MergeFrom(
+          from._internal_change_fulltext());
       break;
     }
     case KIND_NOT_SET: {
@@ -5528,9 +5528,9 @@ void AlterRequest::clear_kind() {
       }
       break;
     }
-    case kChangeFulltex: {
+    case kChangeFulltext: {
       if (GetArenaForAllocation() == nullptr) {
-        delete _impl_.kind_.change_fulltex_;
+        delete _impl_.kind_.change_fulltext_;
       }
       break;
     }
@@ -5601,10 +5601,10 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
         } else
           goto handle_unusual;
         continue;
-      // .greptime.v1.ChangeFulltext change_fulltex = 6;
+      // .greptime.v1.ChangeFulltext change_fulltext = 6;
       case 6:
         if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) {
-          ptr = ctx->ParseMessage(_internal_mutable_change_fulltex(), ptr);
+          ptr = ctx->ParseMessage(_internal_mutable_change_fulltext(), ptr);
           CHK_(ptr);
         } else
           goto handle_unusual;
@@ -5671,11 +5671,11 @@ uint8_t* AlterRequest::_InternalSerialize(
         _Internal::change_column_types(this).GetCachedSize(), target, stream);
   }
 
-  // .greptime.v1.ChangeFulltext change_fulltex = 6;
-  if (_internal_has_change_fulltex()) {
+  // .greptime.v1.ChangeFulltext change_fulltext = 6;
+  if (_internal_has_change_fulltext()) {
     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
-      InternalWriteMessage(6, _Internal::change_fulltex(this),
-        _Internal::change_fulltex(this).GetCachedSize(), target, stream);
+      InternalWriteMessage(6, _Internal::change_fulltext(this),
+        _Internal::change_fulltext(this).GetCachedSize(), target, stream);
   }
 
   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -5726,11 +5726,11 @@ size_t AlterRequest::ByteSizeLong() const {
           *_impl_.kind_.change_column_types_);
       break;
     }
-    // .greptime.v1.ChangeFulltext change_fulltex = 6;
-    case kChangeFulltex: {
+    // .greptime.v1.ChangeFulltext change_fulltext = 6;
+    case kChangeFulltext: {
       total_size += 1 +
         ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
-          *_impl_.kind_.change_fulltex_);
+          *_impl_.kind_.change_fulltext_);
       break;
     }
     case KIND_NOT_SET: {
@@ -5777,9 +5777,9 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
           from._internal_change_column_types());
       break;
     }
-    case kChangeFulltex: {
-      _this->_internal_mutable_change_fulltex()->::greptime::v1::ChangeFulltext::MergeFrom(
-          from._internal_change_fulltex());
+    case kChangeFulltext: {
+      _this->_internal_mutable_change_fulltext()->::greptime::v1::ChangeFulltext::MergeFrom(
+          from._internal_change_fulltext());
       break;
     }
     case KIND_NOT_SET: {
diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h
index b8d658ab..9a9e9925 100644
--- a/c++/greptime/v1/region/server.pb.h
+++ b/c++/greptime/v1/region/server.pb.h
@@ -3251,7 +3251,7 @@ class AlterRequest final :
     kAddColumns = 2,
     kDropColumns = 3,
     kChangeColumnTypes = 5,
-    kChangeFulltex = 6,
+    kChangeFulltext = 6,
     KIND_NOT_SET = 0,
   };
 
@@ -3338,7 +3338,7 @@ class AlterRequest final :
     kAddColumnsFieldNumber = 2,
     kDropColumnsFieldNumber = 3,
     kChangeColumnTypesFieldNumber = 5,
-    kChangeFulltexFieldNumber = 6,
+    kChangeFulltextFieldNumber = 6,
   };
   // uint64 region_id = 1;
   void clear_region_id();
@@ -3412,23 +3412,23 @@ class AlterRequest final :
       ::greptime::v1::ChangeColumnTypes* change_column_types);
   ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types();
 
-  // .greptime.v1.ChangeFulltext change_fulltex = 6;
-  bool has_change_fulltex() const;
+  // .greptime.v1.ChangeFulltext change_fulltext = 6;
+  bool has_change_fulltext() const;
   private:
-  bool _internal_has_change_fulltex() const;
+  bool _internal_has_change_fulltext() const;
   public:
-  void clear_change_fulltex();
-  const ::greptime::v1::ChangeFulltext& change_fulltex() const;
-  PROTOBUF_NODISCARD ::greptime::v1::ChangeFulltext* release_change_fulltex();
-  ::greptime::v1::ChangeFulltext* mutable_change_fulltex();
-  void set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex);
+  void clear_change_fulltext();
+  const ::greptime::v1::ChangeFulltext& change_fulltext() const;
+  PROTOBUF_NODISCARD ::greptime::v1::ChangeFulltext* release_change_fulltext();
+  ::greptime::v1::ChangeFulltext* mutable_change_fulltext();
+  void set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext);
   private:
-  const ::greptime::v1::ChangeFulltext& _internal_change_fulltex() const;
-  ::greptime::v1::ChangeFulltext* _internal_mutable_change_fulltex();
+  const ::greptime::v1::ChangeFulltext& _internal_change_fulltext() const;
+  ::greptime::v1::ChangeFulltext* _internal_mutable_change_fulltext();
   public:
-  void unsafe_arena_set_allocated_change_fulltex(
-      ::greptime::v1::ChangeFulltext* change_fulltex);
-  ::greptime::v1::ChangeFulltext* unsafe_arena_release_change_fulltex();
+  void unsafe_arena_set_allocated_change_fulltext(
+      ::greptime::v1::ChangeFulltext* change_fulltext);
+  ::greptime::v1::ChangeFulltext* unsafe_arena_release_change_fulltext();
 
   void clear_kind();
   KindCase kind_case() const;
@@ -3438,7 +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_fulltex();
+  void set_has_change_fulltext();
 
   inline bool has_kind() const;
   inline void clear_has_kind();
@@ -3455,7 +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::ChangeFulltext* change_fulltex_;
+      ::greptime::v1::ChangeFulltext* change_fulltext_;
     } kind_;
     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
     uint32_t _oneof_case_[1];
@@ -7712,69 +7712,69 @@ inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_ty
   return _msg;
 }
 
-// .greptime.v1.ChangeFulltext change_fulltex = 6;
-inline bool AlterRequest::_internal_has_change_fulltex() const {
-  return kind_case() == kChangeFulltex;
+// .greptime.v1.ChangeFulltext change_fulltext = 6;
+inline bool AlterRequest::_internal_has_change_fulltext() const {
+  return kind_case() == kChangeFulltext;
 }
-inline bool AlterRequest::has_change_fulltex() const {
-  return _internal_has_change_fulltex();
+inline bool AlterRequest::has_change_fulltext() const {
+  return _internal_has_change_fulltext();
 }
-inline void AlterRequest::set_has_change_fulltex() {
-  _impl_._oneof_case_[0] = kChangeFulltex;
+inline void AlterRequest::set_has_change_fulltext() {
+  _impl_._oneof_case_[0] = kChangeFulltext;
 }
-inline ::greptime::v1::ChangeFulltext* AlterRequest::release_change_fulltex() {
-  // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_fulltex)
-  if (_internal_has_change_fulltex()) {
+inline ::greptime::v1::ChangeFulltext* AlterRequest::release_change_fulltext() {
+  // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_fulltext)
+  if (_internal_has_change_fulltext()) {
     clear_has_kind();
-    ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltex_;
+    ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltext_;
     if (GetArenaForAllocation() != nullptr) {
       temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
     }
-    _impl_.kind_.change_fulltex_ = nullptr;
+    _impl_.kind_.change_fulltext_ = nullptr;
     return temp;
   } else {
     return nullptr;
   }
 }
-inline const ::greptime::v1::ChangeFulltext& AlterRequest::_internal_change_fulltex() const {
-  return _internal_has_change_fulltex()
-      ? *_impl_.kind_.change_fulltex_
+inline const ::greptime::v1::ChangeFulltext& AlterRequest::_internal_change_fulltext() const {
+  return _internal_has_change_fulltext()
+      ? *_impl_.kind_.change_fulltext_
       : reinterpret_cast< ::greptime::v1::ChangeFulltext&>(::greptime::v1::_ChangeFulltext_default_instance_);
 }
-inline const ::greptime::v1::ChangeFulltext& AlterRequest::change_fulltex() const {
-  // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_fulltex)
-  return _internal_change_fulltex();
+inline const ::greptime::v1::ChangeFulltext& AlterRequest::change_fulltext() const {
+  // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_fulltext)
+  return _internal_change_fulltext();
 }
-inline ::greptime::v1::ChangeFulltext* AlterRequest::unsafe_arena_release_change_fulltex() {
-  // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_fulltex)
-  if (_internal_has_change_fulltex()) {
+inline ::greptime::v1::ChangeFulltext* AlterRequest::unsafe_arena_release_change_fulltext() {
+  // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_fulltext)
+  if (_internal_has_change_fulltext()) {
     clear_has_kind();
-    ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltex_;
-    _impl_.kind_.change_fulltex_ = nullptr;
+    ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltext_;
+    _impl_.kind_.change_fulltext_ = nullptr;
     return temp;
   } else {
     return nullptr;
   }
 }
-inline void AlterRequest::unsafe_arena_set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex) {
+inline void AlterRequest::unsafe_arena_set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext) {
   clear_kind();
-  if (change_fulltex) {
-    set_has_change_fulltex();
-    _impl_.kind_.change_fulltex_ = change_fulltex;
+  if (change_fulltext) {
+    set_has_change_fulltext();
+    _impl_.kind_.change_fulltext_ = change_fulltext;
   }
-  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_fulltex)
+  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_fulltext)
 }
-inline ::greptime::v1::ChangeFulltext* AlterRequest::_internal_mutable_change_fulltex() {
-  if (!_internal_has_change_fulltex()) {
+inline ::greptime::v1::ChangeFulltext* AlterRequest::_internal_mutable_change_fulltext() {
+  if (!_internal_has_change_fulltext()) {
     clear_kind();
-    set_has_change_fulltex();
-    _impl_.kind_.change_fulltex_ = CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(GetArenaForAllocation());
+    set_has_change_fulltext();
+    _impl_.kind_.change_fulltext_ = CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(GetArenaForAllocation());
   }
-  return _impl_.kind_.change_fulltex_;
+  return _impl_.kind_.change_fulltext_;
 }
-inline ::greptime::v1::ChangeFulltext* AlterRequest::mutable_change_fulltex() {
-  ::greptime::v1::ChangeFulltext* _msg = _internal_mutable_change_fulltex();
-  // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_fulltex)
+inline ::greptime::v1::ChangeFulltext* AlterRequest::mutable_change_fulltext() {
+  ::greptime::v1::ChangeFulltext* _msg = _internal_mutable_change_fulltext();
+  // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_fulltext)
   return _msg;
 }
 
diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go
index 1f5cc283..4a028bb6 100644
--- a/go/greptime/v1/ddl.pb.go
+++ b/go/greptime/v1/ddl.pb.go
@@ -1360,8 +1360,8 @@ type ChangeFulltext struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	ColumnName string            `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
-	Options    map[string]string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
+	ColumnName string                          `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
+	Options    *ChangeFulltext_FulltextOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
 }
 
 func (x *ChangeFulltext) Reset() {
@@ -1403,7 +1403,7 @@ func (x *ChangeFulltext) GetColumnName() string {
 	return ""
 }
 
-func (x *ChangeFulltext) GetOptions() map[string]string {
+func (x *ChangeFulltext) GetOptions() *ChangeFulltext_FulltextOptions {
 	if x != nil {
 		return x.Options
 	}
@@ -1876,6 +1876,69 @@ func (x *AddColumnLocation) GetAfterColumnName() string {
 	return ""
 }
 
+type ChangeFulltext_FulltextOptions struct {
+	state         protoimpl.MessageState
+	sizeCache     protoimpl.SizeCache
+	unknownFields protoimpl.UnknownFields
+
+	Enable        bool   `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
+	Analyzer      string `protobuf:"bytes,2,opt,name=analyzer,proto3" json:"analyzer,omitempty"`
+	CaseSensitive bool   `protobuf:"varint,3,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
+}
+
+func (x *ChangeFulltext_FulltextOptions) Reset() {
+	*x = ChangeFulltext_FulltextOptions{}
+	if protoimpl.UnsafeEnabled {
+		mi := &file_greptime_v1_ddl_proto_msgTypes[26]
+		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+		ms.StoreMessageInfo(mi)
+	}
+}
+
+func (x *ChangeFulltext_FulltextOptions) String() string {
+	return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ChangeFulltext_FulltextOptions) ProtoMessage() {}
+
+func (x *ChangeFulltext_FulltextOptions) ProtoReflect() protoreflect.Message {
+	mi := &file_greptime_v1_ddl_proto_msgTypes[26]
+	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 ChangeFulltext_FulltextOptions.ProtoReflect.Descriptor instead.
+func (*ChangeFulltext_FulltextOptions) Descriptor() ([]byte, []int) {
+	return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14, 0}
+}
+
+func (x *ChangeFulltext_FulltextOptions) GetEnable() bool {
+	if x != nil {
+		return x.Enable
+	}
+	return false
+}
+
+func (x *ChangeFulltext_FulltextOptions) GetAnalyzer() string {
+	if x != nil {
+		return x.Analyzer
+	}
+	return ""
+}
+
+func (x *ChangeFulltext_FulltextOptions) GetCaseSensitive() bool {
+	if x != nil {
+		return x.CaseSensitive
+	}
+	return false
+}
+
 var File_greptime_v1_ddl_proto protoreflect.FileDescriptor
 
 var file_greptime_v1_ddl_proto_rawDesc = []byte{
@@ -2126,90 +2189,93 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
 	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, 0xb1, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e,
+	0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0xe6, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e,
 	0x67, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x42, 0x0a, 0x07, 0x6f,
-	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67,
+	0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x45, 0x0a, 0x07, 0x6f,
+	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67,
 	0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,
-	0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 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,
+	0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65,
+	0x78, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f,
+	0x6e, 0x73, 0x1a, 0x6c, 0x0a, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x4f, 0x70,
+	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18,
+	0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a,
+	0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
+	0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73,
+	0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
+	0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65,
+	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,
 }
 
 var (
@@ -2227,40 +2293,40 @@ 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, 27)
 var file_greptime_v1_ddl_proto_goTypes = []interface{}{
-	(AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType
-	(*DdlRequest)(nil),                  // 1: greptime.v1.DdlRequest
-	(*CreateFlowExpr)(nil),              // 2: greptime.v1.CreateFlowExpr
-	(*DropFlowExpr)(nil),                // 3: greptime.v1.DropFlowExpr
-	(*CreateViewExpr)(nil),              // 4: greptime.v1.CreateViewExpr
-	(*DropViewExpr)(nil),                // 5: greptime.v1.DropViewExpr
-	(*CreateTableExpr)(nil),             // 6: greptime.v1.CreateTableExpr
-	(*AlterExpr)(nil),                   // 7: greptime.v1.AlterExpr
-	(*DropTableExpr)(nil),               // 8: greptime.v1.DropTableExpr
-	(*CreateDatabaseExpr)(nil),          // 9: greptime.v1.CreateDatabaseExpr
-	(*TruncateTableExpr)(nil),           // 10: greptime.v1.TruncateTableExpr
-	(*DropDatabaseExpr)(nil),            // 11: greptime.v1.DropDatabaseExpr
-	(*AddColumns)(nil),                  // 12: greptime.v1.AddColumns
-	(*DropColumns)(nil),                 // 13: greptime.v1.DropColumns
-	(*ChangeColumnTypes)(nil),           // 14: greptime.v1.ChangeColumnTypes
-	(*ChangeFulltext)(nil),              // 15: greptime.v1.ChangeFulltext
-	(*RenameTable)(nil),                 // 16: greptime.v1.RenameTable
-	(*AddColumn)(nil),                   // 17: greptime.v1.AddColumn
-	(*ChangeColumnType)(nil),            // 18: greptime.v1.ChangeColumnType
-	(*DropColumn)(nil),                  // 19: greptime.v1.DropColumn
-	(*TableId)(nil),                     // 20: greptime.v1.TableId
-	(*FlowId)(nil),                      // 21: greptime.v1.FlowId
-	(*ColumnDef)(nil),                   // 22: greptime.v1.ColumnDef
-	(*AddColumnLocation)(nil),           // 23: greptime.v1.AddColumnLocation
-	nil,                                 // 24: greptime.v1.CreateFlowExpr.FlowOptionsEntry
-	nil,                                 // 25: greptime.v1.CreateTableExpr.TableOptionsEntry
-	nil,                                 // 26: greptime.v1.CreateDatabaseExpr.OptionsEntry
-	nil,                                 // 27: greptime.v1.ChangeFulltext.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
+	(AddColumnLocation_LocationType)(0),    // 0: greptime.v1.AddColumnLocation.LocationType
+	(*DdlRequest)(nil),                     // 1: greptime.v1.DdlRequest
+	(*CreateFlowExpr)(nil),                 // 2: greptime.v1.CreateFlowExpr
+	(*DropFlowExpr)(nil),                   // 3: greptime.v1.DropFlowExpr
+	(*CreateViewExpr)(nil),                 // 4: greptime.v1.CreateViewExpr
+	(*DropViewExpr)(nil),                   // 5: greptime.v1.DropViewExpr
+	(*CreateTableExpr)(nil),                // 6: greptime.v1.CreateTableExpr
+	(*AlterExpr)(nil),                      // 7: greptime.v1.AlterExpr
+	(*DropTableExpr)(nil),                  // 8: greptime.v1.DropTableExpr
+	(*CreateDatabaseExpr)(nil),             // 9: greptime.v1.CreateDatabaseExpr
+	(*TruncateTableExpr)(nil),              // 10: greptime.v1.TruncateTableExpr
+	(*DropDatabaseExpr)(nil),               // 11: greptime.v1.DropDatabaseExpr
+	(*AddColumns)(nil),                     // 12: greptime.v1.AddColumns
+	(*DropColumns)(nil),                    // 13: greptime.v1.DropColumns
+	(*ChangeColumnTypes)(nil),              // 14: greptime.v1.ChangeColumnTypes
+	(*ChangeFulltext)(nil),                 // 15: greptime.v1.ChangeFulltext
+	(*RenameTable)(nil),                    // 16: greptime.v1.RenameTable
+	(*AddColumn)(nil),                      // 17: greptime.v1.AddColumn
+	(*ChangeColumnType)(nil),               // 18: greptime.v1.ChangeColumnType
+	(*DropColumn)(nil),                     // 19: greptime.v1.DropColumn
+	(*TableId)(nil),                        // 20: greptime.v1.TableId
+	(*FlowId)(nil),                         // 21: greptime.v1.FlowId
+	(*ColumnDef)(nil),                      // 22: greptime.v1.ColumnDef
+	(*AddColumnLocation)(nil),              // 23: greptime.v1.AddColumnLocation
+	nil,                                    // 24: greptime.v1.CreateFlowExpr.FlowOptionsEntry
+	nil,                                    // 25: greptime.v1.CreateTableExpr.TableOptionsEntry
+	nil,                                    // 26: greptime.v1.CreateDatabaseExpr.OptionsEntry
+	(*ChangeFulltext_FulltextOptions)(nil), // 27: greptime.v1.ChangeFulltext.FulltextOptions
+	(*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
@@ -2293,7 +2359,7 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
 	17, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
 	19, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
 	18, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType
-	27, // 30: greptime.v1.ChangeFulltext.options:type_name -> greptime.v1.ChangeFulltext.OptionsEntry
+	27, // 30: greptime.v1.ChangeFulltext.options:type_name -> greptime.v1.ChangeFulltext.FulltextOptions
 	22, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
 	23, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
 	30, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType
@@ -2593,6 +2659,18 @@ func file_greptime_v1_ddl_proto_init() {
 				return nil
 			}
 		}
+		file_greptime_v1_ddl_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
+			switch v := v.(*ChangeFulltext_FulltextOptions); 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[0].OneofWrappers = []interface{}{
 		(*DdlRequest_CreateDatabase)(nil),
diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java
index 9bc68531..58000d78 100644
--- a/java/src/main/java/io/greptime/v1/Ddl.java
+++ b/java/src/main/java/io/greptime/v1/Ddl.java
@@ -20254,40 +20254,19 @@ public interface ChangeFulltextOrBuilder extends
         getColumnNameBytes();
 
     /**
-     * map<string, string> options = 2;
-     */
-    int getOptionsCount();
-    /**
-     * map<string, string> options = 2;
-     */
-    boolean containsOptions(
-        java.lang.String key);
-    /**
-     * Use {@link #getOptionsMap()} instead.
-     */
-    @java.lang.Deprecated
-    java.util.Map
-    getOptions();
-    /**
-     * map<string, string> options = 2;
+     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+     * @return Whether the options field is set.
      */
-    java.util.Map
-    getOptionsMap();
+    boolean hasOptions();
     /**
-     * map<string, string> options = 2;
+     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+     * @return The options.
      */
-
-    /* nullable */
-java.lang.String getOptionsOrDefault(
-        java.lang.String key,
-        /* nullable */
-java.lang.String defaultValue);
+    io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getOptions();
     /**
-     * map<string, string> options = 2;
+     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
      */
-
-    java.lang.String getOptionsOrThrow(
-        java.lang.String key);
+    io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder getOptionsOrBuilder();
   }
   /**
    * Protobuf type {@code greptime.v1.ChangeFulltext}
@@ -20325,7 +20304,6 @@ private ChangeFulltext(
       if (extensionRegistry == null) {
         throw new java.lang.NullPointerException();
       }
-      int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
           com.google.protobuf.UnknownFieldSet.newBuilder();
       try {
@@ -20343,16 +20321,16 @@ private ChangeFulltext(
               break;
             }
             case 18: {
-              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
-                options_ = com.google.protobuf.MapField.newMapField(
-                    OptionsDefaultEntryHolder.defaultEntry);
-                mutable_bitField0_ |= 0x00000001;
+              io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder subBuilder = null;
+              if (options_ != null) {
+                subBuilder = options_.toBuilder();
               }
-              com.google.protobuf.MapEntry
-              options__ = input.readMessage(
-                  OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
-              options_.getMutableMap().put(
-                  options__.getKey(), options__.getValue());
+              options_ = input.readMessage(io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom(options_);
+                options_ = subBuilder.buildPartial();
+              }
+
               break;
             }
             default: {
@@ -20381,18 +20359,6 @@ private ChangeFulltext(
       return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor;
     }
 
-    @SuppressWarnings({"rawtypes"})
-    @java.lang.Override
-    protected com.google.protobuf.MapField internalGetMapField(
-        int number) {
-      switch (number) {
-        case 2:
-          return internalGetOptions();
-        default:
-          throw new RuntimeException(
-              "Invalid map field number: " + number);
-      }
-    }
     @java.lang.Override
     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
         internalGetFieldAccessorTable() {
@@ -20401,6 +20367,718 @@ protected com.google.protobuf.MapField internalGetMapField(
               io.greptime.v1.Ddl.ChangeFulltext.class, io.greptime.v1.Ddl.ChangeFulltext.Builder.class);
     }
 
+    public interface FulltextOptionsOrBuilder extends
+        // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeFulltext.FulltextOptions)
+        com.google.protobuf.MessageOrBuilder {
+
+      /**
+       * bool enable = 1;
+       * @return The enable.
+       */
+      boolean getEnable();
+
+      /**
+       * string analyzer = 2;
+       * @return The analyzer.
+       */
+      java.lang.String getAnalyzer();
+      /**
+       * string analyzer = 2;
+       * @return The bytes for analyzer.
+       */
+      com.google.protobuf.ByteString
+          getAnalyzerBytes();
+
+      /**
+       * bool case_sensitive = 3;
+       * @return The caseSensitive.
+       */
+      boolean getCaseSensitive();
+    }
+    /**
+     * Protobuf type {@code greptime.v1.ChangeFulltext.FulltextOptions}
+     */
+    public static final class FulltextOptions extends
+        com.google.protobuf.GeneratedMessageV3 implements
+        // @@protoc_insertion_point(message_implements:greptime.v1.ChangeFulltext.FulltextOptions)
+        FulltextOptionsOrBuilder {
+    private static final long serialVersionUID = 0L;
+      // Use FulltextOptions.newBuilder() to construct.
+      private FulltextOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
+        super(builder);
+      }
+      private FulltextOptions() {
+        analyzer_ = "";
+      }
+
+      @java.lang.Override
+      @SuppressWarnings({"unused"})
+      protected java.lang.Object newInstance(
+          UnusedPrivateParameter unused) {
+        return new FulltextOptions();
+      }
+
+      @java.lang.Override
+      public final com.google.protobuf.UnknownFieldSet
+      getUnknownFields() {
+        return this.unknownFields;
+      }
+      private FulltextOptions(
+          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 8: {
+
+                enable_ = input.readBool();
+                break;
+              }
+              case 18: {
+                java.lang.String s = input.readStringRequireUtf8();
+
+                analyzer_ = s;
+                break;
+              }
+              case 24: {
+
+                caseSensitive_ = input.readBool();
+                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_ChangeFulltext_FulltextOptions_descriptor;
+      }
+
+      @java.lang.Override
+      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+          internalGetFieldAccessorTable() {
+        return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_FulltextOptions_fieldAccessorTable
+            .ensureFieldAccessorsInitialized(
+                io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.class, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder.class);
+      }
+
+      public static final int ENABLE_FIELD_NUMBER = 1;
+      private boolean enable_;
+      /**
+       * bool enable = 1;
+       * @return The enable.
+       */
+      @java.lang.Override
+      public boolean getEnable() {
+        return enable_;
+      }
+
+      public static final int ANALYZER_FIELD_NUMBER = 2;
+      private volatile java.lang.Object analyzer_;
+      /**
+       * string analyzer = 2;
+       * @return The analyzer.
+       */
+      @java.lang.Override
+      public java.lang.String getAnalyzer() {
+        java.lang.Object ref = analyzer_;
+        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();
+          analyzer_ = s;
+          return s;
+        }
+      }
+      /**
+       * string analyzer = 2;
+       * @return The bytes for analyzer.
+       */
+      @java.lang.Override
+      public com.google.protobuf.ByteString
+          getAnalyzerBytes() {
+        java.lang.Object ref = analyzer_;
+        if (ref instanceof java.lang.String) {
+          com.google.protobuf.ByteString b = 
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          analyzer_ = b;
+          return b;
+        } else {
+          return (com.google.protobuf.ByteString) ref;
+        }
+      }
+
+      public static final int CASE_SENSITIVE_FIELD_NUMBER = 3;
+      private boolean caseSensitive_;
+      /**
+       * bool case_sensitive = 3;
+       * @return The caseSensitive.
+       */
+      @java.lang.Override
+      public boolean getCaseSensitive() {
+        return caseSensitive_;
+      }
+
+      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 (enable_ != false) {
+          output.writeBool(1, enable_);
+        }
+        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) {
+          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, analyzer_);
+        }
+        if (caseSensitive_ != false) {
+          output.writeBool(3, caseSensitive_);
+        }
+        unknownFields.writeTo(output);
+      }
+
+      @java.lang.Override
+      public int getSerializedSize() {
+        int size = memoizedSize;
+        if (size != -1) return size;
+
+        size = 0;
+        if (enable_ != false) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeBoolSize(1, enable_);
+        }
+        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) {
+          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, analyzer_);
+        }
+        if (caseSensitive_ != false) {
+          size += com.google.protobuf.CodedOutputStream
+            .computeBoolSize(3, caseSensitive_);
+        }
+        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.ChangeFulltext.FulltextOptions)) {
+          return super.equals(obj);
+        }
+        io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions other = (io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions) obj;
+
+        if (getEnable()
+            != other.getEnable()) return false;
+        if (!getAnalyzer()
+            .equals(other.getAnalyzer())) return false;
+        if (getCaseSensitive()
+            != other.getCaseSensitive()) 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) + ENABLE_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+            getEnable());
+        hash = (37 * hash) + ANALYZER_FIELD_NUMBER;
+        hash = (53 * hash) + getAnalyzer().hashCode();
+        hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+            getCaseSensitive());
+        hash = (29 * hash) + unknownFields.hashCode();
+        memoizedHashCode = hash;
+        return hash;
+      }
+
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions parseFrom(
+          java.nio.ByteBuffer data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data);
+      }
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions parseFrom(
+          com.google.protobuf.ByteString data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data);
+      }
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions parseFrom(byte[] data)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data);
+      }
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions parseFrom(
+          byte[] data,
+          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+          throws com.google.protobuf.InvalidProtocolBufferException {
+        return PARSER.parseFrom(data, extensionRegistry);
+      }
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions parseFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
+      }
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions parseDelimitedFrom(java.io.InputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseDelimitedWithIOException(PARSER, input);
+      }
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions parseFrom(
+          com.google.protobuf.CodedInputStream input)
+          throws java.io.IOException {
+        return com.google.protobuf.GeneratedMessageV3
+            .parseWithIOException(PARSER, input);
+      }
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions}
+       */
+      public static final class Builder extends
+          com.google.protobuf.GeneratedMessageV3.Builder implements
+          // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeFulltext.FulltextOptions)
+          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder {
+        public static final com.google.protobuf.Descriptors.Descriptor
+            getDescriptor() {
+          return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor;
+        }
+
+        @java.lang.Override
+        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+            internalGetFieldAccessorTable() {
+          return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_FulltextOptions_fieldAccessorTable
+              .ensureFieldAccessorsInitialized(
+                  io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.class, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder.class);
+        }
+
+        // Construct using io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.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();
+          enable_ = false;
+
+          analyzer_ = "";
+
+          caseSensitive_ = false;
+
+          return this;
+        }
+
+        @java.lang.Override
+        public com.google.protobuf.Descriptors.Descriptor
+            getDescriptorForType() {
+          return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor;
+        }
+
+        @java.lang.Override
+        public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getDefaultInstanceForType() {
+          return io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance();
+        }
+
+        @java.lang.Override
+        public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions build() {
+          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions result = buildPartial();
+          if (!result.isInitialized()) {
+            throw newUninitializedMessageException(result);
+          }
+          return result;
+        }
+
+        @java.lang.Override
+        public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions buildPartial() {
+          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions result = new io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions(this);
+          result.enable_ = enable_;
+          result.analyzer_ = analyzer_;
+          result.caseSensitive_ = caseSensitive_;
+          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.ChangeFulltext.FulltextOptions) {
+            return mergeFrom((io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions)other);
+          } else {
+            super.mergeFrom(other);
+            return this;
+          }
+        }
+
+        public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions other) {
+          if (other == io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance()) return this;
+          if (other.getEnable() != false) {
+            setEnable(other.getEnable());
+          }
+          if (!other.getAnalyzer().isEmpty()) {
+            analyzer_ = other.analyzer_;
+            onChanged();
+          }
+          if (other.getCaseSensitive() != false) {
+            setCaseSensitive(other.getCaseSensitive());
+          }
+          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.ChangeFulltext.FulltextOptions parsedMessage = null;
+          try {
+            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+            parsedMessage = (io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions) e.getUnfinishedMessage();
+            throw e.unwrapIOException();
+          } finally {
+            if (parsedMessage != null) {
+              mergeFrom(parsedMessage);
+            }
+          }
+          return this;
+        }
+
+        private boolean enable_ ;
+        /**
+         * bool enable = 1;
+         * @return The enable.
+         */
+        @java.lang.Override
+        public boolean getEnable() {
+          return enable_;
+        }
+        /**
+         * bool enable = 1;
+         * @param value The enable to set.
+         * @return This builder for chaining.
+         */
+        public Builder setEnable(boolean value) {
+          
+          enable_ = value;
+          onChanged();
+          return this;
+        }
+        /**
+         * bool enable = 1;
+         * @return This builder for chaining.
+         */
+        public Builder clearEnable() {
+          
+          enable_ = false;
+          onChanged();
+          return this;
+        }
+
+        private java.lang.Object analyzer_ = "";
+        /**
+         * string analyzer = 2;
+         * @return The analyzer.
+         */
+        public java.lang.String getAnalyzer() {
+          java.lang.Object ref = analyzer_;
+          if (!(ref instanceof java.lang.String)) {
+            com.google.protobuf.ByteString bs =
+                (com.google.protobuf.ByteString) ref;
+            java.lang.String s = bs.toStringUtf8();
+            analyzer_ = s;
+            return s;
+          } else {
+            return (java.lang.String) ref;
+          }
+        }
+        /**
+         * string analyzer = 2;
+         * @return The bytes for analyzer.
+         */
+        public com.google.protobuf.ByteString
+            getAnalyzerBytes() {
+          java.lang.Object ref = analyzer_;
+          if (ref instanceof String) {
+            com.google.protobuf.ByteString b = 
+                com.google.protobuf.ByteString.copyFromUtf8(
+                    (java.lang.String) ref);
+            analyzer_ = b;
+            return b;
+          } else {
+            return (com.google.protobuf.ByteString) ref;
+          }
+        }
+        /**
+         * string analyzer = 2;
+         * @param value The analyzer to set.
+         * @return This builder for chaining.
+         */
+        public Builder setAnalyzer(
+            java.lang.String value) {
+          if (value == null) {
+    throw new NullPointerException();
+  }
+  
+          analyzer_ = value;
+          onChanged();
+          return this;
+        }
+        /**
+         * string analyzer = 2;
+         * @return This builder for chaining.
+         */
+        public Builder clearAnalyzer() {
+          
+          analyzer_ = getDefaultInstance().getAnalyzer();
+          onChanged();
+          return this;
+        }
+        /**
+         * string analyzer = 2;
+         * @param value The bytes for analyzer to set.
+         * @return This builder for chaining.
+         */
+        public Builder setAnalyzerBytes(
+            com.google.protobuf.ByteString value) {
+          if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
+          
+          analyzer_ = value;
+          onChanged();
+          return this;
+        }
+
+        private boolean caseSensitive_ ;
+        /**
+         * bool case_sensitive = 3;
+         * @return The caseSensitive.
+         */
+        @java.lang.Override
+        public boolean getCaseSensitive() {
+          return caseSensitive_;
+        }
+        /**
+         * bool case_sensitive = 3;
+         * @param value The caseSensitive to set.
+         * @return This builder for chaining.
+         */
+        public Builder setCaseSensitive(boolean value) {
+          
+          caseSensitive_ = value;
+          onChanged();
+          return this;
+        }
+        /**
+         * bool case_sensitive = 3;
+         * @return This builder for chaining.
+         */
+        public Builder clearCaseSensitive() {
+          
+          caseSensitive_ = false;
+          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.ChangeFulltext.FulltextOptions)
+      }
+
+      // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext.FulltextOptions)
+      private static final io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions DEFAULT_INSTANCE;
+      static {
+        DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions();
+      }
+
+      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getDefaultInstance() {
+        return DEFAULT_INSTANCE;
+      }
+
+      private static final com.google.protobuf.Parser
+          PARSER = new com.google.protobuf.AbstractParser() {
+        @java.lang.Override
+        public FulltextOptions parsePartialFrom(
+            com.google.protobuf.CodedInputStream input,
+            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+            throws com.google.protobuf.InvalidProtocolBufferException {
+          return new FulltextOptions(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.ChangeFulltext.FulltextOptions getDefaultInstanceForType() {
+        return DEFAULT_INSTANCE;
+      }
+
+    }
+
     public static final int COLUMN_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object columnName_;
     /**
@@ -20429,95 +21107,40 @@ public java.lang.String getColumnName() {
         getColumnNameBytes() {
       java.lang.Object ref = columnName_;
       if (ref instanceof java.lang.String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
-        columnName_ = b;
-        return b;
-      } else {
-        return (com.google.protobuf.ByteString) ref;
-      }
-    }
-
-    public static final int OPTIONS_FIELD_NUMBER = 2;
-    private static final class OptionsDefaultEntryHolder {
-      static final com.google.protobuf.MapEntry<
-          java.lang.String, java.lang.String> defaultEntry =
-              com.google.protobuf.MapEntry
-              .newDefaultInstance(
-                  io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor, 
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "",
-                  com.google.protobuf.WireFormat.FieldType.STRING,
-                  "");
-    }
-    private com.google.protobuf.MapField<
-        java.lang.String, java.lang.String> options_;
-    private com.google.protobuf.MapField
-    internalGetOptions() {
-      if (options_ == null) {
-        return com.google.protobuf.MapField.emptyMapField(
-            OptionsDefaultEntryHolder.defaultEntry);
-      }
-      return options_;
-    }
-
-    public int getOptionsCount() {
-      return internalGetOptions().getMap().size();
-    }
-    /**
-     * map<string, string> options = 2;
-     */
-
-    @java.lang.Override
-    public boolean containsOptions(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      return internalGetOptions().getMap().containsKey(key);
-    }
-    /**
-     * Use {@link #getOptionsMap()} instead.
-     */
-    @java.lang.Override
-    @java.lang.Deprecated
-    public java.util.Map getOptions() {
-      return getOptionsMap();
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        columnName_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
     }
+
+    public static final int OPTIONS_FIELD_NUMBER = 2;
+    private io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions options_;
     /**
-     * map<string, string> options = 2;
+     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+     * @return Whether the options field is set.
      */
     @java.lang.Override
-
-    public java.util.Map getOptionsMap() {
-      return internalGetOptions().getMap();
+    public boolean hasOptions() {
+      return options_ != null;
     }
     /**
-     * map<string, string> options = 2;
+     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+     * @return The options.
      */
     @java.lang.Override
-
-    public java.lang.String getOptionsOrDefault(
-        java.lang.String key,
-        java.lang.String defaultValue) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetOptions().getMap();
-      return map.containsKey(key) ? map.get(key) : defaultValue;
+    public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getOptions() {
+      return options_ == null ? io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance() : options_;
     }
     /**
-     * map<string, string> options = 2;
+     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
      */
     @java.lang.Override
-
-    public java.lang.String getOptionsOrThrow(
-        java.lang.String key) {
-      if (key == null) { throw new NullPointerException("map key"); }
-      java.util.Map map =
-          internalGetOptions().getMap();
-      if (!map.containsKey(key)) {
-        throw new java.lang.IllegalArgumentException();
-      }
-      return map.get(key);
+    public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder getOptionsOrBuilder() {
+      return getOptions();
     }
 
     private byte memoizedIsInitialized = -1;
@@ -20537,12 +21160,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_);
       }
-      com.google.protobuf.GeneratedMessageV3
-        .serializeStringMapTo(
-          output,
-          internalGetOptions(),
-          OptionsDefaultEntryHolder.defaultEntry,
-          2);
+      if (options_ != null) {
+        output.writeMessage(2, getOptions());
+      }
       unknownFields.writeTo(output);
     }
 
@@ -20555,15 +21175,9 @@ public int getSerializedSize() {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
       }
-      for (java.util.Map.Entry entry
-           : internalGetOptions().getMap().entrySet()) {
-        com.google.protobuf.MapEntry
-        options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType()
-            .setKey(entry.getKey())
-            .setValue(entry.getValue())
-            .build();
+      if (options_ != null) {
         size += com.google.protobuf.CodedOutputStream
-            .computeMessageSize(2, options__);
+          .computeMessageSize(2, getOptions());
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -20582,8 +21196,11 @@ public boolean equals(final java.lang.Object obj) {
 
       if (!getColumnName()
           .equals(other.getColumnName())) return false;
-      if (!internalGetOptions().equals(
-          other.internalGetOptions())) return false;
+      if (hasOptions() != other.hasOptions()) return false;
+      if (hasOptions()) {
+        if (!getOptions()
+            .equals(other.getOptions())) return false;
+      }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -20597,9 +21214,9 @@ public int hashCode() {
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
       hash = (53 * hash) + getColumnName().hashCode();
-      if (!internalGetOptions().getMap().isEmpty()) {
+      if (hasOptions()) {
         hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
-        hash = (53 * hash) + internalGetOptions().hashCode();
+        hash = (53 * hash) + getOptions().hashCode();
       }
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
@@ -20708,28 +21325,6 @@ public static final class Builder extends
         return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor;
       }
 
-      @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMapField(
-          int number) {
-        switch (number) {
-          case 2:
-            return internalGetOptions();
-          default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
-        }
-      }
-      @SuppressWarnings({"rawtypes"})
-      protected com.google.protobuf.MapField internalGetMutableMapField(
-          int number) {
-        switch (number) {
-          case 2:
-            return internalGetMutableOptions();
-          default:
-            throw new RuntimeException(
-                "Invalid map field number: " + number);
-        }
-      }
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
@@ -20758,7 +21353,12 @@ public Builder clear() {
         super.clear();
         columnName_ = "";
 
-        internalGetMutableOptions().clear();
+        if (optionsBuilder_ == null) {
+          options_ = null;
+        } else {
+          options_ = null;
+          optionsBuilder_ = null;
+        }
         return this;
       }
 
@@ -20785,10 +21385,12 @@ public io.greptime.v1.Ddl.ChangeFulltext build() {
       @java.lang.Override
       public io.greptime.v1.Ddl.ChangeFulltext buildPartial() {
         io.greptime.v1.Ddl.ChangeFulltext result = new io.greptime.v1.Ddl.ChangeFulltext(this);
-        int from_bitField0_ = bitField0_;
         result.columnName_ = columnName_;
-        result.options_ = internalGetOptions();
-        result.options_.makeImmutable();
+        if (optionsBuilder_ == null) {
+          result.options_ = options_;
+        } else {
+          result.options_ = optionsBuilder_.build();
+        }
         onBuilt();
         return result;
       }
@@ -20841,8 +21443,9 @@ public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext other) {
           columnName_ = other.columnName_;
           onChanged();
         }
-        internalGetMutableOptions().mergeFrom(
-            other.internalGetOptions());
+        if (other.hasOptions()) {
+          mergeOptions(other.getOptions());
+        }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
         return this;
@@ -20871,7 +21474,6 @@ public Builder mergeFrom(
         }
         return this;
       }
-      private int bitField0_;
 
       private java.lang.Object columnName_ = "";
       /**
@@ -20949,135 +21551,123 @@ public Builder setColumnNameBytes(
         return this;
       }
 
-      private com.google.protobuf.MapField<
-          java.lang.String, java.lang.String> options_;
-      private com.google.protobuf.MapField
-      internalGetOptions() {
-        if (options_ == null) {
-          return com.google.protobuf.MapField.emptyMapField(
-              OptionsDefaultEntryHolder.defaultEntry);
-        }
-        return options_;
-      }
-      private com.google.protobuf.MapField
-      internalGetMutableOptions() {
-        onChanged();;
-        if (options_ == null) {
-          options_ = com.google.protobuf.MapField.newMapField(
-              OptionsDefaultEntryHolder.defaultEntry);
-        }
-        if (!options_.isMutable()) {
-          options_ = options_.copy();
-        }
-        return options_;
-      }
-
-      public int getOptionsCount() {
-        return internalGetOptions().getMap().size();
-      }
+      private io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions options_;
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder> optionsBuilder_;
       /**
-       * map<string, string> options = 2;
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * @return Whether the options field is set.
        */
-
-      @java.lang.Override
-      public boolean containsOptions(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        return internalGetOptions().getMap().containsKey(key);
+      public boolean hasOptions() {
+        return optionsBuilder_ != null || options_ != null;
       }
       /**
-       * Use {@link #getOptionsMap()} instead.
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * @return The options.
        */
-      @java.lang.Override
-      @java.lang.Deprecated
-      public java.util.Map getOptions() {
-        return getOptionsMap();
+      public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getOptions() {
+        if (optionsBuilder_ == null) {
+          return options_ == null ? io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance() : options_;
+        } else {
+          return optionsBuilder_.getMessage();
+        }
       }
       /**
-       * map<string, string> options = 2;
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
        */
-      @java.lang.Override
+      public Builder setOptions(io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions value) {
+        if (optionsBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          options_ = value;
+          onChanged();
+        } else {
+          optionsBuilder_.setMessage(value);
+        }
 
-      public java.util.Map getOptionsMap() {
-        return internalGetOptions().getMap();
+        return this;
       }
       /**
-       * map<string, string> options = 2;
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
        */
-      @java.lang.Override
+      public Builder setOptions(
+          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder builderForValue) {
+        if (optionsBuilder_ == null) {
+          options_ = builderForValue.build();
+          onChanged();
+        } else {
+          optionsBuilder_.setMessage(builderForValue.build());
+        }
 
-      public java.lang.String getOptionsOrDefault(
-          java.lang.String key,
-          java.lang.String defaultValue) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetOptions().getMap();
-        return map.containsKey(key) ? map.get(key) : defaultValue;
+        return this;
       }
       /**
-       * map<string, string> options = 2;
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
        */
-      @java.lang.Override
-
-      public java.lang.String getOptionsOrThrow(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        java.util.Map map =
-            internalGetOptions().getMap();
-        if (!map.containsKey(key)) {
-          throw new java.lang.IllegalArgumentException();
+      public Builder mergeOptions(io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions value) {
+        if (optionsBuilder_ == null) {
+          if (options_ != null) {
+            options_ =
+              io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.newBuilder(options_).mergeFrom(value).buildPartial();
+          } else {
+            options_ = value;
+          }
+          onChanged();
+        } else {
+          optionsBuilder_.mergeFrom(value);
         }
-        return map.get(key);
-      }
 
-      public Builder clearOptions() {
-        internalGetMutableOptions().getMutableMap()
-            .clear();
         return this;
       }
       /**
-       * map<string, string> options = 2;
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
        */
+      public Builder clearOptions() {
+        if (optionsBuilder_ == null) {
+          options_ = null;
+          onChanged();
+        } else {
+          options_ = null;
+          optionsBuilder_ = null;
+        }
 
-      public Builder removeOptions(
-          java.lang.String key) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        internalGetMutableOptions().getMutableMap()
-            .remove(key);
         return this;
       }
       /**
-       * Use alternate mutation accessors instead.
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
        */
-      @java.lang.Deprecated
-      public java.util.Map
-      getMutableOptions() {
-        return internalGetMutableOptions().getMutableMap();
+      public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder getOptionsBuilder() {
+        
+        onChanged();
+        return getOptionsFieldBuilder().getBuilder();
       }
       /**
-       * map<string, string> options = 2;
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
        */
-      public Builder putOptions(
-          java.lang.String key,
-          java.lang.String value) {
-        if (key == null) { throw new NullPointerException("map key"); }
-        if (value == null) {
-  throw new NullPointerException("map value");
-}
-
-        internalGetMutableOptions().getMutableMap()
-            .put(key, value);
-        return this;
+      public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder getOptionsOrBuilder() {
+        if (optionsBuilder_ != null) {
+          return optionsBuilder_.getMessageOrBuilder();
+        } else {
+          return options_ == null ?
+              io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance() : options_;
+        }
       }
       /**
-       * map<string, string> options = 2;
+       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
        */
-
-      public Builder putAllOptions(
-          java.util.Map values) {
-        internalGetMutableOptions().getMutableMap()
-            .putAll(values);
-        return this;
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder> 
+          getOptionsFieldBuilder() {
+        if (optionsBuilder_ == null) {
+          optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder>(
+                  getOptions(),
+                  getParentForChildren(),
+                  isClean());
+          options_ = null;
+        }
+        return optionsBuilder_;
       }
       @java.lang.Override
       public final Builder setUnknownFields(
@@ -27439,10 +28029,10 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor;
+    internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor;
   private static final 
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_greptime_v1_ChangeFulltext_OptionsEntry_fieldAccessorTable;
+      internal_static_greptime_v1_ChangeFulltext_FulltextOptions_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
     internal_static_greptime_v1_RenameTable_descriptor;
   private static final 
@@ -27566,34 +28156,35 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
       "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013" +
       "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum" +
       "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr" +
-      "eptime.v1.ChangeColumnType\"\220\001\n\016ChangeFul" +
-      "ltext\022\023\n\013column_name\030\001 \001(\t\0229\n\007options\030\002 " +
-      "\003(\0132(.greptime.v1.ChangeFulltext.Options" +
-      "Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" +
-      "lue\030\002 \001(\t:\0028\001\"%\n\013RenameTable\022\026\n\016new_tabl" +
-      "e_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030" +
-      "\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010locatio" +
-      "n\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.Col" +
-      "umnDataType\022C\n\025target_type_extension\030\003 \001" +
-      "(\0132$.greptime.v1.ColumnDataTypeExtension" +
-      "\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022" +
-      "\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tCo" +
-      "lumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\016" +
-      "2\033.greptime.v1.ColumnDataType\022\023\n\013is_null" +
-      "able\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220" +
-      "\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Sema" +
-      "nticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_ex" +
-      "tension\030\007 \001(\0132$.greptime.v1.ColumnDataTy" +
-      "peExtension\022+\n\007options\030\010 \001(\0132\032.greptime." +
-      "v1.ColumnOptions\"\230\001\n\021AddColumnLocation\022B" +
-      "\n\rlocation_type\030\001 \001(\0162+.greptime.v1.AddC" +
-      "olumnLocation.LocationType\022\031\n\021after_colu" +
-      "mn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000" +
-      "\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5gith" +
-      "ub.com/GreptimeTeam/greptime-proto/go/gr" +
-      "eptime/v1b\006proto3"
+      "eptime.v1.ChangeColumnType\"\260\001\n\016ChangeFul" +
+      "ltext\022\023\n\013column_name\030\001 \001(\t\022<\n\007options\030\002 " +
+      "\001(\0132+.greptime.v1.ChangeFulltext.Fulltex" +
+      "tOptions\032K\n\017FulltextOptions\022\016\n\006enable\030\001 " +
+      "\001(\010\022\020\n\010analyzer\030\002 \001(\t\022\026\n\016case_sensitive\030" +
+      "\003 \001(\010\"%\n\013RenameTable\022\026\n\016new_table_name\030\001" +
+      " \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026." +
+      "greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132" +
+      "\036.greptime.v1.AddColumnLocation\"\236\001\n\020Chan" +
+      "geColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013tar" +
+      "get_type\030\002 \001(\0162\033.greptime.v1.ColumnDataT" +
+      "ype\022C\n\025target_type_extension\030\003 \001(\0132$.gre" +
+      "ptime.v1.ColumnDataTypeExtension\"\032\n\nDrop" +
+      "Column\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\tColumnDef\022" +
+      "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept" +
+      "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001" +
+      "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant" +
+      "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType" +
+      "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030" +
+      "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens" +
+      "ion\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Colum" +
+      "nOptions\"\230\001\n\021AddColumnLocation\022B\n\rlocati" +
+      "on_type\030\001 \001(\0162+.greptime.v1.AddColumnLoc" +
+      "ation.LocationType\022\031\n\021after_column_name\030" +
+      "\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTE" +
+      "R\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/G" +
+      "reptimeTeam/greptime-proto/go/greptime/v" +
+      "1b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
@@ -27708,12 +28299,12 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_greptime_v1_ChangeFulltext_descriptor,
         new java.lang.String[] { "ColumnName", "Options", });
-    internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor =
+    internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor =
       internal_static_greptime_v1_ChangeFulltext_descriptor.getNestedTypes().get(0);
-    internal_static_greptime_v1_ChangeFulltext_OptionsEntry_fieldAccessorTable = new
+    internal_static_greptime_v1_ChangeFulltext_FulltextOptions_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor,
-        new java.lang.String[] { "Key", "Value", });
+        internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor,
+        new java.lang.String[] { "Enable", "Analyzer", "CaseSensitive", });
     internal_static_greptime_v1_RenameTable_descriptor =
       getDescriptor().getMessageTypes().get(15);
     internal_static_greptime_v1_RenameTable_fieldAccessorTable = new
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 ada71e1b..54ad5fc3 100644
--- a/java/src/main/java/io/greptime/v1/region/Server.java
+++ b/java/src/main/java/io/greptime/v1/region/Server.java
@@ -16434,19 +16434,19 @@ public interface AlterRequestOrBuilder extends
     io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder();
 
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
-     * @return Whether the changeFulltex field is set.
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
+     * @return Whether the changeFulltext field is set.
      */
-    boolean hasChangeFulltex();
+    boolean hasChangeFulltext();
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
-     * @return The changeFulltex.
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
+     * @return The changeFulltext.
      */
-    io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex();
+    io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext();
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
      */
-    io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder();
+    io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder();
 
     /**
      * 
@@ -16613,7 +16613,7 @@ public enum KindCase
       ADD_COLUMNS(2),
       DROP_COLUMNS(3),
       CHANGE_COLUMN_TYPES(5),
-      CHANGE_FULLTEX(6),
+      CHANGE_FULLTEXT(6),
       KIND_NOT_SET(0);
       private final int value;
       private KindCase(int value) {
@@ -16634,7 +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_FULLTEX;
+          case 6: return CHANGE_FULLTEXT;
           case 0: return KIND_NOT_SET;
           default: return null;
         }
@@ -16754,31 +16754,31 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild
       return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
     }
 
-    public static final int CHANGE_FULLTEX_FIELD_NUMBER = 6;
+    public static final int CHANGE_FULLTEXT_FIELD_NUMBER = 6;
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
-     * @return Whether the changeFulltex field is set.
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
+     * @return Whether the changeFulltext field is set.
      */
     @java.lang.Override
-    public boolean hasChangeFulltex() {
+    public boolean hasChangeFulltext() {
       return kindCase_ == 6;
     }
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
-     * @return The changeFulltex.
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
+     * @return The changeFulltext.
      */
     @java.lang.Override
-    public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex() {
+    public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext() {
       if (kindCase_ == 6) {
          return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
       }
       return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
     }
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
      */
     @java.lang.Override
-    public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
+    public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder() {
       if (kindCase_ == 6) {
          return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
       }
@@ -16899,8 +16899,8 @@ public boolean equals(final java.lang.Object obj) {
               .equals(other.getChangeColumnTypes())) return false;
           break;
         case 6:
-          if (!getChangeFulltex()
-              .equals(other.getChangeFulltex())) return false;
+          if (!getChangeFulltext()
+              .equals(other.getChangeFulltext())) return false;
           break;
         case 0:
         default:
@@ -16936,8 +16936,8 @@ public int hashCode() {
           hash = (53 * hash) + getChangeColumnTypes().hashCode();
           break;
         case 6:
-          hash = (37 * hash) + CHANGE_FULLTEX_FIELD_NUMBER;
-          hash = (53 * hash) + getChangeFulltex().hashCode();
+          hash = (37 * hash) + CHANGE_FULLTEXT_FIELD_NUMBER;
+          hash = (53 * hash) + getChangeFulltext().hashCode();
           break;
         case 0:
         default:
@@ -17130,10 +17130,10 @@ public io.greptime.v1.region.Server.AlterRequest buildPartial() {
           }
         }
         if (kindCase_ == 6) {
-          if (changeFulltexBuilder_ == null) {
+          if (changeFulltextBuilder_ == null) {
             result.kind_ = kind_;
           } else {
-            result.kind_ = changeFulltexBuilder_.build();
+            result.kind_ = changeFulltextBuilder_.build();
           }
         }
         result.schemaVersion_ = schemaVersion_;
@@ -17205,8 +17205,8 @@ public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) {
             mergeChangeColumnTypes(other.getChangeColumnTypes());
             break;
           }
-          case CHANGE_FULLTEX: {
-            mergeChangeFulltex(other.getChangeFulltex());
+          case CHANGE_FULLTEXT: {
+            mergeChangeFulltext(other.getChangeFulltext());
             break;
           }
           case KIND_NOT_SET: {
@@ -17715,68 +17715,68 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> changeFulltexBuilder_;
+          io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> changeFulltextBuilder_;
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
-       * @return Whether the changeFulltex field is set.
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
+       * @return Whether the changeFulltext field is set.
        */
       @java.lang.Override
-      public boolean hasChangeFulltex() {
+      public boolean hasChangeFulltext() {
         return kindCase_ == 6;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
-       * @return The changeFulltex.
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
+       * @return The changeFulltext.
        */
       @java.lang.Override
-      public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex() {
-        if (changeFulltexBuilder_ == null) {
+      public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext() {
+        if (changeFulltextBuilder_ == null) {
           if (kindCase_ == 6) {
             return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
           }
           return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
         } else {
           if (kindCase_ == 6) {
-            return changeFulltexBuilder_.getMessage();
+            return changeFulltextBuilder_.getMessage();
           }
           return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
         }
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public Builder setChangeFulltex(io.greptime.v1.Ddl.ChangeFulltext value) {
-        if (changeFulltexBuilder_ == null) {
+      public Builder setChangeFulltext(io.greptime.v1.Ddl.ChangeFulltext value) {
+        if (changeFulltextBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
           }
           kind_ = value;
           onChanged();
         } else {
-          changeFulltexBuilder_.setMessage(value);
+          changeFulltextBuilder_.setMessage(value);
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public Builder setChangeFulltex(
+      public Builder setChangeFulltext(
           io.greptime.v1.Ddl.ChangeFulltext.Builder builderForValue) {
-        if (changeFulltexBuilder_ == null) {
+        if (changeFulltextBuilder_ == null) {
           kind_ = builderForValue.build();
           onChanged();
         } else {
-          changeFulltexBuilder_.setMessage(builderForValue.build());
+          changeFulltextBuilder_.setMessage(builderForValue.build());
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public Builder mergeChangeFulltex(io.greptime.v1.Ddl.ChangeFulltext value) {
-        if (changeFulltexBuilder_ == null) {
+      public Builder mergeChangeFulltext(io.greptime.v1.Ddl.ChangeFulltext value) {
+        if (changeFulltextBuilder_ == null) {
           if (kindCase_ == 6 &&
               kind_ != io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance()) {
             kind_ = io.greptime.v1.Ddl.ChangeFulltext.newBuilder((io.greptime.v1.Ddl.ChangeFulltext) kind_)
@@ -17787,19 +17787,19 @@ public Builder mergeChangeFulltex(io.greptime.v1.Ddl.ChangeFulltext value) {
           onChanged();
         } else {
           if (kindCase_ == 6) {
-            changeFulltexBuilder_.mergeFrom(value);
+            changeFulltextBuilder_.mergeFrom(value);
           } else {
-            changeFulltexBuilder_.setMessage(value);
+            changeFulltextBuilder_.setMessage(value);
           }
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public Builder clearChangeFulltex() {
-        if (changeFulltexBuilder_ == null) {
+      public Builder clearChangeFulltext() {
+        if (changeFulltextBuilder_ == null) {
           if (kindCase_ == 6) {
             kindCase_ = 0;
             kind_ = null;
@@ -17810,23 +17810,23 @@ public Builder clearChangeFulltex() {
             kindCase_ = 0;
             kind_ = null;
           }
-          changeFulltexBuilder_.clear();
+          changeFulltextBuilder_.clear();
         }
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public io.greptime.v1.Ddl.ChangeFulltext.Builder getChangeFulltexBuilder() {
-        return getChangeFulltexFieldBuilder().getBuilder();
+      public io.greptime.v1.Ddl.ChangeFulltext.Builder getChangeFulltextBuilder() {
+        return getChangeFulltextFieldBuilder().getBuilder();
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
       @java.lang.Override
-      public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
-        if ((kindCase_ == 6) && (changeFulltexBuilder_ != null)) {
-          return changeFulltexBuilder_.getMessageOrBuilder();
+      public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder() {
+        if ((kindCase_ == 6) && (changeFulltextBuilder_ != null)) {
+          return changeFulltextBuilder_.getMessageOrBuilder();
         } else {
           if (kindCase_ == 6) {
             return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
@@ -17835,16 +17835,16 @@ public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
         }
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
           io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> 
-          getChangeFulltexFieldBuilder() {
-        if (changeFulltexBuilder_ == null) {
+          getChangeFulltextFieldBuilder() {
+        if (changeFulltextBuilder_ == null) {
           if (!(kindCase_ == 6)) {
             kind_ = io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
           }
-          changeFulltexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+          changeFulltextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
               io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder>(
                   (io.greptime.v1.Ddl.ChangeFulltext) kind_,
                   getParentForChildren(),
@@ -17853,7 +17853,7 @@ public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
         }
         kindCase_ = 6;
         onChanged();;
-        return changeFulltexBuilder_;
+        return changeFulltextBuilder_;
       }
 
       private long schemaVersion_ ;
@@ -24794,36 +24794,36 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
       "OptionsEntry\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 .gre" +
-      "ptime.v1.region.AlterRequest\"\247\002\n\014AlterRe" +
+      "ptime.v1.region.AlterRequest\"\250\002\n\014AlterRe" +
       "quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030" +
       "\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022" +
       "7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi" +
       "on.DropColumnsH\000\022=\n\023change_column_types\030" +
       "\005 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022" +
-      "5\n\016change_fulltex\030\006 \001(\0132\033.greptime.v1.Ch" +
-      "angeFulltextH\000\022\026\n\016schema_version\030\004 \001(\004B\006" +
-      "\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(" +
-      "\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop" +
-      "Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime" +
-      ".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco" +
-      "lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi" +
-      "onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" +
-      ".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n" +
-      "ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001" +
-      " \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo" +
-      "w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre" +
-      "gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim" +
-      "e.v1.region.RegularH\000\0229\n\rstrict_window\030\003" +
-      " \001(\0132 .greptime.v1.region.StrictWindowH\000" +
-      "B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion" +
-      "_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d" +
-      "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu" +
-      "mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti" +
-      "me.v1.region.RegionRequest\032\".greptime.v1" +
-      ".region.RegionResponseB]\n\025io.greptime.v1" +
-      ".regionB\006ServerZ options = 2;
+    FulltextOptions options = 2;
 }
 
 message RenameTable { string new_table_name = 1; }

From 27dff0b04b3ef0b1d2362cbb43299012b21f955d Mon Sep 17 00:00:00 2001
From: irenjj 
Date: Tue, 8 Oct 2024 23:42:24 +0800
Subject: [PATCH 09/12] update

---
 c++/greptime/v1/ddl.pb.cc                  |  527 +++------
 c++/greptime/v1/ddl.pb.h                   |  487 ++-------
 go/greptime/v1/ddl.pb.go                   |  370 +++----
 java/src/main/java/io/greptime/v1/Ddl.java | 1148 +++++---------------
 proto/greptime/v1/ddl.proto                |   10 +-
 5 files changed, 677 insertions(+), 1865 deletions(-)

diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc
index 6ebf6eea..5b73afb8 100644
--- a/c++/greptime/v1/ddl.pb.cc
+++ b/c++/greptime/v1/ddl.pb.cc
@@ -289,25 +289,12 @@ struct ChangeColumnTypesDefaultTypeInternal {
   };
 };
 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_;
-PROTOBUF_CONSTEXPR ChangeFulltext_FulltextOptions::ChangeFulltext_FulltextOptions(
-    ::_pbi::ConstantInitialized): _impl_{
-    /*decltype(_impl_.analyzer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
-  , /*decltype(_impl_.enable_)*/false
-  , /*decltype(_impl_.case_sensitive_)*/false
-  , /*decltype(_impl_._cached_size_)*/{}} {}
-struct ChangeFulltext_FulltextOptionsDefaultTypeInternal {
-  PROTOBUF_CONSTEXPR ChangeFulltext_FulltextOptionsDefaultTypeInternal()
-      : _instance(::_pbi::ConstantInitialized{}) {}
-  ~ChangeFulltext_FulltextOptionsDefaultTypeInternal() {}
-  union {
-    ChangeFulltext_FulltextOptions _instance;
-  };
-};
-PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltext_FulltextOptionsDefaultTypeInternal _ChangeFulltext_FulltextOptions_default_instance_;
 PROTOBUF_CONSTEXPR ChangeFulltext::ChangeFulltext(
     ::_pbi::ConstantInitialized): _impl_{
     /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
-  , /*decltype(_impl_.options_)*/nullptr
+  , /*decltype(_impl_.analyzer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
+  , /*decltype(_impl_.enable_)*/false
+  , /*decltype(_impl_.case_sensitive_)*/false
   , /*decltype(_impl_._cached_size_)*/{}} {}
 struct ChangeFulltextDefaultTypeInternal {
   PROTOBUF_CONSTEXPR ChangeFulltextDefaultTypeInternal()
@@ -435,7 +422,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[27];
+static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[26];
 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;
 
@@ -633,22 +620,15 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
   ~0u,  // no _inlined_string_donated_
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _impl_.change_column_types_),
   ~0u,  // no _has_bits_
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_FulltextOptions, _internal_metadata_),
-  ~0u,  // no _extensions_
-  ~0u,  // no _oneof_case_
-  ~0u,  // no _weak_field_map_
-  ~0u,  // no _inlined_string_donated_
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_FulltextOptions, _impl_.enable_),
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_FulltextOptions, _impl_.analyzer_),
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_FulltextOptions, _impl_.case_sensitive_),
-  ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _internal_metadata_),
   ~0u,  // no _extensions_
   ~0u,  // no _oneof_case_
   ~0u,  // no _weak_field_map_
   ~0u,  // no _inlined_string_donated_
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.column_name_),
-  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.options_),
+  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.enable_),
+  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.analyzer_),
+  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.case_sensitive_),
   ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::greptime::v1::RenameTable, _internal_metadata_),
   ~0u,  // no _extensions_
@@ -735,16 +715,15 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
   { 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::ChangeFulltext_FulltextOptions)},
-  { 201, -1, -1, sizeof(::greptime::v1::ChangeFulltext)},
-  { 209, -1, -1, sizeof(::greptime::v1::RenameTable)},
-  { 216, -1, -1, sizeof(::greptime::v1::AddColumn)},
-  { 224, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
-  { 233, -1, -1, sizeof(::greptime::v1::DropColumn)},
-  { 240, -1, -1, sizeof(::greptime::v1::TableId)},
-  { 247, -1, -1, sizeof(::greptime::v1::FlowId)},
-  { 254, -1, -1, sizeof(::greptime::v1::ColumnDef)},
-  { 268, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
+  { 192, -1, -1, sizeof(::greptime::v1::ChangeFulltext)},
+  { 202, -1, -1, sizeof(::greptime::v1::RenameTable)},
+  { 209, -1, -1, sizeof(::greptime::v1::AddColumn)},
+  { 217, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
+  { 226, -1, -1, sizeof(::greptime::v1::DropColumn)},
+  { 233, -1, -1, sizeof(::greptime::v1::TableId)},
+  { 240, -1, -1, sizeof(::greptime::v1::FlowId)},
+  { 247, -1, -1, sizeof(::greptime::v1::ColumnDef)},
+  { 261, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
 };
 
 static const ::_pb::Message* const file_default_instances[] = {
@@ -765,7 +744,6 @@ static const ::_pb::Message* const file_default_instances[] = {
   &::greptime::v1::_AddColumns_default_instance_._instance,
   &::greptime::v1::_DropColumns_default_instance_._instance,
   &::greptime::v1::_ChangeColumnTypes_default_instance_._instance,
-  &::greptime::v1::_ChangeFulltext_FulltextOptions_default_instance_._instance,
   &::greptime::v1::_ChangeFulltext_default_instance_._instance,
   &::greptime::v1::_RenameTable_default_instance_._instance,
   &::greptime::v1::_AddColumn_default_instance_._instance,
@@ -852,44 +830,42 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
   "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013"
   "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum"
   "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr"
-  "eptime.v1.ChangeColumnType\"\260\001\n\016ChangeFul"
-  "ltext\022\023\n\013column_name\030\001 \001(\t\022<\n\007options\030\002 "
-  "\001(\0132+.greptime.v1.ChangeFulltext.Fulltex"
-  "tOptions\032K\n\017FulltextOptions\022\016\n\006enable\030\001 "
-  "\001(\010\022\020\n\010analyzer\030\002 \001(\t\022\026\n\016case_sensitive\030"
-  "\003 \001(\010\"%\n\013RenameTable\022\026\n\016new_table_name\030\001"
-  " \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026."
-  "greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132"
-  "\036.greptime.v1.AddColumnLocation\"\236\001\n\020Chan"
-  "geColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013tar"
-  "get_type\030\002 \001(\0162\033.greptime.v1.ColumnDataT"
-  "ype\022C\n\025target_type_extension\030\003 \001(\0132$.gre"
-  "ptime.v1.ColumnDataTypeExtension\"\032\n\nDrop"
-  "Column\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\tColumnDef\022"
-  "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept"
-  "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001"
-  "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant"
-  "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType"
-  "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030"
-  "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens"
-  "ion\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Colum"
-  "nOptions\"\230\001\n\021AddColumnLocation\022B\n\rlocati"
-  "on_type\030\001 \001(\0162+.greptime.v1.AddColumnLoc"
-  "ation.LocationType\022\031\n\021after_column_name\030"
-  "\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTE"
-  "R\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/G"
-  "reptimeTeam/greptime-proto/go/greptime/v"
-  "1b\006proto3"
+  "eptime.v1.ChangeColumnType\"_\n\016ChangeFull"
+  "text\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001("
+  "\010\022\020\n\010analyzer\030\003 \001(\t\022\026\n\016case_sensitive\030\004 "
+  "\001(\010\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001"
+  "(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.gr"
+  "eptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036."
+  "greptime.v1.AddColumnLocation\"\236\001\n\020Change"
+  "ColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targe"
+  "t_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTyp"
+  "e\022C\n\025target_type_extension\030\003 \001(\0132$.grept"
+  "ime.v1.ColumnDataTypeExtension\"\032\n\nDropCo"
+  "lumn\022\014\n\004name\030\001 \001(\t\"\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\tColumnDef\022\014\n"
+  "\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptim"
+  "e.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010"
+  "\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic"
+  "_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017"
+  "\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 "
+  "\001(\0132$.greptime.v1.ColumnDataTypeExtensio"
+  "n\022+\n\007options\030\010 \001(\0132\032.greptime.v1.ColumnO"
+  "ptions\"\230\001\n\021AddColumnLocation\022B\n\rlocation"
+  "_type\030\001 \001(\0162+.greptime.v1.AddColumnLocat"
+  "ion.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/Gre"
+  "ptimeTeam/greptime-proto/go/greptime/v1b"
+  "\006proto3"
   ;
 static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
   &::descriptor_table_greptime_2fv1_2fcommon_2eproto,
 };
 static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
 const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
-    false, false, 4089, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
+    false, false, 4007, 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, 27,
+    &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 26,
     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,
@@ -6768,278 +6744,10 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const {
 
 // ===================================================================
 
-class ChangeFulltext_FulltextOptions::_Internal {
- public:
-};
-
-ChangeFulltext_FulltextOptions::ChangeFulltext_FulltextOptions(::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.ChangeFulltext.FulltextOptions)
-}
-ChangeFulltext_FulltextOptions::ChangeFulltext_FulltextOptions(const ChangeFulltext_FulltextOptions& from)
-  : ::PROTOBUF_NAMESPACE_ID::Message() {
-  ChangeFulltext_FulltextOptions* const _this = this; (void)_this;
-  new (&_impl_) Impl_{
-      decltype(_impl_.analyzer_){}
-    , decltype(_impl_.enable_){}
-    , decltype(_impl_.case_sensitive_){}
-    , /*decltype(_impl_._cached_size_)*/{}};
-
-  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
-  _impl_.analyzer_.InitDefault();
-  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
-    _impl_.analyzer_.Set("", GetArenaForAllocation());
-  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
-  if (!from._internal_analyzer().empty()) {
-    _this->_impl_.analyzer_.Set(from._internal_analyzer(), 
-      _this->GetArenaForAllocation());
-  }
-  ::memcpy(&_impl_.enable_, &from._impl_.enable_,
-    static_cast(reinterpret_cast(&_impl_.case_sensitive_) -
-    reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_));
-  // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeFulltext.FulltextOptions)
-}
-
-inline void ChangeFulltext_FulltextOptions::SharedCtor(
-    ::_pb::Arena* arena, bool is_message_owned) {
-  (void)arena;
-  (void)is_message_owned;
-  new (&_impl_) Impl_{
-      decltype(_impl_.analyzer_){}
-    , decltype(_impl_.enable_){false}
-    , decltype(_impl_.case_sensitive_){false}
-    , /*decltype(_impl_._cached_size_)*/{}
-  };
-  _impl_.analyzer_.InitDefault();
-  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
-    _impl_.analyzer_.Set("", GetArenaForAllocation());
-  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
-}
-
-ChangeFulltext_FulltextOptions::~ChangeFulltext_FulltextOptions() {
-  // @@protoc_insertion_point(destructor:greptime.v1.ChangeFulltext.FulltextOptions)
-  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
-  (void)arena;
-    return;
-  }
-  SharedDtor();
-}
-
-inline void ChangeFulltext_FulltextOptions::SharedDtor() {
-  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
-  _impl_.analyzer_.Destroy();
-}
-
-void ChangeFulltext_FulltextOptions::SetCachedSize(int size) const {
-  _impl_._cached_size_.Set(size);
-}
-
-void ChangeFulltext_FulltextOptions::Clear() {
-// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeFulltext.FulltextOptions)
-  uint32_t cached_has_bits = 0;
-  // Prevent compiler warnings about cached_has_bits being unused
-  (void) cached_has_bits;
-
-  _impl_.analyzer_.ClearToEmpty();
-  ::memset(&_impl_.enable_, 0, static_cast(
-      reinterpret_cast(&_impl_.case_sensitive_) -
-      reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_));
-  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
-}
-
-const char* ChangeFulltext_FulltextOptions::_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) {
-      // bool enable = 1;
-      case 1:
-        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) {
-          _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
-          CHK_(ptr);
-        } else
-          goto handle_unusual;
-        continue;
-      // string analyzer = 2;
-      case 2:
-        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
-          auto str = _internal_mutable_analyzer();
-          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
-          CHK_(ptr);
-          CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeFulltext.FulltextOptions.analyzer"));
-        } else
-          goto handle_unusual;
-        continue;
-      // bool case_sensitive = 3;
-      case 3:
-        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) {
-          _impl_.case_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
-          CHK_(ptr);
-        } else
-          goto handle_unusual;
-        continue;
-      default:
-        goto handle_unusual;
-    }  // switch
-  handle_unusual:
-    if ((tag == 0) || ((tag & 7) == 4)) {
-      CHK_(ptr);
-      ctx->SetLastTag(tag);
-      goto message_done;
-    }
-    ptr = UnknownFieldParse(
-        tag,
-        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
-        ptr, ctx);
-    CHK_(ptr != nullptr);
-  }  // while
-message_done:
-  return ptr;
-failure:
-  ptr = nullptr;
-  goto message_done;
-#undef CHK_
-}
-
-uint8_t* ChangeFulltext_FulltextOptions::_InternalSerialize(
-    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
-  // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeFulltext.FulltextOptions)
-  uint32_t cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  // bool enable = 1;
-  if (this->_internal_enable() != 0) {
-    target = stream->EnsureSpace(target);
-    target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_enable(), target);
-  }
-
-  // string analyzer = 2;
-  if (!this->_internal_analyzer().empty()) {
-    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
-      this->_internal_analyzer().data(), static_cast(this->_internal_analyzer().length()),
-      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
-      "greptime.v1.ChangeFulltext.FulltextOptions.analyzer");
-    target = stream->WriteStringMaybeAliased(
-        2, this->_internal_analyzer(), target);
-  }
-
-  // bool case_sensitive = 3;
-  if (this->_internal_case_sensitive() != 0) {
-    target = stream->EnsureSpace(target);
-    target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_case_sensitive(), 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.ChangeFulltext.FulltextOptions)
-  return target;
-}
-
-size_t ChangeFulltext_FulltextOptions::ByteSizeLong() const {
-// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeFulltext.FulltextOptions)
-  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 analyzer = 2;
-  if (!this->_internal_analyzer().empty()) {
-    total_size += 1 +
-      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
-        this->_internal_analyzer());
-  }
-
-  // bool enable = 1;
-  if (this->_internal_enable() != 0) {
-    total_size += 1 + 1;
-  }
-
-  // bool case_sensitive = 3;
-  if (this->_internal_case_sensitive() != 0) {
-    total_size += 1 + 1;
-  }
-
-  return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
-}
-
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeFulltext_FulltextOptions::_class_data_ = {
-    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
-    ChangeFulltext_FulltextOptions::MergeImpl
-};
-const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeFulltext_FulltextOptions::GetClassData() const { return &_class_data_; }
-
-
-void ChangeFulltext_FulltextOptions::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.ChangeFulltext.FulltextOptions)
-  GOOGLE_DCHECK_NE(&from, _this);
-  uint32_t cached_has_bits = 0;
-  (void) cached_has_bits;
-
-  if (!from._internal_analyzer().empty()) {
-    _this->_internal_set_analyzer(from._internal_analyzer());
-  }
-  if (from._internal_enable() != 0) {
-    _this->_internal_set_enable(from._internal_enable());
-  }
-  if (from._internal_case_sensitive() != 0) {
-    _this->_internal_set_case_sensitive(from._internal_case_sensitive());
-  }
-  _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
-}
-
-void ChangeFulltext_FulltextOptions::CopyFrom(const ChangeFulltext_FulltextOptions& from) {
-// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeFulltext.FulltextOptions)
-  if (&from == this) return;
-  Clear();
-  MergeFrom(from);
-}
-
-bool ChangeFulltext_FulltextOptions::IsInitialized() const {
-  return true;
-}
-
-void ChangeFulltext_FulltextOptions::InternalSwap(ChangeFulltext_FulltextOptions* 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_.analyzer_, lhs_arena,
-      &other->_impl_.analyzer_, rhs_arena
-  );
-  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
-      PROTOBUF_FIELD_OFFSET(ChangeFulltext_FulltextOptions, _impl_.case_sensitive_)
-      + sizeof(ChangeFulltext_FulltextOptions::_impl_.case_sensitive_)
-      - PROTOBUF_FIELD_OFFSET(ChangeFulltext_FulltextOptions, _impl_.enable_)>(
-          reinterpret_cast(&_impl_.enable_),
-          reinterpret_cast(&other->_impl_.enable_));
-}
-
-::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext_FulltextOptions::GetMetadata() const {
-  return ::_pbi::AssignDescriptors(
-      &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
-      file_level_metadata_greptime_2fv1_2fddl_2eproto[17]);
-}
-
-// ===================================================================
-
 class ChangeFulltext::_Internal {
  public:
-  static const ::greptime::v1::ChangeFulltext_FulltextOptions& options(const ChangeFulltext* msg);
 };
 
-const ::greptime::v1::ChangeFulltext_FulltextOptions&
-ChangeFulltext::_Internal::options(const ChangeFulltext* msg) {
-  return *msg->_impl_.options_;
-}
 ChangeFulltext::ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                          bool is_message_owned)
   : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -7051,7 +6759,9 @@ ChangeFulltext::ChangeFulltext(const ChangeFulltext& from)
   ChangeFulltext* const _this = this; (void)_this;
   new (&_impl_) Impl_{
       decltype(_impl_.column_name_){}
-    , decltype(_impl_.options_){nullptr}
+    , decltype(_impl_.analyzer_){}
+    , decltype(_impl_.enable_){}
+    , decltype(_impl_.case_sensitive_){}
     , /*decltype(_impl_._cached_size_)*/{}};
 
   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@@ -7063,9 +6773,17 @@ ChangeFulltext::ChangeFulltext(const ChangeFulltext& from)
     _this->_impl_.column_name_.Set(from._internal_column_name(), 
       _this->GetArenaForAllocation());
   }
-  if (from._internal_has_options()) {
-    _this->_impl_.options_ = new ::greptime::v1::ChangeFulltext_FulltextOptions(*from._impl_.options_);
+  _impl_.analyzer_.InitDefault();
+  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+    _impl_.analyzer_.Set("", GetArenaForAllocation());
+  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+  if (!from._internal_analyzer().empty()) {
+    _this->_impl_.analyzer_.Set(from._internal_analyzer(), 
+      _this->GetArenaForAllocation());
   }
+  ::memcpy(&_impl_.enable_, &from._impl_.enable_,
+    static_cast(reinterpret_cast(&_impl_.case_sensitive_) -
+    reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_));
   // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeFulltext)
 }
 
@@ -7075,13 +6793,19 @@ inline void ChangeFulltext::SharedCtor(
   (void)is_message_owned;
   new (&_impl_) Impl_{
       decltype(_impl_.column_name_){}
-    , decltype(_impl_.options_){nullptr}
+    , decltype(_impl_.analyzer_){}
+    , decltype(_impl_.enable_){false}
+    , decltype(_impl_.case_sensitive_){false}
     , /*decltype(_impl_._cached_size_)*/{}
   };
   _impl_.column_name_.InitDefault();
   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
     _impl_.column_name_.Set("", GetArenaForAllocation());
   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+  _impl_.analyzer_.InitDefault();
+  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+    _impl_.analyzer_.Set("", GetArenaForAllocation());
+  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
 }
 
 ChangeFulltext::~ChangeFulltext() {
@@ -7096,7 +6820,7 @@ ChangeFulltext::~ChangeFulltext() {
 inline void ChangeFulltext::SharedDtor() {
   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
   _impl_.column_name_.Destroy();
-  if (this != internal_default_instance()) delete _impl_.options_;
+  _impl_.analyzer_.Destroy();
 }
 
 void ChangeFulltext::SetCachedSize(int size) const {
@@ -7110,10 +6834,10 @@ void ChangeFulltext::Clear() {
   (void) cached_has_bits;
 
   _impl_.column_name_.ClearToEmpty();
-  if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) {
-    delete _impl_.options_;
-  }
-  _impl_.options_ = nullptr;
+  _impl_.analyzer_.ClearToEmpty();
+  ::memset(&_impl_.enable_, 0, static_cast(
+      reinterpret_cast(&_impl_.case_sensitive_) -
+      reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_));
   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
 }
 
@@ -7133,10 +6857,28 @@ const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext
         } else
           goto handle_unusual;
         continue;
-      // .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+      // bool enable = 2;
       case 2:
-        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) {
-          ptr = ctx->ParseMessage(_internal_mutable_options(), ptr);
+        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) {
+          _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
+          CHK_(ptr);
+        } else
+          goto handle_unusual;
+        continue;
+      // string analyzer = 3;
+      case 3:
+        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) {
+          auto str = _internal_mutable_analyzer();
+          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
+          CHK_(ptr);
+          CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeFulltext.analyzer"));
+        } else
+          goto handle_unusual;
+        continue;
+      // bool case_sensitive = 4;
+      case 4:
+        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) {
+          _impl_.case_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
           CHK_(ptr);
         } else
           goto handle_unusual;
@@ -7180,11 +6922,26 @@ uint8_t* ChangeFulltext::_InternalSerialize(
         1, this->_internal_column_name(), target);
   }
 
-  // .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-  if (this->_internal_has_options()) {
-    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
-      InternalWriteMessage(2, _Internal::options(this),
-        _Internal::options(this).GetCachedSize(), target, stream);
+  // bool enable = 2;
+  if (this->_internal_enable() != 0) {
+    target = stream->EnsureSpace(target);
+    target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_enable(), target);
+  }
+
+  // string analyzer = 3;
+  if (!this->_internal_analyzer().empty()) {
+    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
+      this->_internal_analyzer().data(), static_cast(this->_internal_analyzer().length()),
+      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
+      "greptime.v1.ChangeFulltext.analyzer");
+    target = stream->WriteStringMaybeAliased(
+        3, this->_internal_analyzer(), target);
+  }
+
+  // bool case_sensitive = 4;
+  if (this->_internal_case_sensitive() != 0) {
+    target = stream->EnsureSpace(target);
+    target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_case_sensitive(), target);
   }
 
   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
@@ -7210,11 +6967,21 @@ size_t ChangeFulltext::ByteSizeLong() const {
         this->_internal_column_name());
   }
 
-  // .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-  if (this->_internal_has_options()) {
+  // string analyzer = 3;
+  if (!this->_internal_analyzer().empty()) {
     total_size += 1 +
-      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
-        *_impl_.options_);
+      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
+        this->_internal_analyzer());
+  }
+
+  // bool enable = 2;
+  if (this->_internal_enable() != 0) {
+    total_size += 1 + 1;
+  }
+
+  // bool case_sensitive = 4;
+  if (this->_internal_case_sensitive() != 0) {
+    total_size += 1 + 1;
   }
 
   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
@@ -7238,9 +7005,14 @@ void ChangeFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
   if (!from._internal_column_name().empty()) {
     _this->_internal_set_column_name(from._internal_column_name());
   }
-  if (from._internal_has_options()) {
-    _this->_internal_mutable_options()->::greptime::v1::ChangeFulltext_FulltextOptions::MergeFrom(
-        from._internal_options());
+  if (!from._internal_analyzer().empty()) {
+    _this->_internal_set_analyzer(from._internal_analyzer());
+  }
+  if (from._internal_enable() != 0) {
+    _this->_internal_set_enable(from._internal_enable());
+  }
+  if (from._internal_case_sensitive() != 0) {
+    _this->_internal_set_case_sensitive(from._internal_case_sensitive());
   }
   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
 }
@@ -7265,13 +7037,22 @@ void ChangeFulltext::InternalSwap(ChangeFulltext* other) {
       &_impl_.column_name_, lhs_arena,
       &other->_impl_.column_name_, rhs_arena
   );
-  swap(_impl_.options_, other->_impl_.options_);
+  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
+      &_impl_.analyzer_, lhs_arena,
+      &other->_impl_.analyzer_, rhs_arena
+  );
+  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
+      PROTOBUF_FIELD_OFFSET(ChangeFulltext, _impl_.case_sensitive_)
+      + sizeof(ChangeFulltext::_impl_.case_sensitive_)
+      - PROTOBUF_FIELD_OFFSET(ChangeFulltext, _impl_.enable_)>(
+          reinterpret_cast(&_impl_.enable_),
+          reinterpret_cast(&other->_impl_.enable_));
 }
 
 ::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext::GetMetadata() const {
   return ::_pbi::AssignDescriptors(
       &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
-      file_level_metadata_greptime_2fv1_2fddl_2eproto[18]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[17]);
 }
 
 // ===================================================================
@@ -7474,7 +7255,7 @@ void RenameTable::InternalSwap(RenameTable* other) {
 ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const {
   return ::_pbi::AssignDescriptors(
       &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
-      file_level_metadata_greptime_2fv1_2fddl_2eproto[19]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[18]);
 }
 
 // ===================================================================
@@ -7713,7 +7494,7 @@ void AddColumn::InternalSwap(AddColumn* other) {
 ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const {
   return ::_pbi::AssignDescriptors(
       &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
-      file_level_metadata_greptime_2fv1_2fddl_2eproto[20]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[19]);
 }
 
 // ===================================================================
@@ -7998,7 +7779,7 @@ void ChangeColumnType::InternalSwap(ChangeColumnType* other) {
 ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnType::GetMetadata() const {
   return ::_pbi::AssignDescriptors(
       &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
-      file_level_metadata_greptime_2fv1_2fddl_2eproto[21]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[20]);
 }
 
 // ===================================================================
@@ -8201,7 +7982,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[22]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[21]);
 }
 
 // ===================================================================
@@ -8379,7 +8160,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[23]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[22]);
 }
 
 // ===================================================================
@@ -8557,7 +8338,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[24]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[23]);
 }
 
 // ===================================================================
@@ -9039,7 +8820,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[25]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[24]);
 }
 
 // ===================================================================
@@ -9272,7 +9053,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[26]);
+      file_level_metadata_greptime_2fv1_2fddl_2eproto[25]);
 }
 
 // @@protoc_insertion_point(namespace_scope)
@@ -9347,10 +9128,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnTypes*
 Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(Arena* arena) {
   return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnTypes >(arena);
 }
-template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext_FulltextOptions*
-Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext_FulltextOptions >(Arena* arena) {
-  return Arena::CreateMessageInternal< ::greptime::v1::ChangeFulltext_FulltextOptions >(arena);
-}
 template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext*
 Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(Arena* arena) {
   return Arena::CreateMessageInternal< ::greptime::v1::ChangeFulltext >(arena);
diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h
index 839ebcc4..9233fd27 100644
--- a/c++/greptime/v1/ddl.pb.h
+++ b/c++/greptime/v1/ddl.pb.h
@@ -72,9 +72,6 @@ extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_
 class ChangeFulltext;
 struct ChangeFulltextDefaultTypeInternal;
 extern ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_;
-class ChangeFulltext_FulltextOptions;
-struct ChangeFulltext_FulltextOptionsDefaultTypeInternal;
-extern ChangeFulltext_FulltextOptionsDefaultTypeInternal _ChangeFulltext_FulltextOptions_default_instance_;
 class ColumnDef;
 struct ColumnDefDefaultTypeInternal;
 extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
@@ -142,7 +139,6 @@ template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::
 template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*);
 template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*);
 template<> ::greptime::v1::ChangeFulltext* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext>(Arena*);
-template<> ::greptime::v1::ChangeFulltext_FulltextOptions* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext_FulltextOptions>(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*);
@@ -3587,181 +3583,6 @@ class ChangeColumnTypes final :
 };
 // -------------------------------------------------------------------
 
-class ChangeFulltext_FulltextOptions final :
-    public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeFulltext.FulltextOptions) */ {
- public:
-  inline ChangeFulltext_FulltextOptions() : ChangeFulltext_FulltextOptions(nullptr) {}
-  ~ChangeFulltext_FulltextOptions() override;
-  explicit PROTOBUF_CONSTEXPR ChangeFulltext_FulltextOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
-
-  ChangeFulltext_FulltextOptions(const ChangeFulltext_FulltextOptions& from);
-  ChangeFulltext_FulltextOptions(ChangeFulltext_FulltextOptions&& from) noexcept
-    : ChangeFulltext_FulltextOptions() {
-    *this = ::std::move(from);
-  }
-
-  inline ChangeFulltext_FulltextOptions& operator=(const ChangeFulltext_FulltextOptions& from) {
-    CopyFrom(from);
-    return *this;
-  }
-  inline ChangeFulltext_FulltextOptions& operator=(ChangeFulltext_FulltextOptions&& 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 ChangeFulltext_FulltextOptions& default_instance() {
-    return *internal_default_instance();
-  }
-  static inline const ChangeFulltext_FulltextOptions* internal_default_instance() {
-    return reinterpret_cast(
-               &_ChangeFulltext_FulltextOptions_default_instance_);
-  }
-  static constexpr int kIndexInFileMessages =
-    17;
-
-  friend void swap(ChangeFulltext_FulltextOptions& a, ChangeFulltext_FulltextOptions& b) {
-    a.Swap(&b);
-  }
-  inline void Swap(ChangeFulltext_FulltextOptions* 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(ChangeFulltext_FulltextOptions* other) {
-    if (other == this) return;
-    GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
-    InternalSwap(other);
-  }
-
-  // implements Message ----------------------------------------------
-
-  ChangeFulltext_FulltextOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
-    return CreateMaybeMessage(arena);
-  }
-  using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
-  void CopyFrom(const ChangeFulltext_FulltextOptions& from);
-  using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
-  void MergeFrom( const ChangeFulltext_FulltextOptions& from) {
-    ChangeFulltext_FulltextOptions::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(ChangeFulltext_FulltextOptions* other);
-
-  private:
-  friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
-  static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
-    return "greptime.v1.ChangeFulltext.FulltextOptions";
-  }
-  protected:
-  explicit ChangeFulltext_FulltextOptions(::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 {
-    kAnalyzerFieldNumber = 2,
-    kEnableFieldNumber = 1,
-    kCaseSensitiveFieldNumber = 3,
-  };
-  // string analyzer = 2;
-  void clear_analyzer();
-  const std::string& analyzer() const;
-  template 
-  void set_analyzer(ArgT0&& arg0, ArgT... args);
-  std::string* mutable_analyzer();
-  PROTOBUF_NODISCARD std::string* release_analyzer();
-  void set_allocated_analyzer(std::string* analyzer);
-  private:
-  const std::string& _internal_analyzer() const;
-  inline PROTOBUF_ALWAYS_INLINE void _internal_set_analyzer(const std::string& value);
-  std::string* _internal_mutable_analyzer();
-  public:
-
-  // bool enable = 1;
-  void clear_enable();
-  bool enable() const;
-  void set_enable(bool value);
-  private:
-  bool _internal_enable() const;
-  void _internal_set_enable(bool value);
-  public:
-
-  // bool case_sensitive = 3;
-  void clear_case_sensitive();
-  bool case_sensitive() const;
-  void set_case_sensitive(bool value);
-  private:
-  bool _internal_case_sensitive() const;
-  void _internal_set_case_sensitive(bool value);
-  public:
-
-  // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext.FulltextOptions)
- private:
-  class _Internal;
-
-  template  friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
-  typedef void InternalArenaConstructable_;
-  typedef void DestructorSkippable_;
-  struct Impl_ {
-    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr analyzer_;
-    bool enable_;
-    bool case_sensitive_;
-    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
-  };
-  union { Impl_ _impl_; };
-  friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
-};
-// -------------------------------------------------------------------
-
 class ChangeFulltext final :
     public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeFulltext) */ {
  public:
@@ -3810,7 +3631,7 @@ class ChangeFulltext final :
                &_ChangeFulltext_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    18;
+    17;
 
   friend void swap(ChangeFulltext& a, ChangeFulltext& b) {
     a.Swap(&b);
@@ -3880,13 +3701,13 @@ class ChangeFulltext final :
 
   // nested types ----------------------------------------------------
 
-  typedef ChangeFulltext_FulltextOptions FulltextOptions;
-
   // accessors -------------------------------------------------------
 
   enum : int {
     kColumnNameFieldNumber = 1,
-    kOptionsFieldNumber = 2,
+    kAnalyzerFieldNumber = 3,
+    kEnableFieldNumber = 2,
+    kCaseSensitiveFieldNumber = 4,
   };
   // string column_name = 1;
   void clear_column_name();
@@ -3902,23 +3723,37 @@ class ChangeFulltext final :
   std::string* _internal_mutable_column_name();
   public:
 
-  // .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-  bool has_options() const;
+  // string analyzer = 3;
+  void clear_analyzer();
+  const std::string& analyzer() const;
+  template 
+  void set_analyzer(ArgT0&& arg0, ArgT... args);
+  std::string* mutable_analyzer();
+  PROTOBUF_NODISCARD std::string* release_analyzer();
+  void set_allocated_analyzer(std::string* analyzer);
   private:
-  bool _internal_has_options() const;
+  const std::string& _internal_analyzer() const;
+  inline PROTOBUF_ALWAYS_INLINE void _internal_set_analyzer(const std::string& value);
+  std::string* _internal_mutable_analyzer();
   public:
-  void clear_options();
-  const ::greptime::v1::ChangeFulltext_FulltextOptions& options() const;
-  PROTOBUF_NODISCARD ::greptime::v1::ChangeFulltext_FulltextOptions* release_options();
-  ::greptime::v1::ChangeFulltext_FulltextOptions* mutable_options();
-  void set_allocated_options(::greptime::v1::ChangeFulltext_FulltextOptions* options);
+
+  // bool enable = 2;
+  void clear_enable();
+  bool enable() const;
+  void set_enable(bool value);
   private:
-  const ::greptime::v1::ChangeFulltext_FulltextOptions& _internal_options() const;
-  ::greptime::v1::ChangeFulltext_FulltextOptions* _internal_mutable_options();
+  bool _internal_enable() const;
+  void _internal_set_enable(bool value);
+  public:
+
+  // bool case_sensitive = 4;
+  void clear_case_sensitive();
+  bool case_sensitive() const;
+  void set_case_sensitive(bool value);
+  private:
+  bool _internal_case_sensitive() const;
+  void _internal_set_case_sensitive(bool value);
   public:
-  void unsafe_arena_set_allocated_options(
-      ::greptime::v1::ChangeFulltext_FulltextOptions* options);
-  ::greptime::v1::ChangeFulltext_FulltextOptions* unsafe_arena_release_options();
 
   // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext)
  private:
@@ -3929,7 +3764,9 @@ class ChangeFulltext final :
   typedef void DestructorSkippable_;
   struct Impl_ {
     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_;
-    ::greptime::v1::ChangeFulltext_FulltextOptions* options_;
+    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr analyzer_;
+    bool enable_;
+    bool case_sensitive_;
     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
   };
   union { Impl_ _impl_; };
@@ -3985,7 +3822,7 @@ class RenameTable final :
                &_RenameTable_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    19;
+    18;
 
   friend void swap(RenameTable& a, RenameTable& b) {
     a.Swap(&b);
@@ -4138,7 +3975,7 @@ class AddColumn final :
                &_AddColumn_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    20;
+    19;
 
   friend void swap(AddColumn& a, AddColumn& b) {
     a.Swap(&b);
@@ -4315,7 +4152,7 @@ class ChangeColumnType final :
                &_ChangeColumnType_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    21;
+    20;
 
   friend void swap(ChangeColumnType& a, ChangeColumnType& b) {
     a.Swap(&b);
@@ -4499,7 +4336,7 @@ class DropColumn final :
                &_DropColumn_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    22;
+    21;
 
   friend void swap(DropColumn& a, DropColumn& b) {
     a.Swap(&b);
@@ -4652,7 +4489,7 @@ class TableId final :
                &_TableId_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    23;
+    22;
 
   friend void swap(TableId& a, TableId& b) {
     a.Swap(&b);
@@ -4800,7 +4637,7 @@ class FlowId final :
                &_FlowId_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    24;
+    23;
 
   friend void swap(FlowId& a, FlowId& b) {
     a.Swap(&b);
@@ -4948,7 +4785,7 @@ class ColumnDef final :
                &_ColumnDef_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    25;
+    24;
 
   friend void swap(ColumnDef& a, ColumnDef& b) {
     a.Swap(&b);
@@ -5206,7 +5043,7 @@ class AddColumnLocation final :
                &_AddColumnLocation_default_instance_);
   }
   static constexpr int kIndexInFileMessages =
-    26;
+    25;
 
   friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
     a.Swap(&b);
@@ -9491,100 +9328,6 @@ ChangeColumnTypes::change_column_types() const {
 
 // -------------------------------------------------------------------
 
-// ChangeFulltext_FulltextOptions
-
-// bool enable = 1;
-inline void ChangeFulltext_FulltextOptions::clear_enable() {
-  _impl_.enable_ = false;
-}
-inline bool ChangeFulltext_FulltextOptions::_internal_enable() const {
-  return _impl_.enable_;
-}
-inline bool ChangeFulltext_FulltextOptions::enable() const {
-  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.FulltextOptions.enable)
-  return _internal_enable();
-}
-inline void ChangeFulltext_FulltextOptions::_internal_set_enable(bool value) {
-  
-  _impl_.enable_ = value;
-}
-inline void ChangeFulltext_FulltextOptions::set_enable(bool value) {
-  _internal_set_enable(value);
-  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.FulltextOptions.enable)
-}
-
-// string analyzer = 2;
-inline void ChangeFulltext_FulltextOptions::clear_analyzer() {
-  _impl_.analyzer_.ClearToEmpty();
-}
-inline const std::string& ChangeFulltext_FulltextOptions::analyzer() const {
-  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
-  return _internal_analyzer();
-}
-template 
-inline PROTOBUF_ALWAYS_INLINE
-void ChangeFulltext_FulltextOptions::set_analyzer(ArgT0&& arg0, ArgT... args) {
- 
- _impl_.analyzer_.Set(static_cast(arg0), args..., GetArenaForAllocation());
-  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
-}
-inline std::string* ChangeFulltext_FulltextOptions::mutable_analyzer() {
-  std::string* _s = _internal_mutable_analyzer();
-  // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
-  return _s;
-}
-inline const std::string& ChangeFulltext_FulltextOptions::_internal_analyzer() const {
-  return _impl_.analyzer_.Get();
-}
-inline void ChangeFulltext_FulltextOptions::_internal_set_analyzer(const std::string& value) {
-  
-  _impl_.analyzer_.Set(value, GetArenaForAllocation());
-}
-inline std::string* ChangeFulltext_FulltextOptions::_internal_mutable_analyzer() {
-  
-  return _impl_.analyzer_.Mutable(GetArenaForAllocation());
-}
-inline std::string* ChangeFulltext_FulltextOptions::release_analyzer() {
-  // @@protoc_insertion_point(field_release:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
-  return _impl_.analyzer_.Release();
-}
-inline void ChangeFulltext_FulltextOptions::set_allocated_analyzer(std::string* analyzer) {
-  if (analyzer != nullptr) {
-    
-  } else {
-    
-  }
-  _impl_.analyzer_.SetAllocated(analyzer, GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
-  if (_impl_.analyzer_.IsDefault()) {
-    _impl_.analyzer_.Set("", GetArenaForAllocation());
-  }
-#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
-  // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.FulltextOptions.analyzer)
-}
-
-// bool case_sensitive = 3;
-inline void ChangeFulltext_FulltextOptions::clear_case_sensitive() {
-  _impl_.case_sensitive_ = false;
-}
-inline bool ChangeFulltext_FulltextOptions::_internal_case_sensitive() const {
-  return _impl_.case_sensitive_;
-}
-inline bool ChangeFulltext_FulltextOptions::case_sensitive() const {
-  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.FulltextOptions.case_sensitive)
-  return _internal_case_sensitive();
-}
-inline void ChangeFulltext_FulltextOptions::_internal_set_case_sensitive(bool value) {
-  
-  _impl_.case_sensitive_ = value;
-}
-inline void ChangeFulltext_FulltextOptions::set_case_sensitive(bool value) {
-  _internal_set_case_sensitive(value);
-  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.FulltextOptions.case_sensitive)
-}
-
-// -------------------------------------------------------------------
-
 // ChangeFulltext
 
 // string column_name = 1;
@@ -9637,94 +9380,94 @@ inline void ChangeFulltext::set_allocated_column_name(std::string* column_name)
   // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.column_name)
 }
 
-// .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-inline bool ChangeFulltext::_internal_has_options() const {
-  return this != internal_default_instance() && _impl_.options_ != nullptr;
+// bool enable = 2;
+inline void ChangeFulltext::clear_enable() {
+  _impl_.enable_ = false;
 }
-inline bool ChangeFulltext::has_options() const {
-  return _internal_has_options();
+inline bool ChangeFulltext::_internal_enable() const {
+  return _impl_.enable_;
 }
-inline void ChangeFulltext::clear_options() {
-  if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) {
-    delete _impl_.options_;
-  }
-  _impl_.options_ = nullptr;
+inline bool ChangeFulltext::enable() const {
+  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.enable)
+  return _internal_enable();
 }
-inline const ::greptime::v1::ChangeFulltext_FulltextOptions& ChangeFulltext::_internal_options() const {
-  const ::greptime::v1::ChangeFulltext_FulltextOptions* p = _impl_.options_;
-  return p != nullptr ? *p : reinterpret_cast(
-      ::greptime::v1::_ChangeFulltext_FulltextOptions_default_instance_);
+inline void ChangeFulltext::_internal_set_enable(bool value) {
+  
+  _impl_.enable_ = value;
 }
-inline const ::greptime::v1::ChangeFulltext_FulltextOptions& ChangeFulltext::options() const {
-  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.options)
-  return _internal_options();
+inline void ChangeFulltext::set_enable(bool value) {
+  _internal_set_enable(value);
+  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.enable)
 }
-inline void ChangeFulltext::unsafe_arena_set_allocated_options(
-    ::greptime::v1::ChangeFulltext_FulltextOptions* options) {
-  if (GetArenaForAllocation() == nullptr) {
-    delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_);
-  }
-  _impl_.options_ = options;
-  if (options) {
-    
-  } else {
-    
-  }
-  // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ChangeFulltext.options)
+
+// string analyzer = 3;
+inline void ChangeFulltext::clear_analyzer() {
+  _impl_.analyzer_.ClearToEmpty();
 }
-inline ::greptime::v1::ChangeFulltext_FulltextOptions* ChangeFulltext::release_options() {
-  
-  ::greptime::v1::ChangeFulltext_FulltextOptions* temp = _impl_.options_;
-  _impl_.options_ = nullptr;
-#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
-  auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
-  temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
-  if (GetArenaForAllocation() == nullptr) { delete old; }
-#else  // PROTOBUF_FORCE_COPY_IN_RELEASE
-  if (GetArenaForAllocation() != nullptr) {
-    temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
-  }
-#endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
-  return temp;
+inline const std::string& ChangeFulltext::analyzer() const {
+  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.analyzer)
+  return _internal_analyzer();
+}
+template 
+inline PROTOBUF_ALWAYS_INLINE
+void ChangeFulltext::set_analyzer(ArgT0&& arg0, ArgT... args) {
+ 
+ _impl_.analyzer_.Set(static_cast(arg0), args..., GetArenaForAllocation());
+  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.analyzer)
 }
-inline ::greptime::v1::ChangeFulltext_FulltextOptions* ChangeFulltext::unsafe_arena_release_options() {
-  // @@protoc_insertion_point(field_release:greptime.v1.ChangeFulltext.options)
+inline std::string* ChangeFulltext::mutable_analyzer() {
+  std::string* _s = _internal_mutable_analyzer();
+  // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeFulltext.analyzer)
+  return _s;
+}
+inline const std::string& ChangeFulltext::_internal_analyzer() const {
+  return _impl_.analyzer_.Get();
+}
+inline void ChangeFulltext::_internal_set_analyzer(const std::string& value) {
   
-  ::greptime::v1::ChangeFulltext_FulltextOptions* temp = _impl_.options_;
-  _impl_.options_ = nullptr;
-  return temp;
+  _impl_.analyzer_.Set(value, GetArenaForAllocation());
 }
-inline ::greptime::v1::ChangeFulltext_FulltextOptions* ChangeFulltext::_internal_mutable_options() {
+inline std::string* ChangeFulltext::_internal_mutable_analyzer() {
   
-  if (_impl_.options_ == nullptr) {
-    auto* p = CreateMaybeMessage<::greptime::v1::ChangeFulltext_FulltextOptions>(GetArenaForAllocation());
-    _impl_.options_ = p;
-  }
-  return _impl_.options_;
+  return _impl_.analyzer_.Mutable(GetArenaForAllocation());
 }
-inline ::greptime::v1::ChangeFulltext_FulltextOptions* ChangeFulltext::mutable_options() {
-  ::greptime::v1::ChangeFulltext_FulltextOptions* _msg = _internal_mutable_options();
-  // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeFulltext.options)
-  return _msg;
+inline std::string* ChangeFulltext::release_analyzer() {
+  // @@protoc_insertion_point(field_release:greptime.v1.ChangeFulltext.analyzer)
+  return _impl_.analyzer_.Release();
 }
-inline void ChangeFulltext::set_allocated_options(::greptime::v1::ChangeFulltext_FulltextOptions* options) {
-  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
-  if (message_arena == nullptr) {
-    delete _impl_.options_;
-  }
-  if (options) {
-    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
-        ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options);
-    if (message_arena != submessage_arena) {
-      options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
-          message_arena, options, submessage_arena);
-    }
+inline void ChangeFulltext::set_allocated_analyzer(std::string* analyzer) {
+  if (analyzer != nullptr) {
     
   } else {
     
   }
-  _impl_.options_ = options;
-  // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.options)
+  _impl_.analyzer_.SetAllocated(analyzer, GetArenaForAllocation());
+#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
+  if (_impl_.analyzer_.IsDefault()) {
+    _impl_.analyzer_.Set("", GetArenaForAllocation());
+  }
+#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
+  // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.analyzer)
+}
+
+// bool case_sensitive = 4;
+inline void ChangeFulltext::clear_case_sensitive() {
+  _impl_.case_sensitive_ = false;
+}
+inline bool ChangeFulltext::_internal_case_sensitive() const {
+  return _impl_.case_sensitive_;
+}
+inline bool ChangeFulltext::case_sensitive() const {
+  // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.case_sensitive)
+  return _internal_case_sensitive();
+}
+inline void ChangeFulltext::_internal_set_case_sensitive(bool value) {
+  
+  _impl_.case_sensitive_ = value;
+}
+inline void ChangeFulltext::set_case_sensitive(bool value) {
+  _internal_set_case_sensitive(value);
+  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.case_sensitive)
 }
 
 // -------------------------------------------------------------------
@@ -10737,8 +10480,6 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte
 
 // -------------------------------------------------------------------
 
-// -------------------------------------------------------------------
-
 
 // @@protoc_insertion_point(namespace_scope)
 
diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go
index 4a028bb6..a24c6041 100644
--- a/go/greptime/v1/ddl.pb.go
+++ b/go/greptime/v1/ddl.pb.go
@@ -1360,8 +1360,10 @@ type ChangeFulltext struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	ColumnName string                          `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
-	Options    *ChangeFulltext_FulltextOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
+	ColumnName    string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
+	Enable        bool   `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
+	Analyzer      string `protobuf:"bytes,3,opt,name=analyzer,proto3" json:"analyzer,omitempty"`
+	CaseSensitive bool   `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
 }
 
 func (x *ChangeFulltext) Reset() {
@@ -1403,11 +1405,25 @@ func (x *ChangeFulltext) GetColumnName() string {
 	return ""
 }
 
-func (x *ChangeFulltext) GetOptions() *ChangeFulltext_FulltextOptions {
+func (x *ChangeFulltext) GetEnable() bool {
 	if x != nil {
-		return x.Options
+		return x.Enable
 	}
-	return nil
+	return false
+}
+
+func (x *ChangeFulltext) GetAnalyzer() string {
+	if x != nil {
+		return x.Analyzer
+	}
+	return ""
+}
+
+func (x *ChangeFulltext) GetCaseSensitive() bool {
+	if x != nil {
+		return x.CaseSensitive
+	}
+	return false
 }
 
 type RenameTable struct {
@@ -1876,69 +1892,6 @@ func (x *AddColumnLocation) GetAfterColumnName() string {
 	return ""
 }
 
-type ChangeFulltext_FulltextOptions struct {
-	state         protoimpl.MessageState
-	sizeCache     protoimpl.SizeCache
-	unknownFields protoimpl.UnknownFields
-
-	Enable        bool   `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
-	Analyzer      string `protobuf:"bytes,2,opt,name=analyzer,proto3" json:"analyzer,omitempty"`
-	CaseSensitive bool   `protobuf:"varint,3,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
-}
-
-func (x *ChangeFulltext_FulltextOptions) Reset() {
-	*x = ChangeFulltext_FulltextOptions{}
-	if protoimpl.UnsafeEnabled {
-		mi := &file_greptime_v1_ddl_proto_msgTypes[26]
-		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
-		ms.StoreMessageInfo(mi)
-	}
-}
-
-func (x *ChangeFulltext_FulltextOptions) String() string {
-	return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ChangeFulltext_FulltextOptions) ProtoMessage() {}
-
-func (x *ChangeFulltext_FulltextOptions) ProtoReflect() protoreflect.Message {
-	mi := &file_greptime_v1_ddl_proto_msgTypes[26]
-	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 ChangeFulltext_FulltextOptions.ProtoReflect.Descriptor instead.
-func (*ChangeFulltext_FulltextOptions) Descriptor() ([]byte, []int) {
-	return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14, 0}
-}
-
-func (x *ChangeFulltext_FulltextOptions) GetEnable() bool {
-	if x != nil {
-		return x.Enable
-	}
-	return false
-}
-
-func (x *ChangeFulltext_FulltextOptions) GetAnalyzer() string {
-	if x != nil {
-		return x.Analyzer
-	}
-	return ""
-}
-
-func (x *ChangeFulltext_FulltextOptions) GetCaseSensitive() bool {
-	if x != nil {
-		return x.CaseSensitive
-	}
-	return false
-}
-
 var File_greptime_v1_ddl_proto protoreflect.FileDescriptor
 
 var file_greptime_v1_ddl_proto_rawDesc = []byte{
@@ -2189,93 +2142,88 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
 	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, 0xe6, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e,
+	0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x8c, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e,
 	0x67, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x45, 0x0a, 0x07, 0x6f,
-	0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x67,
-	0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67,
-	0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65,
-	0x78, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f,
-	0x6e, 0x73, 0x1a, 0x6c, 0x0a, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x4f, 0x70,
-	0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18,
-	0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a,
-	0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
-	0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73,
-	0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
-	0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65,
-	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,
+	0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65,
+	0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61,
+	0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18,
+	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12,
+	0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,
+	0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e,
+	0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 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, 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,
+	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, 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,
+	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,
 }
 
 var (
@@ -2291,42 +2239,41 @@ 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, 27)
+var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
 var file_greptime_v1_ddl_proto_goTypes = []interface{}{
-	(AddColumnLocation_LocationType)(0),    // 0: greptime.v1.AddColumnLocation.LocationType
-	(*DdlRequest)(nil),                     // 1: greptime.v1.DdlRequest
-	(*CreateFlowExpr)(nil),                 // 2: greptime.v1.CreateFlowExpr
-	(*DropFlowExpr)(nil),                   // 3: greptime.v1.DropFlowExpr
-	(*CreateViewExpr)(nil),                 // 4: greptime.v1.CreateViewExpr
-	(*DropViewExpr)(nil),                   // 5: greptime.v1.DropViewExpr
-	(*CreateTableExpr)(nil),                // 6: greptime.v1.CreateTableExpr
-	(*AlterExpr)(nil),                      // 7: greptime.v1.AlterExpr
-	(*DropTableExpr)(nil),                  // 8: greptime.v1.DropTableExpr
-	(*CreateDatabaseExpr)(nil),             // 9: greptime.v1.CreateDatabaseExpr
-	(*TruncateTableExpr)(nil),              // 10: greptime.v1.TruncateTableExpr
-	(*DropDatabaseExpr)(nil),               // 11: greptime.v1.DropDatabaseExpr
-	(*AddColumns)(nil),                     // 12: greptime.v1.AddColumns
-	(*DropColumns)(nil),                    // 13: greptime.v1.DropColumns
-	(*ChangeColumnTypes)(nil),              // 14: greptime.v1.ChangeColumnTypes
-	(*ChangeFulltext)(nil),                 // 15: greptime.v1.ChangeFulltext
-	(*RenameTable)(nil),                    // 16: greptime.v1.RenameTable
-	(*AddColumn)(nil),                      // 17: greptime.v1.AddColumn
-	(*ChangeColumnType)(nil),               // 18: greptime.v1.ChangeColumnType
-	(*DropColumn)(nil),                     // 19: greptime.v1.DropColumn
-	(*TableId)(nil),                        // 20: greptime.v1.TableId
-	(*FlowId)(nil),                         // 21: greptime.v1.FlowId
-	(*ColumnDef)(nil),                      // 22: greptime.v1.ColumnDef
-	(*AddColumnLocation)(nil),              // 23: greptime.v1.AddColumnLocation
-	nil,                                    // 24: greptime.v1.CreateFlowExpr.FlowOptionsEntry
-	nil,                                    // 25: greptime.v1.CreateTableExpr.TableOptionsEntry
-	nil,                                    // 26: greptime.v1.CreateDatabaseExpr.OptionsEntry
-	(*ChangeFulltext_FulltextOptions)(nil), // 27: greptime.v1.ChangeFulltext.FulltextOptions
-	(*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
+	(AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType
+	(*DdlRequest)(nil),                  // 1: greptime.v1.DdlRequest
+	(*CreateFlowExpr)(nil),              // 2: greptime.v1.CreateFlowExpr
+	(*DropFlowExpr)(nil),                // 3: greptime.v1.DropFlowExpr
+	(*CreateViewExpr)(nil),              // 4: greptime.v1.CreateViewExpr
+	(*DropViewExpr)(nil),                // 5: greptime.v1.DropViewExpr
+	(*CreateTableExpr)(nil),             // 6: greptime.v1.CreateTableExpr
+	(*AlterExpr)(nil),                   // 7: greptime.v1.AlterExpr
+	(*DropTableExpr)(nil),               // 8: greptime.v1.DropTableExpr
+	(*CreateDatabaseExpr)(nil),          // 9: greptime.v1.CreateDatabaseExpr
+	(*TruncateTableExpr)(nil),           // 10: greptime.v1.TruncateTableExpr
+	(*DropDatabaseExpr)(nil),            // 11: greptime.v1.DropDatabaseExpr
+	(*AddColumns)(nil),                  // 12: greptime.v1.AddColumns
+	(*DropColumns)(nil),                 // 13: greptime.v1.DropColumns
+	(*ChangeColumnTypes)(nil),           // 14: greptime.v1.ChangeColumnTypes
+	(*ChangeFulltext)(nil),              // 15: greptime.v1.ChangeFulltext
+	(*RenameTable)(nil),                 // 16: greptime.v1.RenameTable
+	(*AddColumn)(nil),                   // 17: greptime.v1.AddColumn
+	(*ChangeColumnType)(nil),            // 18: greptime.v1.ChangeColumnType
+	(*DropColumn)(nil),                  // 19: greptime.v1.DropColumn
+	(*TableId)(nil),                     // 20: greptime.v1.TableId
+	(*FlowId)(nil),                      // 21: greptime.v1.FlowId
+	(*ColumnDef)(nil),                   // 22: greptime.v1.ColumnDef
+	(*AddColumnLocation)(nil),           // 23: greptime.v1.AddColumnLocation
+	nil,                                 // 24: greptime.v1.CreateFlowExpr.FlowOptionsEntry
+	nil,                                 // 25: greptime.v1.CreateTableExpr.TableOptionsEntry
+	nil,                                 // 26: greptime.v1.CreateDatabaseExpr.OptionsEntry
+	(*TableName)(nil),                   // 27: greptime.v1.TableName
+	(*ExpireAfter)(nil),                 // 28: greptime.v1.ExpireAfter
+	(ColumnDataType)(0),                 // 29: greptime.v1.ColumnDataType
+	(*ColumnDataTypeExtension)(nil),     // 30: greptime.v1.ColumnDataTypeExtension
+	(SemanticType)(0),                   // 31: greptime.v1.SemanticType
+	(*ColumnOptions)(nil),               // 32: greptime.v1.ColumnOptions
 }
 var file_greptime_v1_ddl_proto_depIdxs = []int32{
 	9,  // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
@@ -2338,12 +2285,12 @@ 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
-	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
+	27, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName
+	27, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName
+	28, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter
 	24, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry
 	21, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId
-	28, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName
+	27, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName
 	20, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId
 	22, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
 	25, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
@@ -2359,21 +2306,20 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
 	17, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
 	19, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
 	18, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType
-	27, // 30: greptime.v1.ChangeFulltext.options:type_name -> greptime.v1.ChangeFulltext.FulltextOptions
-	22, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
-	23, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
-	30, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType
-	31, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
-	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
+	22, // 30: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
+	23, // 31: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
+	29, // 32: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType
+	30, // 33: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
+	29, // 34: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
+	31, // 35: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
+	30, // 36: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
+	32, // 37: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions
+	0,  // 38: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
+	39, // [39:39] is the sub-list for method output_type
+	39, // [39:39] is the sub-list for method input_type
+	39, // [39:39] is the sub-list for extension type_name
+	39, // [39:39] is the sub-list for extension extendee
+	0,  // [0:39] is the sub-list for field type_name
 }
 
 func init() { file_greptime_v1_ddl_proto_init() }
@@ -2659,18 +2605,6 @@ func file_greptime_v1_ddl_proto_init() {
 				return nil
 			}
 		}
-		file_greptime_v1_ddl_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
-			switch v := v.(*ChangeFulltext_FulltextOptions); 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[0].OneofWrappers = []interface{}{
 		(*DdlRequest_CreateDatabase)(nil),
@@ -2696,7 +2630,7 @@ func file_greptime_v1_ddl_proto_init() {
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
 			NumEnums:      1,
-			NumMessages:   27,
+			NumMessages:   26,
 			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 58000d78..1b719496 100644
--- a/java/src/main/java/io/greptime/v1/Ddl.java
+++ b/java/src/main/java/io/greptime/v1/Ddl.java
@@ -20254,19 +20254,28 @@ public interface ChangeFulltextOrBuilder extends
         getColumnNameBytes();
 
     /**
-     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-     * @return Whether the options field is set.
+     * bool enable = 2;
+     * @return The enable.
      */
-    boolean hasOptions();
+    boolean getEnable();
+
     /**
-     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-     * @return The options.
+     * string analyzer = 3;
+     * @return The analyzer.
      */
-    io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getOptions();
+    java.lang.String getAnalyzer();
+    /**
+     * string analyzer = 3;
+     * @return The bytes for analyzer.
+     */
+    com.google.protobuf.ByteString
+        getAnalyzerBytes();
+
     /**
-     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+     * bool case_sensitive = 4;
+     * @return The caseSensitive.
      */
-    io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder getOptionsOrBuilder();
+    boolean getCaseSensitive();
   }
   /**
    * Protobuf type {@code greptime.v1.ChangeFulltext}
@@ -20282,6 +20291,7 @@ private ChangeFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder
     }
     private ChangeFulltext() {
       columnName_ = "";
+      analyzer_ = "";
     }
 
     @java.lang.Override
@@ -20320,17 +20330,20 @@ private ChangeFulltext(
               columnName_ = s;
               break;
             }
-            case 18: {
-              io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder subBuilder = null;
-              if (options_ != null) {
-                subBuilder = options_.toBuilder();
-              }
-              options_ = input.readMessage(io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.parser(), extensionRegistry);
-              if (subBuilder != null) {
-                subBuilder.mergeFrom(options_);
-                options_ = subBuilder.buildPartial();
-              }
+            case 16: {
+
+              enable_ = input.readBool();
+              break;
+            }
+            case 26: {
+              java.lang.String s = input.readStringRequireUtf8();
+
+              analyzer_ = s;
+              break;
+            }
+            case 32: {
 
+              caseSensitive_ = input.readBool();
               break;
             }
             default: {
@@ -20367,718 +20380,6 @@ private ChangeFulltext(
               io.greptime.v1.Ddl.ChangeFulltext.class, io.greptime.v1.Ddl.ChangeFulltext.Builder.class);
     }
 
-    public interface FulltextOptionsOrBuilder extends
-        // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeFulltext.FulltextOptions)
-        com.google.protobuf.MessageOrBuilder {
-
-      /**
-       * bool enable = 1;
-       * @return The enable.
-       */
-      boolean getEnable();
-
-      /**
-       * string analyzer = 2;
-       * @return The analyzer.
-       */
-      java.lang.String getAnalyzer();
-      /**
-       * string analyzer = 2;
-       * @return The bytes for analyzer.
-       */
-      com.google.protobuf.ByteString
-          getAnalyzerBytes();
-
-      /**
-       * bool case_sensitive = 3;
-       * @return The caseSensitive.
-       */
-      boolean getCaseSensitive();
-    }
-    /**
-     * Protobuf type {@code greptime.v1.ChangeFulltext.FulltextOptions}
-     */
-    public static final class FulltextOptions extends
-        com.google.protobuf.GeneratedMessageV3 implements
-        // @@protoc_insertion_point(message_implements:greptime.v1.ChangeFulltext.FulltextOptions)
-        FulltextOptionsOrBuilder {
-    private static final long serialVersionUID = 0L;
-      // Use FulltextOptions.newBuilder() to construct.
-      private FulltextOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) {
-        super(builder);
-      }
-      private FulltextOptions() {
-        analyzer_ = "";
-      }
-
-      @java.lang.Override
-      @SuppressWarnings({"unused"})
-      protected java.lang.Object newInstance(
-          UnusedPrivateParameter unused) {
-        return new FulltextOptions();
-      }
-
-      @java.lang.Override
-      public final com.google.protobuf.UnknownFieldSet
-      getUnknownFields() {
-        return this.unknownFields;
-      }
-      private FulltextOptions(
-          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 8: {
-
-                enable_ = input.readBool();
-                break;
-              }
-              case 18: {
-                java.lang.String s = input.readStringRequireUtf8();
-
-                analyzer_ = s;
-                break;
-              }
-              case 24: {
-
-                caseSensitive_ = input.readBool();
-                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_ChangeFulltext_FulltextOptions_descriptor;
-      }
-
-      @java.lang.Override
-      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-          internalGetFieldAccessorTable() {
-        return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_FulltextOptions_fieldAccessorTable
-            .ensureFieldAccessorsInitialized(
-                io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.class, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder.class);
-      }
-
-      public static final int ENABLE_FIELD_NUMBER = 1;
-      private boolean enable_;
-      /**
-       * bool enable = 1;
-       * @return The enable.
-       */
-      @java.lang.Override
-      public boolean getEnable() {
-        return enable_;
-      }
-
-      public static final int ANALYZER_FIELD_NUMBER = 2;
-      private volatile java.lang.Object analyzer_;
-      /**
-       * string analyzer = 2;
-       * @return The analyzer.
-       */
-      @java.lang.Override
-      public java.lang.String getAnalyzer() {
-        java.lang.Object ref = analyzer_;
-        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();
-          analyzer_ = s;
-          return s;
-        }
-      }
-      /**
-       * string analyzer = 2;
-       * @return The bytes for analyzer.
-       */
-      @java.lang.Override
-      public com.google.protobuf.ByteString
-          getAnalyzerBytes() {
-        java.lang.Object ref = analyzer_;
-        if (ref instanceof java.lang.String) {
-          com.google.protobuf.ByteString b = 
-              com.google.protobuf.ByteString.copyFromUtf8(
-                  (java.lang.String) ref);
-          analyzer_ = b;
-          return b;
-        } else {
-          return (com.google.protobuf.ByteString) ref;
-        }
-      }
-
-      public static final int CASE_SENSITIVE_FIELD_NUMBER = 3;
-      private boolean caseSensitive_;
-      /**
-       * bool case_sensitive = 3;
-       * @return The caseSensitive.
-       */
-      @java.lang.Override
-      public boolean getCaseSensitive() {
-        return caseSensitive_;
-      }
-
-      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 (enable_ != false) {
-          output.writeBool(1, enable_);
-        }
-        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) {
-          com.google.protobuf.GeneratedMessageV3.writeString(output, 2, analyzer_);
-        }
-        if (caseSensitive_ != false) {
-          output.writeBool(3, caseSensitive_);
-        }
-        unknownFields.writeTo(output);
-      }
-
-      @java.lang.Override
-      public int getSerializedSize() {
-        int size = memoizedSize;
-        if (size != -1) return size;
-
-        size = 0;
-        if (enable_ != false) {
-          size += com.google.protobuf.CodedOutputStream
-            .computeBoolSize(1, enable_);
-        }
-        if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) {
-          size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, analyzer_);
-        }
-        if (caseSensitive_ != false) {
-          size += com.google.protobuf.CodedOutputStream
-            .computeBoolSize(3, caseSensitive_);
-        }
-        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.ChangeFulltext.FulltextOptions)) {
-          return super.equals(obj);
-        }
-        io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions other = (io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions) obj;
-
-        if (getEnable()
-            != other.getEnable()) return false;
-        if (!getAnalyzer()
-            .equals(other.getAnalyzer())) return false;
-        if (getCaseSensitive()
-            != other.getCaseSensitive()) 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) + ENABLE_FIELD_NUMBER;
-        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-            getEnable());
-        hash = (37 * hash) + ANALYZER_FIELD_NUMBER;
-        hash = (53 * hash) + getAnalyzer().hashCode();
-        hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER;
-        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-            getCaseSensitive());
-        hash = (29 * hash) + unknownFields.hashCode();
-        memoizedHashCode = hash;
-        return hash;
-      }
-
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions parseFrom(
-          java.nio.ByteBuffer data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions parseFrom(
-          com.google.protobuf.ByteString data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions parseFrom(byte[] data)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data);
-      }
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions parseFrom(
-          byte[] data,
-          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-          throws com.google.protobuf.InvalidProtocolBufferException {
-        return PARSER.parseFrom(data, extensionRegistry);
-      }
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions parseFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
-      }
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions parseDelimitedFrom(java.io.InputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseDelimitedWithIOException(PARSER, input);
-      }
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions parseFrom(
-          com.google.protobuf.CodedInputStream input)
-          throws java.io.IOException {
-        return com.google.protobuf.GeneratedMessageV3
-            .parseWithIOException(PARSER, input);
-      }
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions 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.ChangeFulltext.FulltextOptions}
-       */
-      public static final class Builder extends
-          com.google.protobuf.GeneratedMessageV3.Builder implements
-          // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeFulltext.FulltextOptions)
-          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder {
-        public static final com.google.protobuf.Descriptors.Descriptor
-            getDescriptor() {
-          return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor;
-        }
-
-        @java.lang.Override
-        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-            internalGetFieldAccessorTable() {
-          return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_FulltextOptions_fieldAccessorTable
-              .ensureFieldAccessorsInitialized(
-                  io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.class, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder.class);
-        }
-
-        // Construct using io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.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();
-          enable_ = false;
-
-          analyzer_ = "";
-
-          caseSensitive_ = false;
-
-          return this;
-        }
-
-        @java.lang.Override
-        public com.google.protobuf.Descriptors.Descriptor
-            getDescriptorForType() {
-          return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor;
-        }
-
-        @java.lang.Override
-        public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getDefaultInstanceForType() {
-          return io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance();
-        }
-
-        @java.lang.Override
-        public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions build() {
-          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions result = buildPartial();
-          if (!result.isInitialized()) {
-            throw newUninitializedMessageException(result);
-          }
-          return result;
-        }
-
-        @java.lang.Override
-        public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions buildPartial() {
-          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions result = new io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions(this);
-          result.enable_ = enable_;
-          result.analyzer_ = analyzer_;
-          result.caseSensitive_ = caseSensitive_;
-          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.ChangeFulltext.FulltextOptions) {
-            return mergeFrom((io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions)other);
-          } else {
-            super.mergeFrom(other);
-            return this;
-          }
-        }
-
-        public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions other) {
-          if (other == io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance()) return this;
-          if (other.getEnable() != false) {
-            setEnable(other.getEnable());
-          }
-          if (!other.getAnalyzer().isEmpty()) {
-            analyzer_ = other.analyzer_;
-            onChanged();
-          }
-          if (other.getCaseSensitive() != false) {
-            setCaseSensitive(other.getCaseSensitive());
-          }
-          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.ChangeFulltext.FulltextOptions parsedMessage = null;
-          try {
-            parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
-          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
-            parsedMessage = (io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions) e.getUnfinishedMessage();
-            throw e.unwrapIOException();
-          } finally {
-            if (parsedMessage != null) {
-              mergeFrom(parsedMessage);
-            }
-          }
-          return this;
-        }
-
-        private boolean enable_ ;
-        /**
-         * bool enable = 1;
-         * @return The enable.
-         */
-        @java.lang.Override
-        public boolean getEnable() {
-          return enable_;
-        }
-        /**
-         * bool enable = 1;
-         * @param value The enable to set.
-         * @return This builder for chaining.
-         */
-        public Builder setEnable(boolean value) {
-          
-          enable_ = value;
-          onChanged();
-          return this;
-        }
-        /**
-         * bool enable = 1;
-         * @return This builder for chaining.
-         */
-        public Builder clearEnable() {
-          
-          enable_ = false;
-          onChanged();
-          return this;
-        }
-
-        private java.lang.Object analyzer_ = "";
-        /**
-         * string analyzer = 2;
-         * @return The analyzer.
-         */
-        public java.lang.String getAnalyzer() {
-          java.lang.Object ref = analyzer_;
-          if (!(ref instanceof java.lang.String)) {
-            com.google.protobuf.ByteString bs =
-                (com.google.protobuf.ByteString) ref;
-            java.lang.String s = bs.toStringUtf8();
-            analyzer_ = s;
-            return s;
-          } else {
-            return (java.lang.String) ref;
-          }
-        }
-        /**
-         * string analyzer = 2;
-         * @return The bytes for analyzer.
-         */
-        public com.google.protobuf.ByteString
-            getAnalyzerBytes() {
-          java.lang.Object ref = analyzer_;
-          if (ref instanceof String) {
-            com.google.protobuf.ByteString b = 
-                com.google.protobuf.ByteString.copyFromUtf8(
-                    (java.lang.String) ref);
-            analyzer_ = b;
-            return b;
-          } else {
-            return (com.google.protobuf.ByteString) ref;
-          }
-        }
-        /**
-         * string analyzer = 2;
-         * @param value The analyzer to set.
-         * @return This builder for chaining.
-         */
-        public Builder setAnalyzer(
-            java.lang.String value) {
-          if (value == null) {
-    throw new NullPointerException();
-  }
-  
-          analyzer_ = value;
-          onChanged();
-          return this;
-        }
-        /**
-         * string analyzer = 2;
-         * @return This builder for chaining.
-         */
-        public Builder clearAnalyzer() {
-          
-          analyzer_ = getDefaultInstance().getAnalyzer();
-          onChanged();
-          return this;
-        }
-        /**
-         * string analyzer = 2;
-         * @param value The bytes for analyzer to set.
-         * @return This builder for chaining.
-         */
-        public Builder setAnalyzerBytes(
-            com.google.protobuf.ByteString value) {
-          if (value == null) {
-    throw new NullPointerException();
-  }
-  checkByteStringIsUtf8(value);
-          
-          analyzer_ = value;
-          onChanged();
-          return this;
-        }
-
-        private boolean caseSensitive_ ;
-        /**
-         * bool case_sensitive = 3;
-         * @return The caseSensitive.
-         */
-        @java.lang.Override
-        public boolean getCaseSensitive() {
-          return caseSensitive_;
-        }
-        /**
-         * bool case_sensitive = 3;
-         * @param value The caseSensitive to set.
-         * @return This builder for chaining.
-         */
-        public Builder setCaseSensitive(boolean value) {
-          
-          caseSensitive_ = value;
-          onChanged();
-          return this;
-        }
-        /**
-         * bool case_sensitive = 3;
-         * @return This builder for chaining.
-         */
-        public Builder clearCaseSensitive() {
-          
-          caseSensitive_ = false;
-          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.ChangeFulltext.FulltextOptions)
-      }
-
-      // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext.FulltextOptions)
-      private static final io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions DEFAULT_INSTANCE;
-      static {
-        DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions();
-      }
-
-      public static io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getDefaultInstance() {
-        return DEFAULT_INSTANCE;
-      }
-
-      private static final com.google.protobuf.Parser
-          PARSER = new com.google.protobuf.AbstractParser() {
-        @java.lang.Override
-        public FulltextOptions parsePartialFrom(
-            com.google.protobuf.CodedInputStream input,
-            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
-            throws com.google.protobuf.InvalidProtocolBufferException {
-          return new FulltextOptions(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.ChangeFulltext.FulltextOptions getDefaultInstanceForType() {
-        return DEFAULT_INSTANCE;
-      }
-
-    }
-
     public static final int COLUMN_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object columnName_;
     /**
@@ -21117,30 +20418,64 @@ public java.lang.String getColumnName() {
       }
     }
 
-    public static final int OPTIONS_FIELD_NUMBER = 2;
-    private io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions options_;
+    public static final int ENABLE_FIELD_NUMBER = 2;
+    private boolean enable_;
     /**
-     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-     * @return Whether the options field is set.
+     * bool enable = 2;
+     * @return The enable.
      */
     @java.lang.Override
-    public boolean hasOptions() {
-      return options_ != null;
+    public boolean getEnable() {
+      return enable_;
     }
+
+    public static final int ANALYZER_FIELD_NUMBER = 3;
+    private volatile java.lang.Object analyzer_;
     /**
-     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-     * @return The options.
+     * string analyzer = 3;
+     * @return The analyzer.
+     */
+    @java.lang.Override
+    public java.lang.String getAnalyzer() {
+      java.lang.Object ref = analyzer_;
+      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();
+        analyzer_ = s;
+        return s;
+      }
+    }
+    /**
+     * string analyzer = 3;
+     * @return The bytes for analyzer.
      */
     @java.lang.Override
-    public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getOptions() {
-      return options_ == null ? io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance() : options_;
+    public com.google.protobuf.ByteString
+        getAnalyzerBytes() {
+      java.lang.Object ref = analyzer_;
+      if (ref instanceof java.lang.String) {
+        com.google.protobuf.ByteString b = 
+            com.google.protobuf.ByteString.copyFromUtf8(
+                (java.lang.String) ref);
+        analyzer_ = b;
+        return b;
+      } else {
+        return (com.google.protobuf.ByteString) ref;
+      }
     }
+
+    public static final int CASE_SENSITIVE_FIELD_NUMBER = 4;
+    private boolean caseSensitive_;
     /**
-     * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+     * bool case_sensitive = 4;
+     * @return The caseSensitive.
      */
     @java.lang.Override
-    public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder getOptionsOrBuilder() {
-      return getOptions();
+    public boolean getCaseSensitive() {
+      return caseSensitive_;
     }
 
     private byte memoizedIsInitialized = -1;
@@ -21160,8 +20495,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_);
       }
-      if (options_ != null) {
-        output.writeMessage(2, getOptions());
+      if (enable_ != false) {
+        output.writeBool(2, enable_);
+      }
+      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) {
+        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, analyzer_);
+      }
+      if (caseSensitive_ != false) {
+        output.writeBool(4, caseSensitive_);
       }
       unknownFields.writeTo(output);
     }
@@ -21175,9 +20516,16 @@ public int getSerializedSize() {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
       }
-      if (options_ != null) {
+      if (enable_ != false) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeBoolSize(2, enable_);
+      }
+      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) {
+        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, analyzer_);
+      }
+      if (caseSensitive_ != false) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(2, getOptions());
+          .computeBoolSize(4, caseSensitive_);
       }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
@@ -21196,11 +20544,12 @@ public boolean equals(final java.lang.Object obj) {
 
       if (!getColumnName()
           .equals(other.getColumnName())) return false;
-      if (hasOptions() != other.hasOptions()) return false;
-      if (hasOptions()) {
-        if (!getOptions()
-            .equals(other.getOptions())) return false;
-      }
+      if (getEnable()
+          != other.getEnable()) return false;
+      if (!getAnalyzer()
+          .equals(other.getAnalyzer())) return false;
+      if (getCaseSensitive()
+          != other.getCaseSensitive()) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -21214,10 +20563,14 @@ public int hashCode() {
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
       hash = (53 * hash) + getColumnName().hashCode();
-      if (hasOptions()) {
-        hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
-        hash = (53 * hash) + getOptions().hashCode();
-      }
+      hash = (37 * hash) + ENABLE_FIELD_NUMBER;
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+          getEnable());
+      hash = (37 * hash) + ANALYZER_FIELD_NUMBER;
+      hash = (53 * hash) + getAnalyzer().hashCode();
+      hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER;
+      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+          getCaseSensitive());
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
       return hash;
@@ -21353,12 +20706,12 @@ public Builder clear() {
         super.clear();
         columnName_ = "";
 
-        if (optionsBuilder_ == null) {
-          options_ = null;
-        } else {
-          options_ = null;
-          optionsBuilder_ = null;
-        }
+        enable_ = false;
+
+        analyzer_ = "";
+
+        caseSensitive_ = false;
+
         return this;
       }
 
@@ -21386,11 +20739,9 @@ public io.greptime.v1.Ddl.ChangeFulltext build() {
       public io.greptime.v1.Ddl.ChangeFulltext buildPartial() {
         io.greptime.v1.Ddl.ChangeFulltext result = new io.greptime.v1.Ddl.ChangeFulltext(this);
         result.columnName_ = columnName_;
-        if (optionsBuilder_ == null) {
-          result.options_ = options_;
-        } else {
-          result.options_ = optionsBuilder_.build();
-        }
+        result.enable_ = enable_;
+        result.analyzer_ = analyzer_;
+        result.caseSensitive_ = caseSensitive_;
         onBuilt();
         return result;
       }
@@ -21443,8 +20794,15 @@ public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext other) {
           columnName_ = other.columnName_;
           onChanged();
         }
-        if (other.hasOptions()) {
-          mergeOptions(other.getOptions());
+        if (other.getEnable() != false) {
+          setEnable(other.getEnable());
+        }
+        if (!other.getAnalyzer().isEmpty()) {
+          analyzer_ = other.analyzer_;
+          onChanged();
+        }
+        if (other.getCaseSensitive() != false) {
+          setCaseSensitive(other.getCaseSensitive());
         }
         this.mergeUnknownFields(other.unknownFields);
         onChanged();
@@ -21551,123 +20909,142 @@ public Builder setColumnNameBytes(
         return this;
       }
 
-      private io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions options_;
-      private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder> optionsBuilder_;
+      private boolean enable_ ;
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-       * @return Whether the options field is set.
+       * bool enable = 2;
+       * @return The enable.
        */
-      public boolean hasOptions() {
-        return optionsBuilder_ != null || options_ != null;
+      @java.lang.Override
+      public boolean getEnable() {
+        return enable_;
       }
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
-       * @return The options.
+       * bool enable = 2;
+       * @param value The enable to set.
+       * @return This builder for chaining.
        */
-      public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions getOptions() {
-        if (optionsBuilder_ == null) {
-          return options_ == null ? io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance() : options_;
-        } else {
-          return optionsBuilder_.getMessage();
-        }
+      public Builder setEnable(boolean value) {
+        
+        enable_ = value;
+        onChanged();
+        return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * bool enable = 2;
+       * @return This builder for chaining.
        */
-      public Builder setOptions(io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions value) {
-        if (optionsBuilder_ == null) {
-          if (value == null) {
-            throw new NullPointerException();
-          }
-          options_ = value;
-          onChanged();
-        } else {
-          optionsBuilder_.setMessage(value);
-        }
-
+      public Builder clearEnable() {
+        
+        enable_ = false;
+        onChanged();
         return this;
       }
+
+      private java.lang.Object analyzer_ = "";
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * string analyzer = 3;
+       * @return The analyzer.
        */
-      public Builder setOptions(
-          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder builderForValue) {
-        if (optionsBuilder_ == null) {
-          options_ = builderForValue.build();
-          onChanged();
+      public java.lang.String getAnalyzer() {
+        java.lang.Object ref = analyzer_;
+        if (!(ref instanceof java.lang.String)) {
+          com.google.protobuf.ByteString bs =
+              (com.google.protobuf.ByteString) ref;
+          java.lang.String s = bs.toStringUtf8();
+          analyzer_ = s;
+          return s;
         } else {
-          optionsBuilder_.setMessage(builderForValue.build());
+          return (java.lang.String) ref;
         }
-
-        return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * string analyzer = 3;
+       * @return The bytes for analyzer.
        */
-      public Builder mergeOptions(io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions value) {
-        if (optionsBuilder_ == null) {
-          if (options_ != null) {
-            options_ =
-              io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.newBuilder(options_).mergeFrom(value).buildPartial();
-          } else {
-            options_ = value;
-          }
-          onChanged();
+      public com.google.protobuf.ByteString
+          getAnalyzerBytes() {
+        java.lang.Object ref = analyzer_;
+        if (ref instanceof String) {
+          com.google.protobuf.ByteString b = 
+              com.google.protobuf.ByteString.copyFromUtf8(
+                  (java.lang.String) ref);
+          analyzer_ = b;
+          return b;
         } else {
-          optionsBuilder_.mergeFrom(value);
+          return (com.google.protobuf.ByteString) ref;
         }
-
+      }
+      /**
+       * string analyzer = 3;
+       * @param value The analyzer to set.
+       * @return This builder for chaining.
+       */
+      public Builder setAnalyzer(
+          java.lang.String value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  
+        analyzer_ = value;
+        onChanged();
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * string analyzer = 3;
+       * @return This builder for chaining.
        */
-      public Builder clearOptions() {
-        if (optionsBuilder_ == null) {
-          options_ = null;
-          onChanged();
-        } else {
-          options_ = null;
-          optionsBuilder_ = null;
-        }
-
+      public Builder clearAnalyzer() {
+        
+        analyzer_ = getDefaultInstance().getAnalyzer();
+        onChanged();
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * string analyzer = 3;
+       * @param value The bytes for analyzer to set.
+       * @return This builder for chaining.
        */
-      public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder getOptionsBuilder() {
+      public Builder setAnalyzerBytes(
+          com.google.protobuf.ByteString value) {
+        if (value == null) {
+    throw new NullPointerException();
+  }
+  checkByteStringIsUtf8(value);
         
+        analyzer_ = value;
         onChanged();
-        return getOptionsFieldBuilder().getBuilder();
+        return this;
       }
+
+      private boolean caseSensitive_ ;
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * bool case_sensitive = 4;
+       * @return The caseSensitive.
        */
-      public io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder getOptionsOrBuilder() {
-        if (optionsBuilder_ != null) {
-          return optionsBuilder_.getMessageOrBuilder();
-        } else {
-          return options_ == null ?
-              io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.getDefaultInstance() : options_;
-        }
+      @java.lang.Override
+      public boolean getCaseSensitive() {
+        return caseSensitive_;
       }
       /**
-       * .greptime.v1.ChangeFulltext.FulltextOptions options = 2;
+       * bool case_sensitive = 4;
+       * @param value The caseSensitive to set.
+       * @return This builder for chaining.
        */
-      private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder> 
-          getOptionsFieldBuilder() {
-        if (optionsBuilder_ == null) {
-          optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptions.Builder, io.greptime.v1.Ddl.ChangeFulltext.FulltextOptionsOrBuilder>(
-                  getOptions(),
-                  getParentForChildren(),
-                  isClean());
-          options_ = null;
-        }
-        return optionsBuilder_;
+      public Builder setCaseSensitive(boolean value) {
+        
+        caseSensitive_ = value;
+        onChanged();
+        return this;
+      }
+      /**
+       * bool case_sensitive = 4;
+       * @return This builder for chaining.
+       */
+      public Builder clearCaseSensitive() {
+        
+        caseSensitive_ = false;
+        onChanged();
+        return this;
       }
       @java.lang.Override
       public final Builder setUnknownFields(
@@ -28028,11 +27405,6 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
   private static final 
     com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
       internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable;
-  private static final com.google.protobuf.Descriptors.Descriptor
-    internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor;
-  private static final 
-    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
-      internal_static_greptime_v1_ChangeFulltext_FulltextOptions_fieldAccessorTable;
   private static final com.google.protobuf.Descriptors.Descriptor
     internal_static_greptime_v1_RenameTable_descriptor;
   private static final 
@@ -28156,35 +27528,33 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
       "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013" +
       "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum" +
       "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr" +
-      "eptime.v1.ChangeColumnType\"\260\001\n\016ChangeFul" +
-      "ltext\022\023\n\013column_name\030\001 \001(\t\022<\n\007options\030\002 " +
-      "\001(\0132+.greptime.v1.ChangeFulltext.Fulltex" +
-      "tOptions\032K\n\017FulltextOptions\022\016\n\006enable\030\001 " +
-      "\001(\010\022\020\n\010analyzer\030\002 \001(\t\022\026\n\016case_sensitive\030" +
-      "\003 \001(\010\"%\n\013RenameTable\022\026\n\016new_table_name\030\001" +
-      " \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026." +
-      "greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132" +
-      "\036.greptime.v1.AddColumnLocation\"\236\001\n\020Chan" +
-      "geColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013tar" +
-      "get_type\030\002 \001(\0162\033.greptime.v1.ColumnDataT" +
-      "ype\022C\n\025target_type_extension\030\003 \001(\0132$.gre" +
-      "ptime.v1.ColumnDataTypeExtension\"\032\n\nDrop" +
-      "Column\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\tColumnDef\022" +
-      "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept" +
-      "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001" +
-      "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant" +
-      "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType" +
-      "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030" +
-      "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens" +
-      "ion\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Colum" +
-      "nOptions\"\230\001\n\021AddColumnLocation\022B\n\rlocati" +
-      "on_type\030\001 \001(\0162+.greptime.v1.AddColumnLoc" +
-      "ation.LocationType\022\031\n\021after_column_name\030" +
-      "\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTE" +
-      "R\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/G" +
-      "reptimeTeam/greptime-proto/go/greptime/v" +
-      "1b\006proto3"
+      "eptime.v1.ChangeColumnType\"_\n\016ChangeFull" +
+      "text\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(" +
+      "\010\022\020\n\010analyzer\030\003 \001(\t\022\026\n\016case_sensitive\030\004 " +
+      "\001(\010\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001" +
+      "(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.gr" +
+      "eptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036." +
+      "greptime.v1.AddColumnLocation\"\236\001\n\020Change" +
+      "ColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targe" +
+      "t_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTyp" +
+      "e\022C\n\025target_type_extension\030\003 \001(\0132$.grept" +
+      "ime.v1.ColumnDataTypeExtension\"\032\n\nDropCo" +
+      "lumn\022\014\n\004name\030\001 \001(\t\"\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\tColumnDef\022\014\n" +
+      "\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptim" +
+      "e.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010" +
+      "\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic" +
+      "_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017" +
+      "\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 " +
+      "\001(\0132$.greptime.v1.ColumnDataTypeExtensio" +
+      "n\022+\n\007options\030\010 \001(\0132\032.greptime.v1.ColumnO" +
+      "ptions\"\230\001\n\021AddColumnLocation\022B\n\rlocation" +
+      "_type\030\001 \001(\0162+.greptime.v1.AddColumnLocat" +
+      "ion.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/Gre" +
+      "ptimeTeam/greptime-proto/go/greptime/v1b" +
+      "\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
@@ -28298,13 +27668,7 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
     internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_greptime_v1_ChangeFulltext_descriptor,
-        new java.lang.String[] { "ColumnName", "Options", });
-    internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor =
-      internal_static_greptime_v1_ChangeFulltext_descriptor.getNestedTypes().get(0);
-    internal_static_greptime_v1_ChangeFulltext_FulltextOptions_fieldAccessorTable = new
-      com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
-        internal_static_greptime_v1_ChangeFulltext_FulltextOptions_descriptor,
-        new java.lang.String[] { "Enable", "Analyzer", "CaseSensitive", });
+        new java.lang.String[] { "ColumnName", "Enable", "Analyzer", "CaseSensitive", });
     internal_static_greptime_v1_RenameTable_descriptor =
       getDescriptor().getMessageTypes().get(15);
     internal_static_greptime_v1_RenameTable_fieldAccessorTable = new
diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto
index cdbca081..331b9bca 100644
--- a/proto/greptime/v1/ddl.proto
+++ b/proto/greptime/v1/ddl.proto
@@ -148,14 +148,10 @@ message DropColumns { repeated DropColumn drop_columns = 1; }
 message ChangeColumnTypes { repeated ChangeColumnType change_column_types = 1; }
 
 message ChangeFulltext {
-    message FulltextOptions {
-        bool enable = 1;
-        string analyzer = 2;
-        bool case_sensitive = 3;
-    }
-
     string column_name = 1;
-    FulltextOptions options = 2;
+    bool enable = 2;
+    string analyzer = 3;
+    bool case_sensitive = 4;
 }
 
 message RenameTable { string new_table_name = 1; }

From e883af3afc09fee00bc73de99e509c74cf56d1e4 Mon Sep 17 00:00:00 2001
From: irenjj 
Date: Wed, 9 Oct 2024 21:18:25 +0800
Subject: [PATCH 10/12] use enum

---
 c++/greptime/v1/ddl.pb.cc                  | 138 ++++----
 c++/greptime/v1/ddl.pb.h                   |  99 +++---
 go/greptime/v1/ddl.pb.go                   | 377 ++++++++++++---------
 java/src/main/java/io/greptime/v1/Ddl.java | 324 +++++++++++-------
 proto/greptime/v1/ddl.proto                |   7 +-
 5 files changed, 527 insertions(+), 418 deletions(-)

diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc
index 5b73afb8..397d8d36 100644
--- a/c++/greptime/v1/ddl.pb.cc
+++ b/c++/greptime/v1/ddl.pb.cc
@@ -292,7 +292,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
 PROTOBUF_CONSTEXPR ChangeFulltext::ChangeFulltext(
     ::_pbi::ConstantInitialized): _impl_{
     /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
-  , /*decltype(_impl_.analyzer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
+  , /*decltype(_impl_.analyzer_)*/0
   , /*decltype(_impl_.enable_)*/false
   , /*decltype(_impl_.case_sensitive_)*/false
   , /*decltype(_impl_._cached_size_)*/{}} {}
@@ -423,7 +423,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
 }  // namespace v1
 }  // namespace greptime
 static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[26];
-static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1];
+static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[2];
 static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr;
 
 const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
@@ -830,40 +830,41 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
   "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013"
   "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum"
   "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr"
-  "eptime.v1.ChangeColumnType\"_\n\016ChangeFull"
+  "eptime.v1.ChangeColumnType\"v\n\016ChangeFull"
   "text\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001("
-  "\010\022\020\n\010analyzer\030\003 \001(\t\022\026\n\016case_sensitive\030\004 "
-  "\001(\010\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001"
-  "(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.gr"
-  "eptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036."
-  "greptime.v1.AddColumnLocation\"\236\001\n\020Change"
-  "ColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targe"
-  "t_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTyp"
-  "e\022C\n\025target_type_extension\030\003 \001(\0132$.grept"
-  "ime.v1.ColumnDataTypeExtension\"\032\n\nDropCo"
-  "lumn\022\014\n\004name\030\001 \001(\t\"\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\tColumnDef\022\014\n"
-  "\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptim"
-  "e.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010"
-  "\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic"
-  "_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017"
-  "\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 "
-  "\001(\0132$.greptime.v1.ColumnDataTypeExtensio"
-  "n\022+\n\007options\030\010 \001(\0132\032.greptime.v1.ColumnO"
-  "ptions\"\230\001\n\021AddColumnLocation\022B\n\rlocation"
-  "_type\030\001 \001(\0162+.greptime.v1.AddColumnLocat"
-  "ion.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/Gre"
-  "ptimeTeam/greptime-proto/go/greptime/v1b"
-  "\006proto3"
+  "\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analyz"
+  "er\022\026\n\016case_sensitive\030\004 \001(\010\"%\n\013RenameTabl"
+  "e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*"
+  "\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD"
+  "ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo"
+  "lumnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013col"
+  "umn_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.gr"
+  "eptime.v1.ColumnDataType\022C\n\025target_type_"
+  "extension\030\003 \001(\0132$.greptime.v1.ColumnData"
+  "TypeExtension\"\032\n\nDropColumn\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\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tda"
+  "ta_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy"
+  "pe\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_const"
+  "raint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.gre"
+  "ptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@"
+  "\n\022datatype_extension\030\007 \001(\0132$.greptime.v1"
+  ".ColumnDataTypeExtension\022+\n\007options\030\010 \001("
+  "\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021AddCol"
+  "umnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gre"
+  "ptime.v1.AddColumnLocation.LocationType\022"
+  "\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTy"
+  "pe\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001*%\n\010Analyzer\022\013\n\007"
+  "ENGLISH\020\000\022\014\n\010CHINIESE\020\001BL\n\016io.greptime.v"
+  "1B\003DdlZ5github.com/GreptimeTeam/greptime"
+  "-proto/go/greptime/v1b\006proto3"
   ;
 static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
   &::descriptor_table_greptime_2fv1_2fcommon_2eproto,
 };
 static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
 const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
-    false, false, 4007, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
+    false, false, 4069, 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, 26,
     schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
@@ -899,6 +900,20 @@ constexpr AddColumnLocation_LocationType AddColumnLocation::LocationType_MIN;
 constexpr AddColumnLocation_LocationType AddColumnLocation::LocationType_MAX;
 constexpr int AddColumnLocation::LocationType_ARRAYSIZE;
 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Analyzer_descriptor() {
+  ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fddl_2eproto);
+  return file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1];
+}
+bool Analyzer_IsValid(int value) {
+  switch (value) {
+    case 0:
+    case 1:
+      return true;
+    default:
+      return false;
+  }
+}
+
 
 // ===================================================================
 
@@ -6773,17 +6788,9 @@ ChangeFulltext::ChangeFulltext(const ChangeFulltext& from)
     _this->_impl_.column_name_.Set(from._internal_column_name(), 
       _this->GetArenaForAllocation());
   }
-  _impl_.analyzer_.InitDefault();
-  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
-    _impl_.analyzer_.Set("", GetArenaForAllocation());
-  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
-  if (!from._internal_analyzer().empty()) {
-    _this->_impl_.analyzer_.Set(from._internal_analyzer(), 
-      _this->GetArenaForAllocation());
-  }
-  ::memcpy(&_impl_.enable_, &from._impl_.enable_,
+  ::memcpy(&_impl_.analyzer_, &from._impl_.analyzer_,
     static_cast(reinterpret_cast(&_impl_.case_sensitive_) -
-    reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_));
+    reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_));
   // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeFulltext)
 }
 
@@ -6793,7 +6800,7 @@ inline void ChangeFulltext::SharedCtor(
   (void)is_message_owned;
   new (&_impl_) Impl_{
       decltype(_impl_.column_name_){}
-    , decltype(_impl_.analyzer_){}
+    , decltype(_impl_.analyzer_){0}
     , decltype(_impl_.enable_){false}
     , decltype(_impl_.case_sensitive_){false}
     , /*decltype(_impl_._cached_size_)*/{}
@@ -6802,10 +6809,6 @@ inline void ChangeFulltext::SharedCtor(
   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
     _impl_.column_name_.Set("", GetArenaForAllocation());
   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
-  _impl_.analyzer_.InitDefault();
-  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
-    _impl_.analyzer_.Set("", GetArenaForAllocation());
-  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
 }
 
 ChangeFulltext::~ChangeFulltext() {
@@ -6820,7 +6823,6 @@ ChangeFulltext::~ChangeFulltext() {
 inline void ChangeFulltext::SharedDtor() {
   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
   _impl_.column_name_.Destroy();
-  _impl_.analyzer_.Destroy();
 }
 
 void ChangeFulltext::SetCachedSize(int size) const {
@@ -6834,10 +6836,9 @@ void ChangeFulltext::Clear() {
   (void) cached_has_bits;
 
   _impl_.column_name_.ClearToEmpty();
-  _impl_.analyzer_.ClearToEmpty();
-  ::memset(&_impl_.enable_, 0, static_cast(
+  ::memset(&_impl_.analyzer_, 0, static_cast(
       reinterpret_cast(&_impl_.case_sensitive_) -
-      reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_));
+      reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_));
   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
 }
 
@@ -6865,13 +6866,12 @@ const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext
         } else
           goto handle_unusual;
         continue;
-      // string analyzer = 3;
+      // .greptime.v1.Analyzer analyzer = 3;
       case 3:
-        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) {
-          auto str = _internal_mutable_analyzer();
-          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
+        if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) {
+          uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
           CHK_(ptr);
-          CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeFulltext.analyzer"));
+          _internal_set_analyzer(static_cast<::greptime::v1::Analyzer>(val));
         } else
           goto handle_unusual;
         continue;
@@ -6928,14 +6928,11 @@ uint8_t* ChangeFulltext::_InternalSerialize(
     target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_enable(), target);
   }
 
-  // string analyzer = 3;
-  if (!this->_internal_analyzer().empty()) {
-    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
-      this->_internal_analyzer().data(), static_cast(this->_internal_analyzer().length()),
-      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
-      "greptime.v1.ChangeFulltext.analyzer");
-    target = stream->WriteStringMaybeAliased(
-        3, this->_internal_analyzer(), target);
+  // .greptime.v1.Analyzer analyzer = 3;
+  if (this->_internal_analyzer() != 0) {
+    target = stream->EnsureSpace(target);
+    target = ::_pbi::WireFormatLite::WriteEnumToArray(
+      3, this->_internal_analyzer(), target);
   }
 
   // bool case_sensitive = 4;
@@ -6967,11 +6964,10 @@ size_t ChangeFulltext::ByteSizeLong() const {
         this->_internal_column_name());
   }
 
-  // string analyzer = 3;
-  if (!this->_internal_analyzer().empty()) {
+  // .greptime.v1.Analyzer analyzer = 3;
+  if (this->_internal_analyzer() != 0) {
     total_size += 1 +
-      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
-        this->_internal_analyzer());
+      ::_pbi::WireFormatLite::EnumSize(this->_internal_analyzer());
   }
 
   // bool enable = 2;
@@ -7005,7 +7001,7 @@ void ChangeFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
   if (!from._internal_column_name().empty()) {
     _this->_internal_set_column_name(from._internal_column_name());
   }
-  if (!from._internal_analyzer().empty()) {
+  if (from._internal_analyzer() != 0) {
     _this->_internal_set_analyzer(from._internal_analyzer());
   }
   if (from._internal_enable() != 0) {
@@ -7037,16 +7033,12 @@ void ChangeFulltext::InternalSwap(ChangeFulltext* other) {
       &_impl_.column_name_, lhs_arena,
       &other->_impl_.column_name_, rhs_arena
   );
-  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
-      &_impl_.analyzer_, lhs_arena,
-      &other->_impl_.analyzer_, rhs_arena
-  );
   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
       PROTOBUF_FIELD_OFFSET(ChangeFulltext, _impl_.case_sensitive_)
       + sizeof(ChangeFulltext::_impl_.case_sensitive_)
-      - PROTOBUF_FIELD_OFFSET(ChangeFulltext, _impl_.enable_)>(
-          reinterpret_cast(&_impl_.enable_),
-          reinterpret_cast(&other->_impl_.enable_));
+      - PROTOBUF_FIELD_OFFSET(ChangeFulltext, _impl_.analyzer_)>(
+          reinterpret_cast(&_impl_.analyzer_),
+          reinterpret_cast(&other->_impl_.analyzer_));
 }
 
 ::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext::GetMetadata() const {
diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h
index 9233fd27..49ba693e 100644
--- a/c++/greptime/v1/ddl.pb.h
+++ b/c++/greptime/v1/ddl.pb.h
@@ -187,6 +187,31 @@ inline bool AddColumnLocation_LocationType_Parse(
   return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum(
     AddColumnLocation_LocationType_descriptor(), name, value);
 }
+enum Analyzer : int {
+  ENGLISH = 0,
+  CHINIESE = 1,
+  Analyzer_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(),
+  Analyzer_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max()
+};
+bool Analyzer_IsValid(int value);
+constexpr Analyzer Analyzer_MIN = ENGLISH;
+constexpr Analyzer Analyzer_MAX = CHINIESE;
+constexpr int Analyzer_ARRAYSIZE = Analyzer_MAX + 1;
+
+const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Analyzer_descriptor();
+template
+inline const std::string& Analyzer_Name(T enum_t_value) {
+  static_assert(::std::is_same::value ||
+    ::std::is_integral::value,
+    "Incorrect type passed to function Analyzer_Name.");
+  return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
+    Analyzer_descriptor(), enum_t_value);
+}
+inline bool Analyzer_Parse(
+    ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Analyzer* value) {
+  return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum(
+    Analyzer_descriptor(), name, value);
+}
 // ===================================================================
 
 class DdlRequest final :
@@ -3723,18 +3748,13 @@ class ChangeFulltext final :
   std::string* _internal_mutable_column_name();
   public:
 
-  // string analyzer = 3;
+  // .greptime.v1.Analyzer analyzer = 3;
   void clear_analyzer();
-  const std::string& analyzer() const;
-  template 
-  void set_analyzer(ArgT0&& arg0, ArgT... args);
-  std::string* mutable_analyzer();
-  PROTOBUF_NODISCARD std::string* release_analyzer();
-  void set_allocated_analyzer(std::string* analyzer);
+  ::greptime::v1::Analyzer analyzer() const;
+  void set_analyzer(::greptime::v1::Analyzer value);
   private:
-  const std::string& _internal_analyzer() const;
-  inline PROTOBUF_ALWAYS_INLINE void _internal_set_analyzer(const std::string& value);
-  std::string* _internal_mutable_analyzer();
+  ::greptime::v1::Analyzer _internal_analyzer() const;
+  void _internal_set_analyzer(::greptime::v1::Analyzer value);
   public:
 
   // bool enable = 2;
@@ -3764,7 +3784,7 @@ class ChangeFulltext final :
   typedef void DestructorSkippable_;
   struct Impl_ {
     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_;
-    ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr analyzer_;
+    int analyzer_;
     bool enable_;
     bool case_sensitive_;
     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -9400,54 +9420,24 @@ inline void ChangeFulltext::set_enable(bool value) {
   // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.enable)
 }
 
-// string analyzer = 3;
+// .greptime.v1.Analyzer analyzer = 3;
 inline void ChangeFulltext::clear_analyzer() {
-  _impl_.analyzer_.ClearToEmpty();
+  _impl_.analyzer_ = 0;
 }
-inline const std::string& ChangeFulltext::analyzer() const {
+inline ::greptime::v1::Analyzer ChangeFulltext::_internal_analyzer() const {
+  return static_cast< ::greptime::v1::Analyzer >(_impl_.analyzer_);
+}
+inline ::greptime::v1::Analyzer ChangeFulltext::analyzer() const {
   // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.analyzer)
   return _internal_analyzer();
 }
-template 
-inline PROTOBUF_ALWAYS_INLINE
-void ChangeFulltext::set_analyzer(ArgT0&& arg0, ArgT... args) {
- 
- _impl_.analyzer_.Set(static_cast(arg0), args..., GetArenaForAllocation());
-  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.analyzer)
-}
-inline std::string* ChangeFulltext::mutable_analyzer() {
-  std::string* _s = _internal_mutable_analyzer();
-  // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeFulltext.analyzer)
-  return _s;
-}
-inline const std::string& ChangeFulltext::_internal_analyzer() const {
-  return _impl_.analyzer_.Get();
-}
-inline void ChangeFulltext::_internal_set_analyzer(const std::string& value) {
-  
-  _impl_.analyzer_.Set(value, GetArenaForAllocation());
-}
-inline std::string* ChangeFulltext::_internal_mutable_analyzer() {
+inline void ChangeFulltext::_internal_set_analyzer(::greptime::v1::Analyzer value) {
   
-  return _impl_.analyzer_.Mutable(GetArenaForAllocation());
+  _impl_.analyzer_ = value;
 }
-inline std::string* ChangeFulltext::release_analyzer() {
-  // @@protoc_insertion_point(field_release:greptime.v1.ChangeFulltext.analyzer)
-  return _impl_.analyzer_.Release();
-}
-inline void ChangeFulltext::set_allocated_analyzer(std::string* analyzer) {
-  if (analyzer != nullptr) {
-    
-  } else {
-    
-  }
-  _impl_.analyzer_.SetAllocated(analyzer, GetArenaForAllocation());
-#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
-  if (_impl_.analyzer_.IsDefault()) {
-    _impl_.analyzer_.Set("", GetArenaForAllocation());
-  }
-#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
-  // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.analyzer)
+inline void ChangeFulltext::set_analyzer(::greptime::v1::Analyzer value) {
+  _internal_set_analyzer(value);
+  // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.analyzer)
 }
 
 // bool case_sensitive = 4;
@@ -10493,6 +10483,11 @@ template <>
 inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::AddColumnLocation_LocationType>() {
   return ::greptime::v1::AddColumnLocation_LocationType_descriptor();
 }
+template <> struct is_proto_enum< ::greptime::v1::Analyzer> : ::std::true_type {};
+template <>
+inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::Analyzer>() {
+  return ::greptime::v1::Analyzer_descriptor();
+}
 
 PROTOBUF_NAMESPACE_CLOSE
 
diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go
index a24c6041..98724c64 100644
--- a/go/greptime/v1/ddl.pb.go
+++ b/go/greptime/v1/ddl.pb.go
@@ -34,6 +34,52 @@ const (
 	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
 )
 
+type Analyzer int32
+
+const (
+	Analyzer_ENGLISH  Analyzer = 0
+	Analyzer_CHINIESE Analyzer = 1
+)
+
+// Enum value maps for Analyzer.
+var (
+	Analyzer_name = map[int32]string{
+		0: "ENGLISH",
+		1: "CHINIESE",
+	}
+	Analyzer_value = map[string]int32{
+		"ENGLISH":  0,
+		"CHINIESE": 1,
+	}
+)
+
+func (x Analyzer) Enum() *Analyzer {
+	p := new(Analyzer)
+	*p = x
+	return p
+}
+
+func (x Analyzer) String() string {
+	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
+}
+
+func (Analyzer) Descriptor() protoreflect.EnumDescriptor {
+	return file_greptime_v1_ddl_proto_enumTypes[0].Descriptor()
+}
+
+func (Analyzer) Type() protoreflect.EnumType {
+	return &file_greptime_v1_ddl_proto_enumTypes[0]
+}
+
+func (x Analyzer) Number() protoreflect.EnumNumber {
+	return protoreflect.EnumNumber(x)
+}
+
+// Deprecated: Use Analyzer.Descriptor instead.
+func (Analyzer) EnumDescriptor() ([]byte, []int) {
+	return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{0}
+}
+
 type AddColumnLocation_LocationType int32
 
 const (
@@ -64,11 +110,11 @@ func (x AddColumnLocation_LocationType) String() string {
 }
 
 func (AddColumnLocation_LocationType) Descriptor() protoreflect.EnumDescriptor {
-	return file_greptime_v1_ddl_proto_enumTypes[0].Descriptor()
+	return file_greptime_v1_ddl_proto_enumTypes[1].Descriptor()
 }
 
 func (AddColumnLocation_LocationType) Type() protoreflect.EnumType {
-	return &file_greptime_v1_ddl_proto_enumTypes[0]
+	return &file_greptime_v1_ddl_proto_enumTypes[1]
 }
 
 func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber {
@@ -1360,10 +1406,10 @@ type ChangeFulltext struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	ColumnName    string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
-	Enable        bool   `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
-	Analyzer      string `protobuf:"bytes,3,opt,name=analyzer,proto3" json:"analyzer,omitempty"`
-	CaseSensitive bool   `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
+	ColumnName    string   `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
+	Enable        bool     `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
+	Analyzer      Analyzer `protobuf:"varint,3,opt,name=analyzer,proto3,enum=greptime.v1.Analyzer" json:"analyzer,omitempty"`
+	CaseSensitive bool     `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
 }
 
 func (x *ChangeFulltext) Reset() {
@@ -1412,11 +1458,11 @@ func (x *ChangeFulltext) GetEnable() bool {
 	return false
 }
 
-func (x *ChangeFulltext) GetAnalyzer() string {
+func (x *ChangeFulltext) GetAnalyzer() Analyzer {
 	if x != nil {
 		return x.Analyzer
 	}
-	return ""
+	return Analyzer_ENGLISH
 }
 
 func (x *ChangeFulltext) GetCaseSensitive() bool {
@@ -2142,88 +2188,91 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
 	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, 0x8c, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e,
+	0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0xa3, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e,
 	0x67, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x16, 0x0a, 0x06, 0x65,
 	0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61,
-	0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18,
-	0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12,
-	0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,
-	0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e,
-	0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 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,
+	0x62, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18,
+	0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
+	0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x61, 0x6e,
+	0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73,
+	0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d,
+	0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 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, 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,
+	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, 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,
+	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, 0x2a, 0x25, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b,
+	0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43,
+	0x48, 0x49, 0x4e, 0x49, 0x45, 0x53, 0x45, 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 (
@@ -2238,88 +2287,90 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte {
 	return file_greptime_v1_ddl_proto_rawDescData
 }
 
-var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
+var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
 var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 26)
 var file_greptime_v1_ddl_proto_goTypes = []interface{}{
-	(AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType
-	(*DdlRequest)(nil),                  // 1: greptime.v1.DdlRequest
-	(*CreateFlowExpr)(nil),              // 2: greptime.v1.CreateFlowExpr
-	(*DropFlowExpr)(nil),                // 3: greptime.v1.DropFlowExpr
-	(*CreateViewExpr)(nil),              // 4: greptime.v1.CreateViewExpr
-	(*DropViewExpr)(nil),                // 5: greptime.v1.DropViewExpr
-	(*CreateTableExpr)(nil),             // 6: greptime.v1.CreateTableExpr
-	(*AlterExpr)(nil),                   // 7: greptime.v1.AlterExpr
-	(*DropTableExpr)(nil),               // 8: greptime.v1.DropTableExpr
-	(*CreateDatabaseExpr)(nil),          // 9: greptime.v1.CreateDatabaseExpr
-	(*TruncateTableExpr)(nil),           // 10: greptime.v1.TruncateTableExpr
-	(*DropDatabaseExpr)(nil),            // 11: greptime.v1.DropDatabaseExpr
-	(*AddColumns)(nil),                  // 12: greptime.v1.AddColumns
-	(*DropColumns)(nil),                 // 13: greptime.v1.DropColumns
-	(*ChangeColumnTypes)(nil),           // 14: greptime.v1.ChangeColumnTypes
-	(*ChangeFulltext)(nil),              // 15: greptime.v1.ChangeFulltext
-	(*RenameTable)(nil),                 // 16: greptime.v1.RenameTable
-	(*AddColumn)(nil),                   // 17: greptime.v1.AddColumn
-	(*ChangeColumnType)(nil),            // 18: greptime.v1.ChangeColumnType
-	(*DropColumn)(nil),                  // 19: greptime.v1.DropColumn
-	(*TableId)(nil),                     // 20: greptime.v1.TableId
-	(*FlowId)(nil),                      // 21: greptime.v1.FlowId
-	(*ColumnDef)(nil),                   // 22: greptime.v1.ColumnDef
-	(*AddColumnLocation)(nil),           // 23: greptime.v1.AddColumnLocation
-	nil,                                 // 24: greptime.v1.CreateFlowExpr.FlowOptionsEntry
-	nil,                                 // 25: greptime.v1.CreateTableExpr.TableOptionsEntry
-	nil,                                 // 26: greptime.v1.CreateDatabaseExpr.OptionsEntry
-	(*TableName)(nil),                   // 27: greptime.v1.TableName
-	(*ExpireAfter)(nil),                 // 28: greptime.v1.ExpireAfter
-	(ColumnDataType)(0),                 // 29: greptime.v1.ColumnDataType
-	(*ColumnDataTypeExtension)(nil),     // 30: greptime.v1.ColumnDataTypeExtension
-	(SemanticType)(0),                   // 31: greptime.v1.SemanticType
-	(*ColumnOptions)(nil),               // 32: greptime.v1.ColumnOptions
+	(Analyzer)(0),                       // 0: greptime.v1.Analyzer
+	(AddColumnLocation_LocationType)(0), // 1: greptime.v1.AddColumnLocation.LocationType
+	(*DdlRequest)(nil),                  // 2: greptime.v1.DdlRequest
+	(*CreateFlowExpr)(nil),              // 3: greptime.v1.CreateFlowExpr
+	(*DropFlowExpr)(nil),                // 4: greptime.v1.DropFlowExpr
+	(*CreateViewExpr)(nil),              // 5: greptime.v1.CreateViewExpr
+	(*DropViewExpr)(nil),                // 6: greptime.v1.DropViewExpr
+	(*CreateTableExpr)(nil),             // 7: greptime.v1.CreateTableExpr
+	(*AlterExpr)(nil),                   // 8: greptime.v1.AlterExpr
+	(*DropTableExpr)(nil),               // 9: greptime.v1.DropTableExpr
+	(*CreateDatabaseExpr)(nil),          // 10: greptime.v1.CreateDatabaseExpr
+	(*TruncateTableExpr)(nil),           // 11: greptime.v1.TruncateTableExpr
+	(*DropDatabaseExpr)(nil),            // 12: greptime.v1.DropDatabaseExpr
+	(*AddColumns)(nil),                  // 13: greptime.v1.AddColumns
+	(*DropColumns)(nil),                 // 14: greptime.v1.DropColumns
+	(*ChangeColumnTypes)(nil),           // 15: greptime.v1.ChangeColumnTypes
+	(*ChangeFulltext)(nil),              // 16: greptime.v1.ChangeFulltext
+	(*RenameTable)(nil),                 // 17: greptime.v1.RenameTable
+	(*AddColumn)(nil),                   // 18: greptime.v1.AddColumn
+	(*ChangeColumnType)(nil),            // 19: greptime.v1.ChangeColumnType
+	(*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
-	6,  // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr
-	7,  // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr
-	8,  // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
-	10, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr
-	2,  // 5: greptime.v1.DdlRequest.create_flow:type_name -> greptime.v1.CreateFlowExpr
-	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
-	27, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName
-	27, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName
-	28, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter
-	24, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry
-	21, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId
-	27, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName
-	20, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId
-	22, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
-	25, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
-	20, // 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
-	16, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
-	14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes
-	15, // 23: greptime.v1.AlterExpr.change_fulltext:type_name -> greptime.v1.ChangeFulltext
-	20, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
-	26, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
-	20, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
-	17, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
-	19, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
-	18, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType
-	22, // 30: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
-	23, // 31: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
-	29, // 32: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType
-	30, // 33: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
-	29, // 34: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
-	31, // 35: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
-	30, // 36: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
-	32, // 37: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions
-	0,  // 38: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
-	39, // [39:39] is the sub-list for method output_type
-	39, // [39:39] is the sub-list for method input_type
-	39, // [39:39] is the sub-list for extension type_name
-	39, // [39:39] is the sub-list for extension extendee
-	0,  // [0:39] is the sub-list for field type_name
+	10, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
+	7,  // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr
+	8,  // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr
+	9,  // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
+	11, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr
+	3,  // 5: greptime.v1.DdlRequest.create_flow:type_name -> greptime.v1.CreateFlowExpr
+	4,  // 6: greptime.v1.DdlRequest.drop_flow:type_name -> greptime.v1.DropFlowExpr
+	5,  // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr
+	6,  // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr
+	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
+	13, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
+	14, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
+	17, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
+	15, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes
+	16, // 23: greptime.v1.AlterExpr.change_fulltext:type_name -> greptime.v1.ChangeFulltext
+	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
+	18, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
+	20, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
+	19, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType
+	0,  // 30: greptime.v1.ChangeFulltext.analyzer:type_name -> greptime.v1.Analyzer
+	23, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
+	24, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
+	30, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType
+	31, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
+	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
+	1,  // 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() }
@@ -2629,7 +2680,7 @@ func file_greptime_v1_ddl_proto_init() {
 		File: protoimpl.DescBuilder{
 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
 			RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
-			NumEnums:      1,
+			NumEnums:      2,
 			NumMessages:   26,
 			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 1b719496..65555c5b 100644
--- a/java/src/main/java/io/greptime/v1/Ddl.java
+++ b/java/src/main/java/io/greptime/v1/Ddl.java
@@ -14,6 +14,114 @@ public static void registerAllExtensions(
     registerAllExtensions(
         (com.google.protobuf.ExtensionRegistryLite) registry);
   }
+  /**
+   * Protobuf enum {@code greptime.v1.Analyzer}
+   */
+  public enum Analyzer
+      implements com.google.protobuf.ProtocolMessageEnum {
+    /**
+     * ENGLISH = 0;
+     */
+    ENGLISH(0),
+    /**
+     * CHINIESE = 1;
+     */
+    CHINIESE(1),
+    UNRECOGNIZED(-1),
+    ;
+
+    /**
+     * ENGLISH = 0;
+     */
+    public static final int ENGLISH_VALUE = 0;
+    /**
+     * CHINIESE = 1;
+     */
+    public static final int CHINIESE_VALUE = 1;
+
+
+    public final int getNumber() {
+      if (this == UNRECOGNIZED) {
+        throw new java.lang.IllegalArgumentException(
+            "Can't get the number of an unknown enum value.");
+      }
+      return value;
+    }
+
+    /**
+     * @param value The numeric wire value of the corresponding enum entry.
+     * @return The enum associated with the given numeric wire value.
+     * @deprecated Use {@link #forNumber(int)} instead.
+     */
+    @java.lang.Deprecated
+    public static Analyzer valueOf(int value) {
+      return forNumber(value);
+    }
+
+    /**
+     * @param value The numeric wire value of the corresponding enum entry.
+     * @return The enum associated with the given numeric wire value.
+     */
+    public static Analyzer forNumber(int value) {
+      switch (value) {
+        case 0: return ENGLISH;
+        case 1: return CHINIESE;
+        default: return null;
+      }
+    }
+
+    public static com.google.protobuf.Internal.EnumLiteMap
+        internalGetValueMap() {
+      return internalValueMap;
+    }
+    private static final com.google.protobuf.Internal.EnumLiteMap<
+        Analyzer> internalValueMap =
+          new com.google.protobuf.Internal.EnumLiteMap() {
+            public Analyzer findValueByNumber(int number) {
+              return Analyzer.forNumber(number);
+            }
+          };
+
+    public final com.google.protobuf.Descriptors.EnumValueDescriptor
+        getValueDescriptor() {
+      if (this == UNRECOGNIZED) {
+        throw new java.lang.IllegalStateException(
+            "Can't get the descriptor of an unrecognized enum value.");
+      }
+      return getDescriptor().getValues().get(ordinal());
+    }
+    public final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptorForType() {
+      return getDescriptor();
+    }
+    public static final com.google.protobuf.Descriptors.EnumDescriptor
+        getDescriptor() {
+      return io.greptime.v1.Ddl.getDescriptor().getEnumTypes().get(0);
+    }
+
+    private static final Analyzer[] VALUES = values();
+
+    public static Analyzer valueOf(
+        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+      if (desc.getType() != getDescriptor()) {
+        throw new java.lang.IllegalArgumentException(
+          "EnumValueDescriptor is not for this type.");
+      }
+      if (desc.getIndex() == -1) {
+        return UNRECOGNIZED;
+      }
+      return VALUES[desc.getIndex()];
+    }
+
+    private final int value;
+
+    private Analyzer(int value) {
+      this.value = value;
+    }
+
+    // @@protoc_insertion_point(enum_scope:greptime.v1.Analyzer)
+  }
+
   public interface DdlRequestOrBuilder extends
       // @@protoc_insertion_point(interface_extends:greptime.v1.DdlRequest)
       com.google.protobuf.MessageOrBuilder {
@@ -20260,16 +20368,15 @@ public interface ChangeFulltextOrBuilder extends
     boolean getEnable();
 
     /**
-     * string analyzer = 3;
-     * @return The analyzer.
+     * .greptime.v1.Analyzer analyzer = 3;
+     * @return The enum numeric value on the wire for analyzer.
      */
-    java.lang.String getAnalyzer();
+    int getAnalyzerValue();
     /**
-     * string analyzer = 3;
-     * @return The bytes for analyzer.
+     * .greptime.v1.Analyzer analyzer = 3;
+     * @return The analyzer.
      */
-    com.google.protobuf.ByteString
-        getAnalyzerBytes();
+    io.greptime.v1.Ddl.Analyzer getAnalyzer();
 
     /**
      * bool case_sensitive = 4;
@@ -20291,7 +20398,7 @@ private ChangeFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder
     }
     private ChangeFulltext() {
       columnName_ = "";
-      analyzer_ = "";
+      analyzer_ = 0;
     }
 
     @java.lang.Override
@@ -20335,10 +20442,10 @@ private ChangeFulltext(
               enable_ = input.readBool();
               break;
             }
-            case 26: {
-              java.lang.String s = input.readStringRequireUtf8();
+            case 24: {
+              int rawValue = input.readEnum();
 
-              analyzer_ = s;
+              analyzer_ = rawValue;
               break;
             }
             case 32: {
@@ -20430,41 +20537,22 @@ public boolean getEnable() {
     }
 
     public static final int ANALYZER_FIELD_NUMBER = 3;
-    private volatile java.lang.Object analyzer_;
+    private int analyzer_;
     /**
-     * string analyzer = 3;
-     * @return The analyzer.
+     * .greptime.v1.Analyzer analyzer = 3;
+     * @return The enum numeric value on the wire for analyzer.
      */
-    @java.lang.Override
-    public java.lang.String getAnalyzer() {
-      java.lang.Object ref = analyzer_;
-      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();
-        analyzer_ = s;
-        return s;
-      }
+    @java.lang.Override public int getAnalyzerValue() {
+      return analyzer_;
     }
     /**
-     * string analyzer = 3;
-     * @return The bytes for analyzer.
+     * .greptime.v1.Analyzer analyzer = 3;
+     * @return The analyzer.
      */
-    @java.lang.Override
-    public com.google.protobuf.ByteString
-        getAnalyzerBytes() {
-      java.lang.Object ref = analyzer_;
-      if (ref instanceof java.lang.String) {
-        com.google.protobuf.ByteString b = 
-            com.google.protobuf.ByteString.copyFromUtf8(
-                (java.lang.String) ref);
-        analyzer_ = b;
-        return b;
-      } else {
-        return (com.google.protobuf.ByteString) ref;
-      }
+    @java.lang.Override public io.greptime.v1.Ddl.Analyzer getAnalyzer() {
+      @SuppressWarnings("deprecation")
+      io.greptime.v1.Ddl.Analyzer result = io.greptime.v1.Ddl.Analyzer.valueOf(analyzer_);
+      return result == null ? io.greptime.v1.Ddl.Analyzer.UNRECOGNIZED : result;
     }
 
     public static final int CASE_SENSITIVE_FIELD_NUMBER = 4;
@@ -20498,8 +20586,8 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (enable_ != false) {
         output.writeBool(2, enable_);
       }
-      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) {
-        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, analyzer_);
+      if (analyzer_ != io.greptime.v1.Ddl.Analyzer.ENGLISH.getNumber()) {
+        output.writeEnum(3, analyzer_);
       }
       if (caseSensitive_ != false) {
         output.writeBool(4, caseSensitive_);
@@ -20520,8 +20608,9 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeBoolSize(2, enable_);
       }
-      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) {
-        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, analyzer_);
+      if (analyzer_ != io.greptime.v1.Ddl.Analyzer.ENGLISH.getNumber()) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeEnumSize(3, analyzer_);
       }
       if (caseSensitive_ != false) {
         size += com.google.protobuf.CodedOutputStream
@@ -20546,8 +20635,7 @@ public boolean equals(final java.lang.Object obj) {
           .equals(other.getColumnName())) return false;
       if (getEnable()
           != other.getEnable()) return false;
-      if (!getAnalyzer()
-          .equals(other.getAnalyzer())) return false;
+      if (analyzer_ != other.analyzer_) return false;
       if (getCaseSensitive()
           != other.getCaseSensitive()) return false;
       if (!unknownFields.equals(other.unknownFields)) return false;
@@ -20567,7 +20655,7 @@ public int hashCode() {
       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
           getEnable());
       hash = (37 * hash) + ANALYZER_FIELD_NUMBER;
-      hash = (53 * hash) + getAnalyzer().hashCode();
+      hash = (53 * hash) + analyzer_;
       hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER;
       hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
           getCaseSensitive());
@@ -20708,7 +20796,7 @@ public Builder clear() {
 
         enable_ = false;
 
-        analyzer_ = "";
+        analyzer_ = 0;
 
         caseSensitive_ = false;
 
@@ -20797,9 +20885,8 @@ public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext other) {
         if (other.getEnable() != false) {
           setEnable(other.getEnable());
         }
-        if (!other.getAnalyzer().isEmpty()) {
-          analyzer_ = other.analyzer_;
-          onChanged();
+        if (other.analyzer_ != 0) {
+          setAnalyzerValue(other.getAnalyzerValue());
         }
         if (other.getCaseSensitive() != false) {
           setCaseSensitive(other.getCaseSensitive());
@@ -20940,78 +21027,56 @@ public Builder clearEnable() {
         return this;
       }
 
-      private java.lang.Object analyzer_ = "";
+      private int analyzer_ = 0;
       /**
-       * string analyzer = 3;
-       * @return The analyzer.
+       * .greptime.v1.Analyzer analyzer = 3;
+       * @return The enum numeric value on the wire for analyzer.
        */
-      public java.lang.String getAnalyzer() {
-        java.lang.Object ref = analyzer_;
-        if (!(ref instanceof java.lang.String)) {
-          com.google.protobuf.ByteString bs =
-              (com.google.protobuf.ByteString) ref;
-          java.lang.String s = bs.toStringUtf8();
-          analyzer_ = s;
-          return s;
-        } else {
-          return (java.lang.String) ref;
-        }
+      @java.lang.Override public int getAnalyzerValue() {
+        return analyzer_;
       }
       /**
-       * string analyzer = 3;
-       * @return The bytes for analyzer.
-       */
-      public com.google.protobuf.ByteString
-          getAnalyzerBytes() {
-        java.lang.Object ref = analyzer_;
-        if (ref instanceof String) {
-          com.google.protobuf.ByteString b = 
-              com.google.protobuf.ByteString.copyFromUtf8(
-                  (java.lang.String) ref);
-          analyzer_ = b;
-          return b;
-        } else {
-          return (com.google.protobuf.ByteString) ref;
-        }
-      }
-      /**
-       * string analyzer = 3;
-       * @param value The analyzer to set.
+       * .greptime.v1.Analyzer analyzer = 3;
+       * @param value The enum numeric value on the wire for analyzer to set.
        * @return This builder for chaining.
        */
-      public Builder setAnalyzer(
-          java.lang.String value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  
+      public Builder setAnalyzerValue(int value) {
+        
         analyzer_ = value;
         onChanged();
         return this;
       }
       /**
-       * string analyzer = 3;
+       * .greptime.v1.Analyzer analyzer = 3;
+       * @return The analyzer.
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.Analyzer getAnalyzer() {
+        @SuppressWarnings("deprecation")
+        io.greptime.v1.Ddl.Analyzer result = io.greptime.v1.Ddl.Analyzer.valueOf(analyzer_);
+        return result == null ? io.greptime.v1.Ddl.Analyzer.UNRECOGNIZED : result;
+      }
+      /**
+       * .greptime.v1.Analyzer analyzer = 3;
+       * @param value The analyzer to set.
        * @return This builder for chaining.
        */
-      public Builder clearAnalyzer() {
+      public Builder setAnalyzer(io.greptime.v1.Ddl.Analyzer value) {
+        if (value == null) {
+          throw new NullPointerException();
+        }
         
-        analyzer_ = getDefaultInstance().getAnalyzer();
+        analyzer_ = value.getNumber();
         onChanged();
         return this;
       }
       /**
-       * string analyzer = 3;
-       * @param value The bytes for analyzer to set.
+       * .greptime.v1.Analyzer analyzer = 3;
        * @return This builder for chaining.
        */
-      public Builder setAnalyzerBytes(
-          com.google.protobuf.ByteString value) {
-        if (value == null) {
-    throw new NullPointerException();
-  }
-  checkByteStringIsUtf8(value);
+      public Builder clearAnalyzer() {
         
-        analyzer_ = value;
+        analyzer_ = 0;
         onChanged();
         return this;
       }
@@ -27528,33 +27593,34 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
       "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013" +
       "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum" +
       "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr" +
-      "eptime.v1.ChangeColumnType\"_\n\016ChangeFull" +
+      "eptime.v1.ChangeColumnType\"v\n\016ChangeFull" +
       "text\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(" +
-      "\010\022\020\n\010analyzer\030\003 \001(\t\022\026\n\016case_sensitive\030\004 " +
-      "\001(\010\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001" +
-      "(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.gr" +
-      "eptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036." +
-      "greptime.v1.AddColumnLocation\"\236\001\n\020Change" +
-      "ColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targe" +
-      "t_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTyp" +
-      "e\022C\n\025target_type_extension\030\003 \001(\0132$.grept" +
-      "ime.v1.ColumnDataTypeExtension\"\032\n\nDropCo" +
-      "lumn\022\014\n\004name\030\001 \001(\t\"\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\tColumnDef\022\014\n" +
-      "\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptim" +
-      "e.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010" +
-      "\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemantic" +
-      "_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017" +
-      "\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007 " +
-      "\001(\0132$.greptime.v1.ColumnDataTypeExtensio" +
-      "n\022+\n\007options\030\010 \001(\0132\032.greptime.v1.ColumnO" +
-      "ptions\"\230\001\n\021AddColumnLocation\022B\n\rlocation" +
-      "_type\030\001 \001(\0162+.greptime.v1.AddColumnLocat" +
-      "ion.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/Gre" +
-      "ptimeTeam/greptime-proto/go/greptime/v1b" +
-      "\006proto3"
+      "\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analyz" +
+      "er\022\026\n\016case_sensitive\030\004 \001(\010\"%\n\013RenameTabl" +
+      "e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*" +
+      "\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD" +
+      "ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo" +
+      "lumnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013col" +
+      "umn_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.gr" +
+      "eptime.v1.ColumnDataType\022C\n\025target_type_" +
+      "extension\030\003 \001(\0132$.greptime.v1.ColumnData" +
+      "TypeExtension\"\032\n\nDropColumn\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\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tda" +
+      "ta_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy" +
+      "pe\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_const" +
+      "raint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.gre" +
+      "ptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@" +
+      "\n\022datatype_extension\030\007 \001(\0132$.greptime.v1" +
+      ".ColumnDataTypeExtension\022+\n\007options\030\010 \001(" +
+      "\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021AddCol" +
+      "umnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gre" +
+      "ptime.v1.AddColumnLocation.LocationType\022" +
+      "\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTy" +
+      "pe\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001*%\n\010Analyzer\022\013\n\007" +
+      "ENGLISH\020\000\022\014\n\010CHINIESE\020\001BL\n\016io.greptime.v" +
+      "1B\003DdlZ5github.com/GreptimeTeam/greptime" +
+      "-proto/go/greptime/v1b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto
index 331b9bca..a8a169bd 100644
--- a/proto/greptime/v1/ddl.proto
+++ b/proto/greptime/v1/ddl.proto
@@ -147,10 +147,15 @@ message DropColumns { repeated DropColumn drop_columns = 1; }
 
 message ChangeColumnTypes { repeated ChangeColumnType change_column_types = 1; }
 
+enum Analyzer {
+    ENGLISH = 0;
+    CHINIESE = 1;
+}
+
 message ChangeFulltext {
     string column_name = 1;
     bool enable = 2;
-    string analyzer = 3;
+    Analyzer analyzer = 3;
     bool case_sensitive = 4;
 }
 

From 2a8c2dfb7447b7fe5f0b8f3df868f041600caec2 Mon Sep 17 00:00:00 2001
From: irenjj 
Date: Fri, 11 Oct 2024 23:06:29 +0800
Subject: [PATCH 11/12] optional

---
 c++/greptime/v1/ddl.pb.cc                  | 195 ++++++++-------
 c++/greptime/v1/ddl.pb.h                   |  57 ++++-
 go/greptime/v1/ddl.pb.go                   | 189 ++++++++-------
 java/src/main/java/io/greptime/v1/Ddl.java | 265 ++++++++++++++-------
 proto/greptime/v1/ddl.proto                |   6 +-
 5 files changed, 441 insertions(+), 271 deletions(-)

diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc
index 397d8d36..78f56709 100644
--- a/c++/greptime/v1/ddl.pb.cc
+++ b/c++/greptime/v1/ddl.pb.cc
@@ -291,11 +291,12 @@ struct ChangeColumnTypesDefaultTypeInternal {
 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_;
 PROTOBUF_CONSTEXPR ChangeFulltext::ChangeFulltext(
     ::_pbi::ConstantInitialized): _impl_{
-    /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
+    /*decltype(_impl_._has_bits_)*/{}
+  , /*decltype(_impl_._cached_size_)*/{}
+  , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
   , /*decltype(_impl_.analyzer_)*/0
   , /*decltype(_impl_.enable_)*/false
-  , /*decltype(_impl_.case_sensitive_)*/false
-  , /*decltype(_impl_._cached_size_)*/{}} {}
+  , /*decltype(_impl_.case_sensitive_)*/false} {}
 struct ChangeFulltextDefaultTypeInternal {
   PROTOBUF_CONSTEXPR ChangeFulltextDefaultTypeInternal()
       : _instance(::_pbi::ConstantInitialized{}) {}
@@ -619,7 +620,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
   ~0u,  // no _weak_field_map_
   ~0u,  // no _inlined_string_donated_
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _impl_.change_column_types_),
-  ~0u,  // no _has_bits_
+  PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_._has_bits_),
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _internal_metadata_),
   ~0u,  // no _extensions_
   ~0u,  // no _oneof_case_
@@ -629,6 +630,10 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.enable_),
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.analyzer_),
   PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.case_sensitive_),
+  ~0u,
+  1,
+  0,
+  2,
   ~0u,  // no _has_bits_
   PROTOBUF_FIELD_OFFSET(::greptime::v1::RenameTable, _internal_metadata_),
   ~0u,  // no _extensions_
@@ -715,15 +720,15 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
   { 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::ChangeFulltext)},
-  { 202, -1, -1, sizeof(::greptime::v1::RenameTable)},
-  { 209, -1, -1, sizeof(::greptime::v1::AddColumn)},
-  { 217, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
-  { 226, -1, -1, sizeof(::greptime::v1::DropColumn)},
-  { 233, -1, -1, sizeof(::greptime::v1::TableId)},
-  { 240, -1, -1, sizeof(::greptime::v1::FlowId)},
-  { 247, -1, -1, sizeof(::greptime::v1::ColumnDef)},
-  { 261, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
+  { 192, 202, -1, sizeof(::greptime::v1::ChangeFulltext)},
+  { 206, -1, -1, sizeof(::greptime::v1::RenameTable)},
+  { 213, -1, -1, sizeof(::greptime::v1::AddColumn)},
+  { 221, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
+  { 230, -1, -1, sizeof(::greptime::v1::DropColumn)},
+  { 237, -1, -1, sizeof(::greptime::v1::TableId)},
+  { 244, -1, -1, sizeof(::greptime::v1::FlowId)},
+  { 251, -1, -1, sizeof(::greptime::v1::ColumnDef)},
+  { 265, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
 };
 
 static const ::_pb::Message* const file_default_instances[] = {
@@ -830,41 +835,43 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
   "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013"
   "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum"
   "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr"
-  "eptime.v1.ChangeColumnType\"v\n\016ChangeFull"
-  "text\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001("
-  "\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analyz"
-  "er\022\026\n\016case_sensitive\030\004 \001(\010\"%\n\013RenameTabl"
-  "e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*"
-  "\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD"
-  "ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo"
-  "lumnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013col"
-  "umn_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.gr"
-  "eptime.v1.ColumnDataType\022C\n\025target_type_"
-  "extension\030\003 \001(\0132$.greptime.v1.ColumnData"
-  "TypeExtension\"\032\n\nDropColumn\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\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tda"
-  "ta_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy"
-  "pe\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_const"
-  "raint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.gre"
-  "ptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@"
-  "\n\022datatype_extension\030\007 \001(\0132$.greptime.v1"
-  ".ColumnDataTypeExtension\022+\n\007options\030\010 \001("
-  "\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021AddCol"
-  "umnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gre"
-  "ptime.v1.AddColumnLocation.LocationType\022"
-  "\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTy"
-  "pe\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001*%\n\010Analyzer\022\013\n\007"
-  "ENGLISH\020\000\022\014\n\010CHINIESE\020\001BL\n\016io.greptime.v"
-  "1B\003DdlZ5github.com/GreptimeTeam/greptime"
-  "-proto/go/greptime/v1b\006proto3"
+  "eptime.v1.ChangeColumnType\"\260\001\n\016ChangeFul"
+  "ltext\022\023\n\013column_name\030\001 \001(\t\022\023\n\006enable\030\002 \001"
+  "(\010H\000\210\001\001\022,\n\010analyzer\030\003 \001(\0162\025.greptime.v1."
+  "AnalyzerH\001\210\001\001\022\033\n\016case_sensitive\030\004 \001(\010H\002\210"
+  "\001\001B\t\n\007_enableB\013\n\t_analyzerB\021\n\017_case_sens"
+  "itive\"%\n\013RenameTable\022\026\n\016new_table_name\030\001"
+  " \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026."
+  "greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132"
+  "\036.greptime.v1.AddColumnLocation\"\236\001\n\020Chan"
+  "geColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013tar"
+  "get_type\030\002 \001(\0162\033.greptime.v1.ColumnDataT"
+  "ype\022C\n\025target_type_extension\030\003 \001(\0132$.gre"
+  "ptime.v1.ColumnDataTypeExtension\"\032\n\nDrop"
+  "Column\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\tColumnDef\022"
+  "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept"
+  "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001"
+  "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant"
+  "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType"
+  "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030"
+  "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens"
+  "ion\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Colum"
+  "nOptions\"\230\001\n\021AddColumnLocation\022B\n\rlocati"
+  "on_type\030\001 \001(\0162+.greptime.v1.AddColumnLoc"
+  "ation.LocationType\022\031\n\021after_column_name\030"
+  "\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTE"
+  "R\020\001*%\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\014\n\010CHINIESE"
+  "\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gr"
+  "eptimeTeam/greptime-proto/go/greptime/v1"
+  "b\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, 4069, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
+    false, false, 4128, 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, 26,
     schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
@@ -6761,6 +6768,16 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const {
 
 class ChangeFulltext::_Internal {
  public:
+  using HasBits = decltype(std::declval()._impl_._has_bits_);
+  static void set_has_enable(HasBits* has_bits) {
+    (*has_bits)[0] |= 2u;
+  }
+  static void set_has_analyzer(HasBits* has_bits) {
+    (*has_bits)[0] |= 1u;
+  }
+  static void set_has_case_sensitive(HasBits* has_bits) {
+    (*has_bits)[0] |= 4u;
+  }
 };
 
 ChangeFulltext::ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena,
@@ -6773,11 +6790,12 @@ ChangeFulltext::ChangeFulltext(const ChangeFulltext& from)
   : ::PROTOBUF_NAMESPACE_ID::Message() {
   ChangeFulltext* const _this = this; (void)_this;
   new (&_impl_) Impl_{
-      decltype(_impl_.column_name_){}
+      decltype(_impl_._has_bits_){from._impl_._has_bits_}
+    , /*decltype(_impl_._cached_size_)*/{}
+    , decltype(_impl_.column_name_){}
     , decltype(_impl_.analyzer_){}
     , decltype(_impl_.enable_){}
-    , decltype(_impl_.case_sensitive_){}
-    , /*decltype(_impl_._cached_size_)*/{}};
+    , decltype(_impl_.case_sensitive_){}};
 
   _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
   _impl_.column_name_.InitDefault();
@@ -6799,11 +6817,12 @@ inline void ChangeFulltext::SharedCtor(
   (void)arena;
   (void)is_message_owned;
   new (&_impl_) Impl_{
-      decltype(_impl_.column_name_){}
+      decltype(_impl_._has_bits_){}
+    , /*decltype(_impl_._cached_size_)*/{}
+    , decltype(_impl_.column_name_){}
     , decltype(_impl_.analyzer_){0}
     , decltype(_impl_.enable_){false}
     , decltype(_impl_.case_sensitive_){false}
-    , /*decltype(_impl_._cached_size_)*/{}
   };
   _impl_.column_name_.InitDefault();
   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
@@ -6836,14 +6855,19 @@ void ChangeFulltext::Clear() {
   (void) cached_has_bits;
 
   _impl_.column_name_.ClearToEmpty();
-  ::memset(&_impl_.analyzer_, 0, static_cast(
-      reinterpret_cast(&_impl_.case_sensitive_) -
-      reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_));
+  cached_has_bits = _impl_._has_bits_[0];
+  if (cached_has_bits & 0x00000007u) {
+    ::memset(&_impl_.analyzer_, 0, static_cast(
+        reinterpret_cast(&_impl_.case_sensitive_) -
+        reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_));
+  }
+  _impl_._has_bits_.Clear();
   _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
 }
 
 const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
+  _Internal::HasBits has_bits{};
   while (!ctx->Done(&ptr)) {
     uint32_t tag;
     ptr = ::_pbi::ReadTag(ptr, &tag);
@@ -6858,15 +6882,16 @@ const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext
         } else
           goto handle_unusual;
         continue;
-      // bool enable = 2;
+      // optional bool enable = 2;
       case 2:
         if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) {
+          _Internal::set_has_enable(&has_bits);
           _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
           CHK_(ptr);
         } else
           goto handle_unusual;
         continue;
-      // .greptime.v1.Analyzer analyzer = 3;
+      // optional .greptime.v1.Analyzer analyzer = 3;
       case 3:
         if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) {
           uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
@@ -6875,9 +6900,10 @@ const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext
         } else
           goto handle_unusual;
         continue;
-      // bool case_sensitive = 4;
+      // optional bool case_sensitive = 4;
       case 4:
         if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) {
+          _Internal::set_has_case_sensitive(&has_bits);
           _impl_.case_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
           CHK_(ptr);
         } else
@@ -6899,6 +6925,7 @@ const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext
     CHK_(ptr != nullptr);
   }  // while
 message_done:
+  _impl_._has_bits_.Or(has_bits);
   return ptr;
 failure:
   ptr = nullptr;
@@ -6922,21 +6949,21 @@ uint8_t* ChangeFulltext::_InternalSerialize(
         1, this->_internal_column_name(), target);
   }
 
-  // bool enable = 2;
-  if (this->_internal_enable() != 0) {
+  // optional bool enable = 2;
+  if (_internal_has_enable()) {
     target = stream->EnsureSpace(target);
     target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_enable(), target);
   }
 
-  // .greptime.v1.Analyzer analyzer = 3;
-  if (this->_internal_analyzer() != 0) {
+  // optional .greptime.v1.Analyzer analyzer = 3;
+  if (_internal_has_analyzer()) {
     target = stream->EnsureSpace(target);
     target = ::_pbi::WireFormatLite::WriteEnumToArray(
       3, this->_internal_analyzer(), target);
   }
 
-  // bool case_sensitive = 4;
-  if (this->_internal_case_sensitive() != 0) {
+  // optional bool case_sensitive = 4;
+  if (_internal_has_case_sensitive()) {
     target = stream->EnsureSpace(target);
     target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_case_sensitive(), target);
   }
@@ -6964,22 +6991,25 @@ size_t ChangeFulltext::ByteSizeLong() const {
         this->_internal_column_name());
   }
 
-  // .greptime.v1.Analyzer analyzer = 3;
-  if (this->_internal_analyzer() != 0) {
-    total_size += 1 +
-      ::_pbi::WireFormatLite::EnumSize(this->_internal_analyzer());
-  }
+  cached_has_bits = _impl_._has_bits_[0];
+  if (cached_has_bits & 0x00000007u) {
+    // optional .greptime.v1.Analyzer analyzer = 3;
+    if (cached_has_bits & 0x00000001u) {
+      total_size += 1 +
+        ::_pbi::WireFormatLite::EnumSize(this->_internal_analyzer());
+    }
 
-  // bool enable = 2;
-  if (this->_internal_enable() != 0) {
-    total_size += 1 + 1;
-  }
+    // optional bool enable = 2;
+    if (cached_has_bits & 0x00000002u) {
+      total_size += 1 + 1;
+    }
 
-  // bool case_sensitive = 4;
-  if (this->_internal_case_sensitive() != 0) {
-    total_size += 1 + 1;
-  }
+    // optional bool case_sensitive = 4;
+    if (cached_has_bits & 0x00000004u) {
+      total_size += 1 + 1;
+    }
 
+  }
   return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
 }
 
@@ -7001,14 +7031,18 @@ void ChangeFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
   if (!from._internal_column_name().empty()) {
     _this->_internal_set_column_name(from._internal_column_name());
   }
-  if (from._internal_analyzer() != 0) {
-    _this->_internal_set_analyzer(from._internal_analyzer());
-  }
-  if (from._internal_enable() != 0) {
-    _this->_internal_set_enable(from._internal_enable());
-  }
-  if (from._internal_case_sensitive() != 0) {
-    _this->_internal_set_case_sensitive(from._internal_case_sensitive());
+  cached_has_bits = from._impl_._has_bits_[0];
+  if (cached_has_bits & 0x00000007u) {
+    if (cached_has_bits & 0x00000001u) {
+      _this->_impl_.analyzer_ = from._impl_.analyzer_;
+    }
+    if (cached_has_bits & 0x00000002u) {
+      _this->_impl_.enable_ = from._impl_.enable_;
+    }
+    if (cached_has_bits & 0x00000004u) {
+      _this->_impl_.case_sensitive_ = from._impl_.case_sensitive_;
+    }
+    _this->_impl_._has_bits_[0] |= cached_has_bits;
   }
   _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
 }
@@ -7029,6 +7063,7 @@ void ChangeFulltext::InternalSwap(ChangeFulltext* other) {
   auto* lhs_arena = GetArenaForAllocation();
   auto* rhs_arena = other->GetArenaForAllocation();
   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
+  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
       &_impl_.column_name_, lhs_arena,
       &other->_impl_.column_name_, rhs_arena
diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h
index 49ba693e..8b796528 100644
--- a/c++/greptime/v1/ddl.pb.h
+++ b/c++/greptime/v1/ddl.pb.h
@@ -3748,7 +3748,11 @@ class ChangeFulltext final :
   std::string* _internal_mutable_column_name();
   public:
 
-  // .greptime.v1.Analyzer analyzer = 3;
+  // optional .greptime.v1.Analyzer analyzer = 3;
+  bool has_analyzer() const;
+  private:
+  bool _internal_has_analyzer() const;
+  public:
   void clear_analyzer();
   ::greptime::v1::Analyzer analyzer() const;
   void set_analyzer(::greptime::v1::Analyzer value);
@@ -3757,7 +3761,11 @@ class ChangeFulltext final :
   void _internal_set_analyzer(::greptime::v1::Analyzer value);
   public:
 
-  // bool enable = 2;
+  // optional bool enable = 2;
+  bool has_enable() const;
+  private:
+  bool _internal_has_enable() const;
+  public:
   void clear_enable();
   bool enable() const;
   void set_enable(bool value);
@@ -3766,7 +3774,11 @@ class ChangeFulltext final :
   void _internal_set_enable(bool value);
   public:
 
-  // bool case_sensitive = 4;
+  // optional bool case_sensitive = 4;
+  bool has_case_sensitive() const;
+  private:
+  bool _internal_has_case_sensitive() const;
+  public:
   void clear_case_sensitive();
   bool case_sensitive() const;
   void set_case_sensitive(bool value);
@@ -3783,11 +3795,12 @@ class ChangeFulltext final :
   typedef void InternalArenaConstructable_;
   typedef void DestructorSkippable_;
   struct Impl_ {
+    ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
+    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_;
     int analyzer_;
     bool enable_;
     bool case_sensitive_;
-    mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
   };
   union { Impl_ _impl_; };
   friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
@@ -9400,9 +9413,17 @@ inline void ChangeFulltext::set_allocated_column_name(std::string* column_name)
   // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.column_name)
 }
 
-// bool enable = 2;
+// optional bool enable = 2;
+inline bool ChangeFulltext::_internal_has_enable() const {
+  bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0;
+  return value;
+}
+inline bool ChangeFulltext::has_enable() const {
+  return _internal_has_enable();
+}
 inline void ChangeFulltext::clear_enable() {
   _impl_.enable_ = false;
+  _impl_._has_bits_[0] &= ~0x00000002u;
 }
 inline bool ChangeFulltext::_internal_enable() const {
   return _impl_.enable_;
@@ -9412,7 +9433,7 @@ inline bool ChangeFulltext::enable() const {
   return _internal_enable();
 }
 inline void ChangeFulltext::_internal_set_enable(bool value) {
-  
+  _impl_._has_bits_[0] |= 0x00000002u;
   _impl_.enable_ = value;
 }
 inline void ChangeFulltext::set_enable(bool value) {
@@ -9420,9 +9441,17 @@ inline void ChangeFulltext::set_enable(bool value) {
   // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.enable)
 }
 
-// .greptime.v1.Analyzer analyzer = 3;
+// optional .greptime.v1.Analyzer analyzer = 3;
+inline bool ChangeFulltext::_internal_has_analyzer() const {
+  bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0;
+  return value;
+}
+inline bool ChangeFulltext::has_analyzer() const {
+  return _internal_has_analyzer();
+}
 inline void ChangeFulltext::clear_analyzer() {
   _impl_.analyzer_ = 0;
+  _impl_._has_bits_[0] &= ~0x00000001u;
 }
 inline ::greptime::v1::Analyzer ChangeFulltext::_internal_analyzer() const {
   return static_cast< ::greptime::v1::Analyzer >(_impl_.analyzer_);
@@ -9432,7 +9461,7 @@ inline ::greptime::v1::Analyzer ChangeFulltext::analyzer() const {
   return _internal_analyzer();
 }
 inline void ChangeFulltext::_internal_set_analyzer(::greptime::v1::Analyzer value) {
-  
+  _impl_._has_bits_[0] |= 0x00000001u;
   _impl_.analyzer_ = value;
 }
 inline void ChangeFulltext::set_analyzer(::greptime::v1::Analyzer value) {
@@ -9440,9 +9469,17 @@ inline void ChangeFulltext::set_analyzer(::greptime::v1::Analyzer value) {
   // @@protoc_insertion_point(field_set:greptime.v1.ChangeFulltext.analyzer)
 }
 
-// bool case_sensitive = 4;
+// optional bool case_sensitive = 4;
+inline bool ChangeFulltext::_internal_has_case_sensitive() const {
+  bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0;
+  return value;
+}
+inline bool ChangeFulltext::has_case_sensitive() const {
+  return _internal_has_case_sensitive();
+}
 inline void ChangeFulltext::clear_case_sensitive() {
   _impl_.case_sensitive_ = false;
+  _impl_._has_bits_[0] &= ~0x00000004u;
 }
 inline bool ChangeFulltext::_internal_case_sensitive() const {
   return _impl_.case_sensitive_;
@@ -9452,7 +9489,7 @@ inline bool ChangeFulltext::case_sensitive() const {
   return _internal_case_sensitive();
 }
 inline void ChangeFulltext::_internal_set_case_sensitive(bool value) {
-  
+  _impl_._has_bits_[0] |= 0x00000004u;
   _impl_.case_sensitive_ = value;
 }
 inline void ChangeFulltext::set_case_sensitive(bool value) {
diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go
index 98724c64..459e0b02 100644
--- a/go/greptime/v1/ddl.pb.go
+++ b/go/greptime/v1/ddl.pb.go
@@ -1406,10 +1406,10 @@ type ChangeFulltext struct {
 	sizeCache     protoimpl.SizeCache
 	unknownFields protoimpl.UnknownFields
 
-	ColumnName    string   `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
-	Enable        bool     `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"`
-	Analyzer      Analyzer `protobuf:"varint,3,opt,name=analyzer,proto3,enum=greptime.v1.Analyzer" json:"analyzer,omitempty"`
-	CaseSensitive bool     `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
+	ColumnName    string    `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
+	Enable        *bool     `protobuf:"varint,2,opt,name=enable,proto3,oneof" json:"enable,omitempty"`
+	Analyzer      *Analyzer `protobuf:"varint,3,opt,name=analyzer,proto3,enum=greptime.v1.Analyzer,oneof" json:"analyzer,omitempty"`
+	CaseSensitive *bool     `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3,oneof" json:"case_sensitive,omitempty"`
 }
 
 func (x *ChangeFulltext) Reset() {
@@ -1452,22 +1452,22 @@ func (x *ChangeFulltext) GetColumnName() string {
 }
 
 func (x *ChangeFulltext) GetEnable() bool {
-	if x != nil {
-		return x.Enable
+	if x != nil && x.Enable != nil {
+		return *x.Enable
 	}
 	return false
 }
 
 func (x *ChangeFulltext) GetAnalyzer() Analyzer {
-	if x != nil {
-		return x.Analyzer
+	if x != nil && x.Analyzer != nil {
+		return *x.Analyzer
 	}
 	return Analyzer_ENGLISH
 }
 
 func (x *ChangeFulltext) GetCaseSensitive() bool {
-	if x != nil {
-		return x.CaseSensitive
+	if x != nil && x.CaseSensitive != nil {
+		return *x.CaseSensitive
 	}
 	return false
 }
@@ -2188,91 +2188,95 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
 	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, 0xa3, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e,
+	0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0xdd, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e,
 	0x67, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x16, 0x0a, 0x06, 0x65,
-	0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61,
-	0x62, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18,
-	0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
-	0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x61, 0x6e,
-	0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73,
-	0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d,
-	0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 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,
+	0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x06, 0x65,
+	0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x06, 0x65,
+	0x6e, 0x61, 0x62, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c,
+	0x79, 0x7a, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65,
+	0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65,
+	0x72, 0x48, 0x01, 0x52, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x88, 0x01, 0x01,
+	0x12, 0x2a, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69,
+	0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x02, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65,
+	0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07,
+	0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x61, 0x6e, 0x61, 0x6c,
+	0x79, 0x7a, 0x65, 0x72, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65,
+	0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 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, 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, 0x2a, 0x25, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b,
-	0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43,
-	0x48, 0x49, 0x4e, 0x49, 0x45, 0x53, 0x45, 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,
+	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, 0x2a, 0x25, 0x0a, 0x08,
+	0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c,
+	0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x48, 0x49, 0x4e, 0x49, 0x45, 0x53,
+	0x45, 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 (
@@ -2675,6 +2679,7 @@ func file_greptime_v1_ddl_proto_init() {
 		(*AlterExpr_ChangeColumnTypes)(nil),
 		(*AlterExpr_ChangeFulltext)(nil),
 	}
+	file_greptime_v1_ddl_proto_msgTypes[14].OneofWrappers = []interface{}{}
 	type x struct{}
 	out := protoimpl.TypeBuilder{
 		File: protoimpl.DescBuilder{
diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java
index 65555c5b..bee35d57 100644
--- a/java/src/main/java/io/greptime/v1/Ddl.java
+++ b/java/src/main/java/io/greptime/v1/Ddl.java
@@ -20362,24 +20362,39 @@ public interface ChangeFulltextOrBuilder extends
         getColumnNameBytes();
 
     /**
-     * bool enable = 2;
+     * optional bool enable = 2;
+     * @return Whether the enable field is set.
+     */
+    boolean hasEnable();
+    /**
+     * optional bool enable = 2;
      * @return The enable.
      */
     boolean getEnable();
 
     /**
-     * .greptime.v1.Analyzer analyzer = 3;
+     * optional .greptime.v1.Analyzer analyzer = 3;
+     * @return Whether the analyzer field is set.
+     */
+    boolean hasAnalyzer();
+    /**
+     * optional .greptime.v1.Analyzer analyzer = 3;
      * @return The enum numeric value on the wire for analyzer.
      */
     int getAnalyzerValue();
     /**
-     * .greptime.v1.Analyzer analyzer = 3;
+     * optional .greptime.v1.Analyzer analyzer = 3;
      * @return The analyzer.
      */
     io.greptime.v1.Ddl.Analyzer getAnalyzer();
 
     /**
-     * bool case_sensitive = 4;
+     * optional bool case_sensitive = 4;
+     * @return Whether the caseSensitive field is set.
+     */
+    boolean hasCaseSensitive();
+    /**
+     * optional bool case_sensitive = 4;
      * @return The caseSensitive.
      */
     boolean getCaseSensitive();
@@ -20421,6 +20436,7 @@ private ChangeFulltext(
       if (extensionRegistry == null) {
         throw new java.lang.NullPointerException();
       }
+      int mutable_bitField0_ = 0;
       com.google.protobuf.UnknownFieldSet.Builder unknownFields =
           com.google.protobuf.UnknownFieldSet.newBuilder();
       try {
@@ -20438,18 +20454,18 @@ private ChangeFulltext(
               break;
             }
             case 16: {
-
+              bitField0_ |= 0x00000001;
               enable_ = input.readBool();
               break;
             }
             case 24: {
               int rawValue = input.readEnum();
-
+              bitField0_ |= 0x00000002;
               analyzer_ = rawValue;
               break;
             }
             case 32: {
-
+              bitField0_ |= 0x00000004;
               caseSensitive_ = input.readBool();
               break;
             }
@@ -20487,6 +20503,7 @@ private ChangeFulltext(
               io.greptime.v1.Ddl.ChangeFulltext.class, io.greptime.v1.Ddl.ChangeFulltext.Builder.class);
     }
 
+    private int bitField0_;
     public static final int COLUMN_NAME_FIELD_NUMBER = 1;
     private volatile java.lang.Object columnName_;
     /**
@@ -20528,7 +20545,15 @@ public java.lang.String getColumnName() {
     public static final int ENABLE_FIELD_NUMBER = 2;
     private boolean enable_;
     /**
-     * bool enable = 2;
+     * optional bool enable = 2;
+     * @return Whether the enable field is set.
+     */
+    @java.lang.Override
+    public boolean hasEnable() {
+      return ((bitField0_ & 0x00000001) != 0);
+    }
+    /**
+     * optional bool enable = 2;
      * @return The enable.
      */
     @java.lang.Override
@@ -20539,14 +20564,21 @@ public boolean getEnable() {
     public static final int ANALYZER_FIELD_NUMBER = 3;
     private int analyzer_;
     /**
-     * .greptime.v1.Analyzer analyzer = 3;
+     * optional .greptime.v1.Analyzer analyzer = 3;
+     * @return Whether the analyzer field is set.
+     */
+    @java.lang.Override public boolean hasAnalyzer() {
+      return ((bitField0_ & 0x00000002) != 0);
+    }
+    /**
+     * optional .greptime.v1.Analyzer analyzer = 3;
      * @return The enum numeric value on the wire for analyzer.
      */
     @java.lang.Override public int getAnalyzerValue() {
       return analyzer_;
     }
     /**
-     * .greptime.v1.Analyzer analyzer = 3;
+     * optional .greptime.v1.Analyzer analyzer = 3;
      * @return The analyzer.
      */
     @java.lang.Override public io.greptime.v1.Ddl.Analyzer getAnalyzer() {
@@ -20558,7 +20590,15 @@ public boolean getEnable() {
     public static final int CASE_SENSITIVE_FIELD_NUMBER = 4;
     private boolean caseSensitive_;
     /**
-     * bool case_sensitive = 4;
+     * optional bool case_sensitive = 4;
+     * @return Whether the caseSensitive field is set.
+     */
+    @java.lang.Override
+    public boolean hasCaseSensitive() {
+      return ((bitField0_ & 0x00000004) != 0);
+    }
+    /**
+     * optional bool case_sensitive = 4;
      * @return The caseSensitive.
      */
     @java.lang.Override
@@ -20583,13 +20623,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
         com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_);
       }
-      if (enable_ != false) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         output.writeBool(2, enable_);
       }
-      if (analyzer_ != io.greptime.v1.Ddl.Analyzer.ENGLISH.getNumber()) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         output.writeEnum(3, analyzer_);
       }
-      if (caseSensitive_ != false) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         output.writeBool(4, caseSensitive_);
       }
       unknownFields.writeTo(output);
@@ -20604,15 +20644,15 @@ public int getSerializedSize() {
       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) {
         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_);
       }
-      if (enable_ != false) {
+      if (((bitField0_ & 0x00000001) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeBoolSize(2, enable_);
       }
-      if (analyzer_ != io.greptime.v1.Ddl.Analyzer.ENGLISH.getNumber()) {
+      if (((bitField0_ & 0x00000002) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeEnumSize(3, analyzer_);
       }
-      if (caseSensitive_ != false) {
+      if (((bitField0_ & 0x00000004) != 0)) {
         size += com.google.protobuf.CodedOutputStream
           .computeBoolSize(4, caseSensitive_);
       }
@@ -20633,11 +20673,20 @@ public boolean equals(final java.lang.Object obj) {
 
       if (!getColumnName()
           .equals(other.getColumnName())) return false;
-      if (getEnable()
-          != other.getEnable()) return false;
-      if (analyzer_ != other.analyzer_) return false;
-      if (getCaseSensitive()
-          != other.getCaseSensitive()) return false;
+      if (hasEnable() != other.hasEnable()) return false;
+      if (hasEnable()) {
+        if (getEnable()
+            != other.getEnable()) return false;
+      }
+      if (hasAnalyzer() != other.hasAnalyzer()) return false;
+      if (hasAnalyzer()) {
+        if (analyzer_ != other.analyzer_) return false;
+      }
+      if (hasCaseSensitive() != other.hasCaseSensitive()) return false;
+      if (hasCaseSensitive()) {
+        if (getCaseSensitive()
+            != other.getCaseSensitive()) return false;
+      }
       if (!unknownFields.equals(other.unknownFields)) return false;
       return true;
     }
@@ -20651,14 +20700,20 @@ public int hashCode() {
       hash = (19 * hash) + getDescriptor().hashCode();
       hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER;
       hash = (53 * hash) + getColumnName().hashCode();
-      hash = (37 * hash) + ENABLE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-          getEnable());
-      hash = (37 * hash) + ANALYZER_FIELD_NUMBER;
-      hash = (53 * hash) + analyzer_;
-      hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER;
-      hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
-          getCaseSensitive());
+      if (hasEnable()) {
+        hash = (37 * hash) + ENABLE_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+            getEnable());
+      }
+      if (hasAnalyzer()) {
+        hash = (37 * hash) + ANALYZER_FIELD_NUMBER;
+        hash = (53 * hash) + analyzer_;
+      }
+      if (hasCaseSensitive()) {
+        hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER;
+        hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+            getCaseSensitive());
+      }
       hash = (29 * hash) + unknownFields.hashCode();
       memoizedHashCode = hash;
       return hash;
@@ -20795,11 +20850,11 @@ public Builder clear() {
         columnName_ = "";
 
         enable_ = false;
-
+        bitField0_ = (bitField0_ & ~0x00000001);
         analyzer_ = 0;
-
+        bitField0_ = (bitField0_ & ~0x00000002);
         caseSensitive_ = false;
-
+        bitField0_ = (bitField0_ & ~0x00000004);
         return this;
       }
 
@@ -20826,10 +20881,22 @@ public io.greptime.v1.Ddl.ChangeFulltext build() {
       @java.lang.Override
       public io.greptime.v1.Ddl.ChangeFulltext buildPartial() {
         io.greptime.v1.Ddl.ChangeFulltext result = new io.greptime.v1.Ddl.ChangeFulltext(this);
+        int from_bitField0_ = bitField0_;
+        int to_bitField0_ = 0;
         result.columnName_ = columnName_;
-        result.enable_ = enable_;
+        if (((from_bitField0_ & 0x00000001) != 0)) {
+          result.enable_ = enable_;
+          to_bitField0_ |= 0x00000001;
+        }
+        if (((from_bitField0_ & 0x00000002) != 0)) {
+          to_bitField0_ |= 0x00000002;
+        }
         result.analyzer_ = analyzer_;
-        result.caseSensitive_ = caseSensitive_;
+        if (((from_bitField0_ & 0x00000004) != 0)) {
+          result.caseSensitive_ = caseSensitive_;
+          to_bitField0_ |= 0x00000004;
+        }
+        result.bitField0_ = to_bitField0_;
         onBuilt();
         return result;
       }
@@ -20882,13 +20949,13 @@ public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext other) {
           columnName_ = other.columnName_;
           onChanged();
         }
-        if (other.getEnable() != false) {
+        if (other.hasEnable()) {
           setEnable(other.getEnable());
         }
-        if (other.analyzer_ != 0) {
-          setAnalyzerValue(other.getAnalyzerValue());
+        if (other.hasAnalyzer()) {
+          setAnalyzer(other.getAnalyzer());
         }
-        if (other.getCaseSensitive() != false) {
+        if (other.hasCaseSensitive()) {
           setCaseSensitive(other.getCaseSensitive());
         }
         this.mergeUnknownFields(other.unknownFields);
@@ -20919,6 +20986,7 @@ public Builder mergeFrom(
         }
         return this;
       }
+      private int bitField0_;
 
       private java.lang.Object columnName_ = "";
       /**
@@ -20998,7 +21066,15 @@ public Builder setColumnNameBytes(
 
       private boolean enable_ ;
       /**
-       * bool enable = 2;
+       * optional bool enable = 2;
+       * @return Whether the enable field is set.
+       */
+      @java.lang.Override
+      public boolean hasEnable() {
+        return ((bitField0_ & 0x00000001) != 0);
+      }
+      /**
+       * optional bool enable = 2;
        * @return The enable.
        */
       @java.lang.Override
@@ -21006,22 +21082,22 @@ public boolean getEnable() {
         return enable_;
       }
       /**
-       * bool enable = 2;
+       * optional bool enable = 2;
        * @param value The enable to set.
        * @return This builder for chaining.
        */
       public Builder setEnable(boolean value) {
-        
+        bitField0_ |= 0x00000001;
         enable_ = value;
         onChanged();
         return this;
       }
       /**
-       * bool enable = 2;
+       * optional bool enable = 2;
        * @return This builder for chaining.
        */
       public Builder clearEnable() {
-        
+        bitField0_ = (bitField0_ & ~0x00000001);
         enable_ = false;
         onChanged();
         return this;
@@ -21029,25 +21105,32 @@ public Builder clearEnable() {
 
       private int analyzer_ = 0;
       /**
-       * .greptime.v1.Analyzer analyzer = 3;
+       * optional .greptime.v1.Analyzer analyzer = 3;
+       * @return Whether the analyzer field is set.
+       */
+      @java.lang.Override public boolean hasAnalyzer() {
+        return ((bitField0_ & 0x00000002) != 0);
+      }
+      /**
+       * optional .greptime.v1.Analyzer analyzer = 3;
        * @return The enum numeric value on the wire for analyzer.
        */
       @java.lang.Override public int getAnalyzerValue() {
         return analyzer_;
       }
       /**
-       * .greptime.v1.Analyzer analyzer = 3;
+       * optional .greptime.v1.Analyzer analyzer = 3;
        * @param value The enum numeric value on the wire for analyzer to set.
        * @return This builder for chaining.
        */
       public Builder setAnalyzerValue(int value) {
-        
+        bitField0_ |= 0x00000002;
         analyzer_ = value;
         onChanged();
         return this;
       }
       /**
-       * .greptime.v1.Analyzer analyzer = 3;
+       * optional .greptime.v1.Analyzer analyzer = 3;
        * @return The analyzer.
        */
       @java.lang.Override
@@ -21057,7 +21140,7 @@ public io.greptime.v1.Ddl.Analyzer getAnalyzer() {
         return result == null ? io.greptime.v1.Ddl.Analyzer.UNRECOGNIZED : result;
       }
       /**
-       * .greptime.v1.Analyzer analyzer = 3;
+       * optional .greptime.v1.Analyzer analyzer = 3;
        * @param value The analyzer to set.
        * @return This builder for chaining.
        */
@@ -21065,17 +21148,17 @@ public Builder setAnalyzer(io.greptime.v1.Ddl.Analyzer value) {
         if (value == null) {
           throw new NullPointerException();
         }
-        
+        bitField0_ |= 0x00000002;
         analyzer_ = value.getNumber();
         onChanged();
         return this;
       }
       /**
-       * .greptime.v1.Analyzer analyzer = 3;
+       * optional .greptime.v1.Analyzer analyzer = 3;
        * @return This builder for chaining.
        */
       public Builder clearAnalyzer() {
-        
+        bitField0_ = (bitField0_ & ~0x00000002);
         analyzer_ = 0;
         onChanged();
         return this;
@@ -21083,7 +21166,15 @@ public Builder clearAnalyzer() {
 
       private boolean caseSensitive_ ;
       /**
-       * bool case_sensitive = 4;
+       * optional bool case_sensitive = 4;
+       * @return Whether the caseSensitive field is set.
+       */
+      @java.lang.Override
+      public boolean hasCaseSensitive() {
+        return ((bitField0_ & 0x00000004) != 0);
+      }
+      /**
+       * optional bool case_sensitive = 4;
        * @return The caseSensitive.
        */
       @java.lang.Override
@@ -21091,22 +21182,22 @@ public boolean getCaseSensitive() {
         return caseSensitive_;
       }
       /**
-       * bool case_sensitive = 4;
+       * optional bool case_sensitive = 4;
        * @param value The caseSensitive to set.
        * @return This builder for chaining.
        */
       public Builder setCaseSensitive(boolean value) {
-        
+        bitField0_ |= 0x00000004;
         caseSensitive_ = value;
         onChanged();
         return this;
       }
       /**
-       * bool case_sensitive = 4;
+       * optional bool case_sensitive = 4;
        * @return This builder for chaining.
        */
       public Builder clearCaseSensitive() {
-        
+        bitField0_ = (bitField0_ & ~0x00000004);
         caseSensitive_ = false;
         onChanged();
         return this;
@@ -27593,34 +27684,36 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
       "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013" +
       "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum" +
       "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr" +
-      "eptime.v1.ChangeColumnType\"v\n\016ChangeFull" +
-      "text\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(" +
-      "\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analyz" +
-      "er\022\026\n\016case_sensitive\030\004 \001(\010\"%\n\013RenameTabl" +
-      "e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*" +
-      "\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD" +
-      "ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo" +
-      "lumnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013col" +
-      "umn_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.gr" +
-      "eptime.v1.ColumnDataType\022C\n\025target_type_" +
-      "extension\030\003 \001(\0132$.greptime.v1.ColumnData" +
-      "TypeExtension\"\032\n\nDropColumn\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\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tda" +
-      "ta_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy" +
-      "pe\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_const" +
-      "raint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.gre" +
-      "ptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@" +
-      "\n\022datatype_extension\030\007 \001(\0132$.greptime.v1" +
-      ".ColumnDataTypeExtension\022+\n\007options\030\010 \001(" +
-      "\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021AddCol" +
-      "umnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gre" +
-      "ptime.v1.AddColumnLocation.LocationType\022" +
-      "\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTy" +
-      "pe\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001*%\n\010Analyzer\022\013\n\007" +
-      "ENGLISH\020\000\022\014\n\010CHINIESE\020\001BL\n\016io.greptime.v" +
-      "1B\003DdlZ5github.com/GreptimeTeam/greptime" +
-      "-proto/go/greptime/v1b\006proto3"
+      "eptime.v1.ChangeColumnType\"\260\001\n\016ChangeFul" +
+      "ltext\022\023\n\013column_name\030\001 \001(\t\022\023\n\006enable\030\002 \001" +
+      "(\010H\000\210\001\001\022,\n\010analyzer\030\003 \001(\0162\025.greptime.v1." +
+      "AnalyzerH\001\210\001\001\022\033\n\016case_sensitive\030\004 \001(\010H\002\210" +
+      "\001\001B\t\n\007_enableB\013\n\t_analyzerB\021\n\017_case_sens" +
+      "itive\"%\n\013RenameTable\022\026\n\016new_table_name\030\001" +
+      " \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026." +
+      "greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132" +
+      "\036.greptime.v1.AddColumnLocation\"\236\001\n\020Chan" +
+      "geColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013tar" +
+      "get_type\030\002 \001(\0162\033.greptime.v1.ColumnDataT" +
+      "ype\022C\n\025target_type_extension\030\003 \001(\0132$.gre" +
+      "ptime.v1.ColumnDataTypeExtension\"\032\n\nDrop" +
+      "Column\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\tColumnDef\022" +
+      "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept" +
+      "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001" +
+      "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant" +
+      "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType" +
+      "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030" +
+      "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens" +
+      "ion\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Colum" +
+      "nOptions\"\230\001\n\021AddColumnLocation\022B\n\rlocati" +
+      "on_type\030\001 \001(\0162+.greptime.v1.AddColumnLoc" +
+      "ation.LocationType\022\031\n\021after_column_name\030" +
+      "\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTE" +
+      "R\020\001*%\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\014\n\010CHINIESE" +
+      "\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gr" +
+      "eptimeTeam/greptime-proto/go/greptime/v1" +
+      "b\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
@@ -27734,7 +27827,7 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
     internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable = new
       com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
         internal_static_greptime_v1_ChangeFulltext_descriptor,
-        new java.lang.String[] { "ColumnName", "Enable", "Analyzer", "CaseSensitive", });
+        new java.lang.String[] { "ColumnName", "Enable", "Analyzer", "CaseSensitive", "Enable", "Analyzer", "CaseSensitive", });
     internal_static_greptime_v1_RenameTable_descriptor =
       getDescriptor().getMessageTypes().get(15);
     internal_static_greptime_v1_RenameTable_fieldAccessorTable = new
diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto
index a8a169bd..0d55cb17 100644
--- a/proto/greptime/v1/ddl.proto
+++ b/proto/greptime/v1/ddl.proto
@@ -154,9 +154,9 @@ enum Analyzer {
 
 message ChangeFulltext {
     string column_name = 1;
-    bool enable = 2;
-    Analyzer analyzer = 3;
-    bool case_sensitive = 4;
+    optional bool enable = 2;
+    optional Analyzer analyzer = 3;
+    optional bool case_sensitive = 4;
 }
 
 message RenameTable { string new_table_name = 1; }

From ed13098712a87674e1d41be8c9a8ceb23585c009 Mon Sep 17 00:00:00 2001
From: irenjj 
Date: Wed, 16 Oct 2024 20:01:10 +0800
Subject: [PATCH 12/12] typo

---
 c++/greptime/v1/ddl.pb.cc                  | 10 ++++-----
 c++/greptime/v1/ddl.pb.h                   |  4 ++--
 go/greptime/v1/ddl.pb.go                   | 26 +++++++++++-----------
 java/src/main/java/io/greptime/v1/Ddl.java | 18 +++++++--------
 proto/greptime/v1/ddl.proto                |  2 +-
 5 files changed, 30 insertions(+), 30 deletions(-)

diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc
index 78f56709..cab1545b 100644
--- a/c++/greptime/v1/ddl.pb.cc
+++ b/c++/greptime/v1/ddl.pb.cc
@@ -861,17 +861,17 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
   "on_type\030\001 \001(\0162+.greptime.v1.AddColumnLoc"
   "ation.LocationType\022\031\n\021after_column_name\030"
   "\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTE"
-  "R\020\001*%\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\014\n\010CHINIESE"
-  "\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gr"
-  "eptimeTeam/greptime-proto/go/greptime/v1"
-  "b\006proto3"
+  "R\020\001*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020"
+  "\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gre"
+  "ptimeTeam/greptime-proto/go/greptime/v1b"
+  "\006proto3"
   ;
 static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
   &::descriptor_table_greptime_2fv1_2fcommon_2eproto,
 };
 static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
 const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
-    false, false, 4128, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
+    false, false, 4127, 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, 26,
     schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h
index 8b796528..9f4afb60 100644
--- a/c++/greptime/v1/ddl.pb.h
+++ b/c++/greptime/v1/ddl.pb.h
@@ -189,13 +189,13 @@ inline bool AddColumnLocation_LocationType_Parse(
 }
 enum Analyzer : int {
   ENGLISH = 0,
-  CHINIESE = 1,
+  CHINESE = 1,
   Analyzer_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(),
   Analyzer_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max()
 };
 bool Analyzer_IsValid(int value);
 constexpr Analyzer Analyzer_MIN = ENGLISH;
-constexpr Analyzer Analyzer_MAX = CHINIESE;
+constexpr Analyzer Analyzer_MAX = CHINESE;
 constexpr int Analyzer_ARRAYSIZE = Analyzer_MAX + 1;
 
 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Analyzer_descriptor();
diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go
index 459e0b02..6e965392 100644
--- a/go/greptime/v1/ddl.pb.go
+++ b/go/greptime/v1/ddl.pb.go
@@ -37,19 +37,19 @@ const (
 type Analyzer int32
 
 const (
-	Analyzer_ENGLISH  Analyzer = 0
-	Analyzer_CHINIESE Analyzer = 1
+	Analyzer_ENGLISH Analyzer = 0
+	Analyzer_CHINESE Analyzer = 1
 )
 
 // Enum value maps for Analyzer.
 var (
 	Analyzer_name = map[int32]string{
 		0: "ENGLISH",
-		1: "CHINIESE",
+		1: "CHINESE",
 	}
 	Analyzer_value = map[string]int32{
-		"ENGLISH":  0,
-		"CHINIESE": 1,
+		"ENGLISH": 0,
+		"CHINESE": 1,
 	}
 )
 
@@ -2268,15 +2268,15 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
 	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, 0x2a, 0x25, 0x0a, 0x08,
+	0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x2a, 0x24, 0x0a, 0x08,
 	0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c,
-	0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x48, 0x49, 0x4e, 0x49, 0x45, 0x53,
-	0x45, 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,
+	0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x45,
+	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 (
diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java
index bee35d57..1df3af64 100644
--- a/java/src/main/java/io/greptime/v1/Ddl.java
+++ b/java/src/main/java/io/greptime/v1/Ddl.java
@@ -24,9 +24,9 @@ public enum Analyzer
      */
     ENGLISH(0),
     /**
-     * CHINIESE = 1;
+     * CHINESE = 1;
      */
-    CHINIESE(1),
+    CHINESE(1),
     UNRECOGNIZED(-1),
     ;
 
@@ -35,9 +35,9 @@ public enum Analyzer
      */
     public static final int ENGLISH_VALUE = 0;
     /**
-     * CHINIESE = 1;
+     * CHINESE = 1;
      */
-    public static final int CHINIESE_VALUE = 1;
+    public static final int CHINESE_VALUE = 1;
 
 
     public final int getNumber() {
@@ -65,7 +65,7 @@ public static Analyzer valueOf(int value) {
     public static Analyzer forNumber(int value) {
       switch (value) {
         case 0: return ENGLISH;
-        case 1: return CHINIESE;
+        case 1: return CHINESE;
         default: return null;
       }
     }
@@ -27710,10 +27710,10 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() {
       "on_type\030\001 \001(\0162+.greptime.v1.AddColumnLoc" +
       "ation.LocationType\022\031\n\021after_column_name\030" +
       "\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTE" +
-      "R\020\001*%\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\014\n\010CHINIESE" +
-      "\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gr" +
-      "eptimeTeam/greptime-proto/go/greptime/v1" +
-      "b\006proto3"
+      "R\020\001*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020" +
+      "\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gre" +
+      "ptimeTeam/greptime-proto/go/greptime/v1b" +
+      "\006proto3"
     };
     descriptor = com.google.protobuf.Descriptors.FileDescriptor
       .internalBuildGeneratedFileFrom(descriptorData,
diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto
index 0d55cb17..8d11b9eb 100644
--- a/proto/greptime/v1/ddl.proto
+++ b/proto/greptime/v1/ddl.proto
@@ -149,7 +149,7 @@ message ChangeColumnTypes { repeated ChangeColumnType change_column_types = 1; }
 
 enum Analyzer {
     ENGLISH = 0;
-    CHINIESE = 1;
+    CHINESE = 1;
 }
 
 message ChangeFulltext {