From 6ca31389810e1385a4887469ea96f521b2f4180c Mon Sep 17 00:00:00 2001 From: CookiePieWw Date: Tue, 5 Nov 2024 09:44:11 +0800 Subject: [PATCH] feat: alter fulltext index --- c++/greptime/v1/ddl.pb.cc | 541 +++++- c++/greptime/v1/ddl.pb.h | 432 +++++ c++/greptime/v1/region/server.pb.cc | 140 +- c++/greptime/v1/region/server.pb.h | 88 + go/greptime/v1/ddl.pb.go | 633 ++++--- java/src/main/java/io/greptime/v1/Ddl.java | 1452 +++++++++++++++-- .../java/io/greptime/v1/region/Server.java | 282 +++- proto/greptime/v1/ddl.proto | 13 + proto/greptime/v1/region/server.proto | 1 + 9 files changed, 3080 insertions(+), 502 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 29c563e5..a06a0386 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -431,10 +431,26 @@ struct AddColumnLocationDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_; +PROTOBUF_CONSTEXPR ChangeColumnFulltext::ChangeColumnFulltext( + ::_pbi::ConstantInitialized): _impl_{ + /*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_)*/{}} {} +struct ChangeColumnFulltextDefaultTypeInternal { + PROTOBUF_CONSTEXPR ChangeColumnFulltextDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ChangeColumnFulltextDefaultTypeInternal() {} + union { + ChangeColumnFulltext _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnFulltextDefaultTypeInternal _ChangeColumnFulltext_default_instance_; } // namespace v1 } // namespace greptime -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 ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[28]; +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) = { @@ -558,6 +574,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_), @@ -712,6 +729,16 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _impl_.location_type_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _impl_.after_column_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _impl_.enable_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _impl_.analyzer_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnFulltext, _impl_.case_sensitive_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::DdlRequest)}, @@ -723,24 +750,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)}, - { 121, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 132, 140, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 142, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 152, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 162, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 171, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 178, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 185, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, - { 192, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 199, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 207, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, - { 216, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)}, - { 223, -1, -1, sizeof(::greptime::v1::ChangeTableOption)}, - { 231, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 238, -1, -1, sizeof(::greptime::v1::TableId)}, - { 245, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 252, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 266, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 122, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 133, 141, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 143, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 153, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 163, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 172, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 179, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 186, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, + { 193, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 200, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 208, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, + { 217, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)}, + { 224, -1, -1, sizeof(::greptime::v1::ChangeTableOption)}, + { 232, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 239, -1, -1, sizeof(::greptime::v1::TableId)}, + { 246, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 253, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 267, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 275, -1, -1, sizeof(::greptime::v1::ChangeColumnFulltext)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -771,6 +799,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_FlowId_default_instance_._instance, &::greptime::v1::_ColumnDef_default_instance_._instance, &::greptime::v1::_AddColumnLocation_default_instance_._instance, + &::greptime::v1::_ChangeColumnFulltext_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -820,7 +849,7 @@ 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\"\346\002\n\tAlterE" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\003\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" @@ -829,62 +858,68 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT ".RenameTableH\000\022=\n\023change_column_types\030\007 " "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022\?\n" "\024change_table_options\030\010 \001(\0132\037.greptime.v" - "1.ChangeTableOptionsH\000B\006\n\004kind\"\216\001\n\rDropT" - "ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" - "_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table" - "_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_" - "if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024" - "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" - "\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007optio" - "ns\030\004 \003(\0132,.greptime.v1.CreateDatabaseExp" - "r.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 " - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableE" - "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" - "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004" - " \001(\0132\024.greptime.v1.TableId\"U\n\020DropDataba" - "seExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n" - "ame\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAdd" - "Columns\022+\n\013add_columns\030\001 \003(\0132\026.greptime." - "v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_colu" - "mns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O\n\021Ch" - "angeColumnTypes\022:\n\023change_column_types\030\001" - " \003(\0132\035.greptime.v1.ChangeColumnType\"%\n\013R" - "enameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAd" - "dColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v" - "1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" - ".v1.AddColumnLocation\"\236\001\n\020ChangeColumnTy" - "pe\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_type\030\002" - " \001(\0162\033.greptime.v1.ColumnDataType\022C\n\025tar" - "get_type_extension\030\003 \001(\0132$.greptime.v1.C" - "olumnDataTypeExtension\"R\n\022ChangeTableOpt" - "ions\022<\n\024change_table_options\030\001 \003(\0132\036.gre" - "ptime.v1.ChangeTableOption\"/\n\021ChangeTabl" - "eOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nD" - "ropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id" - "\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnD" - "ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" - "eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" - "\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" - "antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" - "ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" - "on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" - "ension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Co" - "lumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rloc" - "ation_type\030\001 \001(\0162+.greptime.v1.AddColumn" - "Location.LocationType\022\031\n\021after_column_na" - "me\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005A" - "FTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github.co" - "m/GreptimeTeam/greptime-proto/go/greptim" - "e/v1b\006proto3" + "1.ChangeTableOptionsH\000\022C\n\026change_column_" + "fulltext\030\t \001(\0132!.greptime.v1.ChangeColum" + "nFulltextH\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.TableId\022\026\n\016drop_if_exists\030\005" + " \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_n" + "ame\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,." + "greptime.v1.CreateDatabaseExpr.OptionsEn" + "try\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + "e\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014cata" + "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt" + "able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep" + "time.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014c" + "atalog_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\013" + "add_columns\030\001 \003(\0132\026.greptime.v1.AddColum" + "n\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027" + ".greptime.v1.DropColumn\"O\n\021ChangeColumnT" + "ypes\022:\n\023change_column_types\030\001 \003(\0132\035.grep" + "time.v1.ChangeColumnType\"%\n\013RenameTable\022" + "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n" + "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" + "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu" + "mnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013colum" + "n_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.grep" + "time.v1.ColumnDataType\022C\n\025target_type_ex" + "tension\030\003 \001(\0132$.greptime.v1.ColumnDataTy" + "peExtension\"R\n\022ChangeTableOptions\022<\n\024cha" + "nge_table_options\030\001 \003(\0132\036.greptime.v1.Ch" + "angeTableOption\"/\n\021ChangeTableOption\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nDropColumn\022\014" + "\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006F" + "lowId\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.greptime.v1.C" + "olumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022de" + "fault_constraint\030\004 \001(\014\0220\n\rsemantic_type\030" + "\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007comm" + "ent\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$." + "greptime.v1.ColumnDataTypeExtension\022+\n\007o" + "ptions\030\010 \001(\0132\032.greptime.v1.ColumnOptions" + "\"\230\001\n\021AddColumnLocation\022B\n\rlocation_type\030" + "\001 \001(\0162+.greptime.v1.AddColumnLocation.Lo" + "cationType\022\031\n\021after_column_name\030\002 \001(\t\"$\n" + "\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"|\n\024C" + "hangeColumnFulltext\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.gre" + "ptime.v1.Analyzer\022\026\n\016case_sensitive\030\004 \001(" + "\010*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\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, 4052, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 4285, 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, 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, @@ -918,6 +953,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; + } +} + // =================================================================== @@ -4221,6 +4270,7 @@ class AlterExpr::_Internal { static const ::greptime::v1::RenameTable& rename_table(const AlterExpr* msg); static const ::greptime::v1::ChangeColumnTypes& change_column_types(const AlterExpr* msg); static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterExpr* msg); + static const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext(const AlterExpr* msg); }; const ::greptime::v1::AddColumns& @@ -4243,6 +4293,10 @@ const ::greptime::v1::ChangeTableOptions& AlterExpr::_Internal::change_table_options(const AlterExpr* msg) { return *msg->_impl_.kind_.change_table_options_; } +const ::greptime::v1::ChangeColumnFulltext& +AlterExpr::_Internal::change_column_fulltext(const AlterExpr* msg) { + return *msg->_impl_.kind_.change_column_fulltext_; +} void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -4318,6 +4372,21 @@ void AlterExpr::set_allocated_change_table_options(::greptime::v1::ChangeTableOp } // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_table_options) } +void AlterExpr::set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (change_column_fulltext) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_column_fulltext); + if (message_arena != submessage_arena) { + change_column_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_column_fulltext, submessage_arena); + } + set_has_change_column_fulltext(); + _impl_.kind_.change_column_fulltext_ = change_column_fulltext; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_column_fulltext) +} AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -4387,6 +4456,11 @@ AlterExpr::AlterExpr(const AlterExpr& from) from._internal_change_table_options()); break; } + case kChangeColumnFulltext: { + _this->_internal_mutable_change_column_fulltext()->::greptime::v1::ChangeColumnFulltext::MergeFrom( + from._internal_change_column_fulltext()); + break; + } case KIND_NOT_SET: { break; } @@ -4477,6 +4551,12 @@ void AlterExpr::clear_kind() { } break; } + case kChangeColumnFulltext: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_fulltext_; + } + break; + } case KIND_NOT_SET: { break; } @@ -4574,6 +4654,14 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; + // .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_change_column_fulltext(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -4668,6 +4756,13 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::change_table_options(this).GetCachedSize(), target, stream); } + // .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + if (_internal_has_change_column_fulltext()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::change_column_fulltext(this), + _Internal::change_column_fulltext(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); @@ -4741,6 +4836,13 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.change_table_options_); break; } + // .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + case kChangeColumnFulltext: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.change_column_fulltext_); + break; + } case KIND_NOT_SET: { break; } @@ -4798,6 +4900,11 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT from._internal_change_table_options()); break; } + case kChangeColumnFulltext: { + _this->_internal_mutable_change_column_fulltext()->::greptime::v1::ChangeColumnFulltext::MergeFrom( + from._internal_change_column_fulltext()); + break; + } case KIND_NOT_SET: { break; } @@ -9200,6 +9307,296 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const { file_level_metadata_greptime_2fv1_2fddl_2eproto[26]); } +// =================================================================== + +class ChangeColumnFulltext::_Internal { + public: +}; + +ChangeColumnFulltext::ChangeColumnFulltext(::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.ChangeColumnFulltext) +} +ChangeColumnFulltext::ChangeColumnFulltext(const ChangeColumnFulltext& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ChangeColumnFulltext* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , 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_.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()); + } + ::memcpy(&_impl_.analyzer_, &from._impl_.analyzer_, + static_cast(reinterpret_cast(&_impl_.case_sensitive_) - + reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeColumnFulltext) +} + +inline void ChangeColumnFulltext::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + 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 + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ChangeColumnFulltext::~ChangeColumnFulltext() { + // @@protoc_insertion_point(destructor:greptime.v1.ChangeColumnFulltext) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ChangeColumnFulltext::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_name_.Destroy(); +} + +void ChangeColumnFulltext::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ChangeColumnFulltext::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeColumnFulltext) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (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_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ChangeColumnFulltext::_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.ChangeColumnFulltext.column_name")); + } else + goto handle_unusual; + continue; + // bool enable = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.Analyzer analyzer = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_analyzer(static_cast<::greptime::v1::Analyzer>(val)); + } 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; + 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* ChangeColumnFulltext::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeColumnFulltext) + 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.ChangeColumnFulltext.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // bool enable = 2; + if (this->_internal_enable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_enable(), 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; + 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())) { + 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.ChangeColumnFulltext) + return target; +} + +size_t ChangeColumnFulltext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeColumnFulltext) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); + } + + // .greptime.v1.Analyzer analyzer = 3; + if (this->_internal_analyzer() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(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_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeColumnFulltext::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ChangeColumnFulltext::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeColumnFulltext::GetClassData() const { return &_class_data_; } + + +void ChangeColumnFulltext::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.ChangeColumnFulltext) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } + if (from._internal_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()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ChangeColumnFulltext::CopyFrom(const ChangeColumnFulltext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeColumnFulltext) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ChangeColumnFulltext::IsInitialized() const { + return true; +} + +void ChangeColumnFulltext::InternalSwap(ChangeColumnFulltext* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ChangeColumnFulltext, _impl_.case_sensitive_) + + sizeof(ChangeColumnFulltext::_impl_.case_sensitive_) + - PROTOBUF_FIELD_OFFSET(ChangeColumnFulltext, _impl_.analyzer_)>( + reinterpret_cast(&_impl_.analyzer_), + reinterpret_cast(&other->_impl_.analyzer_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnFulltext::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]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace greptime @@ -9312,6 +9709,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage< ::greptime::v1::AddColumnLocation >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::AddColumnLocation >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnFulltext* +Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnFulltext >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnFulltext >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 67b893b2..fb84fafb 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -63,6 +63,9 @@ extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_; class AlterExpr; struct AlterExprDefaultTypeInternal; extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_; +class ChangeColumnFulltext; +struct ChangeColumnFulltextDefaultTypeInternal; +extern ChangeColumnFulltextDefaultTypeInternal _ChangeColumnFulltext_default_instance_; class ChangeColumnType; struct ChangeColumnTypeDefaultTypeInternal; extern ChangeColumnTypeDefaultTypeInternal _ChangeColumnType_default_instance_; @@ -139,6 +142,7 @@ template<> ::greptime::v1::AddColumn* Arena::CreateMaybeMessage<::greptime::v1:: template<> ::greptime::v1::AddColumnLocation* Arena::CreateMaybeMessage<::greptime::v1::AddColumnLocation>(Arena*); template<> ::greptime::v1::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::AddColumns>(Arena*); template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1::AlterExpr>(Arena*); +template<> ::greptime::v1::ChangeColumnFulltext* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnFulltext>(Arena*); template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*); template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*); template<> ::greptime::v1::ChangeTableOption* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOption>(Arena*); @@ -191,6 +195,31 @@ inline bool AddColumnLocation_LocationType_Parse( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( AddColumnLocation_LocationType_descriptor(), name, value); } +enum Analyzer : int { + ENGLISH = 0, + 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 = CHINESE; +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 : @@ -2020,6 +2049,7 @@ class AlterExpr final : kRenameTable = 6, kChangeColumnTypes = 7, kChangeTableOptions = 8, + kChangeColumnFulltext = 9, KIND_NOT_SET = 0, }; @@ -2109,6 +2139,7 @@ class AlterExpr final : kRenameTableFieldNumber = 6, kChangeColumnTypesFieldNumber = 7, kChangeTableOptionsFieldNumber = 8, + kChangeColumnFulltextFieldNumber = 9, }; // string catalog_name = 1; void clear_catalog_name(); @@ -2242,6 +2273,24 @@ class AlterExpr final : ::greptime::v1::ChangeTableOptions* change_table_options); ::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options(); + // .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + bool has_change_column_fulltext() const; + private: + bool _internal_has_change_column_fulltext() const; + public: + void clear_change_column_fulltext(); + const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext() const; + PROTOBUF_NODISCARD ::greptime::v1::ChangeColumnFulltext* release_change_column_fulltext(); + ::greptime::v1::ChangeColumnFulltext* mutable_change_column_fulltext(); + void set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext); + private: + const ::greptime::v1::ChangeColumnFulltext& _internal_change_column_fulltext() const; + ::greptime::v1::ChangeColumnFulltext* _internal_mutable_change_column_fulltext(); + public: + void unsafe_arena_set_allocated_change_column_fulltext( + ::greptime::v1::ChangeColumnFulltext* change_column_fulltext); + ::greptime::v1::ChangeColumnFulltext* unsafe_arena_release_change_column_fulltext(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.AlterExpr) @@ -2252,6 +2301,7 @@ class AlterExpr final : void set_has_rename_table(); void set_has_change_column_types(); void set_has_change_table_options(); + void set_has_change_column_fulltext(); inline bool has_kind() const; inline void clear_has_kind(); @@ -2271,6 +2321,7 @@ class AlterExpr final : ::greptime::v1::RenameTable* rename_table_; ::greptime::v1::ChangeColumnTypes* change_column_types_; ::greptime::v1::ChangeTableOptions* change_table_options_; + ::greptime::v1::ChangeColumnFulltext* change_column_fulltext_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -5326,6 +5377,192 @@ class AddColumnLocation final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; }; +// ------------------------------------------------------------------- + +class ChangeColumnFulltext final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeColumnFulltext) */ { + public: + inline ChangeColumnFulltext() : ChangeColumnFulltext(nullptr) {} + ~ChangeColumnFulltext() override; + explicit PROTOBUF_CONSTEXPR ChangeColumnFulltext(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ChangeColumnFulltext(const ChangeColumnFulltext& from); + ChangeColumnFulltext(ChangeColumnFulltext&& from) noexcept + : ChangeColumnFulltext() { + *this = ::std::move(from); + } + + inline ChangeColumnFulltext& operator=(const ChangeColumnFulltext& from) { + CopyFrom(from); + return *this; + } + inline ChangeColumnFulltext& operator=(ChangeColumnFulltext&& 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 ChangeColumnFulltext& default_instance() { + return *internal_default_instance(); + } + static inline const ChangeColumnFulltext* internal_default_instance() { + return reinterpret_cast( + &_ChangeColumnFulltext_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(ChangeColumnFulltext& a, ChangeColumnFulltext& b) { + a.Swap(&b); + } + inline void Swap(ChangeColumnFulltext* 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(ChangeColumnFulltext* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ChangeColumnFulltext* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ChangeColumnFulltext& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ChangeColumnFulltext& from) { + ChangeColumnFulltext::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(ChangeColumnFulltext* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ChangeColumnFulltext"; + } + protected: + explicit ChangeColumnFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kColumnNameFieldNumber = 1, + kAnalyzerFieldNumber = 3, + kEnableFieldNumber = 2, + kCaseSensitiveFieldNumber = 4, + }; + // string column_name = 1; + void clear_column_name(); + const std::string& column_name() const; + template + void set_column_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_column_name(); + PROTOBUF_NODISCARD std::string* release_column_name(); + void set_allocated_column_name(std::string* column_name); + private: + const std::string& _internal_column_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); + std::string* _internal_mutable_column_name(); + public: + + // .greptime.v1.Analyzer analyzer = 3; + void clear_analyzer(); + ::greptime::v1::Analyzer analyzer() const; + void set_analyzer(::greptime::v1::Analyzer value); + private: + ::greptime::v1::Analyzer _internal_analyzer() const; + void _internal_set_analyzer(::greptime::v1::Analyzer value); + public: + + // bool enable = 2; + 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 = 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: + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnFulltext) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + 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; +}; // =================================================================== @@ -8537,6 +8774,80 @@ inline ::greptime::v1::ChangeTableOptions* AlterExpr::mutable_change_table_optio return _msg; } +// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; +inline bool AlterExpr::_internal_has_change_column_fulltext() const { + return kind_case() == kChangeColumnFulltext; +} +inline bool AlterExpr::has_change_column_fulltext() const { + return _internal_has_change_column_fulltext(); +} +inline void AlterExpr::set_has_change_column_fulltext() { + _impl_._oneof_case_[0] = kChangeColumnFulltext; +} +inline void AlterExpr::clear_change_column_fulltext() { + if (_internal_has_change_column_fulltext()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_fulltext_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::ChangeColumnFulltext* AlterExpr::release_change_column_fulltext() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.change_column_fulltext) + if (_internal_has_change_column_fulltext()) { + clear_has_kind(); + ::greptime::v1::ChangeColumnFulltext* temp = _impl_.kind_.change_column_fulltext_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.change_column_fulltext_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::ChangeColumnFulltext& AlterExpr::_internal_change_column_fulltext() const { + return _internal_has_change_column_fulltext() + ? *_impl_.kind_.change_column_fulltext_ + : reinterpret_cast< ::greptime::v1::ChangeColumnFulltext&>(::greptime::v1::_ChangeColumnFulltext_default_instance_); +} +inline const ::greptime::v1::ChangeColumnFulltext& AlterExpr::change_column_fulltext() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.change_column_fulltext) + return _internal_change_column_fulltext(); +} +inline ::greptime::v1::ChangeColumnFulltext* AlterExpr::unsafe_arena_release_change_column_fulltext() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.change_column_fulltext) + if (_internal_has_change_column_fulltext()) { + clear_has_kind(); + ::greptime::v1::ChangeColumnFulltext* temp = _impl_.kind_.change_column_fulltext_; + _impl_.kind_.change_column_fulltext_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterExpr::unsafe_arena_set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext) { + clear_kind(); + if (change_column_fulltext) { + set_has_change_column_fulltext(); + _impl_.kind_.change_column_fulltext_ = change_column_fulltext; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.change_column_fulltext) +} +inline ::greptime::v1::ChangeColumnFulltext* AlterExpr::_internal_mutable_change_column_fulltext() { + if (!_internal_has_change_column_fulltext()) { + clear_kind(); + set_has_change_column_fulltext(); + _impl_.kind_.change_column_fulltext_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnFulltext >(GetArenaForAllocation()); + } + return _impl_.kind_.change_column_fulltext_; +} +inline ::greptime::v1::ChangeColumnFulltext* AlterExpr::mutable_change_column_fulltext() { + ::greptime::v1::ChangeColumnFulltext* _msg = _internal_mutable_change_column_fulltext(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.change_column_fulltext) + return _msg; +} + inline bool AlterExpr::has_kind() const { return kind_case() != KIND_NOT_SET; } @@ -10570,6 +10881,120 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte // @@protoc_insertion_point(field_set_allocated:greptime.v1.AddColumnLocation.after_column_name) } +// ------------------------------------------------------------------- + +// ChangeColumnFulltext + +// string column_name = 1; +inline void ChangeColumnFulltext::clear_column_name() { + _impl_.column_name_.ClearToEmpty(); +} +inline const std::string& ChangeColumnFulltext::column_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnFulltext.column_name) + return _internal_column_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void ChangeColumnFulltext::set_column_name(ArgT0&& arg0, ArgT... args) { + + _impl_.column_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnFulltext.column_name) +} +inline std::string* ChangeColumnFulltext::mutable_column_name() { + std::string* _s = _internal_mutable_column_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeColumnFulltext.column_name) + return _s; +} +inline const std::string& ChangeColumnFulltext::_internal_column_name() const { + return _impl_.column_name_.Get(); +} +inline void ChangeColumnFulltext::_internal_set_column_name(const std::string& value) { + + _impl_.column_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* ChangeColumnFulltext::_internal_mutable_column_name() { + + return _impl_.column_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* ChangeColumnFulltext::release_column_name() { + // @@protoc_insertion_point(field_release:greptime.v1.ChangeColumnFulltext.column_name) + return _impl_.column_name_.Release(); +} +inline void ChangeColumnFulltext::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.ChangeColumnFulltext.column_name) +} + +// bool enable = 2; +inline void ChangeColumnFulltext::clear_enable() { + _impl_.enable_ = false; +} +inline bool ChangeColumnFulltext::_internal_enable() const { + return _impl_.enable_; +} +inline bool ChangeColumnFulltext::enable() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnFulltext.enable) + return _internal_enable(); +} +inline void ChangeColumnFulltext::_internal_set_enable(bool value) { + + _impl_.enable_ = value; +} +inline void ChangeColumnFulltext::set_enable(bool value) { + _internal_set_enable(value); + // @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnFulltext.enable) +} + +// .greptime.v1.Analyzer analyzer = 3; +inline void ChangeColumnFulltext::clear_analyzer() { + _impl_.analyzer_ = 0; +} +inline ::greptime::v1::Analyzer ChangeColumnFulltext::_internal_analyzer() const { + return static_cast< ::greptime::v1::Analyzer >(_impl_.analyzer_); +} +inline ::greptime::v1::Analyzer ChangeColumnFulltext::analyzer() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnFulltext.analyzer) + return _internal_analyzer(); +} +inline void ChangeColumnFulltext::_internal_set_analyzer(::greptime::v1::Analyzer value) { + + _impl_.analyzer_ = value; +} +inline void ChangeColumnFulltext::set_analyzer(::greptime::v1::Analyzer value) { + _internal_set_analyzer(value); + // @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnFulltext.analyzer) +} + +// bool case_sensitive = 4; +inline void ChangeColumnFulltext::clear_case_sensitive() { + _impl_.case_sensitive_ = false; +} +inline bool ChangeColumnFulltext::_internal_case_sensitive() const { + return _impl_.case_sensitive_; +} +inline bool ChangeColumnFulltext::case_sensitive() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeColumnFulltext.case_sensitive) + return _internal_case_sensitive(); +} +inline void ChangeColumnFulltext::_internal_set_case_sensitive(bool value) { + + _impl_.case_sensitive_ = value; +} +inline void ChangeColumnFulltext::set_case_sensitive(bool value) { + _internal_set_case_sensitive(value); + // @@protoc_insertion_point(field_set:greptime.v1.ChangeColumnFulltext.case_sensitive) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -10625,6 +11050,8 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -10638,6 +11065,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/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index 00c2aa41..b8fa6782 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -623,6 +623,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_ @@ -721,16 +722,16 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 161, -1, -1, sizeof(::greptime::v1::region::CloseRequest)}, { 168, -1, -1, sizeof(::greptime::v1::region::AlterRequests)}, { 175, -1, -1, sizeof(::greptime::v1::region::AlterRequest)}, - { 188, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, - { 195, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, - { 202, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, - { 210, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, - { 217, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, - { 224, -1, -1, sizeof(::greptime::v1::region::Regular)}, - { 230, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, - { 237, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 247, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 254, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 189, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, + { 196, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, + { 203, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, + { 211, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, + { 218, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 225, -1, -1, sizeof(::greptime::v1::region::Regular)}, + { 231, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, + { 238, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 248, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, + { 255, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -827,36 +828,38 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " "\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001" "(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ." - "greptime.v1.region.AlterRequest\"\261\002\n\014Alte" + "greptime.v1.region.AlterRequest\"\366\002\n\014Alte" "rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" "ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" "H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" "egion.DropColumnsH\000\022=\n\023change_column_typ" "es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" "H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept" - "ime.v1.ChangeTableOptionsH\000\022\026\n\016schema_ve" - "rsion\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add" - "_columns\030\001 \003(\0132\035.greptime.v1.region.AddC" - "olumn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003" - "(\0132\036.greptime.v1.region.DropColumn\"v\n\tAd" - "dColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v" - "1.region.RegionColumnDef\0220\n\010location\030\003 \001" - "(\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDr" - "opColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021" - "\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWi" - "ndow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Compact" - "Request\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 " - "\001(\0132\033.greptime.v1.region.RegularH\000\0229\n\rst" - "rict_window\030\003 \001(\0132 .greptime.v1.region.S" - "trictWindowH\000B\t\n\007options\"$\n\017TruncateRequ" - "est\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDe" - "f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu" - "mnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Ha" - "ndle\022!.greptime.v1.region.RegionRequest\032" - "\".greptime.v1.region.RegionResponseB]\n\025i" - "o.greptime.v1.regionB\006ServerZ_impl_.kind_.change_table_options_; } +const ::greptime::v1::ChangeColumnFulltext& +AlterRequest::_Internal::change_column_fulltext(const AlterRequest* msg) { + return *msg->_impl_.kind_.change_column_fulltext_; +} void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -5424,6 +5432,30 @@ void AlterRequest::clear_change_table_options() { clear_has_kind(); } } +void AlterRequest::set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (change_column_fulltext) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_column_fulltext)); + if (message_arena != submessage_arena) { + change_column_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_column_fulltext, submessage_arena); + } + set_has_change_column_fulltext(); + _impl_.kind_.change_column_fulltext_ = change_column_fulltext; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_column_fulltext) +} +void AlterRequest::clear_change_column_fulltext() { + if (_internal_has_change_column_fulltext()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_fulltext_; + } + clear_has_kind(); + } +} AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5466,6 +5498,11 @@ AlterRequest::AlterRequest(const AlterRequest& from) from._internal_change_table_options()); break; } + case kChangeColumnFulltext: { + _this->_internal_mutable_change_column_fulltext()->::greptime::v1::ChangeColumnFulltext::MergeFrom( + from._internal_change_column_fulltext()); + break; + } case KIND_NOT_SET: { break; } @@ -5534,6 +5571,12 @@ void AlterRequest::clear_kind() { } break; } + case kChangeColumnFulltext: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.change_column_fulltext_; + } + break; + } case KIND_NOT_SET: { break; } @@ -5609,6 +5652,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_change_column_fulltext(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5678,6 +5729,13 @@ uint8_t* AlterRequest::_InternalSerialize( _Internal::change_table_options(this).GetCachedSize(), target, stream); } + // .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7; + if (_internal_has_change_column_fulltext()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::change_column_fulltext(this), + _Internal::change_column_fulltext(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); @@ -5733,6 +5791,13 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.change_table_options_); break; } + // .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7; + case kChangeColumnFulltext: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.change_column_fulltext_); + break; + } case KIND_NOT_SET: { break; } @@ -5782,6 +5847,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P from._internal_change_table_options()); break; } + case kChangeColumnFulltext: { + _this->_internal_mutable_change_column_fulltext()->::greptime::v1::ChangeColumnFulltext::MergeFrom( + from._internal_change_column_fulltext()); + break; + } case KIND_NOT_SET: { break; } diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index e92fc67e..deb883e6 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -3252,6 +3252,7 @@ class AlterRequest final : kDropColumns = 3, kChangeColumnTypes = 5, kChangeTableOptions = 6, + kChangeColumnFulltext = 7, KIND_NOT_SET = 0, }; @@ -3339,6 +3340,7 @@ class AlterRequest final : kDropColumnsFieldNumber = 3, kChangeColumnTypesFieldNumber = 5, kChangeTableOptionsFieldNumber = 6, + kChangeColumnFulltextFieldNumber = 7, }; // uint64 region_id = 1; void clear_region_id(); @@ -3430,6 +3432,24 @@ class AlterRequest final : ::greptime::v1::ChangeTableOptions* change_table_options); ::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options(); + // .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7; + bool has_change_column_fulltext() const; + private: + bool _internal_has_change_column_fulltext() const; + public: + void clear_change_column_fulltext(); + const ::greptime::v1::ChangeColumnFulltext& change_column_fulltext() const; + PROTOBUF_NODISCARD ::greptime::v1::ChangeColumnFulltext* release_change_column_fulltext(); + ::greptime::v1::ChangeColumnFulltext* mutable_change_column_fulltext(); + void set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext); + private: + const ::greptime::v1::ChangeColumnFulltext& _internal_change_column_fulltext() const; + ::greptime::v1::ChangeColumnFulltext* _internal_mutable_change_column_fulltext(); + public: + void unsafe_arena_set_allocated_change_column_fulltext( + ::greptime::v1::ChangeColumnFulltext* change_column_fulltext); + ::greptime::v1::ChangeColumnFulltext* unsafe_arena_release_change_column_fulltext(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) @@ -3439,6 +3459,7 @@ class AlterRequest final : void set_has_drop_columns(); void set_has_change_column_types(); void set_has_change_table_options(); + void set_has_change_column_fulltext(); inline bool has_kind() const; inline void clear_has_kind(); @@ -3456,6 +3477,7 @@ class AlterRequest final : ::greptime::v1::region::DropColumns* drop_columns_; ::greptime::v1::ChangeColumnTypes* change_column_types_; ::greptime::v1::ChangeTableOptions* change_table_options_; + ::greptime::v1::ChangeColumnFulltext* change_column_fulltext_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -7778,6 +7800,72 @@ inline ::greptime::v1::ChangeTableOptions* AlterRequest::mutable_change_table_op return _msg; } +// .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7; +inline bool AlterRequest::_internal_has_change_column_fulltext() const { + return kind_case() == kChangeColumnFulltext; +} +inline bool AlterRequest::has_change_column_fulltext() const { + return _internal_has_change_column_fulltext(); +} +inline void AlterRequest::set_has_change_column_fulltext() { + _impl_._oneof_case_[0] = kChangeColumnFulltext; +} +inline ::greptime::v1::ChangeColumnFulltext* AlterRequest::release_change_column_fulltext() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_column_fulltext) + if (_internal_has_change_column_fulltext()) { + clear_has_kind(); + ::greptime::v1::ChangeColumnFulltext* temp = _impl_.kind_.change_column_fulltext_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.change_column_fulltext_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::ChangeColumnFulltext& AlterRequest::_internal_change_column_fulltext() const { + return _internal_has_change_column_fulltext() + ? *_impl_.kind_.change_column_fulltext_ + : reinterpret_cast< ::greptime::v1::ChangeColumnFulltext&>(::greptime::v1::_ChangeColumnFulltext_default_instance_); +} +inline const ::greptime::v1::ChangeColumnFulltext& AlterRequest::change_column_fulltext() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_column_fulltext) + return _internal_change_column_fulltext(); +} +inline ::greptime::v1::ChangeColumnFulltext* AlterRequest::unsafe_arena_release_change_column_fulltext() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_column_fulltext) + if (_internal_has_change_column_fulltext()) { + clear_has_kind(); + ::greptime::v1::ChangeColumnFulltext* temp = _impl_.kind_.change_column_fulltext_; + _impl_.kind_.change_column_fulltext_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterRequest::unsafe_arena_set_allocated_change_column_fulltext(::greptime::v1::ChangeColumnFulltext* change_column_fulltext) { + clear_kind(); + if (change_column_fulltext) { + set_has_change_column_fulltext(); + _impl_.kind_.change_column_fulltext_ = change_column_fulltext; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_column_fulltext) +} +inline ::greptime::v1::ChangeColumnFulltext* AlterRequest::_internal_mutable_change_column_fulltext() { + if (!_internal_has_change_column_fulltext()) { + clear_kind(); + set_has_change_column_fulltext(); + _impl_.kind_.change_column_fulltext_ = CreateMaybeMessage< ::greptime::v1::ChangeColumnFulltext >(GetArenaForAllocation()); + } + return _impl_.kind_.change_column_fulltext_; +} +inline ::greptime::v1::ChangeColumnFulltext* AlterRequest::mutable_change_column_fulltext() { + ::greptime::v1::ChangeColumnFulltext* _msg = _internal_mutable_change_column_fulltext(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_column_fulltext) + return _msg; +} + // uint64 schema_version = 4; inline void AlterRequest::clear_schema_version() { _impl_.schema_version_ = uint64_t{0u}; diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 49696c72..17a18c24 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_CHINESE Analyzer = 1 +) + +// Enum value maps for Analyzer. +var ( + Analyzer_name = map[int32]string{ + 0: "ENGLISH", + 1: "CHINESE", + } + Analyzer_value = map[string]int32{ + "ENGLISH": 0, + "CHINESE": 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 { @@ -798,6 +844,7 @@ type AlterExpr struct { // *AlterExpr_RenameTable // *AlterExpr_ChangeColumnTypes // *AlterExpr_ChangeTableOptions + // *AlterExpr_ChangeColumnFulltext Kind isAlterExpr_Kind `protobuf_oneof:"kind"` } @@ -896,6 +943,13 @@ func (x *AlterExpr) GetChangeTableOptions() *ChangeTableOptions { return nil } +func (x *AlterExpr) GetChangeColumnFulltext() *ChangeColumnFulltext { + if x, ok := x.GetKind().(*AlterExpr_ChangeColumnFulltext); ok { + return x.ChangeColumnFulltext + } + return nil +} + type isAlterExpr_Kind interface { isAlterExpr_Kind() } @@ -920,6 +974,10 @@ type AlterExpr_ChangeTableOptions struct { ChangeTableOptions *ChangeTableOptions `protobuf:"bytes,8,opt,name=change_table_options,json=changeTableOptions,proto3,oneof"` } +type AlterExpr_ChangeColumnFulltext struct { + ChangeColumnFulltext *ChangeColumnFulltext `protobuf:"bytes,9,opt,name=change_column_fulltext,json=changeColumnFulltext,proto3,oneof"` +} + func (*AlterExpr_AddColumns) isAlterExpr_Kind() {} func (*AlterExpr_DropColumns) isAlterExpr_Kind() {} @@ -930,6 +988,8 @@ func (*AlterExpr_ChangeColumnTypes) isAlterExpr_Kind() {} func (*AlterExpr_ChangeTableOptions) isAlterExpr_Kind() {} +func (*AlterExpr_ChangeColumnFulltext) isAlterExpr_Kind() {} + type DropTableExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1923,6 +1983,77 @@ func (x *AddColumnLocation) GetAfterColumnName() string { return "" } +type ChangeColumnFulltext 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"` + 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 *ChangeColumnFulltext) Reset() { + *x = ChangeColumnFulltext{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ChangeColumnFulltext) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ChangeColumnFulltext) ProtoMessage() {} + +func (x *ChangeColumnFulltext) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[24] + 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 ChangeColumnFulltext.ProtoReflect.Descriptor instead. +func (*ChangeColumnFulltext) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{24} +} + +func (x *ChangeColumnFulltext) GetColumnName() string { + if x != nil { + return x.ColumnName + } + return "" +} + +func (x *ChangeColumnFulltext) GetEnable() bool { + if x != nil { + return x.Enable + } + return false +} + +func (x *ChangeColumnFulltext) GetAnalyzer() Analyzer { + if x != nil { + return x.Analyzer + } + return Analyzer_ENGLISH +} + +func (x *ChangeColumnFulltext) 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{ @@ -2081,7 +2212,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, 0xd7, 0x03, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x22, 0xb2, 0x04, 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, @@ -2110,153 +2241,172 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44, - 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, - 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, - 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, - 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, - 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, - 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, - 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, - 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, - 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, - 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, - 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, - 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, - 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, - 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, - 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, - 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, - 0x22, 0x62, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, - 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, - 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, - 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, - 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, - 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, - 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x66, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, - 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0x3b, 0x0a, 0x11, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x20, 0x0a, 0x0a, - 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, - 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, - 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, - 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, - 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, - 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, - 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, - 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, - 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, - 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, - 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, - 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, - 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, - 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, - 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, - 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x09, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x21, 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, 0x46, 0x75, 0x6c, + 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 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, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, + 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, + 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, + 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x11, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, + 0x12, 0x4d, 0x0a, 0x13, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x63, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, + 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, + 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, + 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, + 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, + 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x22, 0x66, 0x0a, 0x12, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, 0x14, 0x63, 0x68, 0x61, 0x6e, + 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3b, 0x0a, 0x11, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, + 0x52, 0x02, 0x69, 0x64, 0x22, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, + 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, + 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, + 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, + 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, + 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, + 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, + 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, + 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, + 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, + 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x22, 0xa9, 0x01, 0x0a, 0x14, 0x43, 0x68, + 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 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, 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, 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 ( @@ -2271,90 +2421,94 @@ 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_msgTypes = make([]protoimpl.MessageInfo, 27) +var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +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 - (*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 - (*RenameTable)(nil), // 15: greptime.v1.RenameTable - (*AddColumn)(nil), // 16: greptime.v1.AddColumn - (*ChangeColumnType)(nil), // 17: greptime.v1.ChangeColumnType - (*ChangeTableOptions)(nil), // 18: greptime.v1.ChangeTableOptions - (*ChangeTableOption)(nil), // 19: greptime.v1.ChangeTableOption - (*DropColumn)(nil), // 20: greptime.v1.DropColumn - (*TableId)(nil), // 21: greptime.v1.TableId - (*FlowId)(nil), // 22: greptime.v1.FlowId - (*ColumnDef)(nil), // 23: greptime.v1.ColumnDef - (*AddColumnLocation)(nil), // 24: greptime.v1.AddColumnLocation - nil, // 25: greptime.v1.CreateFlowExpr.FlowOptionsEntry - nil, // 26: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 27: greptime.v1.CreateDatabaseExpr.OptionsEntry - (*TableName)(nil), // 28: greptime.v1.TableName - (*ExpireAfter)(nil), // 29: greptime.v1.ExpireAfter - (ColumnDataType)(0), // 30: greptime.v1.ColumnDataType - (*ColumnDataTypeExtension)(nil), // 31: greptime.v1.ColumnDataTypeExtension - (SemanticType)(0), // 32: greptime.v1.SemanticType - (*ColumnOptions)(nil), // 33: greptime.v1.ColumnOptions + (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 + (*RenameTable)(nil), // 16: greptime.v1.RenameTable + (*AddColumn)(nil), // 17: greptime.v1.AddColumn + (*ChangeColumnType)(nil), // 18: greptime.v1.ChangeColumnType + (*ChangeTableOptions)(nil), // 19: greptime.v1.ChangeTableOptions + (*ChangeTableOption)(nil), // 20: greptime.v1.ChangeTableOption + (*DropColumn)(nil), // 21: greptime.v1.DropColumn + (*TableId)(nil), // 22: greptime.v1.TableId + (*FlowId)(nil), // 23: greptime.v1.FlowId + (*ColumnDef)(nil), // 24: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 25: greptime.v1.AddColumnLocation + (*ChangeColumnFulltext)(nil), // 26: greptime.v1.ChangeColumnFulltext + nil, // 27: greptime.v1.CreateFlowExpr.FlowOptionsEntry + nil, // 28: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 29: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*TableName)(nil), // 30: greptime.v1.TableName + (*ExpireAfter)(nil), // 31: greptime.v1.ExpireAfter + (ColumnDataType)(0), // 32: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 33: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 34: greptime.v1.SemanticType + (*ColumnOptions)(nil), // 35: 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 - 28, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName - 28, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName - 29, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter - 25, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry - 22, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId - 28, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName - 21, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId - 23, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 26, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 21, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId - 12, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns - 13, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns - 15, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable - 14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes - 18, // 23: greptime.v1.AlterExpr.change_table_options:type_name -> greptime.v1.ChangeTableOptions - 21, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 27, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 21, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 16, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 20, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 17, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType - 23, // 30: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 24, // 31: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 30, // 32: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 31, // 33: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 19, // 34: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.ChangeTableOption - 30, // 35: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 32, // 36: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 31, // 37: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 33, // 38: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions - 0, // 39: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 40, // [40:40] is the sub-list for method output_type - 40, // [40:40] is the sub-list for method input_type - 40, // [40:40] is the sub-list for extension type_name - 40, // [40:40] is the sub-list for extension extendee - 0, // [0:40] is the sub-list for field type_name + 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 + 30, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName + 30, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName + 31, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter + 27, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry + 23, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId + 30, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName + 22, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId + 24, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 28, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 22, // 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 + 16, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable + 15, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes + 19, // 23: greptime.v1.AlterExpr.change_table_options:type_name -> greptime.v1.ChangeTableOptions + 26, // 24: greptime.v1.AlterExpr.change_column_fulltext:type_name -> greptime.v1.ChangeColumnFulltext + 22, // 25: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 29, // 26: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 22, // 27: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 17, // 28: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 21, // 29: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 18, // 30: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType + 24, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 25, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 32, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 33, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 20, // 35: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.ChangeTableOption + 32, // 36: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 34, // 37: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 33, // 38: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 35, // 39: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 1, // 40: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 0, // 41: greptime.v1.ChangeColumnFulltext.analyzer:type_name -> greptime.v1.Analyzer + 42, // [42:42] is the sub-list for method output_type + 42, // [42:42] is the sub-list for method input_type + 42, // [42:42] is the sub-list for extension type_name + 42, // [42:42] is the sub-list for extension extendee + 0, // [0:42] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -2652,6 +2806,18 @@ func file_greptime_v1_ddl_proto_init() { return nil } } + file_greptime_v1_ddl_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ChangeColumnFulltext); 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), @@ -2670,14 +2836,15 @@ func file_greptime_v1_ddl_proto_init() { (*AlterExpr_RenameTable)(nil), (*AlterExpr_ChangeColumnTypes)(nil), (*AlterExpr_ChangeTableOptions)(nil), + (*AlterExpr_ChangeColumnFulltext)(nil), } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, - NumEnums: 1, - NumMessages: 27, + NumEnums: 2, + 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 7b685ea2..5269888c 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), + /** + * CHINESE = 1; + */ + CHINESE(1), + UNRECOGNIZED(-1), + ; + + /** + * ENGLISH = 0; + */ + public static final int ENGLISH_VALUE = 0; + /** + * CHINESE = 1; + */ + public static final int CHINESE_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 CHINESE; + 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 { @@ -11752,6 +11860,21 @@ public interface AlterExprOrBuilder extends */ io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder(); + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + * @return Whether the changeColumnFulltext field is set. + */ + boolean hasChangeColumnFulltext(); + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + * @return The changeColumnFulltext. + */ + io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext(); + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder(); + public io.greptime.v1.Ddl.AlterExpr.KindCase getKindCase(); } /** @@ -11890,6 +12013,20 @@ private AlterExpr( kindCase_ = 8; break; } + case 74: { + io.greptime.v1.Ddl.ChangeColumnFulltext.Builder subBuilder = null; + if (kindCase_ == 9) { + subBuilder = ((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.Ddl.ChangeColumnFulltext.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 9; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -11934,6 +12071,7 @@ public enum KindCase RENAME_TABLE(6), CHANGE_COLUMN_TYPES(7), CHANGE_TABLE_OPTIONS(8), + CHANGE_COLUMN_FULLTEXT(9), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -11956,6 +12094,7 @@ public static KindCase forNumber(int value) { case 6: return RENAME_TABLE; case 7: return CHANGE_COLUMN_TYPES; case 8: return CHANGE_TABLE_OPTIONS; + case 9: return CHANGE_COLUMN_FULLTEXT; case 0: return KIND_NOT_SET; default: return null; } @@ -12240,6 +12379,37 @@ public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBui return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); } + public static final int CHANGE_COLUMN_FULLTEXT_FIELD_NUMBER = 9; + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + * @return Whether the changeColumnFulltext field is set. + */ + @java.lang.Override + public boolean hasChangeColumnFulltext() { + return kindCase_ == 9; + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + * @return The changeColumnFulltext. + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext() { + if (kindCase_ == 9) { + return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_; + } + return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance(); + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder() { + if (kindCase_ == 9) { + return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_; + } + return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -12278,6 +12448,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (kindCase_ == 8) { output.writeMessage(8, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); } + if (kindCase_ == 9) { + output.writeMessage(9, (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_); + } unknownFields.writeTo(output); } @@ -12316,6 +12489,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); } + if (kindCase_ == 9) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(9, (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -12359,6 +12536,10 @@ public boolean equals(final java.lang.Object obj) { if (!getChangeTableOptions() .equals(other.getChangeTableOptions())) return false; break; + case 9: + if (!getChangeColumnFulltext() + .equals(other.getChangeColumnFulltext())) return false; + break; case 0: default: } @@ -12400,6 +12581,10 @@ public int hashCode() { hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getChangeTableOptions().hashCode(); break; + case 9: + hash = (37 * hash) + CHANGE_COLUMN_FULLTEXT_FIELD_NUMBER; + hash = (53 * hash) + getChangeColumnFulltext().hashCode(); + break; case 0: default: } @@ -12608,6 +12793,13 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { result.kind_ = changeTableOptionsBuilder_.build(); } } + if (kindCase_ == 9) { + if (changeColumnFulltextBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = changeColumnFulltextBuilder_.build(); + } + } result.kindCase_ = kindCase_; onBuilt(); return result; @@ -12690,6 +12882,10 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterExpr other) { mergeChangeTableOptions(other.getChangeTableOptions()); break; } + case CHANGE_COLUMN_FULLTEXT: { + mergeChangeColumnFulltext(other.getChangeColumnFulltext()); + break; + } case KIND_NOT_SET: { break; } @@ -13675,6 +13871,148 @@ public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBui onChanged();; return changeTableOptionsBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder> changeColumnFulltextBuilder_; + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + * @return Whether the changeColumnFulltext field is set. + */ + @java.lang.Override + public boolean hasChangeColumnFulltext() { + return kindCase_ == 9; + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + * @return The changeColumnFulltext. + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext() { + if (changeColumnFulltextBuilder_ == null) { + if (kindCase_ == 9) { + return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_; + } + return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance(); + } else { + if (kindCase_ == 9) { + return changeColumnFulltextBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance(); + } + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + public Builder setChangeColumnFulltext(io.greptime.v1.Ddl.ChangeColumnFulltext value) { + if (changeColumnFulltextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + changeColumnFulltextBuilder_.setMessage(value); + } + kindCase_ = 9; + return this; + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + public Builder setChangeColumnFulltext( + io.greptime.v1.Ddl.ChangeColumnFulltext.Builder builderForValue) { + if (changeColumnFulltextBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + changeColumnFulltextBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 9; + return this; + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + public Builder mergeChangeColumnFulltext(io.greptime.v1.Ddl.ChangeColumnFulltext value) { + if (changeColumnFulltextBuilder_ == null) { + if (kindCase_ == 9 && + kind_ != io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.ChangeColumnFulltext.newBuilder((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 9) { + changeColumnFulltextBuilder_.mergeFrom(value); + } else { + changeColumnFulltextBuilder_.setMessage(value); + } + } + kindCase_ = 9; + return this; + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + public Builder clearChangeColumnFulltext() { + if (changeColumnFulltextBuilder_ == null) { + if (kindCase_ == 9) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 9) { + kindCase_ = 0; + kind_ = null; + } + changeColumnFulltextBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + public io.greptime.v1.Ddl.ChangeColumnFulltext.Builder getChangeColumnFulltextBuilder() { + return getChangeColumnFulltextFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder() { + if ((kindCase_ == 9) && (changeColumnFulltextBuilder_ != null)) { + return changeColumnFulltextBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 9) { + return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_; + } + return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance(); + } + } + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 9; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder> + getChangeColumnFulltextFieldBuilder() { + if (changeColumnFulltextBuilder_ == null) { + if (!(kindCase_ == 9)) { + kind_ = io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance(); + } + changeColumnFulltextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder>( + (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 9; + onChanged();; + return changeColumnFulltextBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -27968,96 +28306,915 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DdlRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DdlRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateFlowExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateFlowExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateFlowExpr_FlowOptionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateFlowExpr_FlowOptionsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropFlowExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropFlowExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateViewExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateViewExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropViewExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropViewExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateTableExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateTableExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AlterExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AlterExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropTableExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropTableExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateDatabaseExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_TruncateTableExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropDatabaseExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AddColumns_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AddColumns_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropColumns_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropColumns_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_ChangeColumnTypes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_RenameTable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_RenameTable_fieldAccessorTable; + public interface ChangeColumnFulltextOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeColumnFulltext) + 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(); + + /** + * bool enable = 2; + * @return The enable. + */ + boolean getEnable(); + + /** + * .greptime.v1.Analyzer analyzer = 3; + * @return The enum numeric value on the wire for analyzer. + */ + int getAnalyzerValue(); + /** + * .greptime.v1.Analyzer analyzer = 3; + * @return The analyzer. + */ + io.greptime.v1.Ddl.Analyzer getAnalyzer(); + + /** + * bool case_sensitive = 4; + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * Protobuf type {@code greptime.v1.ChangeColumnFulltext} + */ + public static final class ChangeColumnFulltext extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.ChangeColumnFulltext) + ChangeColumnFulltextOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeColumnFulltext.newBuilder() to construct. + private ChangeColumnFulltext(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ChangeColumnFulltext() { + columnName_ = ""; + analyzer_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ChangeColumnFulltext(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ChangeColumnFulltext( + 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: { + + enable_ = input.readBool(); + break; + } + case 24: { + int rawValue = input.readEnum(); + + analyzer_ = rawValue; + break; + } + case 32: { + + 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_ChangeColumnFulltext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnFulltext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.ChangeColumnFulltext.class, io.greptime.v1.Ddl.ChangeColumnFulltext.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 ENABLE_FIELD_NUMBER = 2; + private boolean enable_; + /** + * bool enable = 2; + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; + } + + public static final int ANALYZER_FIELD_NUMBER = 3; + private int analyzer_; + /** + * .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; + * @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; + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 4; + private boolean caseSensitive_; + /** + * bool case_sensitive = 4; + * @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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); + } + if (enable_ != false) { + output.writeBool(2, enable_); + } + if (analyzer_ != io.greptime.v1.Ddl.Analyzer.ENGLISH.getNumber()) { + output.writeEnum(3, analyzer_); + } + if (caseSensitive_ != false) { + output.writeBool(4, caseSensitive_); + } + 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 (enable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, enable_); + } + 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 + .computeBoolSize(4, 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.ChangeColumnFulltext)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.ChangeColumnFulltext other = (io.greptime.v1.Ddl.ChangeColumnFulltext) 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 (!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) + 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()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.ChangeColumnFulltext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeColumnFulltext 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.ChangeColumnFulltext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeColumnFulltext 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.ChangeColumnFulltext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeColumnFulltext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.ChangeColumnFulltext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeColumnFulltext 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.ChangeColumnFulltext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeColumnFulltext 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.ChangeColumnFulltext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeColumnFulltext 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.ChangeColumnFulltext 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.ChangeColumnFulltext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeColumnFulltext) + io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnFulltext_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnFulltext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.ChangeColumnFulltext.class, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.ChangeColumnFulltext.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_ = ""; + + enable_ = false; + + analyzer_ = 0; + + caseSensitive_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeColumnFulltext_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnFulltext build() { + io.greptime.v1.Ddl.ChangeColumnFulltext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeColumnFulltext buildPartial() { + io.greptime.v1.Ddl.ChangeColumnFulltext result = new io.greptime.v1.Ddl.ChangeColumnFulltext(this); + result.columnName_ = columnName_; + 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.ChangeColumnFulltext) { + return mergeFrom((io.greptime.v1.Ddl.ChangeColumnFulltext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.ChangeColumnFulltext other) { + if (other == io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); + } + if (other.getEnable() != false) { + setEnable(other.getEnable()); + } + if (other.analyzer_ != 0) { + setAnalyzerValue(other.getAnalyzerValue()); + } + 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.ChangeColumnFulltext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.ChangeColumnFulltext) 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 boolean enable_ ; + /** + * bool enable = 2; + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; + } + /** + * bool enable = 2; + * @param value The enable to set. + * @return This builder for chaining. + */ + public Builder setEnable(boolean value) { + + enable_ = value; + onChanged(); + return this; + } + /** + * bool enable = 2; + * @return This builder for chaining. + */ + public Builder clearEnable() { + + enable_ = false; + onChanged(); + return this; + } + + private int analyzer_ = 0; + /** + * .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; + * @param value The enum numeric value on the wire for analyzer to set. + * @return This builder for chaining. + */ + public Builder setAnalyzerValue(int value) { + + analyzer_ = value; + onChanged(); + return this; + } + /** + * .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 setAnalyzer(io.greptime.v1.Ddl.Analyzer value) { + if (value == null) { + throw new NullPointerException(); + } + + analyzer_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.Analyzer analyzer = 3; + * @return This builder for chaining. + */ + public Builder clearAnalyzer() { + + analyzer_ = 0; + onChanged(); + return this; + } + + private boolean caseSensitive_ ; + /** + * bool case_sensitive = 4; + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + /** + * bool case_sensitive = 4; + * @param value The caseSensitive to set. + * @return This builder for chaining. + */ + 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( + 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.ChangeColumnFulltext) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeColumnFulltext) + private static final io.greptime.v1.Ddl.ChangeColumnFulltext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeColumnFulltext(); + } + + public static io.greptime.v1.Ddl.ChangeColumnFulltext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeColumnFulltext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeColumnFulltext(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.ChangeColumnFulltext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DdlRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DdlRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateFlowExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateFlowExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateFlowExpr_FlowOptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateFlowExpr_FlowOptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropFlowExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropFlowExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateViewExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateViewExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropViewExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropViewExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateTableExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateTableExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AlterExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AlterExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropTableExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropTableExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateDatabaseExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_TruncateTableExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropDatabaseExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AddColumns_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AddColumns_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropColumns_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropColumns_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ChangeColumnTypes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ChangeColumnTypes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_RenameTable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_RenameTable_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_AddColumn_descriptor; private static final @@ -28103,6 +29260,11 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ChangeColumnFulltext_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ChangeColumnFulltext_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -28158,7 +29320,7 @@ 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\"\346\002\n\tAlterE" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\253\003\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" + @@ -28167,53 +29329,59 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { ".RenameTableH\000\022=\n\023change_column_types\030\007 " + "\001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022?\n" + "\024change_table_options\030\010 \001(\0132\037.greptime.v" + - "1.ChangeTableOptionsH\000B\006\n\004kind\"\216\001\n\rDropT" + - "ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" + - "_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table" + - "_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_" + - "if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024" + - "\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(" + - "\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007optio" + - "ns\030\004 \003(\0132,.greptime.v1.CreateDatabaseExp" + - "r.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 " + - "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableE" + - "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" + - "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004" + - " \001(\0132\024.greptime.v1.TableId\"U\n\020DropDataba" + - "seExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n" + - "ame\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAdd" + - "Columns\022+\n\013add_columns\030\001 \003(\0132\026.greptime." + - "v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_colu" + - "mns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O\n\021Ch" + - "angeColumnTypes\022:\n\023change_column_types\030\001" + - " \003(\0132\035.greptime.v1.ChangeColumnType\"%\n\013R" + - "enameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAd" + - "dColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v" + - "1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" + - ".v1.AddColumnLocation\"\236\001\n\020ChangeColumnTy" + - "pe\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_type\030\002" + - " \001(\0162\033.greptime.v1.ColumnDataType\022C\n\025tar" + - "get_type_extension\030\003 \001(\0132$.greptime.v1.C" + - "olumnDataTypeExtension\"R\n\022ChangeTableOpt" + - "ions\022<\n\024change_table_options\030\001 \003(\0132\036.gre" + - "ptime.v1.ChangeTableOption\"/\n\021ChangeTabl" + - "eOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nD" + - "ropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id" + - "\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnD" + - "ef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.gr" + - "eptime.v1.ColumnDataType\022\023\n\013is_nullable\030" + - "\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsem" + - "antic_type\030\005 \001(\0162\031.greptime.v1.SemanticT" + - "ype\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extensi" + - "on\030\007 \001(\0132$.greptime.v1.ColumnDataTypeExt" + - "ension\022+\n\007options\030\010 \001(\0132\032.greptime.v1.Co" + - "lumnOptions\"\230\001\n\021AddColumnLocation\022B\n\rloc" + - "ation_type\030\001 \001(\0162+.greptime.v1.AddColumn" + - "Location.LocationType\022\031\n\021after_column_na" + - "me\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005A" + - "FTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github.co" + - "m/GreptimeTeam/greptime-proto/go/greptim" + - "e/v1b\006proto3" + "1.ChangeTableOptionsH\000\022C\n\026change_column_" + + "fulltext\030\t \001(\0132!.greptime.v1.ChangeColum" + + "nFulltextH\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.TableId\022\026\n\016drop_if_exists\030\005" + + " \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_n" + + "ame\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,." + + "greptime.v1.CreateDatabaseExpr.OptionsEn" + + "try\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005valu" + + "e\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014cata" + + "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt" + + "able_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grep" + + "time.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014c" + + "atalog_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\013" + + "add_columns\030\001 \003(\0132\026.greptime.v1.AddColum" + + "n\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027" + + ".greptime.v1.DropColumn\"O\n\021ChangeColumnT" + + "ypes\022:\n\023change_column_types\030\001 \003(\0132\035.grep" + + "time.v1.ChangeColumnType\"%\n\013RenameTable\022" + + "\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\n" + + "column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" + + "\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddColu" + + "mnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013colum" + + "n_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.grep" + + "time.v1.ColumnDataType\022C\n\025target_type_ex" + + "tension\030\003 \001(\0132$.greptime.v1.ColumnDataTy" + + "peExtension\"R\n\022ChangeTableOptions\022<\n\024cha" + + "nge_table_options\030\001 \003(\0132\036.greptime.v1.Ch" + + "angeTableOption\"/\n\021ChangeTableOption\022\013\n\003" + + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"\032\n\nDropColumn\022\014" + + "\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006F" + + "lowId\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.greptime.v1.C" + + "olumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022de" + + "fault_constraint\030\004 \001(\014\0220\n\rsemantic_type\030" + + "\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007comm" + + "ent\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$." + + "greptime.v1.ColumnDataTypeExtension\022+\n\007o" + + "ptions\030\010 \001(\0132\032.greptime.v1.ColumnOptions" + + "\"\230\001\n\021AddColumnLocation\022B\n\rlocation_type\030" + + "\001 \001(\0162+.greptime.v1.AddColumnLocation.Lo" + + "cationType\022\031\n\021after_column_name\030\002 \001(\t\"$\n" + + "\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"|\n\024C" + + "hangeColumnFulltext\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.gre" + + "ptime.v1.Analyzer\022\026\n\016case_sensitive\030\004 \001(" + + "\010*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\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, @@ -28273,7 +29441,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", "ChangeTableOptions", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ChangeColumnTypes", "ChangeTableOptions", "ChangeColumnFulltext", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -28382,6 +29550,12 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumnLocation_descriptor, new java.lang.String[] { "LocationType", "AfterColumnName", }); + internal_static_greptime_v1_ChangeColumnFulltext_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_greptime_v1_ChangeColumnFulltext_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ChangeColumnFulltext_descriptor, + new java.lang.String[] { "ColumnName", "Enable", "Analyzer", "CaseSensitive", }); io.greptime.v1.Common.getDescriptor(); } 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 52a2b24d..78cd7802 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -16448,6 +16448,21 @@ public interface AlterRequestOrBuilder extends */ io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder(); + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7; + * @return Whether the changeColumnFulltext field is set. + */ + boolean hasChangeColumnFulltext(); + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7; + * @return The changeColumnFulltext. + */ + io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext(); + /** + * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7; + */ + io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder(); + /** *
      * The version of the schema before applying the alteration.
@@ -16571,6 +16586,20 @@ private AlterRequest(
               kindCase_ = 6;
               break;
             }
+            case 58: {
+              io.greptime.v1.Ddl.ChangeColumnFulltext.Builder subBuilder = null;
+              if (kindCase_ == 7) {
+                subBuilder = ((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_).toBuilder();
+              }
+              kind_ =
+                  input.readMessage(io.greptime.v1.Ddl.ChangeColumnFulltext.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_);
+                kind_ = subBuilder.buildPartial();
+              }
+              kindCase_ = 7;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -16614,6 +16643,7 @@ public enum KindCase
       DROP_COLUMNS(3),
       CHANGE_COLUMN_TYPES(5),
       CHANGE_TABLE_OPTIONS(6),
+      CHANGE_COLUMN_FULLTEXT(7),
       KIND_NOT_SET(0);
       private final int value;
       private KindCase(int value) {
@@ -16635,6 +16665,7 @@ public static KindCase forNumber(int value) {
           case 3: return DROP_COLUMNS;
           case 5: return CHANGE_COLUMN_TYPES;
           case 6: return CHANGE_TABLE_OPTIONS;
+          case 7: return CHANGE_COLUMN_FULLTEXT;
           case 0: return KIND_NOT_SET;
           default: return null;
         }
@@ -16785,6 +16816,37 @@ public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBui
       return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
     }
 
+    public static final int CHANGE_COLUMN_FULLTEXT_FIELD_NUMBER = 7;
+    /**
+     * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+     * @return Whether the changeColumnFulltext field is set.
+     */
+    @java.lang.Override
+    public boolean hasChangeColumnFulltext() {
+      return kindCase_ == 7;
+    }
+    /**
+     * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+     * @return The changeColumnFulltext.
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext() {
+      if (kindCase_ == 7) {
+         return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_;
+      }
+      return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
+    }
+    /**
+     * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder() {
+      if (kindCase_ == 7) {
+         return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_;
+      }
+      return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
+    }
+
     public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
     private long schemaVersion_;
     /**
@@ -16832,6 +16894,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (kindCase_ == 6) {
         output.writeMessage(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
       }
+      if (kindCase_ == 7) {
+        output.writeMessage(7, (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -16865,6 +16930,10 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
       }
+      if (kindCase_ == 7) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(7, (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_);
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -16902,6 +16971,10 @@ public boolean equals(final java.lang.Object obj) {
           if (!getChangeTableOptions()
               .equals(other.getChangeTableOptions())) return false;
           break;
+        case 7:
+          if (!getChangeColumnFulltext()
+              .equals(other.getChangeColumnFulltext())) return false;
+          break;
         case 0:
         default:
       }
@@ -16939,6 +17012,10 @@ public int hashCode() {
           hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER;
           hash = (53 * hash) + getChangeTableOptions().hashCode();
           break;
+        case 7:
+          hash = (37 * hash) + CHANGE_COLUMN_FULLTEXT_FIELD_NUMBER;
+          hash = (53 * hash) + getChangeColumnFulltext().hashCode();
+          break;
         case 0:
         default:
       }
@@ -17136,6 +17213,13 @@ public io.greptime.v1.region.Server.AlterRequest buildPartial() {
             result.kind_ = changeTableOptionsBuilder_.build();
           }
         }
+        if (kindCase_ == 7) {
+          if (changeColumnFulltextBuilder_ == null) {
+            result.kind_ = kind_;
+          } else {
+            result.kind_ = changeColumnFulltextBuilder_.build();
+          }
+        }
         result.schemaVersion_ = schemaVersion_;
         result.kindCase_ = kindCase_;
         onBuilt();
@@ -17209,6 +17293,10 @@ public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) {
             mergeChangeTableOptions(other.getChangeTableOptions());
             break;
           }
+          case CHANGE_COLUMN_FULLTEXT: {
+            mergeChangeColumnFulltext(other.getChangeColumnFulltext());
+            break;
+          }
           case KIND_NOT_SET: {
             break;
           }
@@ -17856,6 +17944,148 @@ public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBui
         return changeTableOptionsBuilder_;
       }
 
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder> changeColumnFulltextBuilder_;
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       * @return Whether the changeColumnFulltext field is set.
+       */
+      @java.lang.Override
+      public boolean hasChangeColumnFulltext() {
+        return kindCase_ == 7;
+      }
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       * @return The changeColumnFulltext.
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.ChangeColumnFulltext getChangeColumnFulltext() {
+        if (changeColumnFulltextBuilder_ == null) {
+          if (kindCase_ == 7) {
+            return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_;
+          }
+          return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
+        } else {
+          if (kindCase_ == 7) {
+            return changeColumnFulltextBuilder_.getMessage();
+          }
+          return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       */
+      public Builder setChangeColumnFulltext(io.greptime.v1.Ddl.ChangeColumnFulltext value) {
+        if (changeColumnFulltextBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          kind_ = value;
+          onChanged();
+        } else {
+          changeColumnFulltextBuilder_.setMessage(value);
+        }
+        kindCase_ = 7;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       */
+      public Builder setChangeColumnFulltext(
+          io.greptime.v1.Ddl.ChangeColumnFulltext.Builder builderForValue) {
+        if (changeColumnFulltextBuilder_ == null) {
+          kind_ = builderForValue.build();
+          onChanged();
+        } else {
+          changeColumnFulltextBuilder_.setMessage(builderForValue.build());
+        }
+        kindCase_ = 7;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       */
+      public Builder mergeChangeColumnFulltext(io.greptime.v1.Ddl.ChangeColumnFulltext value) {
+        if (changeColumnFulltextBuilder_ == null) {
+          if (kindCase_ == 7 &&
+              kind_ != io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance()) {
+            kind_ = io.greptime.v1.Ddl.ChangeColumnFulltext.newBuilder((io.greptime.v1.Ddl.ChangeColumnFulltext) kind_)
+                .mergeFrom(value).buildPartial();
+          } else {
+            kind_ = value;
+          }
+          onChanged();
+        } else {
+          if (kindCase_ == 7) {
+            changeColumnFulltextBuilder_.mergeFrom(value);
+          } else {
+            changeColumnFulltextBuilder_.setMessage(value);
+          }
+        }
+        kindCase_ = 7;
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       */
+      public Builder clearChangeColumnFulltext() {
+        if (changeColumnFulltextBuilder_ == null) {
+          if (kindCase_ == 7) {
+            kindCase_ = 0;
+            kind_ = null;
+            onChanged();
+          }
+        } else {
+          if (kindCase_ == 7) {
+            kindCase_ = 0;
+            kind_ = null;
+          }
+          changeColumnFulltextBuilder_.clear();
+        }
+        return this;
+      }
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       */
+      public io.greptime.v1.Ddl.ChangeColumnFulltext.Builder getChangeColumnFulltextBuilder() {
+        return getChangeColumnFulltextFieldBuilder().getBuilder();
+      }
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder getChangeColumnFulltextOrBuilder() {
+        if ((kindCase_ == 7) && (changeColumnFulltextBuilder_ != null)) {
+          return changeColumnFulltextBuilder_.getMessageOrBuilder();
+        } else {
+          if (kindCase_ == 7) {
+            return (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_;
+          }
+          return io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.ChangeColumnFulltext change_column_fulltext = 7;
+       */
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder> 
+          getChangeColumnFulltextFieldBuilder() {
+        if (changeColumnFulltextBuilder_ == null) {
+          if (!(kindCase_ == 7)) {
+            kind_ = io.greptime.v1.Ddl.ChangeColumnFulltext.getDefaultInstance();
+          }
+          changeColumnFulltextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.Ddl.ChangeColumnFulltext, io.greptime.v1.Ddl.ChangeColumnFulltext.Builder, io.greptime.v1.Ddl.ChangeColumnFulltextOrBuilder>(
+                  (io.greptime.v1.Ddl.ChangeColumnFulltext) kind_,
+                  getParentForChildren(),
+                  isClean());
+          kind_ = null;
+        }
+        kindCase_ = 7;
+        onChanged();;
+        return changeColumnFulltextBuilder_;
+      }
+
       private long schemaVersion_ ;
       /**
        * 
@@ -24794,36 +25024,38 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
       ".\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 " +
       "\001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001" +
       "(\004\"C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 ." +
-      "greptime.v1.region.AlterRequest\"\261\002\n\014Alte" +
+      "greptime.v1.region.AlterRequest\"\366\002\n\014Alte" +
       "rRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_colum" +
       "ns\030\002 \001(\0132\036.greptime.v1.region.AddColumns" +
       "H\000\0227\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.r" +
       "egion.DropColumnsH\000\022=\n\023change_column_typ" +
       "es\030\005 \001(\0132\036.greptime.v1.ChangeColumnTypes" +
       "H\000\022?\n\024change_table_options\030\006 \001(\0132\037.grept" +
-      "ime.v1.ChangeTableOptionsH\000\022\026\n\016schema_ve" +
-      "rsion\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add" +
-      "_columns\030\001 \003(\0132\035.greptime.v1.region.AddC" +
-      "olumn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003" +
-      "(\0132\036.greptime.v1.region.DropColumn\"v\n\tAd" +
-      "dColumn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v" +
-      "1.region.RegionColumnDef\0220\n\010location\030\003 \001" +
-      "(\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDr" +
-      "opColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021" +
-      "\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWi" +
-      "ndow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Compact" +
-      "Request\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 " +
-      "\001(\0132\033.greptime.v1.region.RegularH\000\0229\n\rst" +
-      "rict_window\030\003 \001(\0132 .greptime.v1.region.S" +
-      "trictWindowH\000B\t\n\007options\"$\n\017TruncateRequ" +
-      "est\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDe" +
-      "f\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu" +
-      "mnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Ha" +
-      "ndle\022!.greptime.v1.region.RegionRequest\032" +
-      "\".greptime.v1.region.RegionResponseB]\n\025i" +
-      "o.greptime.v1.regionB\006ServerZ