From 0b90ddc7eb2e99ce15d1d62c5d41f76a139c5c28 Mon Sep 17 00:00:00 2001 From: Weny Xu Date: Wed, 20 Nov 2024 20:08:41 +0800 Subject: [PATCH] feat: add `UnsetTableOptions` (#201) --- c++/greptime/v1/ddl.pb.cc | 723 ++++-- c++/greptime/v1/ddl.pb.h | 738 ++++-- c++/greptime/v1/region/server.pb.cc | 212 +- c++/greptime/v1/region/server.pb.h | 196 +- go/greptime/v1/ddl.pb.go | 655 +++--- java/src/main/java/io/greptime/v1/Ddl.java | 2007 ++++++++++++----- .../java/io/greptime/v1/region/Server.java | 464 +++- proto/greptime/v1/ddl.proto | 13 +- proto/greptime/v1/region/server.proto | 3 +- 9 files changed, 3496 insertions(+), 1515 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 9d5c7eca..54a6e110 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -331,33 +331,46 @@ struct ModifyColumnTypeDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ModifyColumnTypeDefaultTypeInternal _ModifyColumnType_default_instance_; -PROTOBUF_CONSTEXPR ChangeTableOptions::ChangeTableOptions( +PROTOBUF_CONSTEXPR SetTableOptions::SetTableOptions( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.change_table_options_)*/{} + /*decltype(_impl_.table_options_)*/{} , /*decltype(_impl_._cached_size_)*/{}} {} -struct ChangeTableOptionsDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeTableOptionsDefaultTypeInternal() +struct SetTableOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetTableOptionsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeTableOptionsDefaultTypeInternal() {} + ~SetTableOptionsDefaultTypeInternal() {} union { - ChangeTableOptions _instance; + SetTableOptions _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeTableOptionsDefaultTypeInternal _ChangeTableOptions_default_instance_; -PROTOBUF_CONSTEXPR ChangeTableOption::ChangeTableOption( +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetTableOptionsDefaultTypeInternal _SetTableOptions_default_instance_; +PROTOBUF_CONSTEXPR TableOption::TableOption( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.key_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.value_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_._cached_size_)*/{}} {} -struct ChangeTableOptionDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeTableOptionDefaultTypeInternal() +struct TableOptionDefaultTypeInternal { + PROTOBUF_CONSTEXPR TableOptionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeTableOptionDefaultTypeInternal() {} + ~TableOptionDefaultTypeInternal() {} union { - ChangeTableOption _instance; + TableOption _instance; }; }; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeTableOptionDefaultTypeInternal _ChangeTableOption_default_instance_; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableOptionDefaultTypeInternal _TableOption_default_instance_; +PROTOBUF_CONSTEXPR UnsetTableOptions::UnsetTableOptions( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.keys_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UnsetTableOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnsetTableOptionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnsetTableOptionsDefaultTypeInternal() {} + union { + UnsetTableOptions _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetTableOptionsDefaultTypeInternal _UnsetTableOptions_default_instance_; PROTOBUF_CONSTEXPR DropColumn::DropColumn( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -462,7 +475,7 @@ struct UnsetColumnFulltextDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetColumnFulltextDefaultTypeInternal _UnsetColumnFulltext_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[29]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[30]; 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; @@ -589,6 +602,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_), @@ -686,20 +700,27 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::ModifyColumnType, _impl_.target_type_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ModifyColumnType, _impl_.target_type_extension_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOptions, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetTableOptions, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOptions, _impl_.change_table_options_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetTableOptions, _impl_.table_options_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::TableOption, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _impl_.key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeTableOption, _impl_.value_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::TableOption, _impl_.key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::TableOption, _impl_.value_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetTableOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetTableOptions, _impl_.keys_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropColumn, _internal_metadata_), ~0u, // no _extensions_ @@ -771,26 +792,27 @@ 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)}, - { 123, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 134, 142, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 144, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 154, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 164, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 173, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 180, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 187, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, - { 194, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 201, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 209, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, - { 218, -1, -1, sizeof(::greptime::v1::ChangeTableOptions)}, - { 225, -1, -1, sizeof(::greptime::v1::ChangeTableOption)}, - { 233, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 240, -1, -1, sizeof(::greptime::v1::TableId)}, - { 247, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 254, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 268, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, - { 276, -1, -1, sizeof(::greptime::v1::SetColumnFulltext)}, - { 286, -1, -1, sizeof(::greptime::v1::UnsetColumnFulltext)}, + { 124, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 135, 143, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 145, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 155, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 165, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 174, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 181, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 188, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, + { 195, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 202, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 210, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, + { 219, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, + { 226, -1, -1, sizeof(::greptime::v1::TableOption)}, + { 234, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, + { 241, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 248, -1, -1, sizeof(::greptime::v1::TableId)}, + { 255, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 262, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 276, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 284, -1, -1, sizeof(::greptime::v1::SetColumnFulltext)}, + { 294, -1, -1, sizeof(::greptime::v1::UnsetColumnFulltext)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -814,8 +836,9 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_RenameTable_default_instance_._instance, &::greptime::v1::_AddColumn_default_instance_._instance, &::greptime::v1::_ModifyColumnType_default_instance_._instance, - &::greptime::v1::_ChangeTableOptions_default_instance_._instance, - &::greptime::v1::_ChangeTableOption_default_instance_._instance, + &::greptime::v1::_SetTableOptions_default_instance_._instance, + &::greptime::v1::_TableOption_default_instance_._instance, + &::greptime::v1::_UnsetTableOptions_default_instance_._instance, &::greptime::v1::_DropColumn_default_instance_._instance, &::greptime::v1::_TableId_default_instance_._instance, &::greptime::v1::_FlowId_default_instance_._instance, @@ -872,79 +895,81 @@ 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\"\350\003\n\tAlterE" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\241\004\n\tAlterE" "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_column" "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" ".RenameTableH\000\022=\n\023modify_column_types\030\007 " - "\001(\0132\036.greptime.v1.ModifyColumnTypesH\000\022\?\n" - "\024change_table_options\030\010 \001(\0132\037.greptime.v" - "1.ChangeTableOptionsH\000\022=\n\023set_column_ful" - "ltext\030\t \001(\0132\036.greptime.v1.SetColumnFullt" - "extH\000\022A\n\025unset_column_fulltext\030\n \001(\0132 .g" - "reptime.v1.UnsetColumnFulltextH\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.TableI" - "d\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022CreateData" - "baseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" - "_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030\003 \001(" - "\010\022=\n\007options\030\004 \003(\0132,.greptime.v1.CreateD" - "atabaseExpr.OptionsEntry\032.\n\014OptionsEntry" - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021Trun" - "cateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" - "chema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010" - "table_id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020" - "DropDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" - "\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 " - "\001(\010\"9\n\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026" - ".greptime.v1.AddColumn\"<\n\013DropColumns\022-\n" - "\014drop_columns\030\001 \003(\0132\027.greptime.v1.DropCo" - "lumn\"O\n\021ModifyColumnTypes\022:\n\023modify_colu" - "mn_types\030\001 \003(\0132\035.greptime.v1.ModifyColum" - "nType\"%\n\013RenameTable\022\026\n\016new_table_name\030\001" - " \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026." - "greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132" - "\036.greptime.v1.AddColumnLocation\"\236\001\n\020Modi" - "fyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013tar" - "get_type\030\002 \001(\0162\033.greptime.v1.ColumnDataT" - "ype\022C\n\025target_type_extension\030\003 \001(\0132$.gre" - "ptime.v1.ColumnDataTypeExtension\"R\n\022Chan" - "geTableOptions\022<\n\024change_table_options\030\001" - " \003(\0132\036.greptime.v1.ChangeTableOption\"/\n\021" - "ChangeTableOption\022\013\n\003key\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\007Tab" - "leId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254" - "\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030" - "\002 \001(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is" - "_nullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 " - "\001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1" - ".SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022dataty" - "pe_extension\030\007 \001(\0132$.greptime.v1.ColumnD" - "ataTypeExtension\022+\n\007options\030\010 \001(\0132\032.grep" - "time.v1.ColumnOptions\"\230\001\n\021AddColumnLocat" - "ion\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v1" - ".AddColumnLocation.LocationType\022\031\n\021after" - "_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FI" - "RST\020\000\022\t\n\005AFTER\020\001\"y\n\021SetColumnFulltext\022\023\n" - "\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010an" - "alyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016c" - "ase_sensitive\030\004 \001(\010\"*\n\023UnsetColumnFullte" - "xt\022\023\n\013column_name\030\001 \001(\t*$\n\010Analyzer\022\013\n\007E" - "NGLISH\020\000\022\013\n\007CHINESE\020\001BL\n\016io.greptime.v1B" - "\003DdlZ5github.com/GreptimeTeam/greptime-p" - "roto/go/greptime/v1b\006proto3" + "\001(\0132\036.greptime.v1.ModifyColumnTypesH\000\0229\n" + "\021set_table_options\030\010 \001(\0132\034.greptime.v1.S" + "etTableOptionsH\000\022=\n\023set_column_fulltext\030" + "\t \001(\0132\036.greptime.v1.SetColumnFulltextH\000\022" + "A\n\025unset_column_fulltext\030\n \001(\0132 .greptim" + "e.v1.UnsetColumnFulltextH\000\022=\n\023unset_tabl" + "e_options\030\013 \001(\0132\036.greptime.v1.UnsetTable" + "OptionsH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014c" + "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" + "\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.g" + "reptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001" + "(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_nam" + "e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_i" + "f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr" + "eptime.v1.CreateDatabaseExpr.OptionsEntr" + "y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo" + "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab" + "le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti" + "me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat" + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016" + "drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad" + "d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"" + "<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g" + "reptime.v1.DropColumn\"O\n\021ModifyColumnTyp" + "es\022:\n\023modify_column_types\030\001 \003(\0132\035.grepti" + "me.v1.ModifyColumnType\"%\n\013RenameTable\022\026\n" + "\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\nco" + "lumn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220" + "\n\010location\030\003 \001(\0132\036.greptime.v1.AddColumn" + "Location\"\236\001\n\020ModifyColumnType\022\023\n\013column_" + "name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.grepti" + "me.v1.ColumnDataType\022C\n\025target_type_exte" + "nsion\030\003 \001(\0132$.greptime.v1.ColumnDataType" + "Extension\"B\n\017SetTableOptions\022/\n\rtable_op" + "tions\030\001 \003(\0132\030.greptime.v1.TableOption\")\n" + "\013TableOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + "\"!\n\021UnsetTableOptions\022\014\n\004keys\030\001 \003(\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\001\"y\n\021SetColumnFulltext\022\023\n\013column_na" + "me\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010analyzer\030\003 \001" + "(\0162\025.greptime.v1.Analyzer\022\026\n\016case_sensit" + "ive\030\004 \001(\010\"*\n\023UnsetColumnFulltext\022\023\n\013colu" + "mn_name\030\001 \001(\t*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013" + "\n\007CHINESE\020\001BL\n\016io.greptime.v1B\003DdlZ5gith" + "ub.com/GreptimeTeam/greptime-proto/go/gr" + "eptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 4387, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 4457, 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, 29, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 30, 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, @@ -4294,9 +4319,10 @@ class AlterExpr::_Internal { static const ::greptime::v1::DropColumns& drop_columns(const AlterExpr* msg); static const ::greptime::v1::RenameTable& rename_table(const AlterExpr* msg); static const ::greptime::v1::ModifyColumnTypes& modify_column_types(const AlterExpr* msg); - static const ::greptime::v1::ChangeTableOptions& change_table_options(const AlterExpr* msg); + static const ::greptime::v1::SetTableOptions& set_table_options(const AlterExpr* msg); static const ::greptime::v1::SetColumnFulltext& set_column_fulltext(const AlterExpr* msg); static const ::greptime::v1::UnsetColumnFulltext& unset_column_fulltext(const AlterExpr* msg); + static const ::greptime::v1::UnsetTableOptions& unset_table_options(const AlterExpr* msg); }; const ::greptime::v1::AddColumns& @@ -4315,9 +4341,9 @@ const ::greptime::v1::ModifyColumnTypes& AlterExpr::_Internal::modify_column_types(const AlterExpr* msg) { return *msg->_impl_.kind_.modify_column_types_; } -const ::greptime::v1::ChangeTableOptions& -AlterExpr::_Internal::change_table_options(const AlterExpr* msg) { - return *msg->_impl_.kind_.change_table_options_; +const ::greptime::v1::SetTableOptions& +AlterExpr::_Internal::set_table_options(const AlterExpr* msg) { + return *msg->_impl_.kind_.set_table_options_; } const ::greptime::v1::SetColumnFulltext& AlterExpr::_Internal::set_column_fulltext(const AlterExpr* msg) { @@ -4327,6 +4353,10 @@ const ::greptime::v1::UnsetColumnFulltext& AlterExpr::_Internal::unset_column_fulltext(const AlterExpr* msg) { return *msg->_impl_.kind_.unset_column_fulltext_; } +const ::greptime::v1::UnsetTableOptions& +AlterExpr::_Internal::unset_table_options(const AlterExpr* msg) { + return *msg->_impl_.kind_.unset_table_options_; +} void AlterExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -4387,20 +4417,20 @@ void AlterExpr::set_allocated_modify_column_types(::greptime::v1::ModifyColumnTy } // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.modify_column_types) } -void AlterExpr::set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { +void AlterExpr::set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (change_table_options) { + if (set_table_options) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(change_table_options); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(set_table_options); if (message_arena != submessage_arena) { - change_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, change_table_options, submessage_arena); + set_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, set_table_options, submessage_arena); } - set_has_change_table_options(); - _impl_.kind_.change_table_options_ = change_table_options; + set_has_set_table_options(); + _impl_.kind_.set_table_options_ = set_table_options; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.change_table_options) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.set_table_options) } void AlterExpr::set_allocated_set_column_fulltext(::greptime::v1::SetColumnFulltext* set_column_fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); @@ -4432,6 +4462,21 @@ void AlterExpr::set_allocated_unset_column_fulltext(::greptime::v1::UnsetColumnF } // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.unset_column_fulltext) } +void AlterExpr::set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (unset_table_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unset_table_options); + if (message_arena != submessage_arena) { + unset_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unset_table_options, submessage_arena); + } + set_has_unset_table_options(); + _impl_.kind_.unset_table_options_ = unset_table_options; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterExpr.unset_table_options) +} AlterExpr::AlterExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -4496,9 +4541,9 @@ AlterExpr::AlterExpr(const AlterExpr& from) from._internal_modify_column_types()); break; } - case kChangeTableOptions: { - _this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom( - from._internal_change_table_options()); + case kSetTableOptions: { + _this->_internal_mutable_set_table_options()->::greptime::v1::SetTableOptions::MergeFrom( + from._internal_set_table_options()); break; } case kSetColumnFulltext: { @@ -4511,6 +4556,11 @@ AlterExpr::AlterExpr(const AlterExpr& from) from._internal_unset_column_fulltext()); break; } + case kUnsetTableOptions: { + _this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom( + from._internal_unset_table_options()); + break; + } case KIND_NOT_SET: { break; } @@ -4595,9 +4645,9 @@ void AlterExpr::clear_kind() { } break; } - case kChangeTableOptions: { + case kSetTableOptions: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_table_options_; + delete _impl_.kind_.set_table_options_; } break; } @@ -4613,6 +4663,12 @@ void AlterExpr::clear_kind() { } break; } + case kUnsetTableOptions: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unset_table_options_; + } + break; + } case KIND_NOT_SET: { break; } @@ -4702,10 +4758,10 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; - // .greptime.v1.ChangeTableOptions change_table_options = 8; + // .greptime.v1.SetTableOptions set_table_options = 8; case 8: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_change_table_options(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_set_table_options(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -4726,6 +4782,14 @@ const char* AlterExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; + // .greptime.v1.UnsetTableOptions unset_table_options = 11; + case 11: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 90)) { + ptr = ctx->ParseMessage(_internal_mutable_unset_table_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -4813,11 +4877,11 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::modify_column_types(this).GetCachedSize(), target, stream); } - // .greptime.v1.ChangeTableOptions change_table_options = 8; - if (_internal_has_change_table_options()) { + // .greptime.v1.SetTableOptions set_table_options = 8; + if (_internal_has_set_table_options()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, _Internal::change_table_options(this), - _Internal::change_table_options(this).GetCachedSize(), target, stream); + InternalWriteMessage(8, _Internal::set_table_options(this), + _Internal::set_table_options(this).GetCachedSize(), target, stream); } // .greptime.v1.SetColumnFulltext set_column_fulltext = 9; @@ -4834,6 +4898,13 @@ uint8_t* AlterExpr::_InternalSerialize( _Internal::unset_column_fulltext(this).GetCachedSize(), target, stream); } + // .greptime.v1.UnsetTableOptions unset_table_options = 11; + if (_internal_has_unset_table_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(11, _Internal::unset_table_options(this), + _Internal::unset_table_options(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -4900,11 +4971,11 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.modify_column_types_); break; } - // .greptime.v1.ChangeTableOptions change_table_options = 8; - case kChangeTableOptions: { + // .greptime.v1.SetTableOptions set_table_options = 8; + case kSetTableOptions: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.change_table_options_); + *_impl_.kind_.set_table_options_); break; } // .greptime.v1.SetColumnFulltext set_column_fulltext = 9; @@ -4921,6 +4992,13 @@ size_t AlterExpr::ByteSizeLong() const { *_impl_.kind_.unset_column_fulltext_); break; } + // .greptime.v1.UnsetTableOptions unset_table_options = 11; + case kUnsetTableOptions: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.unset_table_options_); + break; + } case KIND_NOT_SET: { break; } @@ -4973,9 +5051,9 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT from._internal_modify_column_types()); break; } - case kChangeTableOptions: { - _this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom( - from._internal_change_table_options()); + case kSetTableOptions: { + _this->_internal_mutable_set_table_options()->::greptime::v1::SetTableOptions::MergeFrom( + from._internal_set_table_options()); break; } case kSetColumnFulltext: { @@ -4988,6 +5066,11 @@ void AlterExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT from._internal_unset_column_fulltext()); break; } + case kUnsetTableOptions: { + _this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom( + from._internal_unset_table_options()); + break; + } case KIND_NOT_SET: { break; } @@ -7680,39 +7763,39 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnType::GetMetadata() const { // =================================================================== -class ChangeTableOptions::_Internal { +class SetTableOptions::_Internal { public: }; -ChangeTableOptions::ChangeTableOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, +SetTableOptions::SetTableOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:greptime.v1.ChangeTableOptions) + // @@protoc_insertion_point(arena_constructor:greptime.v1.SetTableOptions) } -ChangeTableOptions::ChangeTableOptions(const ChangeTableOptions& from) +SetTableOptions::SetTableOptions(const SetTableOptions& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ChangeTableOptions* const _this = this; (void)_this; + SetTableOptions* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.change_table_options_){from._impl_.change_table_options_} + decltype(_impl_.table_options_){from._impl_.table_options_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeTableOptions) + // @@protoc_insertion_point(copy_constructor:greptime.v1.SetTableOptions) } -inline void ChangeTableOptions::SharedCtor( +inline void SetTableOptions::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.change_table_options_){arena} + decltype(_impl_.table_options_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } -ChangeTableOptions::~ChangeTableOptions() { - // @@protoc_insertion_point(destructor:greptime.v1.ChangeTableOptions) +SetTableOptions::~SetTableOptions() { + // @@protoc_insertion_point(destructor:greptime.v1.SetTableOptions) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -7720,38 +7803,38 @@ ChangeTableOptions::~ChangeTableOptions() { SharedDtor(); } -inline void ChangeTableOptions::SharedDtor() { +inline void SetTableOptions::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.change_table_options_.~RepeatedPtrField(); + _impl_.table_options_.~RepeatedPtrField(); } -void ChangeTableOptions::SetCachedSize(int size) const { +void SetTableOptions::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ChangeTableOptions::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeTableOptions) +void SetTableOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SetTableOptions) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.change_table_options_.Clear(); + _impl_.table_options_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ChangeTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* SetTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // repeated .greptime.v1.ChangeTableOption change_table_options = 1; + // repeated .greptime.v1.TableOption table_options = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; - ptr = ctx->ParseMessage(_internal_add_change_table_options(), ptr); + ptr = ctx->ParseMessage(_internal_add_table_options(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); @@ -7781,16 +7864,16 @@ const char* ChangeTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* ChangeTableOptions::_InternalSerialize( +uint8_t* SetTableOptions::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeTableOptions) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetTableOptions) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .greptime.v1.ChangeTableOption change_table_options = 1; + // repeated .greptime.v1.TableOption table_options = 1; for (unsigned i = 0, - n = static_cast(this->_internal_change_table_options_size()); i < n; i++) { - const auto& repfield = this->_internal_change_table_options(i); + n = static_cast(this->_internal_table_options_size()); i < n; i++) { + const auto& repfield = this->_internal_table_options(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } @@ -7799,21 +7882,21 @@ uint8_t* ChangeTableOptions::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeTableOptions) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SetTableOptions) return target; } -size_t ChangeTableOptions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeTableOptions) +size_t SetTableOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetTableOptions) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .greptime.v1.ChangeTableOption change_table_options = 1; - total_size += 1UL * this->_internal_change_table_options_size(); - for (const auto& msg : this->_impl_.change_table_options_) { + // repeated .greptime.v1.TableOption table_options = 1; + total_size += 1UL * this->_internal_table_options_size(); + for (const auto& msg : this->_impl_.table_options_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } @@ -7821,43 +7904,43 @@ size_t ChangeTableOptions::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeTableOptions::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTableOptions::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ChangeTableOptions::MergeImpl + SetTableOptions::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeTableOptions::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTableOptions::GetClassData() const { return &_class_data_; } -void ChangeTableOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ChangeTableOptions) +void SetTableOptions::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.SetTableOptions) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.change_table_options_.MergeFrom(from._impl_.change_table_options_); + _this->_impl_.table_options_.MergeFrom(from._impl_.table_options_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ChangeTableOptions::CopyFrom(const ChangeTableOptions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeTableOptions) +void SetTableOptions::CopyFrom(const SetTableOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetTableOptions) if (&from == this) return; Clear(); MergeFrom(from); } -bool ChangeTableOptions::IsInitialized() const { +bool SetTableOptions::IsInitialized() const { return true; } -void ChangeTableOptions::InternalSwap(ChangeTableOptions* other) { +void SetTableOptions::InternalSwap(SetTableOptions* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.change_table_options_.InternalSwap(&other->_impl_.change_table_options_); + _impl_.table_options_.InternalSwap(&other->_impl_.table_options_); } -::PROTOBUF_NAMESPACE_ID::Metadata ChangeTableOptions::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetTableOptions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); @@ -7865,19 +7948,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeTableOptions::GetMetadata() const { // =================================================================== -class ChangeTableOption::_Internal { +class TableOption::_Internal { public: }; -ChangeTableOption::ChangeTableOption(::PROTOBUF_NAMESPACE_ID::Arena* arena, +TableOption::TableOption(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - // @@protoc_insertion_point(arena_constructor:greptime.v1.ChangeTableOption) + // @@protoc_insertion_point(arena_constructor:greptime.v1.TableOption) } -ChangeTableOption::ChangeTableOption(const ChangeTableOption& from) +TableOption::TableOption(const TableOption& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ChangeTableOption* const _this = this; (void)_this; + TableOption* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.key_){} , decltype(_impl_.value_){} @@ -7900,10 +7983,10 @@ ChangeTableOption::ChangeTableOption(const ChangeTableOption& from) _this->_impl_.value_.Set(from._internal_value(), _this->GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeTableOption) + // @@protoc_insertion_point(copy_constructor:greptime.v1.TableOption) } -inline void ChangeTableOption::SharedCtor( +inline void TableOption::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -7922,8 +8005,8 @@ inline void ChangeTableOption::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -ChangeTableOption::~ChangeTableOption() { - // @@protoc_insertion_point(destructor:greptime.v1.ChangeTableOption) +TableOption::~TableOption() { + // @@protoc_insertion_point(destructor:greptime.v1.TableOption) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -7931,18 +8014,18 @@ ChangeTableOption::~ChangeTableOption() { SharedDtor(); } -inline void ChangeTableOption::SharedDtor() { +inline void TableOption::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.key_.Destroy(); _impl_.value_.Destroy(); } -void ChangeTableOption::SetCachedSize(int size) const { +void TableOption::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ChangeTableOption::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.ChangeTableOption) +void TableOption::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.TableOption) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -7952,7 +8035,7 @@ void ChangeTableOption::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ChangeTableOption::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* TableOption::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -7964,7 +8047,7 @@ const char* ChangeTableOption::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_key(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeTableOption.key")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TableOption.key")); } else goto handle_unusual; continue; @@ -7974,7 +8057,7 @@ const char* ChangeTableOption::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_value(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ChangeTableOption.value")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TableOption.value")); } else goto handle_unusual; continue; @@ -8001,9 +8084,9 @@ const char* ChangeTableOption::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* ChangeTableOption::_InternalSerialize( +uint8_t* TableOption::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ChangeTableOption) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TableOption) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -8012,7 +8095,7 @@ uint8_t* ChangeTableOption::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_key().data(), static_cast(this->_internal_key().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.ChangeTableOption.key"); + "greptime.v1.TableOption.key"); target = stream->WriteStringMaybeAliased( 1, this->_internal_key(), target); } @@ -8022,7 +8105,7 @@ uint8_t* ChangeTableOption::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_value().data(), static_cast(this->_internal_value().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.ChangeTableOption.value"); + "greptime.v1.TableOption.value"); target = stream->WriteStringMaybeAliased( 2, this->_internal_value(), target); } @@ -8031,12 +8114,12 @@ uint8_t* ChangeTableOption::_InternalSerialize( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ChangeTableOption) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.TableOption) return target; } -size_t ChangeTableOption::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ChangeTableOption) +size_t TableOption::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TableOption) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -8060,17 +8143,17 @@ size_t ChangeTableOption::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ChangeTableOption::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TableOption::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ChangeTableOption::MergeImpl + TableOption::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ChangeTableOption::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TableOption::GetClassData() const { return &_class_data_; } -void ChangeTableOption::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { - auto* const _this = static_cast(&to_msg); - auto& from = static_cast(from_msg); - // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ChangeTableOption) +void TableOption::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.TableOption) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -8084,18 +8167,18 @@ void ChangeTableOption::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ChangeTableOption::CopyFrom(const ChangeTableOption& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ChangeTableOption) +void TableOption::CopyFrom(const TableOption& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TableOption) if (&from == this) return; Clear(); MergeFrom(from); } -bool ChangeTableOption::IsInitialized() const { +bool TableOption::IsInitialized() const { return true; } -void ChangeTableOption::InternalSwap(ChangeTableOption* other) { +void TableOption::InternalSwap(TableOption* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -8110,7 +8193,7 @@ void ChangeTableOption::InternalSwap(ChangeTableOption* other) { ); } -::PROTOBUF_NAMESPACE_ID::Metadata ChangeTableOption::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata TableOption::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[21]); @@ -8118,6 +8201,196 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeTableOption::GetMetadata() const { // =================================================================== +class UnsetTableOptions::_Internal { + public: +}; + +UnsetTableOptions::UnsetTableOptions(::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.UnsetTableOptions) +} +UnsetTableOptions::UnsetTableOptions(const UnsetTableOptions& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UnsetTableOptions* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.keys_){from._impl_.keys_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetTableOptions) +} + +inline void UnsetTableOptions::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.keys_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +UnsetTableOptions::~UnsetTableOptions() { + // @@protoc_insertion_point(destructor:greptime.v1.UnsetTableOptions) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UnsetTableOptions::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.keys_.~RepeatedPtrField(); +} + +void UnsetTableOptions::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UnsetTableOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.UnsetTableOptions) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.keys_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UnsetTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated string keys = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_keys(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.UnsetTableOptions.keys")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* UnsetTableOptions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetTableOptions) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string keys = 1; + for (int i = 0, n = this->_internal_keys_size(); i < n; i++) { + const auto& s = this->_internal_keys(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.UnsetTableOptions.keys"); + target = stream->WriteString(1, s, 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.UnsetTableOptions) + return target; +} + +size_t UnsetTableOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.UnsetTableOptions) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string keys = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.keys_.size()); + for (int i = 0, n = _impl_.keys_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.keys_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetTableOptions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UnsetTableOptions::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetTableOptions::GetClassData() const { return &_class_data_; } + + +void UnsetTableOptions::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.UnsetTableOptions) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.keys_.MergeFrom(from._impl_.keys_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UnsetTableOptions::CopyFrom(const UnsetTableOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.UnsetTableOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnsetTableOptions::IsInitialized() const { + return true; +} + +void UnsetTableOptions::InternalSwap(UnsetTableOptions* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.keys_.InternalSwap(&other->_impl_.keys_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UnsetTableOptions::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[22]); +} + +// =================================================================== + class DropColumn::_Internal { public: }; @@ -8316,7 +8589,7 @@ void DropColumn::InternalSwap(DropColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[22]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[23]); } // =================================================================== @@ -8494,7 +8767,7 @@ void TableId::InternalSwap(TableId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[23]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[24]); } // =================================================================== @@ -8672,7 +8945,7 @@ void FlowId::InternalSwap(FlowId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[24]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[25]); } // =================================================================== @@ -9154,7 +9427,7 @@ void ColumnDef::InternalSwap(ColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[25]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[26]); } // =================================================================== @@ -9387,7 +9660,7 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[26]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[27]); } // =================================================================== @@ -9677,7 +9950,7 @@ void SetColumnFulltext::InternalSwap(SetColumnFulltext* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetColumnFulltext::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[27]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[28]); } // =================================================================== @@ -9880,7 +10153,7 @@ void UnsetColumnFulltext::InternalSwap(UnsetColumnFulltext* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UnsetColumnFulltext::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[28]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[29]); } // @@protoc_insertion_point(namespace_scope) @@ -9967,13 +10240,17 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ModifyColumnType* Arena::CreateMaybeMessage< ::greptime::v1::ModifyColumnType >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::ModifyColumnType >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeTableOptions* -Arena::CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::ChangeTableOptions >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::SetTableOptions* +Arena::CreateMaybeMessage< ::greptime::v1::SetTableOptions >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SetTableOptions >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::TableOption* +Arena::CreateMaybeMessage< ::greptime::v1::TableOption >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::TableOption >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeTableOption* -Arena::CreateMaybeMessage< ::greptime::v1::ChangeTableOption >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::ChangeTableOption >(arena); +template<> PROTOBUF_NOINLINE ::greptime::v1::UnsetTableOptions* +Arena::CreateMaybeMessage< ::greptime::v1::UnsetTableOptions >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::UnsetTableOptions >(arena); } template<> PROTOBUF_NOINLINE ::greptime::v1::DropColumn* Arena::CreateMaybeMessage< ::greptime::v1::DropColumn >(Arena* arena) { diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index fdfdb85a..a0db1b41 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -63,12 +63,6 @@ extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_; class AlterExpr; struct AlterExprDefaultTypeInternal; extern AlterExprDefaultTypeInternal _AlterExpr_default_instance_; -class ChangeTableOption; -struct ChangeTableOptionDefaultTypeInternal; -extern ChangeTableOptionDefaultTypeInternal _ChangeTableOption_default_instance_; -class ChangeTableOptions; -struct ChangeTableOptionsDefaultTypeInternal; -extern ChangeTableOptionsDefaultTypeInternal _ChangeTableOptions_default_instance_; class ColumnDef; struct ColumnDefDefaultTypeInternal; extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_; @@ -129,15 +123,24 @@ extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; class SetColumnFulltext; struct SetColumnFulltextDefaultTypeInternal; extern SetColumnFulltextDefaultTypeInternal _SetColumnFulltext_default_instance_; +class SetTableOptions; +struct SetTableOptionsDefaultTypeInternal; +extern SetTableOptionsDefaultTypeInternal _SetTableOptions_default_instance_; class TableId; struct TableIdDefaultTypeInternal; extern TableIdDefaultTypeInternal _TableId_default_instance_; +class TableOption; +struct TableOptionDefaultTypeInternal; +extern TableOptionDefaultTypeInternal _TableOption_default_instance_; class TruncateTableExpr; struct TruncateTableExprDefaultTypeInternal; extern TruncateTableExprDefaultTypeInternal _TruncateTableExpr_default_instance_; class UnsetColumnFulltext; struct UnsetColumnFulltextDefaultTypeInternal; extern UnsetColumnFulltextDefaultTypeInternal _UnsetColumnFulltext_default_instance_; +class UnsetTableOptions; +struct UnsetTableOptionsDefaultTypeInternal; +extern UnsetTableOptionsDefaultTypeInternal _UnsetTableOptions_default_instance_; } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN @@ -145,8 +148,6 @@ 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::ChangeTableOption* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOption>(Arena*); -template<> ::greptime::v1::ChangeTableOptions* Arena::CreateMaybeMessage<::greptime::v1::ChangeTableOptions>(Arena*); template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse>(Arena*); @@ -167,9 +168,12 @@ template<> ::greptime::v1::ModifyColumnType* Arena::CreateMaybeMessage<::greptim template<> ::greptime::v1::ModifyColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ModifyColumnTypes>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); template<> ::greptime::v1::SetColumnFulltext* Arena::CreateMaybeMessage<::greptime::v1::SetColumnFulltext>(Arena*); +template<> ::greptime::v1::SetTableOptions* Arena::CreateMaybeMessage<::greptime::v1::SetTableOptions>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); +template<> ::greptime::v1::TableOption* Arena::CreateMaybeMessage<::greptime::v1::TableOption>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); template<> ::greptime::v1::UnsetColumnFulltext* Arena::CreateMaybeMessage<::greptime::v1::UnsetColumnFulltext>(Arena*); +template<> ::greptime::v1::UnsetTableOptions* Arena::CreateMaybeMessage<::greptime::v1::UnsetTableOptions>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { namespace v1 { @@ -2052,9 +2056,10 @@ class AlterExpr final : kDropColumns = 5, kRenameTable = 6, kModifyColumnTypes = 7, - kChangeTableOptions = 8, + kSetTableOptions = 8, kSetColumnFulltext = 9, kUnsetColumnFulltext = 10, + kUnsetTableOptions = 11, KIND_NOT_SET = 0, }; @@ -2143,9 +2148,10 @@ class AlterExpr final : kDropColumnsFieldNumber = 5, kRenameTableFieldNumber = 6, kModifyColumnTypesFieldNumber = 7, - kChangeTableOptionsFieldNumber = 8, + kSetTableOptionsFieldNumber = 8, kSetColumnFulltextFieldNumber = 9, kUnsetColumnFulltextFieldNumber = 10, + kUnsetTableOptionsFieldNumber = 11, }; // string catalog_name = 1; void clear_catalog_name(); @@ -2261,23 +2267,23 @@ class AlterExpr final : ::greptime::v1::ModifyColumnTypes* modify_column_types); ::greptime::v1::ModifyColumnTypes* unsafe_arena_release_modify_column_types(); - // .greptime.v1.ChangeTableOptions change_table_options = 8; - bool has_change_table_options() const; + // .greptime.v1.SetTableOptions set_table_options = 8; + bool has_set_table_options() const; private: - bool _internal_has_change_table_options() const; + bool _internal_has_set_table_options() const; public: - void clear_change_table_options(); - const ::greptime::v1::ChangeTableOptions& change_table_options() const; - PROTOBUF_NODISCARD ::greptime::v1::ChangeTableOptions* release_change_table_options(); - ::greptime::v1::ChangeTableOptions* mutable_change_table_options(); - void set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options); + void clear_set_table_options(); + const ::greptime::v1::SetTableOptions& set_table_options() const; + PROTOBUF_NODISCARD ::greptime::v1::SetTableOptions* release_set_table_options(); + ::greptime::v1::SetTableOptions* mutable_set_table_options(); + void set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options); private: - const ::greptime::v1::ChangeTableOptions& _internal_change_table_options() const; - ::greptime::v1::ChangeTableOptions* _internal_mutable_change_table_options(); + const ::greptime::v1::SetTableOptions& _internal_set_table_options() const; + ::greptime::v1::SetTableOptions* _internal_mutable_set_table_options(); public: - void unsafe_arena_set_allocated_change_table_options( - ::greptime::v1::ChangeTableOptions* change_table_options); - ::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options(); + void unsafe_arena_set_allocated_set_table_options( + ::greptime::v1::SetTableOptions* set_table_options); + ::greptime::v1::SetTableOptions* unsafe_arena_release_set_table_options(); // .greptime.v1.SetColumnFulltext set_column_fulltext = 9; bool has_set_column_fulltext() const; @@ -2315,6 +2321,24 @@ class AlterExpr final : ::greptime::v1::UnsetColumnFulltext* unset_column_fulltext); ::greptime::v1::UnsetColumnFulltext* unsafe_arena_release_unset_column_fulltext(); + // .greptime.v1.UnsetTableOptions unset_table_options = 11; + bool has_unset_table_options() const; + private: + bool _internal_has_unset_table_options() const; + public: + void clear_unset_table_options(); + const ::greptime::v1::UnsetTableOptions& unset_table_options() const; + PROTOBUF_NODISCARD ::greptime::v1::UnsetTableOptions* release_unset_table_options(); + ::greptime::v1::UnsetTableOptions* mutable_unset_table_options(); + void set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options); + private: + const ::greptime::v1::UnsetTableOptions& _internal_unset_table_options() const; + ::greptime::v1::UnsetTableOptions* _internal_mutable_unset_table_options(); + public: + void unsafe_arena_set_allocated_unset_table_options( + ::greptime::v1::UnsetTableOptions* unset_table_options); + ::greptime::v1::UnsetTableOptions* unsafe_arena_release_unset_table_options(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.AlterExpr) @@ -2324,9 +2348,10 @@ class AlterExpr final : void set_has_drop_columns(); void set_has_rename_table(); void set_has_modify_column_types(); - void set_has_change_table_options(); + void set_has_set_table_options(); void set_has_set_column_fulltext(); void set_has_unset_column_fulltext(); + void set_has_unset_table_options(); inline bool has_kind() const; inline void clear_has_kind(); @@ -2345,9 +2370,10 @@ class AlterExpr final : ::greptime::v1::DropColumns* drop_columns_; ::greptime::v1::RenameTable* rename_table_; ::greptime::v1::ModifyColumnTypes* modify_column_types_; - ::greptime::v1::ChangeTableOptions* change_table_options_; + ::greptime::v1::SetTableOptions* set_table_options_; ::greptime::v1::SetColumnFulltext* set_column_fulltext_; ::greptime::v1::UnsetColumnFulltext* unset_column_fulltext_; + ::greptime::v1::UnsetTableOptions* unset_table_options_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -4178,24 +4204,24 @@ class ModifyColumnType final : }; // ------------------------------------------------------------------- -class ChangeTableOptions final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeTableOptions) */ { +class SetTableOptions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetTableOptions) */ { public: - inline ChangeTableOptions() : ChangeTableOptions(nullptr) {} - ~ChangeTableOptions() override; - explicit PROTOBUF_CONSTEXPR ChangeTableOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SetTableOptions() : SetTableOptions(nullptr) {} + ~SetTableOptions() override; + explicit PROTOBUF_CONSTEXPR SetTableOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ChangeTableOptions(const ChangeTableOptions& from); - ChangeTableOptions(ChangeTableOptions&& from) noexcept - : ChangeTableOptions() { + SetTableOptions(const SetTableOptions& from); + SetTableOptions(SetTableOptions&& from) noexcept + : SetTableOptions() { *this = ::std::move(from); } - inline ChangeTableOptions& operator=(const ChangeTableOptions& from) { + inline SetTableOptions& operator=(const SetTableOptions& from) { CopyFrom(from); return *this; } - inline ChangeTableOptions& operator=(ChangeTableOptions&& from) noexcept { + inline SetTableOptions& operator=(SetTableOptions&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4218,20 +4244,20 @@ class ChangeTableOptions final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ChangeTableOptions& default_instance() { + static const SetTableOptions& default_instance() { return *internal_default_instance(); } - static inline const ChangeTableOptions* internal_default_instance() { - return reinterpret_cast( - &_ChangeTableOptions_default_instance_); + static inline const SetTableOptions* internal_default_instance() { + return reinterpret_cast( + &_SetTableOptions_default_instance_); } static constexpr int kIndexInFileMessages = 20; - friend void swap(ChangeTableOptions& a, ChangeTableOptions& b) { + friend void swap(SetTableOptions& a, SetTableOptions& b) { a.Swap(&b); } - inline void Swap(ChangeTableOptions* other) { + inline void Swap(SetTableOptions* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4244,7 +4270,7 @@ class ChangeTableOptions final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChangeTableOptions* other) { + void UnsafeArenaSwap(SetTableOptions* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4252,14 +4278,14 @@ class ChangeTableOptions final : // implements Message ---------------------------------------------- - ChangeTableOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetTableOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ChangeTableOptions& from); + void CopyFrom(const SetTableOptions& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ChangeTableOptions& from) { - ChangeTableOptions::MergeImpl(*this, from); + void MergeFrom( const SetTableOptions& from) { + SetTableOptions::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -4277,15 +4303,15 @@ class ChangeTableOptions final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ChangeTableOptions* other); + void InternalSwap(SetTableOptions* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.ChangeTableOptions"; + return "greptime.v1.SetTableOptions"; } protected: - explicit ChangeTableOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit SetTableOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4299,27 +4325,27 @@ class ChangeTableOptions final : // accessors ------------------------------------------------------- enum : int { - kChangeTableOptionsFieldNumber = 1, + kTableOptionsFieldNumber = 1, }; - // repeated .greptime.v1.ChangeTableOption change_table_options = 1; - int change_table_options_size() const; + // repeated .greptime.v1.TableOption table_options = 1; + int table_options_size() const; private: - int _internal_change_table_options_size() const; + int _internal_table_options_size() const; public: - void clear_change_table_options(); - ::greptime::v1::ChangeTableOption* mutable_change_table_options(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >* - mutable_change_table_options(); + void clear_table_options(); + ::greptime::v1::TableOption* mutable_table_options(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableOption >* + mutable_table_options(); private: - const ::greptime::v1::ChangeTableOption& _internal_change_table_options(int index) const; - ::greptime::v1::ChangeTableOption* _internal_add_change_table_options(); + const ::greptime::v1::TableOption& _internal_table_options(int index) const; + ::greptime::v1::TableOption* _internal_add_table_options(); public: - const ::greptime::v1::ChangeTableOption& change_table_options(int index) const; - ::greptime::v1::ChangeTableOption* add_change_table_options(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >& - change_table_options() const; + const ::greptime::v1::TableOption& table_options(int index) const; + ::greptime::v1::TableOption* add_table_options(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableOption >& + table_options() const; - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOptions) + // @@protoc_insertion_point(class_scope:greptime.v1.SetTableOptions) private: class _Internal; @@ -4327,7 +4353,7 @@ class ChangeTableOptions final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption > change_table_options_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableOption > table_options_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -4335,24 +4361,24 @@ class ChangeTableOptions final : }; // ------------------------------------------------------------------- -class ChangeTableOption final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeTableOption) */ { +class TableOption final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.TableOption) */ { public: - inline ChangeTableOption() : ChangeTableOption(nullptr) {} - ~ChangeTableOption() override; - explicit PROTOBUF_CONSTEXPR ChangeTableOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline TableOption() : TableOption(nullptr) {} + ~TableOption() override; + explicit PROTOBUF_CONSTEXPR TableOption(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ChangeTableOption(const ChangeTableOption& from); - ChangeTableOption(ChangeTableOption&& from) noexcept - : ChangeTableOption() { + TableOption(const TableOption& from); + TableOption(TableOption&& from) noexcept + : TableOption() { *this = ::std::move(from); } - inline ChangeTableOption& operator=(const ChangeTableOption& from) { + inline TableOption& operator=(const TableOption& from) { CopyFrom(from); return *this; } - inline ChangeTableOption& operator=(ChangeTableOption&& from) noexcept { + inline TableOption& operator=(TableOption&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4375,20 +4401,20 @@ class ChangeTableOption final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ChangeTableOption& default_instance() { + static const TableOption& default_instance() { return *internal_default_instance(); } - static inline const ChangeTableOption* internal_default_instance() { - return reinterpret_cast( - &_ChangeTableOption_default_instance_); + static inline const TableOption* internal_default_instance() { + return reinterpret_cast( + &_TableOption_default_instance_); } static constexpr int kIndexInFileMessages = 21; - friend void swap(ChangeTableOption& a, ChangeTableOption& b) { + friend void swap(TableOption& a, TableOption& b) { a.Swap(&b); } - inline void Swap(ChangeTableOption* other) { + inline void Swap(TableOption* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4401,7 +4427,7 @@ class ChangeTableOption final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ChangeTableOption* other) { + void UnsafeArenaSwap(TableOption* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4409,14 +4435,14 @@ class ChangeTableOption final : // implements Message ---------------------------------------------- - ChangeTableOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TableOption* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ChangeTableOption& from); + void CopyFrom(const TableOption& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ChangeTableOption& from) { - ChangeTableOption::MergeImpl(*this, from); + void MergeFrom( const TableOption& from) { + TableOption::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -4434,15 +4460,15 @@ class ChangeTableOption final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ChangeTableOption* other); + void InternalSwap(TableOption* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.ChangeTableOption"; + return "greptime.v1.TableOption"; } protected: - explicit ChangeTableOption(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit TableOption(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4487,7 +4513,7 @@ class ChangeTableOption final : std::string* _internal_mutable_value(); public: - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOption) + // @@protoc_insertion_point(class_scope:greptime.v1.TableOption) private: class _Internal; @@ -4504,6 +4530,169 @@ class ChangeTableOption final : }; // ------------------------------------------------------------------- +class UnsetTableOptions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.UnsetTableOptions) */ { + public: + inline UnsetTableOptions() : UnsetTableOptions(nullptr) {} + ~UnsetTableOptions() override; + explicit PROTOBUF_CONSTEXPR UnsetTableOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UnsetTableOptions(const UnsetTableOptions& from); + UnsetTableOptions(UnsetTableOptions&& from) noexcept + : UnsetTableOptions() { + *this = ::std::move(from); + } + + inline UnsetTableOptions& operator=(const UnsetTableOptions& from) { + CopyFrom(from); + return *this; + } + inline UnsetTableOptions& operator=(UnsetTableOptions&& 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 UnsetTableOptions& default_instance() { + return *internal_default_instance(); + } + static inline const UnsetTableOptions* internal_default_instance() { + return reinterpret_cast( + &_UnsetTableOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 22; + + friend void swap(UnsetTableOptions& a, UnsetTableOptions& b) { + a.Swap(&b); + } + inline void Swap(UnsetTableOptions* 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(UnsetTableOptions* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UnsetTableOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UnsetTableOptions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UnsetTableOptions& from) { + UnsetTableOptions::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(UnsetTableOptions* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.UnsetTableOptions"; + } + protected: + explicit UnsetTableOptions(::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 { + kKeysFieldNumber = 1, + }; + // repeated string keys = 1; + int keys_size() const; + private: + int _internal_keys_size() const; + public: + void clear_keys(); + const std::string& keys(int index) const; + std::string* mutable_keys(int index); + void set_keys(int index, const std::string& value); + void set_keys(int index, std::string&& value); + void set_keys(int index, const char* value); + void set_keys(int index, const char* value, size_t size); + std::string* add_keys(); + void add_keys(const std::string& value); + void add_keys(std::string&& value); + void add_keys(const char* value); + void add_keys(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& keys() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_keys(); + private: + const std::string& _internal_keys(int index) const; + std::string* _internal_add_keys(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.UnsetTableOptions) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField keys_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + class DropColumn final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumn) */ { public: @@ -4552,7 +4741,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 23; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -4705,7 +4894,7 @@ class TableId final : &_TableId_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; friend void swap(TableId& a, TableId& b) { a.Swap(&b); @@ -4853,7 +5042,7 @@ class FlowId final : &_FlowId_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 25; friend void swap(FlowId& a, FlowId& b) { a.Swap(&b); @@ -5001,7 +5190,7 @@ class ColumnDef final : &_ColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 26; friend void swap(ColumnDef& a, ColumnDef& b) { a.Swap(&b); @@ -5259,7 +5448,7 @@ class AddColumnLocation final : &_AddColumnLocation_default_instance_); } static constexpr int kIndexInFileMessages = - 26; + 27; friend void swap(AddColumnLocation& a, AddColumnLocation& b) { a.Swap(&b); @@ -5453,7 +5642,7 @@ class SetColumnFulltext final : &_SetColumnFulltext_default_instance_); } static constexpr int kIndexInFileMessages = - 27; + 28; friend void swap(SetColumnFulltext& a, SetColumnFulltext& b) { a.Swap(&b); @@ -5639,7 +5828,7 @@ class UnsetColumnFulltext final : &_UnsetColumnFulltext_default_instance_); } static constexpr int kIndexInFileMessages = - 28; + 29; friend void swap(UnsetColumnFulltext& a, UnsetColumnFulltext& b) { a.Swap(&b); @@ -8879,77 +9068,77 @@ inline ::greptime::v1::ModifyColumnTypes* AlterExpr::mutable_modify_column_types return _msg; } -// .greptime.v1.ChangeTableOptions change_table_options = 8; -inline bool AlterExpr::_internal_has_change_table_options() const { - return kind_case() == kChangeTableOptions; +// .greptime.v1.SetTableOptions set_table_options = 8; +inline bool AlterExpr::_internal_has_set_table_options() const { + return kind_case() == kSetTableOptions; } -inline bool AlterExpr::has_change_table_options() const { - return _internal_has_change_table_options(); +inline bool AlterExpr::has_set_table_options() const { + return _internal_has_set_table_options(); } -inline void AlterExpr::set_has_change_table_options() { - _impl_._oneof_case_[0] = kChangeTableOptions; +inline void AlterExpr::set_has_set_table_options() { + _impl_._oneof_case_[0] = kSetTableOptions; } -inline void AlterExpr::clear_change_table_options() { - if (_internal_has_change_table_options()) { +inline void AlterExpr::clear_set_table_options() { + if (_internal_has_set_table_options()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_table_options_; + delete _impl_.kind_.set_table_options_; } clear_has_kind(); } } -inline ::greptime::v1::ChangeTableOptions* AlterExpr::release_change_table_options() { - // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.change_table_options) - if (_internal_has_change_table_options()) { +inline ::greptime::v1::SetTableOptions* AlterExpr::release_set_table_options() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.set_table_options) + if (_internal_has_set_table_options()) { clear_has_kind(); - ::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_; + ::greptime::v1::SetTableOptions* temp = _impl_.kind_.set_table_options_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.change_table_options_ = nullptr; + _impl_.kind_.set_table_options_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::ChangeTableOptions& AlterExpr::_internal_change_table_options() const { - return _internal_has_change_table_options() - ? *_impl_.kind_.change_table_options_ - : reinterpret_cast< ::greptime::v1::ChangeTableOptions&>(::greptime::v1::_ChangeTableOptions_default_instance_); +inline const ::greptime::v1::SetTableOptions& AlterExpr::_internal_set_table_options() const { + return _internal_has_set_table_options() + ? *_impl_.kind_.set_table_options_ + : reinterpret_cast< ::greptime::v1::SetTableOptions&>(::greptime::v1::_SetTableOptions_default_instance_); } -inline const ::greptime::v1::ChangeTableOptions& AlterExpr::change_table_options() const { - // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.change_table_options) - return _internal_change_table_options(); +inline const ::greptime::v1::SetTableOptions& AlterExpr::set_table_options() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.set_table_options) + return _internal_set_table_options(); } -inline ::greptime::v1::ChangeTableOptions* AlterExpr::unsafe_arena_release_change_table_options() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.change_table_options) - if (_internal_has_change_table_options()) { +inline ::greptime::v1::SetTableOptions* AlterExpr::unsafe_arena_release_set_table_options() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.set_table_options) + if (_internal_has_set_table_options()) { clear_has_kind(); - ::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_; - _impl_.kind_.change_table_options_ = nullptr; + ::greptime::v1::SetTableOptions* temp = _impl_.kind_.set_table_options_; + _impl_.kind_.set_table_options_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterExpr::unsafe_arena_set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { +inline void AlterExpr::unsafe_arena_set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options) { clear_kind(); - if (change_table_options) { - set_has_change_table_options(); - _impl_.kind_.change_table_options_ = change_table_options; + if (set_table_options) { + set_has_set_table_options(); + _impl_.kind_.set_table_options_ = set_table_options; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.change_table_options) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.set_table_options) } -inline ::greptime::v1::ChangeTableOptions* AlterExpr::_internal_mutable_change_table_options() { - if (!_internal_has_change_table_options()) { +inline ::greptime::v1::SetTableOptions* AlterExpr::_internal_mutable_set_table_options() { + if (!_internal_has_set_table_options()) { clear_kind(); - set_has_change_table_options(); - _impl_.kind_.change_table_options_ = CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(GetArenaForAllocation()); + set_has_set_table_options(); + _impl_.kind_.set_table_options_ = CreateMaybeMessage< ::greptime::v1::SetTableOptions >(GetArenaForAllocation()); } - return _impl_.kind_.change_table_options_; + return _impl_.kind_.set_table_options_; } -inline ::greptime::v1::ChangeTableOptions* AlterExpr::mutable_change_table_options() { - ::greptime::v1::ChangeTableOptions* _msg = _internal_mutable_change_table_options(); - // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.change_table_options) +inline ::greptime::v1::SetTableOptions* AlterExpr::mutable_set_table_options() { + ::greptime::v1::SetTableOptions* _msg = _internal_mutable_set_table_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.set_table_options) return _msg; } @@ -9101,6 +9290,80 @@ inline ::greptime::v1::UnsetColumnFulltext* AlterExpr::mutable_unset_column_full return _msg; } +// .greptime.v1.UnsetTableOptions unset_table_options = 11; +inline bool AlterExpr::_internal_has_unset_table_options() const { + return kind_case() == kUnsetTableOptions; +} +inline bool AlterExpr::has_unset_table_options() const { + return _internal_has_unset_table_options(); +} +inline void AlterExpr::set_has_unset_table_options() { + _impl_._oneof_case_[0] = kUnsetTableOptions; +} +inline void AlterExpr::clear_unset_table_options() { + if (_internal_has_unset_table_options()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unset_table_options_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::UnsetTableOptions* AlterExpr::release_unset_table_options() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterExpr.unset_table_options) + if (_internal_has_unset_table_options()) { + clear_has_kind(); + ::greptime::v1::UnsetTableOptions* temp = _impl_.kind_.unset_table_options_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.unset_table_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::UnsetTableOptions& AlterExpr::_internal_unset_table_options() const { + return _internal_has_unset_table_options() + ? *_impl_.kind_.unset_table_options_ + : reinterpret_cast< ::greptime::v1::UnsetTableOptions&>(::greptime::v1::_UnsetTableOptions_default_instance_); +} +inline const ::greptime::v1::UnsetTableOptions& AlterExpr::unset_table_options() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterExpr.unset_table_options) + return _internal_unset_table_options(); +} +inline ::greptime::v1::UnsetTableOptions* AlterExpr::unsafe_arena_release_unset_table_options() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterExpr.unset_table_options) + if (_internal_has_unset_table_options()) { + clear_has_kind(); + ::greptime::v1::UnsetTableOptions* temp = _impl_.kind_.unset_table_options_; + _impl_.kind_.unset_table_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterExpr::unsafe_arena_set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options) { + clear_kind(); + if (unset_table_options) { + set_has_unset_table_options(); + _impl_.kind_.unset_table_options_ = unset_table_options; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterExpr.unset_table_options) +} +inline ::greptime::v1::UnsetTableOptions* AlterExpr::_internal_mutable_unset_table_options() { + if (!_internal_has_unset_table_options()) { + clear_kind(); + set_has_unset_table_options(); + _impl_.kind_.unset_table_options_ = CreateMaybeMessage< ::greptime::v1::UnsetTableOptions >(GetArenaForAllocation()); + } + return _impl_.kind_.unset_table_options_; +} +inline ::greptime::v1::UnsetTableOptions* AlterExpr::mutable_unset_table_options() { + ::greptime::v1::UnsetTableOptions* _msg = _internal_mutable_unset_table_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterExpr.unset_table_options) + return _msg; +} + inline bool AlterExpr::has_kind() const { return kind_case() != KIND_NOT_SET; } @@ -10428,88 +10691,88 @@ inline void ModifyColumnType::set_allocated_target_type_extension(::greptime::v1 // ------------------------------------------------------------------- -// ChangeTableOptions +// SetTableOptions -// repeated .greptime.v1.ChangeTableOption change_table_options = 1; -inline int ChangeTableOptions::_internal_change_table_options_size() const { - return _impl_.change_table_options_.size(); +// repeated .greptime.v1.TableOption table_options = 1; +inline int SetTableOptions::_internal_table_options_size() const { + return _impl_.table_options_.size(); } -inline int ChangeTableOptions::change_table_options_size() const { - return _internal_change_table_options_size(); +inline int SetTableOptions::table_options_size() const { + return _internal_table_options_size(); } -inline void ChangeTableOptions::clear_change_table_options() { - _impl_.change_table_options_.Clear(); +inline void SetTableOptions::clear_table_options() { + _impl_.table_options_.Clear(); } -inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::mutable_change_table_options(int index) { - // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOptions.change_table_options) - return _impl_.change_table_options_.Mutable(index); +inline ::greptime::v1::TableOption* SetTableOptions::mutable_table_options(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.SetTableOptions.table_options) + return _impl_.table_options_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >* -ChangeTableOptions::mutable_change_table_options() { - // @@protoc_insertion_point(field_mutable_list:greptime.v1.ChangeTableOptions.change_table_options) - return &_impl_.change_table_options_; +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableOption >* +SetTableOptions::mutable_table_options() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.SetTableOptions.table_options) + return &_impl_.table_options_; } -inline const ::greptime::v1::ChangeTableOption& ChangeTableOptions::_internal_change_table_options(int index) const { - return _impl_.change_table_options_.Get(index); +inline const ::greptime::v1::TableOption& SetTableOptions::_internal_table_options(int index) const { + return _impl_.table_options_.Get(index); } -inline const ::greptime::v1::ChangeTableOption& ChangeTableOptions::change_table_options(int index) const { - // @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOptions.change_table_options) - return _internal_change_table_options(index); +inline const ::greptime::v1::TableOption& SetTableOptions::table_options(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.SetTableOptions.table_options) + return _internal_table_options(index); } -inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::_internal_add_change_table_options() { - return _impl_.change_table_options_.Add(); +inline ::greptime::v1::TableOption* SetTableOptions::_internal_add_table_options() { + return _impl_.table_options_.Add(); } -inline ::greptime::v1::ChangeTableOption* ChangeTableOptions::add_change_table_options() { - ::greptime::v1::ChangeTableOption* _add = _internal_add_change_table_options(); - // @@protoc_insertion_point(field_add:greptime.v1.ChangeTableOptions.change_table_options) +inline ::greptime::v1::TableOption* SetTableOptions::add_table_options() { + ::greptime::v1::TableOption* _add = _internal_add_table_options(); + // @@protoc_insertion_point(field_add:greptime.v1.SetTableOptions.table_options) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ChangeTableOption >& -ChangeTableOptions::change_table_options() const { - // @@protoc_insertion_point(field_list:greptime.v1.ChangeTableOptions.change_table_options) - return _impl_.change_table_options_; +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableOption >& +SetTableOptions::table_options() const { + // @@protoc_insertion_point(field_list:greptime.v1.SetTableOptions.table_options) + return _impl_.table_options_; } // ------------------------------------------------------------------- -// ChangeTableOption +// TableOption // string key = 1; -inline void ChangeTableOption::clear_key() { +inline void TableOption::clear_key() { _impl_.key_.ClearToEmpty(); } -inline const std::string& ChangeTableOption::key() const { - // @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOption.key) +inline const std::string& TableOption::key() const { + // @@protoc_insertion_point(field_get:greptime.v1.TableOption.key) return _internal_key(); } template inline PROTOBUF_ALWAYS_INLINE -void ChangeTableOption::set_key(ArgT0&& arg0, ArgT... args) { +void TableOption::set_key(ArgT0&& arg0, ArgT... args) { _impl_.key_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.ChangeTableOption.key) + // @@protoc_insertion_point(field_set:greptime.v1.TableOption.key) } -inline std::string* ChangeTableOption::mutable_key() { +inline std::string* TableOption::mutable_key() { std::string* _s = _internal_mutable_key(); - // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOption.key) + // @@protoc_insertion_point(field_mutable:greptime.v1.TableOption.key) return _s; } -inline const std::string& ChangeTableOption::_internal_key() const { +inline const std::string& TableOption::_internal_key() const { return _impl_.key_.Get(); } -inline void ChangeTableOption::_internal_set_key(const std::string& value) { +inline void TableOption::_internal_set_key(const std::string& value) { _impl_.key_.Set(value, GetArenaForAllocation()); } -inline std::string* ChangeTableOption::_internal_mutable_key() { +inline std::string* TableOption::_internal_mutable_key() { return _impl_.key_.Mutable(GetArenaForAllocation()); } -inline std::string* ChangeTableOption::release_key() { - // @@protoc_insertion_point(field_release:greptime.v1.ChangeTableOption.key) +inline std::string* TableOption::release_key() { + // @@protoc_insertion_point(field_release:greptime.v1.TableOption.key) return _impl_.key_.Release(); } -inline void ChangeTableOption::set_allocated_key(std::string* key) { +inline void TableOption::set_allocated_key(std::string* key) { if (key != nullptr) { } else { @@ -10521,45 +10784,45 @@ inline void ChangeTableOption::set_allocated_key(std::string* key) { _impl_.key_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeTableOption.key) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.TableOption.key) } // string value = 2; -inline void ChangeTableOption::clear_value() { +inline void TableOption::clear_value() { _impl_.value_.ClearToEmpty(); } -inline const std::string& ChangeTableOption::value() const { - // @@protoc_insertion_point(field_get:greptime.v1.ChangeTableOption.value) +inline const std::string& TableOption::value() const { + // @@protoc_insertion_point(field_get:greptime.v1.TableOption.value) return _internal_value(); } template inline PROTOBUF_ALWAYS_INLINE -void ChangeTableOption::set_value(ArgT0&& arg0, ArgT... args) { +void TableOption::set_value(ArgT0&& arg0, ArgT... args) { _impl_.value_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.ChangeTableOption.value) + // @@protoc_insertion_point(field_set:greptime.v1.TableOption.value) } -inline std::string* ChangeTableOption::mutable_value() { +inline std::string* TableOption::mutable_value() { std::string* _s = _internal_mutable_value(); - // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeTableOption.value) + // @@protoc_insertion_point(field_mutable:greptime.v1.TableOption.value) return _s; } -inline const std::string& ChangeTableOption::_internal_value() const { +inline const std::string& TableOption::_internal_value() const { return _impl_.value_.Get(); } -inline void ChangeTableOption::_internal_set_value(const std::string& value) { +inline void TableOption::_internal_set_value(const std::string& value) { _impl_.value_.Set(value, GetArenaForAllocation()); } -inline std::string* ChangeTableOption::_internal_mutable_value() { +inline std::string* TableOption::_internal_mutable_value() { return _impl_.value_.Mutable(GetArenaForAllocation()); } -inline std::string* ChangeTableOption::release_value() { - // @@protoc_insertion_point(field_release:greptime.v1.ChangeTableOption.value) +inline std::string* TableOption::release_value() { + // @@protoc_insertion_point(field_release:greptime.v1.TableOption.value) return _impl_.value_.Release(); } -inline void ChangeTableOption::set_allocated_value(std::string* value) { +inline void TableOption::set_allocated_value(std::string* value) { if (value != nullptr) { } else { @@ -10571,7 +10834,86 @@ inline void ChangeTableOption::set_allocated_value(std::string* value) { _impl_.value_.Set("", GetArenaForAllocation()); } #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeTableOption.value) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.TableOption.value) +} + +// ------------------------------------------------------------------- + +// UnsetTableOptions + +// repeated string keys = 1; +inline int UnsetTableOptions::_internal_keys_size() const { + return _impl_.keys_.size(); +} +inline int UnsetTableOptions::keys_size() const { + return _internal_keys_size(); +} +inline void UnsetTableOptions::clear_keys() { + _impl_.keys_.Clear(); +} +inline std::string* UnsetTableOptions::add_keys() { + std::string* _s = _internal_add_keys(); + // @@protoc_insertion_point(field_add_mutable:greptime.v1.UnsetTableOptions.keys) + return _s; +} +inline const std::string& UnsetTableOptions::_internal_keys(int index) const { + return _impl_.keys_.Get(index); +} +inline const std::string& UnsetTableOptions::keys(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.UnsetTableOptions.keys) + return _internal_keys(index); +} +inline std::string* UnsetTableOptions::mutable_keys(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.UnsetTableOptions.keys) + return _impl_.keys_.Mutable(index); +} +inline void UnsetTableOptions::set_keys(int index, const std::string& value) { + _impl_.keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:greptime.v1.UnsetTableOptions.keys) +} +inline void UnsetTableOptions::set_keys(int index, std::string&& value) { + _impl_.keys_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:greptime.v1.UnsetTableOptions.keys) +} +inline void UnsetTableOptions::set_keys(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.keys_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:greptime.v1.UnsetTableOptions.keys) +} +inline void UnsetTableOptions::set_keys(int index, const char* value, size_t size) { + _impl_.keys_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:greptime.v1.UnsetTableOptions.keys) +} +inline std::string* UnsetTableOptions::_internal_add_keys() { + return _impl_.keys_.Add(); +} +inline void UnsetTableOptions::add_keys(const std::string& value) { + _impl_.keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add:greptime.v1.UnsetTableOptions.keys) +} +inline void UnsetTableOptions::add_keys(std::string&& value) { + _impl_.keys_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:greptime.v1.UnsetTableOptions.keys) +} +inline void UnsetTableOptions::add_keys(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.keys_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:greptime.v1.UnsetTableOptions.keys) +} +inline void UnsetTableOptions::add_keys(const char* value, size_t size) { + _impl_.keys_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:greptime.v1.UnsetTableOptions.keys) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +UnsetTableOptions::keys() const { + // @@protoc_insertion_point(field_list:greptime.v1.UnsetTableOptions.keys) + return _impl_.keys_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +UnsetTableOptions::mutable_keys() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.UnsetTableOptions.keys) + return &_impl_.keys_; } // ------------------------------------------------------------------- @@ -11361,6 +11703,8 @@ inline void UnsetColumnFulltext::set_allocated_column_name(std::string* column_n // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index e48549a3..c7e47448 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -625,6 +625,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_ @@ -723,16 +724,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)}, - { 190, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, - { 197, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, - { 204, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, - { 212, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, - { 219, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, - { 226, -1, -1, sizeof(::greptime::v1::region::Regular)}, - { 232, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, - { 239, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, - { 249, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 256, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 191, -1, -1, sizeof(::greptime::v1::region::AddColumns)}, + { 198, -1, -1, sizeof(::greptime::v1::region::DropColumns)}, + { 205, -1, -1, sizeof(::greptime::v1::region::AddColumn)}, + { 213, -1, -1, sizeof(::greptime::v1::region::DropColumn)}, + { 220, -1, -1, sizeof(::greptime::v1::region::FlushRequest)}, + { 227, -1, -1, sizeof(::greptime::v1::region::Regular)}, + { 233, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, + { 240, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, + { 250, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, + { 257, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -829,39 +830,41 @@ 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\"\263\003\n\014Alte" + "greptime.v1.region.AlterRequest\"\354\003\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\023modify_column_typ" "es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes" - "H\000\022\?\n\024change_table_options\030\006 \001(\0132\037.grept" - "ime.v1.ChangeTableOptionsH\000\022=\n\023set_colum" - "n_fulltext\030\007 \001(\0132\036.greptime.v1.SetColumn" - "FulltextH\000\022A\n\025unset_column_fulltext\030\010 \001(" - "\0132 .greptime.v1.UnsetColumnFulltextH\000\022\026\n" - "\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColu" - "mns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1.r" - "egion.AddColumn\"C\n\013DropColumns\0224\n\014drop_c" - "olumns\030\001 \003(\0132\036.greptime.v1.region.DropCo" - "lumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#." - "greptime.v1.region.RegionColumnDef\0220\n\010lo" - "cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca" - "tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Flus" - "hRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&" - "\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(\003\"\231" - "\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007" - "regular\030\002 \001(\0132\033.greptime.v1.region.Regul" - "arH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime.v" - "1.region.StrictWindowH\000B\t\n\007options\"$\n\017Tr" - "uncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Regi" - "onColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti" - "me.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Re" - "gion\022O\n\006Handle\022!.greptime.v1.region.Regi" - "onRequest\032\".greptime.v1.region.RegionRes" - "ponseB]\n\025io.greptime.v1.regionB\006ServerZ<" - "github.com/GreptimeTeam/greptime-proto/g" - "o/greptime/v1/regionb\006proto3" + "H\000\0229\n\021set_table_options\030\006 \001(\0132\034.greptime" + ".v1.SetTableOptionsH\000\022=\n\023set_column_full" + "text\030\007 \001(\0132\036.greptime.v1.SetColumnFullte" + "xtH\000\022A\n\025unset_column_fulltext\030\010 \001(\0132 .gr" + "eptime.v1.UnsetColumnFulltextH\000\022=\n\023unset" + "_table_options\030\t \001(\0132\036.greptime.v1.Unset" + "TableOptionsH\000\022\026\n\016schema_version\030\004 \001(\004B\006" + "\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(" + "\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop" + "Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime" + ".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco" + "lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi" + "onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" + ".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n" + "ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001" + " \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo" + "w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre" + "gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim" + "e.v1.region.RegularH\000\0229\n\rstrict_window\030\003" + " \001(\0132 .greptime.v1.region.StrictWindowH\000" + "B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion" + "_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d" + "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu" + "mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti" + "me.v1.region.RegionRequest\032\".greptime.v1" + ".region.RegionResponseB]\n\025io.greptime.v1" + ".regionB\006ServerZ_impl_.kind_.modify_column_types_; } -const ::greptime::v1::ChangeTableOptions& -AlterRequest::_Internal::change_table_options(const AlterRequest* msg) { - return *msg->_impl_.kind_.change_table_options_; +const ::greptime::v1::SetTableOptions& +AlterRequest::_Internal::set_table_options(const AlterRequest* msg) { + return *msg->_impl_.kind_.set_table_options_; } const ::greptime::v1::SetColumnFulltext& AlterRequest::_Internal::set_column_fulltext(const AlterRequest* msg) { @@ -5361,6 +5365,10 @@ const ::greptime::v1::UnsetColumnFulltext& AlterRequest::_Internal::unset_column_fulltext(const AlterRequest* msg) { return *msg->_impl_.kind_.unset_column_fulltext_; } +const ::greptime::v1::UnsetTableOptions& +AlterRequest::_Internal::unset_table_options(const AlterRequest* msg) { + return *msg->_impl_.kind_.unset_table_options_; +} void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -5415,26 +5423,26 @@ void AlterRequest::clear_modify_column_types() { clear_has_kind(); } } -void AlterRequest::set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { +void AlterRequest::set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (change_table_options) { + if (set_table_options) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_table_options)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(set_table_options)); if (message_arena != submessage_arena) { - change_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, change_table_options, submessage_arena); + set_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, set_table_options, submessage_arena); } - set_has_change_table_options(); - _impl_.kind_.change_table_options_ = change_table_options; + set_has_set_table_options(); + _impl_.kind_.set_table_options_ = set_table_options; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_table_options) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.set_table_options) } -void AlterRequest::clear_change_table_options() { - if (_internal_has_change_table_options()) { +void AlterRequest::clear_set_table_options() { + if (_internal_has_set_table_options()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_table_options_; + delete _impl_.kind_.set_table_options_; } clear_has_kind(); } @@ -5487,6 +5495,30 @@ void AlterRequest::clear_unset_column_fulltext() { clear_has_kind(); } } +void AlterRequest::set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (unset_table_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(unset_table_options)); + if (message_arena != submessage_arena) { + unset_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unset_table_options, submessage_arena); + } + set_has_unset_table_options(); + _impl_.kind_.unset_table_options_ = unset_table_options; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.unset_table_options) +} +void AlterRequest::clear_unset_table_options() { + if (_internal_has_unset_table_options()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unset_table_options_; + } + clear_has_kind(); + } +} AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5524,9 +5556,9 @@ AlterRequest::AlterRequest(const AlterRequest& from) from._internal_modify_column_types()); break; } - case kChangeTableOptions: { - _this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom( - from._internal_change_table_options()); + case kSetTableOptions: { + _this->_internal_mutable_set_table_options()->::greptime::v1::SetTableOptions::MergeFrom( + from._internal_set_table_options()); break; } case kSetColumnFulltext: { @@ -5539,6 +5571,11 @@ AlterRequest::AlterRequest(const AlterRequest& from) from._internal_unset_column_fulltext()); break; } + case kUnsetTableOptions: { + _this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom( + from._internal_unset_table_options()); + break; + } case KIND_NOT_SET: { break; } @@ -5601,9 +5638,9 @@ void AlterRequest::clear_kind() { } break; } - case kChangeTableOptions: { + case kSetTableOptions: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_table_options_; + delete _impl_.kind_.set_table_options_; } break; } @@ -5619,6 +5656,12 @@ void AlterRequest::clear_kind() { } break; } + case kUnsetTableOptions: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unset_table_options_; + } + break; + } case KIND_NOT_SET: { break; } @@ -5686,10 +5729,10 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // .greptime.v1.ChangeTableOptions change_table_options = 6; + // .greptime.v1.SetTableOptions set_table_options = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_change_table_options(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_set_table_options(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -5710,6 +5753,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.UnsetTableOptions unset_table_options = 9; + case 9: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_unset_table_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5772,11 +5823,11 @@ uint8_t* AlterRequest::_InternalSerialize( _Internal::modify_column_types(this).GetCachedSize(), target, stream); } - // .greptime.v1.ChangeTableOptions change_table_options = 6; - if (_internal_has_change_table_options()) { + // .greptime.v1.SetTableOptions set_table_options = 6; + if (_internal_has_set_table_options()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, _Internal::change_table_options(this), - _Internal::change_table_options(this).GetCachedSize(), target, stream); + InternalWriteMessage(6, _Internal::set_table_options(this), + _Internal::set_table_options(this).GetCachedSize(), target, stream); } // .greptime.v1.SetColumnFulltext set_column_fulltext = 7; @@ -5793,6 +5844,13 @@ uint8_t* AlterRequest::_InternalSerialize( _Internal::unset_column_fulltext(this).GetCachedSize(), target, stream); } + // .greptime.v1.UnsetTableOptions unset_table_options = 9; + if (_internal_has_unset_table_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(9, _Internal::unset_table_options(this), + _Internal::unset_table_options(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -5841,11 +5899,11 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.modify_column_types_); break; } - // .greptime.v1.ChangeTableOptions change_table_options = 6; - case kChangeTableOptions: { + // .greptime.v1.SetTableOptions set_table_options = 6; + case kSetTableOptions: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.change_table_options_); + *_impl_.kind_.set_table_options_); break; } // .greptime.v1.SetColumnFulltext set_column_fulltext = 7; @@ -5862,6 +5920,13 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.unset_column_fulltext_); break; } + // .greptime.v1.UnsetTableOptions unset_table_options = 9; + case kUnsetTableOptions: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.unset_table_options_); + break; + } case KIND_NOT_SET: { break; } @@ -5906,9 +5971,9 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P from._internal_modify_column_types()); break; } - case kChangeTableOptions: { - _this->_internal_mutable_change_table_options()->::greptime::v1::ChangeTableOptions::MergeFrom( - from._internal_change_table_options()); + case kSetTableOptions: { + _this->_internal_mutable_set_table_options()->::greptime::v1::SetTableOptions::MergeFrom( + from._internal_set_table_options()); break; } case kSetColumnFulltext: { @@ -5921,6 +5986,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P from._internal_unset_column_fulltext()); break; } + case kUnsetTableOptions: { + _this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom( + from._internal_unset_table_options()); + break; + } case KIND_NOT_SET: { break; } diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index cbc664ed..818f1fbe 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -3251,9 +3251,10 @@ class AlterRequest final : kAddColumns = 2, kDropColumns = 3, kModifyColumnTypes = 5, - kChangeTableOptions = 6, + kSetTableOptions = 6, kSetColumnFulltext = 7, kUnsetColumnFulltext = 8, + kUnsetTableOptions = 9, KIND_NOT_SET = 0, }; @@ -3340,9 +3341,10 @@ class AlterRequest final : kAddColumnsFieldNumber = 2, kDropColumnsFieldNumber = 3, kModifyColumnTypesFieldNumber = 5, - kChangeTableOptionsFieldNumber = 6, + kSetTableOptionsFieldNumber = 6, kSetColumnFulltextFieldNumber = 7, kUnsetColumnFulltextFieldNumber = 8, + kUnsetTableOptionsFieldNumber = 9, }; // uint64 region_id = 1; void clear_region_id(); @@ -3416,23 +3418,23 @@ class AlterRequest final : ::greptime::v1::ModifyColumnTypes* modify_column_types); ::greptime::v1::ModifyColumnTypes* unsafe_arena_release_modify_column_types(); - // .greptime.v1.ChangeTableOptions change_table_options = 6; - bool has_change_table_options() const; + // .greptime.v1.SetTableOptions set_table_options = 6; + bool has_set_table_options() const; private: - bool _internal_has_change_table_options() const; + bool _internal_has_set_table_options() const; public: - void clear_change_table_options(); - const ::greptime::v1::ChangeTableOptions& change_table_options() const; - PROTOBUF_NODISCARD ::greptime::v1::ChangeTableOptions* release_change_table_options(); - ::greptime::v1::ChangeTableOptions* mutable_change_table_options(); - void set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options); + void clear_set_table_options(); + const ::greptime::v1::SetTableOptions& set_table_options() const; + PROTOBUF_NODISCARD ::greptime::v1::SetTableOptions* release_set_table_options(); + ::greptime::v1::SetTableOptions* mutable_set_table_options(); + void set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options); private: - const ::greptime::v1::ChangeTableOptions& _internal_change_table_options() const; - ::greptime::v1::ChangeTableOptions* _internal_mutable_change_table_options(); + const ::greptime::v1::SetTableOptions& _internal_set_table_options() const; + ::greptime::v1::SetTableOptions* _internal_mutable_set_table_options(); public: - void unsafe_arena_set_allocated_change_table_options( - ::greptime::v1::ChangeTableOptions* change_table_options); - ::greptime::v1::ChangeTableOptions* unsafe_arena_release_change_table_options(); + void unsafe_arena_set_allocated_set_table_options( + ::greptime::v1::SetTableOptions* set_table_options); + ::greptime::v1::SetTableOptions* unsafe_arena_release_set_table_options(); // .greptime.v1.SetColumnFulltext set_column_fulltext = 7; bool has_set_column_fulltext() const; @@ -3470,6 +3472,24 @@ class AlterRequest final : ::greptime::v1::UnsetColumnFulltext* unset_column_fulltext); ::greptime::v1::UnsetColumnFulltext* unsafe_arena_release_unset_column_fulltext(); + // .greptime.v1.UnsetTableOptions unset_table_options = 9; + bool has_unset_table_options() const; + private: + bool _internal_has_unset_table_options() const; + public: + void clear_unset_table_options(); + const ::greptime::v1::UnsetTableOptions& unset_table_options() const; + PROTOBUF_NODISCARD ::greptime::v1::UnsetTableOptions* release_unset_table_options(); + ::greptime::v1::UnsetTableOptions* mutable_unset_table_options(); + void set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options); + private: + const ::greptime::v1::UnsetTableOptions& _internal_unset_table_options() const; + ::greptime::v1::UnsetTableOptions* _internal_mutable_unset_table_options(); + public: + void unsafe_arena_set_allocated_unset_table_options( + ::greptime::v1::UnsetTableOptions* unset_table_options); + ::greptime::v1::UnsetTableOptions* unsafe_arena_release_unset_table_options(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest) @@ -3478,9 +3498,10 @@ class AlterRequest final : void set_has_add_columns(); void set_has_drop_columns(); void set_has_modify_column_types(); - void set_has_change_table_options(); + void set_has_set_table_options(); void set_has_set_column_fulltext(); void set_has_unset_column_fulltext(); + void set_has_unset_table_options(); inline bool has_kind() const; inline void clear_has_kind(); @@ -3497,9 +3518,10 @@ class AlterRequest final : ::greptime::v1::region::AddColumns* add_columns_; ::greptime::v1::region::DropColumns* drop_columns_; ::greptime::v1::ModifyColumnTypes* modify_column_types_; - ::greptime::v1::ChangeTableOptions* change_table_options_; + ::greptime::v1::SetTableOptions* set_table_options_; ::greptime::v1::SetColumnFulltext* set_column_fulltext_; ::greptime::v1::UnsetColumnFulltext* unset_column_fulltext_; + ::greptime::v1::UnsetTableOptions* unset_table_options_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -7756,69 +7778,69 @@ inline ::greptime::v1::ModifyColumnTypes* AlterRequest::mutable_modify_column_ty return _msg; } -// .greptime.v1.ChangeTableOptions change_table_options = 6; -inline bool AlterRequest::_internal_has_change_table_options() const { - return kind_case() == kChangeTableOptions; +// .greptime.v1.SetTableOptions set_table_options = 6; +inline bool AlterRequest::_internal_has_set_table_options() const { + return kind_case() == kSetTableOptions; } -inline bool AlterRequest::has_change_table_options() const { - return _internal_has_change_table_options(); +inline bool AlterRequest::has_set_table_options() const { + return _internal_has_set_table_options(); } -inline void AlterRequest::set_has_change_table_options() { - _impl_._oneof_case_[0] = kChangeTableOptions; +inline void AlterRequest::set_has_set_table_options() { + _impl_._oneof_case_[0] = kSetTableOptions; } -inline ::greptime::v1::ChangeTableOptions* AlterRequest::release_change_table_options() { - // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_table_options) - if (_internal_has_change_table_options()) { +inline ::greptime::v1::SetTableOptions* AlterRequest::release_set_table_options() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.set_table_options) + if (_internal_has_set_table_options()) { clear_has_kind(); - ::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_; + ::greptime::v1::SetTableOptions* temp = _impl_.kind_.set_table_options_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.change_table_options_ = nullptr; + _impl_.kind_.set_table_options_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::ChangeTableOptions& AlterRequest::_internal_change_table_options() const { - return _internal_has_change_table_options() - ? *_impl_.kind_.change_table_options_ - : reinterpret_cast< ::greptime::v1::ChangeTableOptions&>(::greptime::v1::_ChangeTableOptions_default_instance_); +inline const ::greptime::v1::SetTableOptions& AlterRequest::_internal_set_table_options() const { + return _internal_has_set_table_options() + ? *_impl_.kind_.set_table_options_ + : reinterpret_cast< ::greptime::v1::SetTableOptions&>(::greptime::v1::_SetTableOptions_default_instance_); } -inline const ::greptime::v1::ChangeTableOptions& AlterRequest::change_table_options() const { - // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_table_options) - return _internal_change_table_options(); +inline const ::greptime::v1::SetTableOptions& AlterRequest::set_table_options() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.set_table_options) + return _internal_set_table_options(); } -inline ::greptime::v1::ChangeTableOptions* AlterRequest::unsafe_arena_release_change_table_options() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_table_options) - if (_internal_has_change_table_options()) { +inline ::greptime::v1::SetTableOptions* AlterRequest::unsafe_arena_release_set_table_options() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.set_table_options) + if (_internal_has_set_table_options()) { clear_has_kind(); - ::greptime::v1::ChangeTableOptions* temp = _impl_.kind_.change_table_options_; - _impl_.kind_.change_table_options_ = nullptr; + ::greptime::v1::SetTableOptions* temp = _impl_.kind_.set_table_options_; + _impl_.kind_.set_table_options_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterRequest::unsafe_arena_set_allocated_change_table_options(::greptime::v1::ChangeTableOptions* change_table_options) { +inline void AlterRequest::unsafe_arena_set_allocated_set_table_options(::greptime::v1::SetTableOptions* set_table_options) { clear_kind(); - if (change_table_options) { - set_has_change_table_options(); - _impl_.kind_.change_table_options_ = change_table_options; + if (set_table_options) { + set_has_set_table_options(); + _impl_.kind_.set_table_options_ = set_table_options; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_table_options) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.set_table_options) } -inline ::greptime::v1::ChangeTableOptions* AlterRequest::_internal_mutable_change_table_options() { - if (!_internal_has_change_table_options()) { +inline ::greptime::v1::SetTableOptions* AlterRequest::_internal_mutable_set_table_options() { + if (!_internal_has_set_table_options()) { clear_kind(); - set_has_change_table_options(); - _impl_.kind_.change_table_options_ = CreateMaybeMessage< ::greptime::v1::ChangeTableOptions >(GetArenaForAllocation()); + set_has_set_table_options(); + _impl_.kind_.set_table_options_ = CreateMaybeMessage< ::greptime::v1::SetTableOptions >(GetArenaForAllocation()); } - return _impl_.kind_.change_table_options_; + return _impl_.kind_.set_table_options_; } -inline ::greptime::v1::ChangeTableOptions* AlterRequest::mutable_change_table_options() { - ::greptime::v1::ChangeTableOptions* _msg = _internal_mutable_change_table_options(); - // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_table_options) +inline ::greptime::v1::SetTableOptions* AlterRequest::mutable_set_table_options() { + ::greptime::v1::SetTableOptions* _msg = _internal_mutable_set_table_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.set_table_options) return _msg; } @@ -7954,6 +7976,72 @@ inline ::greptime::v1::UnsetColumnFulltext* AlterRequest::mutable_unset_column_f return _msg; } +// .greptime.v1.UnsetTableOptions unset_table_options = 9; +inline bool AlterRequest::_internal_has_unset_table_options() const { + return kind_case() == kUnsetTableOptions; +} +inline bool AlterRequest::has_unset_table_options() const { + return _internal_has_unset_table_options(); +} +inline void AlterRequest::set_has_unset_table_options() { + _impl_._oneof_case_[0] = kUnsetTableOptions; +} +inline ::greptime::v1::UnsetTableOptions* AlterRequest::release_unset_table_options() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.unset_table_options) + if (_internal_has_unset_table_options()) { + clear_has_kind(); + ::greptime::v1::UnsetTableOptions* temp = _impl_.kind_.unset_table_options_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.unset_table_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::UnsetTableOptions& AlterRequest::_internal_unset_table_options() const { + return _internal_has_unset_table_options() + ? *_impl_.kind_.unset_table_options_ + : reinterpret_cast< ::greptime::v1::UnsetTableOptions&>(::greptime::v1::_UnsetTableOptions_default_instance_); +} +inline const ::greptime::v1::UnsetTableOptions& AlterRequest::unset_table_options() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.unset_table_options) + return _internal_unset_table_options(); +} +inline ::greptime::v1::UnsetTableOptions* AlterRequest::unsafe_arena_release_unset_table_options() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.unset_table_options) + if (_internal_has_unset_table_options()) { + clear_has_kind(); + ::greptime::v1::UnsetTableOptions* temp = _impl_.kind_.unset_table_options_; + _impl_.kind_.unset_table_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterRequest::unsafe_arena_set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options) { + clear_kind(); + if (unset_table_options) { + set_has_unset_table_options(); + _impl_.kind_.unset_table_options_ = unset_table_options; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.unset_table_options) +} +inline ::greptime::v1::UnsetTableOptions* AlterRequest::_internal_mutable_unset_table_options() { + if (!_internal_has_unset_table_options()) { + clear_kind(); + set_has_unset_table_options(); + _impl_.kind_.unset_table_options_ = CreateMaybeMessage< ::greptime::v1::UnsetTableOptions >(GetArenaForAllocation()); + } + return _impl_.kind_.unset_table_options_; +} +inline ::greptime::v1::UnsetTableOptions* AlterRequest::mutable_unset_table_options() { + ::greptime::v1::UnsetTableOptions* _msg = _internal_mutable_unset_table_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.unset_table_options) + return _msg; +} + // uint64 schema_version = 4; inline void AlterRequest::clear_schema_version() { _impl_.schema_version_ = uint64_t{0u}; diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 7046be5b..83f00611 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -123,7 +123,7 @@ func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber { // Deprecated: Use AddColumnLocation_LocationType.Descriptor instead. func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23, 0} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{24, 0} } // "Data Definition Language" requests, that create, modify or delete the @@ -843,9 +843,10 @@ type AlterExpr struct { // *AlterExpr_DropColumns // *AlterExpr_RenameTable // *AlterExpr_ModifyColumnTypes - // *AlterExpr_ChangeTableOptions + // *AlterExpr_SetTableOptions // *AlterExpr_SetColumnFulltext // *AlterExpr_UnsetColumnFulltext + // *AlterExpr_UnsetTableOptions Kind isAlterExpr_Kind `protobuf_oneof:"kind"` } @@ -937,9 +938,9 @@ func (x *AlterExpr) GetModifyColumnTypes() *ModifyColumnTypes { return nil } -func (x *AlterExpr) GetChangeTableOptions() *ChangeTableOptions { - if x, ok := x.GetKind().(*AlterExpr_ChangeTableOptions); ok { - return x.ChangeTableOptions +func (x *AlterExpr) GetSetTableOptions() *SetTableOptions { + if x, ok := x.GetKind().(*AlterExpr_SetTableOptions); ok { + return x.SetTableOptions } return nil } @@ -958,6 +959,13 @@ func (x *AlterExpr) GetUnsetColumnFulltext() *UnsetColumnFulltext { return nil } +func (x *AlterExpr) GetUnsetTableOptions() *UnsetTableOptions { + if x, ok := x.GetKind().(*AlterExpr_UnsetTableOptions); ok { + return x.UnsetTableOptions + } + return nil +} + type isAlterExpr_Kind interface { isAlterExpr_Kind() } @@ -978,8 +986,8 @@ type AlterExpr_ModifyColumnTypes struct { ModifyColumnTypes *ModifyColumnTypes `protobuf:"bytes,7,opt,name=modify_column_types,json=modifyColumnTypes,proto3,oneof"` } -type AlterExpr_ChangeTableOptions struct { - ChangeTableOptions *ChangeTableOptions `protobuf:"bytes,8,opt,name=change_table_options,json=changeTableOptions,proto3,oneof"` +type AlterExpr_SetTableOptions struct { + SetTableOptions *SetTableOptions `protobuf:"bytes,8,opt,name=set_table_options,json=setTableOptions,proto3,oneof"` } type AlterExpr_SetColumnFulltext struct { @@ -990,6 +998,10 @@ type AlterExpr_UnsetColumnFulltext struct { UnsetColumnFulltext *UnsetColumnFulltext `protobuf:"bytes,10,opt,name=unset_column_fulltext,json=unsetColumnFulltext,proto3,oneof"` } +type AlterExpr_UnsetTableOptions struct { + UnsetTableOptions *UnsetTableOptions `protobuf:"bytes,11,opt,name=unset_table_options,json=unsetTableOptions,proto3,oneof"` +} + func (*AlterExpr_AddColumns) isAlterExpr_Kind() {} func (*AlterExpr_DropColumns) isAlterExpr_Kind() {} @@ -998,12 +1010,14 @@ func (*AlterExpr_RenameTable) isAlterExpr_Kind() {} func (*AlterExpr_ModifyColumnTypes) isAlterExpr_Kind() {} -func (*AlterExpr_ChangeTableOptions) isAlterExpr_Kind() {} +func (*AlterExpr_SetTableOptions) isAlterExpr_Kind() {} func (*AlterExpr_SetColumnFulltext) isAlterExpr_Kind() {} func (*AlterExpr_UnsetColumnFulltext) isAlterExpr_Kind() {} +func (*AlterExpr_UnsetTableOptions) isAlterExpr_Kind() {} + type DropTableExpr struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1594,16 +1608,16 @@ func (x *ModifyColumnType) GetTargetTypeExtension() *ColumnDataTypeExtension { return nil } -type ChangeTableOptions struct { +type SetTableOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ChangeTableOptions []*ChangeTableOption `protobuf:"bytes,1,rep,name=change_table_options,json=changeTableOptions,proto3" json:"change_table_options,omitempty"` + TableOptions []*TableOption `protobuf:"bytes,1,rep,name=table_options,json=tableOptions,proto3" json:"table_options,omitempty"` } -func (x *ChangeTableOptions) Reset() { - *x = ChangeTableOptions{} +func (x *SetTableOptions) Reset() { + *x = SetTableOptions{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1611,13 +1625,13 @@ func (x *ChangeTableOptions) Reset() { } } -func (x *ChangeTableOptions) String() string { +func (x *SetTableOptions) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeTableOptions) ProtoMessage() {} +func (*SetTableOptions) ProtoMessage() {} -func (x *ChangeTableOptions) ProtoReflect() protoreflect.Message { +func (x *SetTableOptions) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_ddl_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1629,19 +1643,19 @@ func (x *ChangeTableOptions) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeTableOptions.ProtoReflect.Descriptor instead. -func (*ChangeTableOptions) Descriptor() ([]byte, []int) { +// Deprecated: Use SetTableOptions.ProtoReflect.Descriptor instead. +func (*SetTableOptions) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} } -func (x *ChangeTableOptions) GetChangeTableOptions() []*ChangeTableOption { +func (x *SetTableOptions) GetTableOptions() []*TableOption { if x != nil { - return x.ChangeTableOptions + return x.TableOptions } return nil } -type ChangeTableOption struct { +type TableOption struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1650,8 +1664,8 @@ type ChangeTableOption struct { Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } -func (x *ChangeTableOption) Reset() { - *x = ChangeTableOption{} +func (x *TableOption) Reset() { + *x = TableOption{} if protoimpl.UnsafeEnabled { mi := &file_greptime_v1_ddl_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1659,13 +1673,13 @@ func (x *ChangeTableOption) Reset() { } } -func (x *ChangeTableOption) String() string { +func (x *TableOption) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ChangeTableOption) ProtoMessage() {} +func (*TableOption) ProtoMessage() {} -func (x *ChangeTableOption) ProtoReflect() protoreflect.Message { +func (x *TableOption) ProtoReflect() protoreflect.Message { mi := &file_greptime_v1_ddl_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -1677,25 +1691,72 @@ func (x *ChangeTableOption) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ChangeTableOption.ProtoReflect.Descriptor instead. -func (*ChangeTableOption) Descriptor() ([]byte, []int) { +// Deprecated: Use TableOption.ProtoReflect.Descriptor instead. +func (*TableOption) Descriptor() ([]byte, []int) { return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} } -func (x *ChangeTableOption) GetKey() string { +func (x *TableOption) GetKey() string { if x != nil { return x.Key } return "" } -func (x *ChangeTableOption) GetValue() string { +func (x *TableOption) GetValue() string { if x != nil { return x.Value } return "" } +type UnsetTableOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` +} + +func (x *UnsetTableOptions) Reset() { + *x = UnsetTableOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnsetTableOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsetTableOptions) ProtoMessage() {} + +func (x *UnsetTableOptions) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[19] + 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 UnsetTableOptions.ProtoReflect.Descriptor instead. +func (*UnsetTableOptions) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19} +} + +func (x *UnsetTableOptions) GetKeys() []string { + if x != nil { + return x.Keys + } + return nil +} + type DropColumn struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1707,7 +1768,7 @@ type DropColumn struct { func (x *DropColumn) Reset() { *x = DropColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1720,7 +1781,7 @@ func (x *DropColumn) String() string { func (*DropColumn) ProtoMessage() {} func (x *DropColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1733,7 +1794,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use DropColumn.ProtoReflect.Descriptor instead. func (*DropColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20} } func (x *DropColumn) GetName() string { @@ -1754,7 +1815,7 @@ type TableId struct { func (x *TableId) Reset() { *x = TableId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[20] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1767,7 +1828,7 @@ func (x *TableId) String() string { func (*TableId) ProtoMessage() {} func (x *TableId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[20] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1780,7 +1841,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message { // Deprecated: Use TableId.ProtoReflect.Descriptor instead. func (*TableId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21} } func (x *TableId) GetId() uint32 { @@ -1801,7 +1862,7 @@ type FlowId struct { func (x *FlowId) Reset() { *x = FlowId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[21] + mi := &file_greptime_v1_ddl_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1814,7 +1875,7 @@ func (x *FlowId) String() string { func (*FlowId) ProtoMessage() {} func (x *FlowId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[21] + mi := &file_greptime_v1_ddl_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1827,7 +1888,7 @@ func (x *FlowId) ProtoReflect() protoreflect.Message { // Deprecated: Use FlowId.ProtoReflect.Descriptor instead. func (*FlowId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22} } func (x *FlowId) GetId() uint32 { @@ -1857,7 +1918,7 @@ type ColumnDef struct { func (x *ColumnDef) Reset() { *x = ColumnDef{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[22] + mi := &file_greptime_v1_ddl_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1870,7 +1931,7 @@ func (x *ColumnDef) String() string { func (*ColumnDef) ProtoMessage() {} func (x *ColumnDef) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[22] + mi := &file_greptime_v1_ddl_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1883,7 +1944,7 @@ func (x *ColumnDef) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead. func (*ColumnDef) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23} } func (x *ColumnDef) GetName() string { @@ -1954,7 +2015,7 @@ type AddColumnLocation struct { func (x *AddColumnLocation) Reset() { *x = AddColumnLocation{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[23] + mi := &file_greptime_v1_ddl_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1967,7 +2028,7 @@ func (x *AddColumnLocation) String() string { func (*AddColumnLocation) ProtoMessage() {} func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[23] + mi := &file_greptime_v1_ddl_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1980,7 +2041,7 @@ func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead. func (*AddColumnLocation) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{24} } func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType { @@ -2011,7 +2072,7 @@ type SetColumnFulltext struct { func (x *SetColumnFulltext) Reset() { *x = SetColumnFulltext{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[24] + mi := &file_greptime_v1_ddl_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2024,7 +2085,7 @@ func (x *SetColumnFulltext) String() string { func (*SetColumnFulltext) ProtoMessage() {} func (x *SetColumnFulltext) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[24] + mi := &file_greptime_v1_ddl_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2037,7 +2098,7 @@ func (x *SetColumnFulltext) ProtoReflect() protoreflect.Message { // Deprecated: Use SetColumnFulltext.ProtoReflect.Descriptor instead. func (*SetColumnFulltext) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{24} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{25} } func (x *SetColumnFulltext) GetColumnName() string { @@ -2079,7 +2140,7 @@ type UnsetColumnFulltext struct { func (x *UnsetColumnFulltext) Reset() { *x = UnsetColumnFulltext{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[25] + mi := &file_greptime_v1_ddl_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2092,7 +2153,7 @@ func (x *UnsetColumnFulltext) String() string { func (*UnsetColumnFulltext) ProtoMessage() {} func (x *UnsetColumnFulltext) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[25] + mi := &file_greptime_v1_ddl_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2105,7 +2166,7 @@ func (x *UnsetColumnFulltext) ProtoReflect() protoreflect.Message { // Deprecated: Use UnsetColumnFulltext.ProtoReflect.Descriptor instead. func (*UnsetColumnFulltext) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{25} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{26} } func (x *UnsetColumnFulltext) GetColumnName() string { @@ -2273,7 +2334,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, 0x81, 0x05, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x22, 0xca, 0x05, 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, @@ -2296,186 +2357,191 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x48, 0x00, 0x52, 0x11, 0x6d, 0x6f, 0x64, 0x69, - 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x53, 0x0a, - 0x14, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 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, 0x12, 0x50, 0x0a, 0x13, 0x73, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, - 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, - 0x00, 0x52, 0x11, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c, 0x6c, - 0x74, 0x65, 0x78, 0x74, 0x12, 0x56, 0x0a, 0x15, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x63, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c, - 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x13, 0x75, 0x6e, 0x73, 0x65, 0x74, 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, + 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4a, 0x0a, + 0x11, 0x73, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x65, 0x74, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x50, 0x0a, 0x13, 0x73, 0x65, 0x74, + 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x66, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, + 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x11, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x56, 0x0a, 0x15, 0x75, + 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x66, 0x75, 0x6c, 0x6c, + 0x74, 0x65, 0x78, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x48, 0x00, 0x52, 0x13, + 0x75, 0x6e, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x74, + 0x65, 0x78, 0x74, 0x12, 0x50, 0x0a, 0x13, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x6e, 0x73, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x48, 0x00, 0x52, 0x11, 0x75, 0x6e, 0x73, 0x65, 0x74, 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, 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, 0x4d, 0x6f, - 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, - 0x4d, 0x0a, 0x13, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, - 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x6d, 0x6f, 0x64, - 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x33, - 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, - 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 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, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, - 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 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, + 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, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x6d, 0x6f, 0x64, 0x69, + 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, + 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, + 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 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, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, + 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 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, 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, 0xa6, 0x01, 0x0a, 0x11, 0x53, 0x65, 0x74, + 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, 0x50, 0x0a, 0x0f, 0x53, 0x65, + 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3d, 0x0a, + 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x35, 0x0a, 0x0b, + 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, 0x27, 0x0a, 0x11, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 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, 0xa6, + 0x01, 0x0a, 0x11, 0x53, 0x65, 0x74, 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, 0x22, 0x36, 0x0a, 0x13, 0x55, 0x6e, 0x73, 0x65, 0x74, 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, 0x22, 0x36, 0x0a, 0x13, 0x55, 0x6e, 0x73, 0x65, 0x74, 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, 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, + 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 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 ( @@ -2491,7 +2557,7 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte { } var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 29) +var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 30) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (Analyzer)(0), // 0: greptime.v1.Analyzer (AddColumnLocation_LocationType)(0), // 1: greptime.v1.AddColumnLocation.LocationType @@ -2512,24 +2578,25 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*RenameTable)(nil), // 16: greptime.v1.RenameTable (*AddColumn)(nil), // 17: greptime.v1.AddColumn (*ModifyColumnType)(nil), // 18: greptime.v1.ModifyColumnType - (*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 - (*SetColumnFulltext)(nil), // 26: greptime.v1.SetColumnFulltext - (*UnsetColumnFulltext)(nil), // 27: greptime.v1.UnsetColumnFulltext - nil, // 28: greptime.v1.CreateFlowExpr.FlowOptionsEntry - nil, // 29: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 30: greptime.v1.CreateDatabaseExpr.OptionsEntry - (*TableName)(nil), // 31: greptime.v1.TableName - (*ExpireAfter)(nil), // 32: greptime.v1.ExpireAfter - (ColumnDataType)(0), // 33: greptime.v1.ColumnDataType - (*ColumnDataTypeExtension)(nil), // 34: greptime.v1.ColumnDataTypeExtension - (SemanticType)(0), // 35: greptime.v1.SemanticType - (*ColumnOptions)(nil), // 36: greptime.v1.ColumnOptions + (*SetTableOptions)(nil), // 19: greptime.v1.SetTableOptions + (*TableOption)(nil), // 20: greptime.v1.TableOption + (*UnsetTableOptions)(nil), // 21: greptime.v1.UnsetTableOptions + (*DropColumn)(nil), // 22: greptime.v1.DropColumn + (*TableId)(nil), // 23: greptime.v1.TableId + (*FlowId)(nil), // 24: greptime.v1.FlowId + (*ColumnDef)(nil), // 25: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 26: greptime.v1.AddColumnLocation + (*SetColumnFulltext)(nil), // 27: greptime.v1.SetColumnFulltext + (*UnsetColumnFulltext)(nil), // 28: greptime.v1.UnsetColumnFulltext + nil, // 29: greptime.v1.CreateFlowExpr.FlowOptionsEntry + nil, // 30: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 31: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*TableName)(nil), // 32: greptime.v1.TableName + (*ExpireAfter)(nil), // 33: greptime.v1.ExpireAfter + (ColumnDataType)(0), // 34: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 35: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 36: greptime.v1.SemanticType + (*ColumnOptions)(nil), // 37: greptime.v1.ColumnOptions } var file_greptime_v1_ddl_proto_depIdxs = []int32{ 10, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr @@ -2541,45 +2608,46 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 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 - 31, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName - 31, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName - 32, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter - 28, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry - 23, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId - 31, // 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 - 29, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 22, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId + 32, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName + 32, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName + 33, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter + 29, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry + 24, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId + 32, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName + 23, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId + 25, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 30, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 23, // 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.modify_column_types:type_name -> greptime.v1.ModifyColumnTypes - 19, // 23: greptime.v1.AlterExpr.change_table_options:type_name -> greptime.v1.ChangeTableOptions - 26, // 24: greptime.v1.AlterExpr.set_column_fulltext:type_name -> greptime.v1.SetColumnFulltext - 27, // 25: greptime.v1.AlterExpr.unset_column_fulltext:type_name -> greptime.v1.UnsetColumnFulltext - 22, // 26: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 30, // 27: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 22, // 28: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 17, // 29: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 21, // 30: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 18, // 31: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType - 24, // 32: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 25, // 33: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 33, // 34: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 34, // 35: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 20, // 36: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.ChangeTableOption - 33, // 37: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 35, // 38: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 34, // 39: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 36, // 40: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions - 1, // 41: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 0, // 42: greptime.v1.SetColumnFulltext.analyzer:type_name -> greptime.v1.Analyzer - 43, // [43:43] is the sub-list for method output_type - 43, // [43:43] is the sub-list for method input_type - 43, // [43:43] is the sub-list for extension type_name - 43, // [43:43] is the sub-list for extension extendee - 0, // [0:43] is the sub-list for field type_name + 19, // 23: greptime.v1.AlterExpr.set_table_options:type_name -> greptime.v1.SetTableOptions + 27, // 24: greptime.v1.AlterExpr.set_column_fulltext:type_name -> greptime.v1.SetColumnFulltext + 28, // 25: greptime.v1.AlterExpr.unset_column_fulltext:type_name -> greptime.v1.UnsetColumnFulltext + 21, // 26: greptime.v1.AlterExpr.unset_table_options:type_name -> greptime.v1.UnsetTableOptions + 23, // 27: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 31, // 28: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 23, // 29: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 17, // 30: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 22, // 31: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 18, // 32: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType + 25, // 33: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 26, // 34: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 34, // 35: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 35, // 36: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 20, // 37: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.TableOption + 34, // 38: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 36, // 39: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 35, // 40: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 37, // 41: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 1, // 42: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 0, // 43: greptime.v1.SetColumnFulltext.analyzer:type_name -> greptime.v1.Analyzer + 44, // [44:44] is the sub-list for method output_type + 44, // [44:44] is the sub-list for method input_type + 44, // [44:44] is the sub-list for extension type_name + 44, // [44:44] is the sub-list for extension extendee + 0, // [0:44] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -2794,7 +2862,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeTableOptions); i { + switch v := v.(*SetTableOptions); i { case 0: return &v.state case 1: @@ -2806,7 +2874,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeTableOption); i { + switch v := v.(*TableOption); i { case 0: return &v.state case 1: @@ -2818,7 +2886,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DropColumn); i { + switch v := v.(*UnsetTableOptions); i { case 0: return &v.state case 1: @@ -2830,7 +2898,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableId); i { + switch v := v.(*DropColumn); i { case 0: return &v.state case 1: @@ -2842,7 +2910,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlowId); i { + switch v := v.(*TableId); i { case 0: return &v.state case 1: @@ -2854,7 +2922,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDef); i { + switch v := v.(*FlowId); i { case 0: return &v.state case 1: @@ -2866,7 +2934,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddColumnLocation); i { + switch v := v.(*ColumnDef); i { case 0: return &v.state case 1: @@ -2878,7 +2946,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetColumnFulltext); i { + switch v := v.(*AddColumnLocation); i { case 0: return &v.state case 1: @@ -2890,6 +2958,18 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetColumnFulltext); 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[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*UnsetColumnFulltext); i { case 0: return &v.state @@ -2918,9 +2998,10 @@ func file_greptime_v1_ddl_proto_init() { (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), (*AlterExpr_ModifyColumnTypes)(nil), - (*AlterExpr_ChangeTableOptions)(nil), + (*AlterExpr_SetTableOptions)(nil), (*AlterExpr_SetColumnFulltext)(nil), (*AlterExpr_UnsetColumnFulltext)(nil), + (*AlterExpr_UnsetTableOptions)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -2928,7 +3009,7 @@ func file_greptime_v1_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, NumEnums: 2, - NumMessages: 29, + NumMessages: 30, 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 bbc0e18b..070f9b4c 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -11846,19 +11846,19 @@ public interface AlterExprOrBuilder extends io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder(); /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; - * @return Whether the changeTableOptions field is set. + * .greptime.v1.SetTableOptions set_table_options = 8; + * @return Whether the setTableOptions field is set. */ - boolean hasChangeTableOptions(); + boolean hasSetTableOptions(); /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; - * @return The changeTableOptions. + * .greptime.v1.SetTableOptions set_table_options = 8; + * @return The setTableOptions. */ - io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions(); + io.greptime.v1.Ddl.SetTableOptions getSetTableOptions(); /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ - io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder(); + io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder(); /** * .greptime.v1.SetColumnFulltext set_column_fulltext = 9; @@ -11890,6 +11890,21 @@ public interface AlterExprOrBuilder extends */ io.greptime.v1.Ddl.UnsetColumnFulltextOrBuilder getUnsetColumnFulltextOrBuilder(); + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + * @return Whether the unsetTableOptions field is set. + */ + boolean hasUnsetTableOptions(); + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + * @return The unsetTableOptions. + */ + io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions(); + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder(); + public io.greptime.v1.Ddl.AlterExpr.KindCase getKindCase(); } /** @@ -12015,14 +12030,14 @@ private AlterExpr( break; } case 66: { - io.greptime.v1.Ddl.ChangeTableOptions.Builder subBuilder = null; + io.greptime.v1.Ddl.SetTableOptions.Builder subBuilder = null; if (kindCase_ == 8) { - subBuilder = ((io.greptime.v1.Ddl.ChangeTableOptions) kind_).toBuilder(); + subBuilder = ((io.greptime.v1.Ddl.SetTableOptions) kind_).toBuilder(); } kind_ = - input.readMessage(io.greptime.v1.Ddl.ChangeTableOptions.parser(), extensionRegistry); + input.readMessage(io.greptime.v1.Ddl.SetTableOptions.parser(), extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeTableOptions) kind_); + subBuilder.mergeFrom((io.greptime.v1.Ddl.SetTableOptions) kind_); kind_ = subBuilder.buildPartial(); } kindCase_ = 8; @@ -12056,6 +12071,20 @@ private AlterExpr( kindCase_ = 10; break; } + case 90: { + io.greptime.v1.Ddl.UnsetTableOptions.Builder subBuilder = null; + if (kindCase_ == 11) { + subBuilder = ((io.greptime.v1.Ddl.UnsetTableOptions) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.Ddl.UnsetTableOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.UnsetTableOptions) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 11; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -12099,9 +12128,10 @@ public enum KindCase DROP_COLUMNS(5), RENAME_TABLE(6), MODIFY_COLUMN_TYPES(7), - CHANGE_TABLE_OPTIONS(8), + SET_TABLE_OPTIONS(8), SET_COLUMN_FULLTEXT(9), UNSET_COLUMN_FULLTEXT(10), + UNSET_TABLE_OPTIONS(11), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -12123,9 +12153,10 @@ public static KindCase forNumber(int value) { case 5: return DROP_COLUMNS; case 6: return RENAME_TABLE; case 7: return MODIFY_COLUMN_TYPES; - case 8: return CHANGE_TABLE_OPTIONS; + case 8: return SET_TABLE_OPTIONS; case 9: return SET_COLUMN_FULLTEXT; case 10: return UNSET_COLUMN_FULLTEXT; + case 11: return UNSET_TABLE_OPTIONS; case 0: return KIND_NOT_SET; default: return null; } @@ -12379,35 +12410,35 @@ public io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuild return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance(); } - public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 8; + public static final int SET_TABLE_OPTIONS_FIELD_NUMBER = 8; /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; - * @return Whether the changeTableOptions field is set. + * .greptime.v1.SetTableOptions set_table_options = 8; + * @return Whether the setTableOptions field is set. */ @java.lang.Override - public boolean hasChangeTableOptions() { + public boolean hasSetTableOptions() { return kindCase_ == 8; } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; - * @return The changeTableOptions. + * .greptime.v1.SetTableOptions set_table_options = 8; + * @return The setTableOptions. */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() { + public io.greptime.v1.Ddl.SetTableOptions getSetTableOptions() { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.ChangeTableOptions) kind_; + return (io.greptime.v1.Ddl.SetTableOptions) kind_; } - return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance(); } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() { + public io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder() { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.ChangeTableOptions) kind_; + return (io.greptime.v1.Ddl.SetTableOptions) kind_; } - return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance(); } public static final int SET_COLUMN_FULLTEXT_FIELD_NUMBER = 9; @@ -12472,6 +12503,37 @@ public io.greptime.v1.Ddl.UnsetColumnFulltextOrBuilder getUnsetColumnFulltextOrB return io.greptime.v1.Ddl.UnsetColumnFulltext.getDefaultInstance(); } + public static final int UNSET_TABLE_OPTIONS_FIELD_NUMBER = 11; + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + * @return Whether the unsetTableOptions field is set. + */ + @java.lang.Override + public boolean hasUnsetTableOptions() { + return kindCase_ == 11; + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + * @return The unsetTableOptions. + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions() { + if (kindCase_ == 11) { + return (io.greptime.v1.Ddl.UnsetTableOptions) kind_; + } + return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance(); + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder() { + if (kindCase_ == 11) { + return (io.greptime.v1.Ddl.UnsetTableOptions) kind_; + } + return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -12508,7 +12570,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(7, (io.greptime.v1.Ddl.ModifyColumnTypes) kind_); } if (kindCase_ == 8) { - output.writeMessage(8, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); + output.writeMessage(8, (io.greptime.v1.Ddl.SetTableOptions) kind_); } if (kindCase_ == 9) { output.writeMessage(9, (io.greptime.v1.Ddl.SetColumnFulltext) kind_); @@ -12516,6 +12578,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (kindCase_ == 10) { output.writeMessage(10, (io.greptime.v1.Ddl.UnsetColumnFulltext) kind_); } + if (kindCase_ == 11) { + output.writeMessage(11, (io.greptime.v1.Ddl.UnsetTableOptions) kind_); + } unknownFields.writeTo(output); } @@ -12552,7 +12617,7 @@ public int getSerializedSize() { } if (kindCase_ == 8) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(8, (io.greptime.v1.Ddl.ChangeTableOptions) kind_); + .computeMessageSize(8, (io.greptime.v1.Ddl.SetTableOptions) kind_); } if (kindCase_ == 9) { size += com.google.protobuf.CodedOutputStream @@ -12562,6 +12627,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (io.greptime.v1.Ddl.UnsetColumnFulltext) kind_); } + if (kindCase_ == 11) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(11, (io.greptime.v1.Ddl.UnsetTableOptions) kind_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -12602,8 +12671,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getModifyColumnTypes())) return false; break; case 8: - if (!getChangeTableOptions() - .equals(other.getChangeTableOptions())) return false; + if (!getSetTableOptions() + .equals(other.getSetTableOptions())) return false; break; case 9: if (!getSetColumnFulltext() @@ -12613,6 +12682,10 @@ public boolean equals(final java.lang.Object obj) { if (!getUnsetColumnFulltext() .equals(other.getUnsetColumnFulltext())) return false; break; + case 11: + if (!getUnsetTableOptions() + .equals(other.getUnsetTableOptions())) return false; + break; case 0: default: } @@ -12651,8 +12724,8 @@ public int hashCode() { hash = (53 * hash) + getModifyColumnTypes().hashCode(); break; case 8: - hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getChangeTableOptions().hashCode(); + hash = (37 * hash) + SET_TABLE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSetTableOptions().hashCode(); break; case 9: hash = (37 * hash) + SET_COLUMN_FULLTEXT_FIELD_NUMBER; @@ -12662,6 +12735,10 @@ public int hashCode() { hash = (37 * hash) + UNSET_COLUMN_FULLTEXT_FIELD_NUMBER; hash = (53 * hash) + getUnsetColumnFulltext().hashCode(); break; + case 11: + hash = (37 * hash) + UNSET_TABLE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUnsetTableOptions().hashCode(); + break; case 0: default: } @@ -12864,10 +12941,10 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { } } if (kindCase_ == 8) { - if (changeTableOptionsBuilder_ == null) { + if (setTableOptionsBuilder_ == null) { result.kind_ = kind_; } else { - result.kind_ = changeTableOptionsBuilder_.build(); + result.kind_ = setTableOptionsBuilder_.build(); } } if (kindCase_ == 9) { @@ -12884,6 +12961,13 @@ public io.greptime.v1.Ddl.AlterExpr buildPartial() { result.kind_ = unsetColumnFulltextBuilder_.build(); } } + if (kindCase_ == 11) { + if (unsetTableOptionsBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = unsetTableOptionsBuilder_.build(); + } + } result.kindCase_ = kindCase_; onBuilt(); return result; @@ -12962,8 +13046,8 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterExpr other) { mergeModifyColumnTypes(other.getModifyColumnTypes()); break; } - case CHANGE_TABLE_OPTIONS: { - mergeChangeTableOptions(other.getChangeTableOptions()); + case SET_TABLE_OPTIONS: { + mergeSetTableOptions(other.getSetTableOptions()); break; } case SET_COLUMN_FULLTEXT: { @@ -12974,6 +13058,10 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterExpr other) { mergeUnsetColumnFulltext(other.getUnsetColumnFulltext()); break; } + case UNSET_TABLE_OPTIONS: { + mergeUnsetTableOptions(other.getUnsetTableOptions()); + break; + } case KIND_NOT_SET: { break; } @@ -13819,71 +13907,71 @@ public io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuild } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> changeTableOptionsBuilder_; + io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder> setTableOptionsBuilder_; /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; - * @return Whether the changeTableOptions field is set. + * .greptime.v1.SetTableOptions set_table_options = 8; + * @return Whether the setTableOptions field is set. */ @java.lang.Override - public boolean hasChangeTableOptions() { + public boolean hasSetTableOptions() { return kindCase_ == 8; } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; - * @return The changeTableOptions. + * .greptime.v1.SetTableOptions set_table_options = 8; + * @return The setTableOptions. */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() { - if (changeTableOptionsBuilder_ == null) { + public io.greptime.v1.Ddl.SetTableOptions getSetTableOptions() { + if (setTableOptionsBuilder_ == null) { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.ChangeTableOptions) kind_; + return (io.greptime.v1.Ddl.SetTableOptions) kind_; } - return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance(); } else { if (kindCase_ == 8) { - return changeTableOptionsBuilder_.getMessage(); + return setTableOptionsBuilder_.getMessage(); } - return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance(); } } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ - public Builder setChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) { - if (changeTableOptionsBuilder_ == null) { + public Builder setSetTableOptions(io.greptime.v1.Ddl.SetTableOptions value) { + if (setTableOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } kind_ = value; onChanged(); } else { - changeTableOptionsBuilder_.setMessage(value); + setTableOptionsBuilder_.setMessage(value); } kindCase_ = 8; return this; } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ - public Builder setChangeTableOptions( - io.greptime.v1.Ddl.ChangeTableOptions.Builder builderForValue) { - if (changeTableOptionsBuilder_ == null) { + public Builder setSetTableOptions( + io.greptime.v1.Ddl.SetTableOptions.Builder builderForValue) { + if (setTableOptionsBuilder_ == null) { kind_ = builderForValue.build(); onChanged(); } else { - changeTableOptionsBuilder_.setMessage(builderForValue.build()); + setTableOptionsBuilder_.setMessage(builderForValue.build()); } kindCase_ = 8; return this; } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ - public Builder mergeChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) { - if (changeTableOptionsBuilder_ == null) { + public Builder mergeSetTableOptions(io.greptime.v1.Ddl.SetTableOptions value) { + if (setTableOptionsBuilder_ == null) { if (kindCase_ == 8 && - kind_ != io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance()) { - kind_ = io.greptime.v1.Ddl.ChangeTableOptions.newBuilder((io.greptime.v1.Ddl.ChangeTableOptions) kind_) + kind_ != io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.SetTableOptions.newBuilder((io.greptime.v1.Ddl.SetTableOptions) kind_) .mergeFrom(value).buildPartial(); } else { kind_ = value; @@ -13891,19 +13979,19 @@ public Builder mergeChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions val onChanged(); } else { if (kindCase_ == 8) { - changeTableOptionsBuilder_.mergeFrom(value); + setTableOptionsBuilder_.mergeFrom(value); } else { - changeTableOptionsBuilder_.setMessage(value); + setTableOptionsBuilder_.setMessage(value); } } kindCase_ = 8; return this; } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ - public Builder clearChangeTableOptions() { - if (changeTableOptionsBuilder_ == null) { + public Builder clearSetTableOptions() { + if (setTableOptionsBuilder_ == null) { if (kindCase_ == 8) { kindCase_ = 0; kind_ = null; @@ -13914,50 +14002,50 @@ public Builder clearChangeTableOptions() { kindCase_ = 0; kind_ = null; } - changeTableOptionsBuilder_.clear(); + setTableOptionsBuilder_.clear(); } return this; } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ - public io.greptime.v1.Ddl.ChangeTableOptions.Builder getChangeTableOptionsBuilder() { - return getChangeTableOptionsFieldBuilder().getBuilder(); + public io.greptime.v1.Ddl.SetTableOptions.Builder getSetTableOptionsBuilder() { + return getSetTableOptionsFieldBuilder().getBuilder(); } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() { - if ((kindCase_ == 8) && (changeTableOptionsBuilder_ != null)) { - return changeTableOptionsBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder() { + if ((kindCase_ == 8) && (setTableOptionsBuilder_ != null)) { + return setTableOptionsBuilder_.getMessageOrBuilder(); } else { if (kindCase_ == 8) { - return (io.greptime.v1.Ddl.ChangeTableOptions) kind_; + return (io.greptime.v1.Ddl.SetTableOptions) kind_; } - return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance(); } } /** - * .greptime.v1.ChangeTableOptions change_table_options = 8; + * .greptime.v1.SetTableOptions set_table_options = 8; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> - getChangeTableOptionsFieldBuilder() { - if (changeTableOptionsBuilder_ == null) { + io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder> + getSetTableOptionsFieldBuilder() { + if (setTableOptionsBuilder_ == null) { if (!(kindCase_ == 8)) { - kind_ = io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + kind_ = io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance(); } - changeTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder>( - (io.greptime.v1.Ddl.ChangeTableOptions) kind_, + setTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder>( + (io.greptime.v1.Ddl.SetTableOptions) kind_, getParentForChildren(), isClean()); kind_ = null; } kindCase_ = 8; onChanged();; - return changeTableOptionsBuilder_; + return setTableOptionsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< @@ -14243,6 +14331,148 @@ public io.greptime.v1.Ddl.UnsetColumnFulltextOrBuilder getUnsetColumnFulltextOrB onChanged();; return unsetColumnFulltextBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder> unsetTableOptionsBuilder_; + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + * @return Whether the unsetTableOptions field is set. + */ + @java.lang.Override + public boolean hasUnsetTableOptions() { + return kindCase_ == 11; + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + * @return The unsetTableOptions. + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions() { + if (unsetTableOptionsBuilder_ == null) { + if (kindCase_ == 11) { + return (io.greptime.v1.Ddl.UnsetTableOptions) kind_; + } + return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance(); + } else { + if (kindCase_ == 11) { + return unsetTableOptionsBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance(); + } + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + public Builder setUnsetTableOptions(io.greptime.v1.Ddl.UnsetTableOptions value) { + if (unsetTableOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + unsetTableOptionsBuilder_.setMessage(value); + } + kindCase_ = 11; + return this; + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + public Builder setUnsetTableOptions( + io.greptime.v1.Ddl.UnsetTableOptions.Builder builderForValue) { + if (unsetTableOptionsBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + unsetTableOptionsBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 11; + return this; + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + public Builder mergeUnsetTableOptions(io.greptime.v1.Ddl.UnsetTableOptions value) { + if (unsetTableOptionsBuilder_ == null) { + if (kindCase_ == 11 && + kind_ != io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.UnsetTableOptions.newBuilder((io.greptime.v1.Ddl.UnsetTableOptions) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 11) { + unsetTableOptionsBuilder_.mergeFrom(value); + } else { + unsetTableOptionsBuilder_.setMessage(value); + } + } + kindCase_ = 11; + return this; + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + public Builder clearUnsetTableOptions() { + if (unsetTableOptionsBuilder_ == null) { + if (kindCase_ == 11) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 11) { + kindCase_ = 0; + kind_ = null; + } + unsetTableOptionsBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + public io.greptime.v1.Ddl.UnsetTableOptions.Builder getUnsetTableOptionsBuilder() { + return getUnsetTableOptionsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder() { + if ((kindCase_ == 11) && (unsetTableOptionsBuilder_ != null)) { + return unsetTableOptionsBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 11) { + return (io.greptime.v1.Ddl.UnsetTableOptions) kind_; + } + return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance(); + } + } + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder> + getUnsetTableOptionsFieldBuilder() { + if (unsetTableOptionsBuilder_ == null) { + if (!(kindCase_ == 11)) { + kind_ = io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance(); + } + unsetTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder>( + (io.greptime.v1.Ddl.UnsetTableOptions) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 11; + onChanged();; + return unsetTableOptionsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -23081,55 +23311,55 @@ public io.greptime.v1.Ddl.ModifyColumnType getDefaultInstanceForType() { } - public interface ChangeTableOptionsOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeTableOptions) + public interface SetTableOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.SetTableOptions) com.google.protobuf.MessageOrBuilder { /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - java.util.List - getChangeTableOptionsList(); + java.util.List + getTableOptionsList(); /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - io.greptime.v1.Ddl.ChangeTableOption getChangeTableOptions(int index); + io.greptime.v1.Ddl.TableOption getTableOptions(int index); /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - int getChangeTableOptionsCount(); + int getTableOptionsCount(); /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - java.util.List - getChangeTableOptionsOrBuilderList(); + java.util.List + getTableOptionsOrBuilderList(); /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - io.greptime.v1.Ddl.ChangeTableOptionOrBuilder getChangeTableOptionsOrBuilder( + io.greptime.v1.Ddl.TableOptionOrBuilder getTableOptionsOrBuilder( int index); } /** - * Protobuf type {@code greptime.v1.ChangeTableOptions} + * Protobuf type {@code greptime.v1.SetTableOptions} */ - public static final class ChangeTableOptions extends + public static final class SetTableOptions extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.ChangeTableOptions) - ChangeTableOptionsOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.SetTableOptions) + SetTableOptionsOrBuilder { private static final long serialVersionUID = 0L; - // Use ChangeTableOptions.newBuilder() to construct. - private ChangeTableOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use SetTableOptions.newBuilder() to construct. + private SetTableOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ChangeTableOptions() { - changeTableOptions_ = java.util.Collections.emptyList(); + private SetTableOptions() { + tableOptions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ChangeTableOptions(); + return new SetTableOptions(); } @java.lang.Override @@ -23137,7 +23367,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ChangeTableOptions( + private SetTableOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23158,11 +23388,11 @@ private ChangeTableOptions( break; case 10: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { - changeTableOptions_ = new java.util.ArrayList(); + tableOptions_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } - changeTableOptions_.add( - input.readMessage(io.greptime.v1.Ddl.ChangeTableOption.parser(), extensionRegistry)); + tableOptions_.add( + input.readMessage(io.greptime.v1.Ddl.TableOption.parser(), extensionRegistry)); break; } default: { @@ -23183,7 +23413,7 @@ private ChangeTableOptions( e).setUnfinishedMessage(this); } finally { if (((mutable_bitField0_ & 0x00000001) != 0)) { - changeTableOptions_ = java.util.Collections.unmodifiableList(changeTableOptions_); + tableOptions_ = java.util.Collections.unmodifiableList(tableOptions_); } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); @@ -23191,55 +23421,55 @@ private ChangeTableOptions( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetTableOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetTableOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeTableOptions.class, io.greptime.v1.Ddl.ChangeTableOptions.Builder.class); + io.greptime.v1.Ddl.SetTableOptions.class, io.greptime.v1.Ddl.SetTableOptions.Builder.class); } - public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 1; - private java.util.List changeTableOptions_; + public static final int TABLE_OPTIONS_FIELD_NUMBER = 1; + private java.util.List tableOptions_; /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ @java.lang.Override - public java.util.List getChangeTableOptionsList() { - return changeTableOptions_; + public java.util.List getTableOptionsList() { + return tableOptions_; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ @java.lang.Override - public java.util.List - getChangeTableOptionsOrBuilderList() { - return changeTableOptions_; + public java.util.List + getTableOptionsOrBuilderList() { + return tableOptions_; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ @java.lang.Override - public int getChangeTableOptionsCount() { - return changeTableOptions_.size(); + public int getTableOptionsCount() { + return tableOptions_.size(); } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOption getChangeTableOptions(int index) { - return changeTableOptions_.get(index); + public io.greptime.v1.Ddl.TableOption getTableOptions(int index) { + return tableOptions_.get(index); } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptionOrBuilder getChangeTableOptionsOrBuilder( + public io.greptime.v1.Ddl.TableOptionOrBuilder getTableOptionsOrBuilder( int index) { - return changeTableOptions_.get(index); + return tableOptions_.get(index); } private byte memoizedIsInitialized = -1; @@ -23256,8 +23486,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < changeTableOptions_.size(); i++) { - output.writeMessage(1, changeTableOptions_.get(i)); + for (int i = 0; i < tableOptions_.size(); i++) { + output.writeMessage(1, tableOptions_.get(i)); } unknownFields.writeTo(output); } @@ -23268,9 +23498,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - for (int i = 0; i < changeTableOptions_.size(); i++) { + for (int i = 0; i < tableOptions_.size(); i++) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, changeTableOptions_.get(i)); + .computeMessageSize(1, tableOptions_.get(i)); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -23282,13 +23512,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.ChangeTableOptions)) { + if (!(obj instanceof io.greptime.v1.Ddl.SetTableOptions)) { return super.equals(obj); } - io.greptime.v1.Ddl.ChangeTableOptions other = (io.greptime.v1.Ddl.ChangeTableOptions) obj; + io.greptime.v1.Ddl.SetTableOptions other = (io.greptime.v1.Ddl.SetTableOptions) obj; - if (!getChangeTableOptionsList() - .equals(other.getChangeTableOptionsList())) return false; + if (!getTableOptionsList() + .equals(other.getTableOptionsList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -23300,78 +23530,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getChangeTableOptionsCount() > 0) { - hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + getChangeTableOptionsList().hashCode(); + if (getTableOptionsCount() > 0) { + hash = (37 * hash) + TABLE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getTableOptionsList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( + public static io.greptime.v1.Ddl.SetTableOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( + public static io.greptime.v1.Ddl.SetTableOptions 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.ChangeTableOptions parseFrom( + public static io.greptime.v1.Ddl.SetTableOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( + public static io.greptime.v1.Ddl.SetTableOptions 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.ChangeTableOptions parseFrom(byte[] data) + public static io.greptime.v1.Ddl.SetTableOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( + public static io.greptime.v1.Ddl.SetTableOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.SetTableOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( + public static io.greptime.v1.Ddl.SetTableOptions 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.ChangeTableOptions parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.SetTableOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeTableOptions parseDelimitedFrom( + public static io.greptime.v1.Ddl.SetTableOptions 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.ChangeTableOptions parseFrom( + public static io.greptime.v1.Ddl.SetTableOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( + public static io.greptime.v1.Ddl.SetTableOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -23384,7 +23614,7 @@ public static io.greptime.v1.Ddl.ChangeTableOptions parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.ChangeTableOptions prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.SetTableOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -23400,26 +23630,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.ChangeTableOptions} + * Protobuf type {@code greptime.v1.SetTableOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeTableOptions) - io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.SetTableOptions) + io.greptime.v1.Ddl.SetTableOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetTableOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetTableOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeTableOptions.class, io.greptime.v1.Ddl.ChangeTableOptions.Builder.class); + io.greptime.v1.Ddl.SetTableOptions.class, io.greptime.v1.Ddl.SetTableOptions.Builder.class); } - // Construct using io.greptime.v1.Ddl.ChangeTableOptions.newBuilder() + // Construct using io.greptime.v1.Ddl.SetTableOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -23432,17 +23662,17 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getChangeTableOptionsFieldBuilder(); + getTableOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); - if (changeTableOptionsBuilder_ == null) { - changeTableOptions_ = java.util.Collections.emptyList(); + if (tableOptionsBuilder_ == null) { + tableOptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { - changeTableOptionsBuilder_.clear(); + tableOptionsBuilder_.clear(); } return this; } @@ -23450,17 +23680,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOptions_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_SetTableOptions_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptions getDefaultInstanceForType() { - return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance(); + public io.greptime.v1.Ddl.SetTableOptions getDefaultInstanceForType() { + return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptions build() { - io.greptime.v1.Ddl.ChangeTableOptions result = buildPartial(); + public io.greptime.v1.Ddl.SetTableOptions build() { + io.greptime.v1.Ddl.SetTableOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -23468,17 +23698,17 @@ public io.greptime.v1.Ddl.ChangeTableOptions build() { } @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptions buildPartial() { - io.greptime.v1.Ddl.ChangeTableOptions result = new io.greptime.v1.Ddl.ChangeTableOptions(this); + public io.greptime.v1.Ddl.SetTableOptions buildPartial() { + io.greptime.v1.Ddl.SetTableOptions result = new io.greptime.v1.Ddl.SetTableOptions(this); int from_bitField0_ = bitField0_; - if (changeTableOptionsBuilder_ == null) { + if (tableOptionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { - changeTableOptions_ = java.util.Collections.unmodifiableList(changeTableOptions_); + tableOptions_ = java.util.Collections.unmodifiableList(tableOptions_); bitField0_ = (bitField0_ & ~0x00000001); } - result.changeTableOptions_ = changeTableOptions_; + result.tableOptions_ = tableOptions_; } else { - result.changeTableOptions_ = changeTableOptionsBuilder_.build(); + result.tableOptions_ = tableOptionsBuilder_.build(); } onBuilt(); return result; @@ -23518,39 +23748,39 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.ChangeTableOptions) { - return mergeFrom((io.greptime.v1.Ddl.ChangeTableOptions)other); + if (other instanceof io.greptime.v1.Ddl.SetTableOptions) { + return mergeFrom((io.greptime.v1.Ddl.SetTableOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.ChangeTableOptions other) { - if (other == io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance()) return this; - if (changeTableOptionsBuilder_ == null) { - if (!other.changeTableOptions_.isEmpty()) { - if (changeTableOptions_.isEmpty()) { - changeTableOptions_ = other.changeTableOptions_; + public Builder mergeFrom(io.greptime.v1.Ddl.SetTableOptions other) { + if (other == io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance()) return this; + if (tableOptionsBuilder_ == null) { + if (!other.tableOptions_.isEmpty()) { + if (tableOptions_.isEmpty()) { + tableOptions_ = other.tableOptions_; bitField0_ = (bitField0_ & ~0x00000001); } else { - ensureChangeTableOptionsIsMutable(); - changeTableOptions_.addAll(other.changeTableOptions_); + ensureTableOptionsIsMutable(); + tableOptions_.addAll(other.tableOptions_); } onChanged(); } } else { - if (!other.changeTableOptions_.isEmpty()) { - if (changeTableOptionsBuilder_.isEmpty()) { - changeTableOptionsBuilder_.dispose(); - changeTableOptionsBuilder_ = null; - changeTableOptions_ = other.changeTableOptions_; + if (!other.tableOptions_.isEmpty()) { + if (tableOptionsBuilder_.isEmpty()) { + tableOptionsBuilder_.dispose(); + tableOptionsBuilder_ = null; + tableOptions_ = other.tableOptions_; bitField0_ = (bitField0_ & ~0x00000001); - changeTableOptionsBuilder_ = + tableOptionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getChangeTableOptionsFieldBuilder() : null; + getTableOptionsFieldBuilder() : null; } else { - changeTableOptionsBuilder_.addAllMessages(other.changeTableOptions_); + tableOptionsBuilder_.addAllMessages(other.tableOptions_); } } } @@ -23569,11 +23799,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.ChangeTableOptions parsedMessage = null; + io.greptime.v1.Ddl.SetTableOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.ChangeTableOptions) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.SetTableOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -23584,244 +23814,244 @@ public Builder mergeFrom( } private int bitField0_; - private java.util.List changeTableOptions_ = + private java.util.List tableOptions_ = java.util.Collections.emptyList(); - private void ensureChangeTableOptionsIsMutable() { + private void ensureTableOptionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - changeTableOptions_ = new java.util.ArrayList(changeTableOptions_); + tableOptions_ = new java.util.ArrayList(tableOptions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.ChangeTableOption, io.greptime.v1.Ddl.ChangeTableOption.Builder, io.greptime.v1.Ddl.ChangeTableOptionOrBuilder> changeTableOptionsBuilder_; + io.greptime.v1.Ddl.TableOption, io.greptime.v1.Ddl.TableOption.Builder, io.greptime.v1.Ddl.TableOptionOrBuilder> tableOptionsBuilder_; /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public java.util.List getChangeTableOptionsList() { - if (changeTableOptionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(changeTableOptions_); + public java.util.List getTableOptionsList() { + if (tableOptionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tableOptions_); } else { - return changeTableOptionsBuilder_.getMessageList(); + return tableOptionsBuilder_.getMessageList(); } } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public int getChangeTableOptionsCount() { - if (changeTableOptionsBuilder_ == null) { - return changeTableOptions_.size(); + public int getTableOptionsCount() { + if (tableOptionsBuilder_ == null) { + return tableOptions_.size(); } else { - return changeTableOptionsBuilder_.getCount(); + return tableOptionsBuilder_.getCount(); } } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public io.greptime.v1.Ddl.ChangeTableOption getChangeTableOptions(int index) { - if (changeTableOptionsBuilder_ == null) { - return changeTableOptions_.get(index); + public io.greptime.v1.Ddl.TableOption getTableOptions(int index) { + if (tableOptionsBuilder_ == null) { + return tableOptions_.get(index); } else { - return changeTableOptionsBuilder_.getMessage(index); + return tableOptionsBuilder_.getMessage(index); } } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder setChangeTableOptions( - int index, io.greptime.v1.Ddl.ChangeTableOption value) { - if (changeTableOptionsBuilder_ == null) { + public Builder setTableOptions( + int index, io.greptime.v1.Ddl.TableOption value) { + if (tableOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureChangeTableOptionsIsMutable(); - changeTableOptions_.set(index, value); + ensureTableOptionsIsMutable(); + tableOptions_.set(index, value); onChanged(); } else { - changeTableOptionsBuilder_.setMessage(index, value); + tableOptionsBuilder_.setMessage(index, value); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder setChangeTableOptions( - int index, io.greptime.v1.Ddl.ChangeTableOption.Builder builderForValue) { - if (changeTableOptionsBuilder_ == null) { - ensureChangeTableOptionsIsMutable(); - changeTableOptions_.set(index, builderForValue.build()); + public Builder setTableOptions( + int index, io.greptime.v1.Ddl.TableOption.Builder builderForValue) { + if (tableOptionsBuilder_ == null) { + ensureTableOptionsIsMutable(); + tableOptions_.set(index, builderForValue.build()); onChanged(); } else { - changeTableOptionsBuilder_.setMessage(index, builderForValue.build()); + tableOptionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder addChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOption value) { - if (changeTableOptionsBuilder_ == null) { + public Builder addTableOptions(io.greptime.v1.Ddl.TableOption value) { + if (tableOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureChangeTableOptionsIsMutable(); - changeTableOptions_.add(value); + ensureTableOptionsIsMutable(); + tableOptions_.add(value); onChanged(); } else { - changeTableOptionsBuilder_.addMessage(value); + tableOptionsBuilder_.addMessage(value); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder addChangeTableOptions( - int index, io.greptime.v1.Ddl.ChangeTableOption value) { - if (changeTableOptionsBuilder_ == null) { + public Builder addTableOptions( + int index, io.greptime.v1.Ddl.TableOption value) { + if (tableOptionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - ensureChangeTableOptionsIsMutable(); - changeTableOptions_.add(index, value); + ensureTableOptionsIsMutable(); + tableOptions_.add(index, value); onChanged(); } else { - changeTableOptionsBuilder_.addMessage(index, value); + tableOptionsBuilder_.addMessage(index, value); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder addChangeTableOptions( - io.greptime.v1.Ddl.ChangeTableOption.Builder builderForValue) { - if (changeTableOptionsBuilder_ == null) { - ensureChangeTableOptionsIsMutable(); - changeTableOptions_.add(builderForValue.build()); + public Builder addTableOptions( + io.greptime.v1.Ddl.TableOption.Builder builderForValue) { + if (tableOptionsBuilder_ == null) { + ensureTableOptionsIsMutable(); + tableOptions_.add(builderForValue.build()); onChanged(); } else { - changeTableOptionsBuilder_.addMessage(builderForValue.build()); + tableOptionsBuilder_.addMessage(builderForValue.build()); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder addChangeTableOptions( - int index, io.greptime.v1.Ddl.ChangeTableOption.Builder builderForValue) { - if (changeTableOptionsBuilder_ == null) { - ensureChangeTableOptionsIsMutable(); - changeTableOptions_.add(index, builderForValue.build()); + public Builder addTableOptions( + int index, io.greptime.v1.Ddl.TableOption.Builder builderForValue) { + if (tableOptionsBuilder_ == null) { + ensureTableOptionsIsMutable(); + tableOptions_.add(index, builderForValue.build()); onChanged(); } else { - changeTableOptionsBuilder_.addMessage(index, builderForValue.build()); + tableOptionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder addAllChangeTableOptions( - java.lang.Iterable values) { - if (changeTableOptionsBuilder_ == null) { - ensureChangeTableOptionsIsMutable(); + public Builder addAllTableOptions( + java.lang.Iterable values) { + if (tableOptionsBuilder_ == null) { + ensureTableOptionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, changeTableOptions_); + values, tableOptions_); onChanged(); } else { - changeTableOptionsBuilder_.addAllMessages(values); + tableOptionsBuilder_.addAllMessages(values); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder clearChangeTableOptions() { - if (changeTableOptionsBuilder_ == null) { - changeTableOptions_ = java.util.Collections.emptyList(); + public Builder clearTableOptions() { + if (tableOptionsBuilder_ == null) { + tableOptions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { - changeTableOptionsBuilder_.clear(); + tableOptionsBuilder_.clear(); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public Builder removeChangeTableOptions(int index) { - if (changeTableOptionsBuilder_ == null) { - ensureChangeTableOptionsIsMutable(); - changeTableOptions_.remove(index); + public Builder removeTableOptions(int index) { + if (tableOptionsBuilder_ == null) { + ensureTableOptionsIsMutable(); + tableOptions_.remove(index); onChanged(); } else { - changeTableOptionsBuilder_.remove(index); + tableOptionsBuilder_.remove(index); } return this; } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public io.greptime.v1.Ddl.ChangeTableOption.Builder getChangeTableOptionsBuilder( + public io.greptime.v1.Ddl.TableOption.Builder getTableOptionsBuilder( int index) { - return getChangeTableOptionsFieldBuilder().getBuilder(index); + return getTableOptionsFieldBuilder().getBuilder(index); } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public io.greptime.v1.Ddl.ChangeTableOptionOrBuilder getChangeTableOptionsOrBuilder( + public io.greptime.v1.Ddl.TableOptionOrBuilder getTableOptionsOrBuilder( int index) { - if (changeTableOptionsBuilder_ == null) { - return changeTableOptions_.get(index); } else { - return changeTableOptionsBuilder_.getMessageOrBuilder(index); + if (tableOptionsBuilder_ == null) { + return tableOptions_.get(index); } else { + return tableOptionsBuilder_.getMessageOrBuilder(index); } } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public java.util.List - getChangeTableOptionsOrBuilderList() { - if (changeTableOptionsBuilder_ != null) { - return changeTableOptionsBuilder_.getMessageOrBuilderList(); + public java.util.List + getTableOptionsOrBuilderList() { + if (tableOptionsBuilder_ != null) { + return tableOptionsBuilder_.getMessageOrBuilderList(); } else { - return java.util.Collections.unmodifiableList(changeTableOptions_); + return java.util.Collections.unmodifiableList(tableOptions_); } } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public io.greptime.v1.Ddl.ChangeTableOption.Builder addChangeTableOptionsBuilder() { - return getChangeTableOptionsFieldBuilder().addBuilder( - io.greptime.v1.Ddl.ChangeTableOption.getDefaultInstance()); + public io.greptime.v1.Ddl.TableOption.Builder addTableOptionsBuilder() { + return getTableOptionsFieldBuilder().addBuilder( + io.greptime.v1.Ddl.TableOption.getDefaultInstance()); } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public io.greptime.v1.Ddl.ChangeTableOption.Builder addChangeTableOptionsBuilder( + public io.greptime.v1.Ddl.TableOption.Builder addTableOptionsBuilder( int index) { - return getChangeTableOptionsFieldBuilder().addBuilder( - index, io.greptime.v1.Ddl.ChangeTableOption.getDefaultInstance()); + return getTableOptionsFieldBuilder().addBuilder( + index, io.greptime.v1.Ddl.TableOption.getDefaultInstance()); } /** - * repeated .greptime.v1.ChangeTableOption change_table_options = 1; + * repeated .greptime.v1.TableOption table_options = 1; */ - public java.util.List - getChangeTableOptionsBuilderList() { - return getChangeTableOptionsFieldBuilder().getBuilderList(); + public java.util.List + getTableOptionsBuilderList() { + return getTableOptionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.ChangeTableOption, io.greptime.v1.Ddl.ChangeTableOption.Builder, io.greptime.v1.Ddl.ChangeTableOptionOrBuilder> - getChangeTableOptionsFieldBuilder() { - if (changeTableOptionsBuilder_ == null) { - changeTableOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.ChangeTableOption, io.greptime.v1.Ddl.ChangeTableOption.Builder, io.greptime.v1.Ddl.ChangeTableOptionOrBuilder>( - changeTableOptions_, + io.greptime.v1.Ddl.TableOption, io.greptime.v1.Ddl.TableOption.Builder, io.greptime.v1.Ddl.TableOptionOrBuilder> + getTableOptionsFieldBuilder() { + if (tableOptionsBuilder_ == null) { + tableOptionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Ddl.TableOption, io.greptime.v1.Ddl.TableOption.Builder, io.greptime.v1.Ddl.TableOptionOrBuilder>( + tableOptions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - changeTableOptions_ = null; + tableOptions_ = null; } - return changeTableOptionsBuilder_; + return tableOptionsBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -23836,48 +24066,48 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeTableOptions) + // @@protoc_insertion_point(builder_scope:greptime.v1.SetTableOptions) } - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOptions) - private static final io.greptime.v1.Ddl.ChangeTableOptions DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.SetTableOptions) + private static final io.greptime.v1.Ddl.SetTableOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeTableOptions(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.SetTableOptions(); } - public static io.greptime.v1.Ddl.ChangeTableOptions getDefaultInstance() { + public static io.greptime.v1.Ddl.SetTableOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ChangeTableOptions parsePartialFrom( + public SetTableOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeTableOptions(input, extensionRegistry); + return new SetTableOptions(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOptions getDefaultInstanceForType() { + public io.greptime.v1.Ddl.SetTableOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface ChangeTableOptionOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.ChangeTableOption) + public interface TableOptionOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.TableOption) com.google.protobuf.MessageOrBuilder { /** @@ -23905,18 +24135,18 @@ public interface ChangeTableOptionOrBuilder extends getValueBytes(); } /** - * Protobuf type {@code greptime.v1.ChangeTableOption} + * Protobuf type {@code greptime.v1.TableOption} */ - public static final class ChangeTableOption extends + public static final class TableOption extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.ChangeTableOption) - ChangeTableOptionOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.TableOption) + TableOptionOrBuilder { private static final long serialVersionUID = 0L; - // Use ChangeTableOption.newBuilder() to construct. - private ChangeTableOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use TableOption.newBuilder() to construct. + private TableOption(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private ChangeTableOption() { + private TableOption() { key_ = ""; value_ = ""; } @@ -23925,7 +24155,7 @@ private ChangeTableOption() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new ChangeTableOption(); + return new TableOption(); } @java.lang.Override @@ -23933,7 +24163,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private ChangeTableOption( + private TableOption( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -23986,15 +24216,15 @@ private ChangeTableOption( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_TableOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_TableOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeTableOption.class, io.greptime.v1.Ddl.ChangeTableOption.Builder.class); + io.greptime.v1.Ddl.TableOption.class, io.greptime.v1.Ddl.TableOption.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; @@ -24118,10 +24348,10 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.ChangeTableOption)) { + if (!(obj instanceof io.greptime.v1.Ddl.TableOption)) { return super.equals(obj); } - io.greptime.v1.Ddl.ChangeTableOption other = (io.greptime.v1.Ddl.ChangeTableOption) obj; + io.greptime.v1.Ddl.TableOption other = (io.greptime.v1.Ddl.TableOption) obj; if (!getKey() .equals(other.getKey())) return false; @@ -24147,69 +24377,69 @@ public int hashCode() { return hash; } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + public static io.greptime.v1.Ddl.TableOption parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + public static io.greptime.v1.Ddl.TableOption parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + public static io.greptime.v1.Ddl.TableOption parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + public static io.greptime.v1.Ddl.TableOption parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom(byte[] data) + public static io.greptime.v1.Ddl.TableOption parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + public static io.greptime.v1.Ddl.TableOption parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.TableOption parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + public static io.greptime.v1.Ddl.TableOption parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeTableOption parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.TableOption parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeTableOption parseDelimitedFrom( + public static io.greptime.v1.Ddl.TableOption parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + public static io.greptime.v1.Ddl.TableOption parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( + public static io.greptime.v1.Ddl.TableOption parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -24222,7 +24452,7 @@ public static io.greptime.v1.Ddl.ChangeTableOption parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.ChangeTableOption prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.TableOption prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -24238,26 +24468,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.ChangeTableOption} + * Protobuf type {@code greptime.v1.TableOption} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeTableOption) - io.greptime.v1.Ddl.ChangeTableOptionOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.TableOption) + io.greptime.v1.Ddl.TableOptionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_TableOption_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_TableOption_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeTableOption.class, io.greptime.v1.Ddl.ChangeTableOption.Builder.class); + io.greptime.v1.Ddl.TableOption.class, io.greptime.v1.Ddl.TableOption.Builder.class); } - // Construct using io.greptime.v1.Ddl.ChangeTableOption.newBuilder() + // Construct using io.greptime.v1.Ddl.TableOption.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -24285,17 +24515,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeTableOption_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_TableOption_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOption getDefaultInstanceForType() { - return io.greptime.v1.Ddl.ChangeTableOption.getDefaultInstance(); + public io.greptime.v1.Ddl.TableOption getDefaultInstanceForType() { + return io.greptime.v1.Ddl.TableOption.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOption build() { - io.greptime.v1.Ddl.ChangeTableOption result = buildPartial(); + public io.greptime.v1.Ddl.TableOption build() { + io.greptime.v1.Ddl.TableOption result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -24303,8 +24533,8 @@ public io.greptime.v1.Ddl.ChangeTableOption build() { } @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOption buildPartial() { - io.greptime.v1.Ddl.ChangeTableOption result = new io.greptime.v1.Ddl.ChangeTableOption(this); + public io.greptime.v1.Ddl.TableOption buildPartial() { + io.greptime.v1.Ddl.TableOption result = new io.greptime.v1.Ddl.TableOption(this); result.key_ = key_; result.value_ = value_; onBuilt(); @@ -24345,16 +24575,16 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.ChangeTableOption) { - return mergeFrom((io.greptime.v1.Ddl.ChangeTableOption)other); + if (other instanceof io.greptime.v1.Ddl.TableOption) { + return mergeFrom((io.greptime.v1.Ddl.TableOption)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.ChangeTableOption other) { - if (other == io.greptime.v1.Ddl.ChangeTableOption.getDefaultInstance()) return this; + public Builder mergeFrom(io.greptime.v1.Ddl.TableOption other) { + if (other == io.greptime.v1.Ddl.TableOption.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); @@ -24378,11 +24608,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.ChangeTableOption parsedMessage = null; + io.greptime.v1.Ddl.TableOption parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.ChangeTableOption) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.TableOption) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -24556,83 +24786,96 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeTableOption) + // @@protoc_insertion_point(builder_scope:greptime.v1.TableOption) } - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeTableOption) - private static final io.greptime.v1.Ddl.ChangeTableOption DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.TableOption) + private static final io.greptime.v1.Ddl.TableOption DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeTableOption(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.TableOption(); } - public static io.greptime.v1.Ddl.ChangeTableOption getDefaultInstance() { + public static io.greptime.v1.Ddl.TableOption getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ChangeTableOption parsePartialFrom( + public TableOption parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeTableOption(input, extensionRegistry); + return new TableOption(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeTableOption getDefaultInstanceForType() { + public io.greptime.v1.Ddl.TableOption getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } - public interface DropColumnOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.DropColumn) + public interface UnsetTableOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.UnsetTableOptions) com.google.protobuf.MessageOrBuilder { /** - * string name = 1; - * @return The name. + * repeated string keys = 1; + * @return A list containing the keys. */ - java.lang.String getName(); + java.util.List + getKeysList(); /** - * string name = 1; - * @return The bytes for name. + * repeated string keys = 1; + * @return The count of keys. + */ + int getKeysCount(); + /** + * repeated string keys = 1; + * @param index The index of the element to return. + * @return The keys at the given index. + */ + java.lang.String getKeys(int index); + /** + * repeated string keys = 1; + * @param index The index of the value to return. + * @return The bytes of the keys at the given index. */ com.google.protobuf.ByteString - getNameBytes(); + getKeysBytes(int index); } /** - * Protobuf type {@code greptime.v1.DropColumn} + * Protobuf type {@code greptime.v1.UnsetTableOptions} */ - public static final class DropColumn extends + public static final class UnsetTableOptions extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.DropColumn) - DropColumnOrBuilder { + // @@protoc_insertion_point(message_implements:greptime.v1.UnsetTableOptions) + UnsetTableOptionsOrBuilder { private static final long serialVersionUID = 0L; - // Use DropColumn.newBuilder() to construct. - private DropColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use UnsetTableOptions.newBuilder() to construct. + private UnsetTableOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DropColumn() { - name_ = ""; + private UnsetTableOptions() { + keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new DropColumn(); + return new UnsetTableOptions(); } @java.lang.Override @@ -24640,7 +24883,7 @@ protected java.lang.Object newInstance( getUnknownFields() { return this.unknownFields; } - private DropColumn( + private UnsetTableOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -24648,6 +24891,7 @@ private DropColumn( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -24660,8 +24904,11 @@ private DropColumn( break; case 10: { java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + keys_.add(s); break; } default: { @@ -24681,59 +24928,59 @@ private DropColumn( throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + keys_ = keys_.getUnmodifiableView(); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetTableOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetTableOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.DropColumn.class, io.greptime.v1.Ddl.DropColumn.Builder.class); + io.greptime.v1.Ddl.UnsetTableOptions.class, io.greptime.v1.Ddl.UnsetTableOptions.Builder.class); } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; + public static final int KEYS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList keys_; /** - * string name = 1; - * @return The name. + * repeated string keys = 1; + * @return A list containing the keys. */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } + public com.google.protobuf.ProtocolStringList + getKeysList() { + return keys_; } /** - * string name = 1; - * @return The bytes for name. + * repeated string keys = 1; + * @return The count of keys. + */ + public int getKeysCount() { + return keys_.size(); + } + /** + * repeated string keys = 1; + * @param index The index of the element to return. + * @return The keys at the given index. + */ + public java.lang.String getKeys(int index) { + return keys_.get(index); + } + /** + * repeated string keys = 1; + * @param index The index of the value to return. + * @return The bytes of the keys at the given index. */ - @java.lang.Override public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + getKeysBytes(int index) { + return keys_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -24750,8 +24997,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + for (int i = 0; i < keys_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keys_.getRaw(i)); } unknownFields.writeTo(output); } @@ -24762,8 +25009,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + { + int dataSize = 0; + for (int i = 0; i < keys_.size(); i++) { + dataSize += computeStringSizeNoTag(keys_.getRaw(i)); + } + size += dataSize; + size += 1 * getKeysList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -24775,13 +25027,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof io.greptime.v1.Ddl.DropColumn)) { + if (!(obj instanceof io.greptime.v1.Ddl.UnsetTableOptions)) { return super.equals(obj); } - io.greptime.v1.Ddl.DropColumn other = (io.greptime.v1.Ddl.DropColumn) obj; + io.greptime.v1.Ddl.UnsetTableOptions other = (io.greptime.v1.Ddl.UnsetTableOptions) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getKeysList() + .equals(other.getKeysList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -24793,76 +25045,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); + if (getKeysCount() > 0) { + hash = (37 * hash) + KEYS_FIELD_NUMBER; + hash = (53 * hash) + getKeysList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.DropColumn parseFrom(byte[] data) + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.DropColumn parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.DropColumn parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.UnsetTableOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.DropColumn parseDelimitedFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.DropColumn parseFrom( + public static io.greptime.v1.Ddl.UnsetTableOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -24875,7 +25129,7 @@ public static io.greptime.v1.Ddl.DropColumn parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.DropColumn prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.UnsetTableOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -24891,26 +25145,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.DropColumn} + * Protobuf type {@code greptime.v1.UnsetTableOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.DropColumn) - io.greptime.v1.Ddl.DropColumnOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.UnsetTableOptions) + io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetTableOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetTableOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.DropColumn.class, io.greptime.v1.Ddl.DropColumn.Builder.class); + io.greptime.v1.Ddl.UnsetTableOptions.class, io.greptime.v1.Ddl.UnsetTableOptions.Builder.class); } - // Construct using io.greptime.v1.Ddl.DropColumn.newBuilder() + // Construct using io.greptime.v1.Ddl.UnsetTableOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -24928,25 +25182,25 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - name_ = ""; - + keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetTableOptions_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.DropColumn getDefaultInstanceForType() { - return io.greptime.v1.Ddl.DropColumn.getDefaultInstance(); + public io.greptime.v1.Ddl.UnsetTableOptions getDefaultInstanceForType() { + return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.DropColumn build() { - io.greptime.v1.Ddl.DropColumn result = buildPartial(); + public io.greptime.v1.Ddl.UnsetTableOptions build() { + io.greptime.v1.Ddl.UnsetTableOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -24954,9 +25208,14 @@ public io.greptime.v1.Ddl.DropColumn build() { } @java.lang.Override - public io.greptime.v1.Ddl.DropColumn buildPartial() { - io.greptime.v1.Ddl.DropColumn result = new io.greptime.v1.Ddl.DropColumn(this); - result.name_ = name_; + public io.greptime.v1.Ddl.UnsetTableOptions buildPartial() { + io.greptime.v1.Ddl.UnsetTableOptions result = new io.greptime.v1.Ddl.UnsetTableOptions(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + keys_ = keys_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.keys_ = keys_; onBuilt(); return result; } @@ -24995,17 +25254,628 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.DropColumn) { - return mergeFrom((io.greptime.v1.Ddl.DropColumn)other); + if (other instanceof io.greptime.v1.Ddl.UnsetTableOptions) { + return mergeFrom((io.greptime.v1.Ddl.UnsetTableOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.DropColumn other) { - if (other == io.greptime.v1.Ddl.DropColumn.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { + public Builder mergeFrom(io.greptime.v1.Ddl.UnsetTableOptions other) { + if (other == io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance()) return this; + if (!other.keys_.isEmpty()) { + if (keys_.isEmpty()) { + keys_ = other.keys_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureKeysIsMutable(); + keys_.addAll(other.keys_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Ddl.UnsetTableOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.UnsetTableOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureKeysIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + keys_ = new com.google.protobuf.LazyStringArrayList(keys_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string keys = 1; + * @return A list containing the keys. + */ + public com.google.protobuf.ProtocolStringList + getKeysList() { + return keys_.getUnmodifiableView(); + } + /** + * repeated string keys = 1; + * @return The count of keys. + */ + public int getKeysCount() { + return keys_.size(); + } + /** + * repeated string keys = 1; + * @param index The index of the element to return. + * @return The keys at the given index. + */ + public java.lang.String getKeys(int index) { + return keys_.get(index); + } + /** + * repeated string keys = 1; + * @param index The index of the value to return. + * @return The bytes of the keys at the given index. + */ + public com.google.protobuf.ByteString + getKeysBytes(int index) { + return keys_.getByteString(index); + } + /** + * repeated string keys = 1; + * @param index The index to set the value at. + * @param value The keys to set. + * @return This builder for chaining. + */ + public Builder setKeys( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string keys = 1; + * @param value The keys to add. + * @return This builder for chaining. + */ + public Builder addKeys( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + return this; + } + /** + * repeated string keys = 1; + * @param values The keys to add. + * @return This builder for chaining. + */ + public Builder addAllKeys( + java.lang.Iterable values) { + ensureKeysIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, keys_); + onChanged(); + return this; + } + /** + * repeated string keys = 1; + * @return This builder for chaining. + */ + public Builder clearKeys() { + keys_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string keys = 1; + * @param value The bytes of the keys to add. + * @return This builder for chaining. + */ + public Builder addKeysBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureKeysIsMutable(); + keys_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.UnsetTableOptions) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.UnsetTableOptions) + private static final io.greptime.v1.Ddl.UnsetTableOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.UnsetTableOptions(); + } + + public static io.greptime.v1.Ddl.UnsetTableOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnsetTableOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnsetTableOptions(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.UnsetTableOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DropColumnOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.DropColumn) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + } + /** + * Protobuf type {@code greptime.v1.DropColumn} + */ + public static final class DropColumn extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.DropColumn) + DropColumnOrBuilder { + private static final long serialVersionUID = 0L; + // Use DropColumn.newBuilder() to construct. + private DropColumn(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DropColumn() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DropColumn(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DropColumn( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.DropColumn.class, io.greptime.v1.Ddl.DropColumn.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Ddl.DropColumn)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.DropColumn other = (io.greptime.v1.Ddl.DropColumn) obj; + + if (!getName() + .equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.DropColumn parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.DropColumn parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropColumn parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.DropColumn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Ddl.DropColumn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.DropColumn} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.DropColumn) + io.greptime.v1.Ddl.DropColumnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.DropColumn.class, io.greptime.v1.Ddl.DropColumn.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.DropColumn.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_DropColumn_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropColumn getDefaultInstanceForType() { + return io.greptime.v1.Ddl.DropColumn.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropColumn build() { + io.greptime.v1.Ddl.DropColumn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.DropColumn buildPartial() { + io.greptime.v1.Ddl.DropColumn result = new io.greptime.v1.Ddl.DropColumn(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.DropColumn) { + return mergeFrom((io.greptime.v1.Ddl.DropColumn)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.DropColumn other) { + if (other == io.greptime.v1.Ddl.DropColumn.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); } @@ -30026,15 +30896,20 @@ public io.greptime.v1.Ddl.UnsetColumnFulltext getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_ModifyColumnType_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_ChangeTableOptions_descriptor; + internal_static_greptime_v1_SetTableOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_SetTableOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_TableOption_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_ChangeTableOptions_fieldAccessorTable; + internal_static_greptime_v1_TableOption_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_ChangeTableOption_descriptor; + internal_static_greptime_v1_UnsetTableOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_ChangeTableOption_fieldAccessorTable; + internal_static_greptime_v1_UnsetTableOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_DropColumn_descriptor; private static final @@ -30125,70 +31000,72 @@ public io.greptime.v1.Ddl.UnsetColumnFulltext 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\"\350\003\n\tAlterE" + + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\241\004\n\tAlterE" + "xpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name" + "\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_column" + "s\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014dr" + "op_columns\030\005 \001(\0132\030.greptime.v1.DropColum" + "nsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime.v1" + ".RenameTableH\000\022=\n\023modify_column_types\030\007 " + - "\001(\0132\036.greptime.v1.ModifyColumnTypesH\000\022?\n" + - "\024change_table_options\030\010 \001(\0132\037.greptime.v" + - "1.ChangeTableOptionsH\000\022=\n\023set_column_ful" + - "ltext\030\t \001(\0132\036.greptime.v1.SetColumnFullt" + - "extH\000\022A\n\025unset_column_fulltext\030\n \001(\0132 .g" + - "reptime.v1.UnsetColumnFulltextH\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.TableI" + - "d\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022CreateData" + - "baseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" + - "_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030\003 \001(" + - "\010\022=\n\007options\030\004 \003(\0132,.greptime.v1.CreateD" + - "atabaseExpr.OptionsEntry\032.\n\014OptionsEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021Trun" + - "cateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + - "chema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010" + - "table_id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020" + - "DropDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" + - "\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 " + - "\001(\010\"9\n\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026" + - ".greptime.v1.AddColumn\"<\n\013DropColumns\022-\n" + - "\014drop_columns\030\001 \003(\0132\027.greptime.v1.DropCo" + - "lumn\"O\n\021ModifyColumnTypes\022:\n\023modify_colu" + - "mn_types\030\001 \003(\0132\035.greptime.v1.ModifyColum" + - "nType\"%\n\013RenameTable\022\026\n\016new_table_name\030\001" + - " \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026." + - "greptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132" + - "\036.greptime.v1.AddColumnLocation\"\236\001\n\020Modi" + - "fyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013tar" + - "get_type\030\002 \001(\0162\033.greptime.v1.ColumnDataT" + - "ype\022C\n\025target_type_extension\030\003 \001(\0132$.gre" + - "ptime.v1.ColumnDataTypeExtension\"R\n\022Chan" + - "geTableOptions\022<\n\024change_table_options\030\001" + - " \003(\0132\036.greptime.v1.ChangeTableOption\"/\n\021" + - "ChangeTableOption\022\013\n\003key\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\007Tab" + - "leId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254" + - "\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030" + - "\002 \001(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is" + - "_nullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 " + - "\001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1" + - ".SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022dataty" + - "pe_extension\030\007 \001(\0132$.greptime.v1.ColumnD" + - "ataTypeExtension\022+\n\007options\030\010 \001(\0132\032.grep" + - "time.v1.ColumnOptions\"\230\001\n\021AddColumnLocat" + - "ion\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v1" + - ".AddColumnLocation.LocationType\022\031\n\021after" + - "_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FI" + - "RST\020\000\022\t\n\005AFTER\020\001\"y\n\021SetColumnFulltext\022\023\n" + - "\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010an" + - "alyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016c" + - "ase_sensitive\030\004 \001(\010\"*\n\023UnsetColumnFullte" + - "xt\022\023\n\013column_name\030\001 \001(\t*$\n\010Analyzer\022\013\n\007E" + - "NGLISH\020\000\022\013\n\007CHINESE\020\001BL\n\016io.greptime.v1B" + - "\003DdlZ5github.com/GreptimeTeam/greptime-p" + - "roto/go/greptime/v1b\006proto3" + "\001(\0132\036.greptime.v1.ModifyColumnTypesH\000\0229\n" + + "\021set_table_options\030\010 \001(\0132\034.greptime.v1.S" + + "etTableOptionsH\000\022=\n\023set_column_fulltext\030" + + "\t \001(\0132\036.greptime.v1.SetColumnFulltextH\000\022" + + "A\n\025unset_column_fulltext\030\n \001(\0132 .greptim" + + "e.v1.UnsetColumnFulltextH\000\022=\n\023unset_tabl" + + "e_options\030\013 \001(\0132\036.greptime.v1.UnsetTable" + + "OptionsH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014c" + + "atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022" + + "\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.g" + + "reptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001" + + "(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_nam" + + "e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_i" + + "f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr" + + "eptime.v1.CreateDatabaseExpr.OptionsEntr" + + "y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo" + + "g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab" + + "le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti" + + "me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat" + + "alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016" + + "drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad" + + "d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"" + + "<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g" + + "reptime.v1.DropColumn\"O\n\021ModifyColumnTyp" + + "es\022:\n\023modify_column_types\030\001 \003(\0132\035.grepti" + + "me.v1.ModifyColumnType\"%\n\013RenameTable\022\026\n" + + "\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\nco" + + "lumn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220" + + "\n\010location\030\003 \001(\0132\036.greptime.v1.AddColumn" + + "Location\"\236\001\n\020ModifyColumnType\022\023\n\013column_" + + "name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.grepti" + + "me.v1.ColumnDataType\022C\n\025target_type_exte" + + "nsion\030\003 \001(\0132$.greptime.v1.ColumnDataType" + + "Extension\"B\n\017SetTableOptions\022/\n\rtable_op" + + "tions\030\001 \003(\0132\030.greptime.v1.TableOption\")\n" + + "\013TableOption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + "\"!\n\021UnsetTableOptions\022\014\n\004keys\030\001 \003(\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\001\"y\n\021SetColumnFulltext\022\023\n\013column_na" + + "me\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010analyzer\030\003 \001" + + "(\0162\025.greptime.v1.Analyzer\022\026\n\016case_sensit" + + "ive\030\004 \001(\010\"*\n\023UnsetColumnFulltext\022\023\n\013colu" + + "mn_name\030\001 \001(\t*$\n\010Analyzer\022\013\n\007ENGLISH\020\000\022\013" + + "\n\007CHINESE\020\001BL\n\016io.greptime.v1B\003DdlZ5gith" + + "ub.com/GreptimeTeam/greptime-proto/go/gr" + + "eptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -30248,7 +31125,7 @@ public io.greptime.v1.Ddl.UnsetColumnFulltext 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", "ModifyColumnTypes", "ChangeTableOptions", "SetColumnFulltext", "UnsetColumnFulltext", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "ModifyColumnTypes", "SetTableOptions", "SetColumnFulltext", "UnsetColumnFulltext", "UnsetTableOptions", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new @@ -30315,56 +31192,62 @@ public io.greptime.v1.Ddl.UnsetColumnFulltext getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ModifyColumnType_descriptor, new java.lang.String[] { "ColumnName", "TargetType", "TargetTypeExtension", }); - internal_static_greptime_v1_ChangeTableOptions_descriptor = + internal_static_greptime_v1_SetTableOptions_descriptor = getDescriptor().getMessageTypes().get(17); - internal_static_greptime_v1_ChangeTableOptions_fieldAccessorTable = new + internal_static_greptime_v1_SetTableOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_ChangeTableOptions_descriptor, - new java.lang.String[] { "ChangeTableOptions", }); - internal_static_greptime_v1_ChangeTableOption_descriptor = + internal_static_greptime_v1_SetTableOptions_descriptor, + new java.lang.String[] { "TableOptions", }); + internal_static_greptime_v1_TableOption_descriptor = getDescriptor().getMessageTypes().get(18); - internal_static_greptime_v1_ChangeTableOption_fieldAccessorTable = new + internal_static_greptime_v1_TableOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_ChangeTableOption_descriptor, + internal_static_greptime_v1_TableOption_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_greptime_v1_DropColumn_descriptor = + internal_static_greptime_v1_UnsetTableOptions_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_greptime_v1_UnsetTableOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_UnsetTableOptions_descriptor, + new java.lang.String[] { "Keys", }); + internal_static_greptime_v1_DropColumn_descriptor = + getDescriptor().getMessageTypes().get(20); internal_static_greptime_v1_DropColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumn_descriptor, new java.lang.String[] { "Name", }); internal_static_greptime_v1_TableId_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_greptime_v1_TableId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TableId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_FlowId_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_greptime_v1_FlowId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_FlowId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_ColumnDef_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDef_descriptor, new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", "Options", }); internal_static_greptime_v1_AddColumnLocation_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(24); internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumnLocation_descriptor, new java.lang.String[] { "LocationType", "AfterColumnName", }); internal_static_greptime_v1_SetColumnFulltext_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(25); internal_static_greptime_v1_SetColumnFulltext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetColumnFulltext_descriptor, new java.lang.String[] { "ColumnName", "Enable", "Analyzer", "CaseSensitive", }); internal_static_greptime_v1_UnsetColumnFulltext_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(26); internal_static_greptime_v1_UnsetColumnFulltext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_UnsetColumnFulltext_descriptor, diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java index 1330d31a..6607ac72 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -16434,19 +16434,19 @@ public interface AlterRequestOrBuilder extends io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuilder(); /** - * .greptime.v1.ChangeTableOptions change_table_options = 6; - * @return Whether the changeTableOptions field is set. + * .greptime.v1.SetTableOptions set_table_options = 6; + * @return Whether the setTableOptions field is set. */ - boolean hasChangeTableOptions(); + boolean hasSetTableOptions(); /** - * .greptime.v1.ChangeTableOptions change_table_options = 6; - * @return The changeTableOptions. + * .greptime.v1.SetTableOptions set_table_options = 6; + * @return The setTableOptions. */ - io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions(); + io.greptime.v1.Ddl.SetTableOptions getSetTableOptions(); /** - * .greptime.v1.ChangeTableOptions change_table_options = 6; + * .greptime.v1.SetTableOptions set_table_options = 6; */ - io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder(); + io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder(); /** * .greptime.v1.SetColumnFulltext set_column_fulltext = 7; @@ -16478,6 +16478,21 @@ public interface AlterRequestOrBuilder extends */ io.greptime.v1.Ddl.UnsetColumnFulltextOrBuilder getUnsetColumnFulltextOrBuilder(); + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 9; + * @return Whether the unsetTableOptions field is set. + */ + boolean hasUnsetTableOptions(); + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 9; + * @return The unsetTableOptions. + */ + io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions(); + /** + * .greptime.v1.UnsetTableOptions unset_table_options = 9; + */ + io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder(); + /** *
      * The version of the schema before applying the alteration.
@@ -16588,14 +16603,14 @@ private AlterRequest(
               break;
             }
             case 50: {
-              io.greptime.v1.Ddl.ChangeTableOptions.Builder subBuilder = null;
+              io.greptime.v1.Ddl.SetTableOptions.Builder subBuilder = null;
               if (kindCase_ == 6) {
-                subBuilder = ((io.greptime.v1.Ddl.ChangeTableOptions) kind_).toBuilder();
+                subBuilder = ((io.greptime.v1.Ddl.SetTableOptions) kind_).toBuilder();
               }
               kind_ =
-                  input.readMessage(io.greptime.v1.Ddl.ChangeTableOptions.parser(), extensionRegistry);
+                  input.readMessage(io.greptime.v1.Ddl.SetTableOptions.parser(), extensionRegistry);
               if (subBuilder != null) {
-                subBuilder.mergeFrom((io.greptime.v1.Ddl.ChangeTableOptions) kind_);
+                subBuilder.mergeFrom((io.greptime.v1.Ddl.SetTableOptions) kind_);
                 kind_ = subBuilder.buildPartial();
               }
               kindCase_ = 6;
@@ -16629,6 +16644,20 @@ private AlterRequest(
               kindCase_ = 8;
               break;
             }
+            case 74: {
+              io.greptime.v1.Ddl.UnsetTableOptions.Builder subBuilder = null;
+              if (kindCase_ == 9) {
+                subBuilder = ((io.greptime.v1.Ddl.UnsetTableOptions) kind_).toBuilder();
+              }
+              kind_ =
+                  input.readMessage(io.greptime.v1.Ddl.UnsetTableOptions.parser(), extensionRegistry);
+              if (subBuilder != null) {
+                subBuilder.mergeFrom((io.greptime.v1.Ddl.UnsetTableOptions) kind_);
+                kind_ = subBuilder.buildPartial();
+              }
+              kindCase_ = 9;
+              break;
+            }
             default: {
               if (!parseUnknownField(
                   input, unknownFields, extensionRegistry, tag)) {
@@ -16671,9 +16700,10 @@ public enum KindCase
       ADD_COLUMNS(2),
       DROP_COLUMNS(3),
       MODIFY_COLUMN_TYPES(5),
-      CHANGE_TABLE_OPTIONS(6),
+      SET_TABLE_OPTIONS(6),
       SET_COLUMN_FULLTEXT(7),
       UNSET_COLUMN_FULLTEXT(8),
+      UNSET_TABLE_OPTIONS(9),
       KIND_NOT_SET(0);
       private final int value;
       private KindCase(int value) {
@@ -16694,9 +16724,10 @@ public static KindCase forNumber(int value) {
           case 2: return ADD_COLUMNS;
           case 3: return DROP_COLUMNS;
           case 5: return MODIFY_COLUMN_TYPES;
-          case 6: return CHANGE_TABLE_OPTIONS;
+          case 6: return SET_TABLE_OPTIONS;
           case 7: return SET_COLUMN_FULLTEXT;
           case 8: return UNSET_COLUMN_FULLTEXT;
+          case 9: return UNSET_TABLE_OPTIONS;
           case 0: return KIND_NOT_SET;
           default: return null;
         }
@@ -16816,35 +16847,35 @@ public io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuild
       return io.greptime.v1.Ddl.ModifyColumnTypes.getDefaultInstance();
     }
 
-    public static final int CHANGE_TABLE_OPTIONS_FIELD_NUMBER = 6;
+    public static final int SET_TABLE_OPTIONS_FIELD_NUMBER = 6;
     /**
-     * .greptime.v1.ChangeTableOptions change_table_options = 6;
-     * @return Whether the changeTableOptions field is set.
+     * .greptime.v1.SetTableOptions set_table_options = 6;
+     * @return Whether the setTableOptions field is set.
      */
     @java.lang.Override
-    public boolean hasChangeTableOptions() {
+    public boolean hasSetTableOptions() {
       return kindCase_ == 6;
     }
     /**
-     * .greptime.v1.ChangeTableOptions change_table_options = 6;
-     * @return The changeTableOptions.
+     * .greptime.v1.SetTableOptions set_table_options = 6;
+     * @return The setTableOptions.
      */
     @java.lang.Override
-    public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() {
+    public io.greptime.v1.Ddl.SetTableOptions getSetTableOptions() {
       if (kindCase_ == 6) {
-         return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
+         return (io.greptime.v1.Ddl.SetTableOptions) kind_;
       }
-      return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+      return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
     }
     /**
-     * .greptime.v1.ChangeTableOptions change_table_options = 6;
+     * .greptime.v1.SetTableOptions set_table_options = 6;
      */
     @java.lang.Override
-    public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() {
+    public io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder() {
       if (kindCase_ == 6) {
-         return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
+         return (io.greptime.v1.Ddl.SetTableOptions) kind_;
       }
-      return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+      return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
     }
 
     public static final int SET_COLUMN_FULLTEXT_FIELD_NUMBER = 7;
@@ -16909,6 +16940,37 @@ public io.greptime.v1.Ddl.UnsetColumnFulltextOrBuilder getUnsetColumnFulltextOrB
       return io.greptime.v1.Ddl.UnsetColumnFulltext.getDefaultInstance();
     }
 
+    public static final int UNSET_TABLE_OPTIONS_FIELD_NUMBER = 9;
+    /**
+     * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+     * @return Whether the unsetTableOptions field is set.
+     */
+    @java.lang.Override
+    public boolean hasUnsetTableOptions() {
+      return kindCase_ == 9;
+    }
+    /**
+     * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+     * @return The unsetTableOptions.
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions() {
+      if (kindCase_ == 9) {
+         return (io.greptime.v1.Ddl.UnsetTableOptions) kind_;
+      }
+      return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
+    }
+    /**
+     * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+     */
+    @java.lang.Override
+    public io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder() {
+      if (kindCase_ == 9) {
+         return (io.greptime.v1.Ddl.UnsetTableOptions) kind_;
+      }
+      return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
+    }
+
     public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
     private long schemaVersion_;
     /**
@@ -16954,7 +17016,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
         output.writeMessage(5, (io.greptime.v1.Ddl.ModifyColumnTypes) kind_);
       }
       if (kindCase_ == 6) {
-        output.writeMessage(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
+        output.writeMessage(6, (io.greptime.v1.Ddl.SetTableOptions) kind_);
       }
       if (kindCase_ == 7) {
         output.writeMessage(7, (io.greptime.v1.Ddl.SetColumnFulltext) kind_);
@@ -16962,6 +17024,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output)
       if (kindCase_ == 8) {
         output.writeMessage(8, (io.greptime.v1.Ddl.UnsetColumnFulltext) kind_);
       }
+      if (kindCase_ == 9) {
+        output.writeMessage(9, (io.greptime.v1.Ddl.UnsetTableOptions) kind_);
+      }
       unknownFields.writeTo(output);
     }
 
@@ -16993,7 +17058,7 @@ public int getSerializedSize() {
       }
       if (kindCase_ == 6) {
         size += com.google.protobuf.CodedOutputStream
-          .computeMessageSize(6, (io.greptime.v1.Ddl.ChangeTableOptions) kind_);
+          .computeMessageSize(6, (io.greptime.v1.Ddl.SetTableOptions) kind_);
       }
       if (kindCase_ == 7) {
         size += com.google.protobuf.CodedOutputStream
@@ -17003,6 +17068,10 @@ public int getSerializedSize() {
         size += com.google.protobuf.CodedOutputStream
           .computeMessageSize(8, (io.greptime.v1.Ddl.UnsetColumnFulltext) kind_);
       }
+      if (kindCase_ == 9) {
+        size += com.google.protobuf.CodedOutputStream
+          .computeMessageSize(9, (io.greptime.v1.Ddl.UnsetTableOptions) kind_);
+      }
       size += unknownFields.getSerializedSize();
       memoizedSize = size;
       return size;
@@ -17037,8 +17106,8 @@ public boolean equals(final java.lang.Object obj) {
               .equals(other.getModifyColumnTypes())) return false;
           break;
         case 6:
-          if (!getChangeTableOptions()
-              .equals(other.getChangeTableOptions())) return false;
+          if (!getSetTableOptions()
+              .equals(other.getSetTableOptions())) return false;
           break;
         case 7:
           if (!getSetColumnFulltext()
@@ -17048,6 +17117,10 @@ public boolean equals(final java.lang.Object obj) {
           if (!getUnsetColumnFulltext()
               .equals(other.getUnsetColumnFulltext())) return false;
           break;
+        case 9:
+          if (!getUnsetTableOptions()
+              .equals(other.getUnsetTableOptions())) return false;
+          break;
         case 0:
         default:
       }
@@ -17082,8 +17155,8 @@ public int hashCode() {
           hash = (53 * hash) + getModifyColumnTypes().hashCode();
           break;
         case 6:
-          hash = (37 * hash) + CHANGE_TABLE_OPTIONS_FIELD_NUMBER;
-          hash = (53 * hash) + getChangeTableOptions().hashCode();
+          hash = (37 * hash) + SET_TABLE_OPTIONS_FIELD_NUMBER;
+          hash = (53 * hash) + getSetTableOptions().hashCode();
           break;
         case 7:
           hash = (37 * hash) + SET_COLUMN_FULLTEXT_FIELD_NUMBER;
@@ -17093,6 +17166,10 @@ public int hashCode() {
           hash = (37 * hash) + UNSET_COLUMN_FULLTEXT_FIELD_NUMBER;
           hash = (53 * hash) + getUnsetColumnFulltext().hashCode();
           break;
+        case 9:
+          hash = (37 * hash) + UNSET_TABLE_OPTIONS_FIELD_NUMBER;
+          hash = (53 * hash) + getUnsetTableOptions().hashCode();
+          break;
         case 0:
         default:
       }
@@ -17284,10 +17361,10 @@ public io.greptime.v1.region.Server.AlterRequest buildPartial() {
           }
         }
         if (kindCase_ == 6) {
-          if (changeTableOptionsBuilder_ == null) {
+          if (setTableOptionsBuilder_ == null) {
             result.kind_ = kind_;
           } else {
-            result.kind_ = changeTableOptionsBuilder_.build();
+            result.kind_ = setTableOptionsBuilder_.build();
           }
         }
         if (kindCase_ == 7) {
@@ -17304,6 +17381,13 @@ public io.greptime.v1.region.Server.AlterRequest buildPartial() {
             result.kind_ = unsetColumnFulltextBuilder_.build();
           }
         }
+        if (kindCase_ == 9) {
+          if (unsetTableOptionsBuilder_ == null) {
+            result.kind_ = kind_;
+          } else {
+            result.kind_ = unsetTableOptionsBuilder_.build();
+          }
+        }
         result.schemaVersion_ = schemaVersion_;
         result.kindCase_ = kindCase_;
         onBuilt();
@@ -17373,8 +17457,8 @@ public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) {
             mergeModifyColumnTypes(other.getModifyColumnTypes());
             break;
           }
-          case CHANGE_TABLE_OPTIONS: {
-            mergeChangeTableOptions(other.getChangeTableOptions());
+          case SET_TABLE_OPTIONS: {
+            mergeSetTableOptions(other.getSetTableOptions());
             break;
           }
           case SET_COLUMN_FULLTEXT: {
@@ -17385,6 +17469,10 @@ public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) {
             mergeUnsetColumnFulltext(other.getUnsetColumnFulltext());
             break;
           }
+          case UNSET_TABLE_OPTIONS: {
+            mergeUnsetTableOptions(other.getUnsetTableOptions());
+            break;
+          }
           case KIND_NOT_SET: {
             break;
           }
@@ -17891,71 +17979,71 @@ public io.greptime.v1.Ddl.ModifyColumnTypesOrBuilder getModifyColumnTypesOrBuild
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> changeTableOptionsBuilder_;
+          io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder> setTableOptionsBuilder_;
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
-       * @return Whether the changeTableOptions field is set.
+       * .greptime.v1.SetTableOptions set_table_options = 6;
+       * @return Whether the setTableOptions field is set.
        */
       @java.lang.Override
-      public boolean hasChangeTableOptions() {
+      public boolean hasSetTableOptions() {
         return kindCase_ == 6;
       }
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
-       * @return The changeTableOptions.
+       * .greptime.v1.SetTableOptions set_table_options = 6;
+       * @return The setTableOptions.
        */
       @java.lang.Override
-      public io.greptime.v1.Ddl.ChangeTableOptions getChangeTableOptions() {
-        if (changeTableOptionsBuilder_ == null) {
+      public io.greptime.v1.Ddl.SetTableOptions getSetTableOptions() {
+        if (setTableOptionsBuilder_ == null) {
           if (kindCase_ == 6) {
-            return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
+            return (io.greptime.v1.Ddl.SetTableOptions) kind_;
           }
-          return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+          return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
         } else {
           if (kindCase_ == 6) {
-            return changeTableOptionsBuilder_.getMessage();
+            return setTableOptionsBuilder_.getMessage();
           }
-          return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+          return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
         }
       }
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * .greptime.v1.SetTableOptions set_table_options = 6;
        */
-      public Builder setChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) {
-        if (changeTableOptionsBuilder_ == null) {
+      public Builder setSetTableOptions(io.greptime.v1.Ddl.SetTableOptions value) {
+        if (setTableOptionsBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
           }
           kind_ = value;
           onChanged();
         } else {
-          changeTableOptionsBuilder_.setMessage(value);
+          setTableOptionsBuilder_.setMessage(value);
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * .greptime.v1.SetTableOptions set_table_options = 6;
        */
-      public Builder setChangeTableOptions(
-          io.greptime.v1.Ddl.ChangeTableOptions.Builder builderForValue) {
-        if (changeTableOptionsBuilder_ == null) {
+      public Builder setSetTableOptions(
+          io.greptime.v1.Ddl.SetTableOptions.Builder builderForValue) {
+        if (setTableOptionsBuilder_ == null) {
           kind_ = builderForValue.build();
           onChanged();
         } else {
-          changeTableOptionsBuilder_.setMessage(builderForValue.build());
+          setTableOptionsBuilder_.setMessage(builderForValue.build());
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * .greptime.v1.SetTableOptions set_table_options = 6;
        */
-      public Builder mergeChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions value) {
-        if (changeTableOptionsBuilder_ == null) {
+      public Builder mergeSetTableOptions(io.greptime.v1.Ddl.SetTableOptions value) {
+        if (setTableOptionsBuilder_ == null) {
           if (kindCase_ == 6 &&
-              kind_ != io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance()) {
-            kind_ = io.greptime.v1.Ddl.ChangeTableOptions.newBuilder((io.greptime.v1.Ddl.ChangeTableOptions) kind_)
+              kind_ != io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance()) {
+            kind_ = io.greptime.v1.Ddl.SetTableOptions.newBuilder((io.greptime.v1.Ddl.SetTableOptions) kind_)
                 .mergeFrom(value).buildPartial();
           } else {
             kind_ = value;
@@ -17963,19 +18051,19 @@ public Builder mergeChangeTableOptions(io.greptime.v1.Ddl.ChangeTableOptions val
           onChanged();
         } else {
           if (kindCase_ == 6) {
-            changeTableOptionsBuilder_.mergeFrom(value);
+            setTableOptionsBuilder_.mergeFrom(value);
           } else {
-            changeTableOptionsBuilder_.setMessage(value);
+            setTableOptionsBuilder_.setMessage(value);
           }
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * .greptime.v1.SetTableOptions set_table_options = 6;
        */
-      public Builder clearChangeTableOptions() {
-        if (changeTableOptionsBuilder_ == null) {
+      public Builder clearSetTableOptions() {
+        if (setTableOptionsBuilder_ == null) {
           if (kindCase_ == 6) {
             kindCase_ = 0;
             kind_ = null;
@@ -17986,50 +18074,50 @@ public Builder clearChangeTableOptions() {
             kindCase_ = 0;
             kind_ = null;
           }
-          changeTableOptionsBuilder_.clear();
+          setTableOptionsBuilder_.clear();
         }
         return this;
       }
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * .greptime.v1.SetTableOptions set_table_options = 6;
        */
-      public io.greptime.v1.Ddl.ChangeTableOptions.Builder getChangeTableOptionsBuilder() {
-        return getChangeTableOptionsFieldBuilder().getBuilder();
+      public io.greptime.v1.Ddl.SetTableOptions.Builder getSetTableOptionsBuilder() {
+        return getSetTableOptionsFieldBuilder().getBuilder();
       }
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * .greptime.v1.SetTableOptions set_table_options = 6;
        */
       @java.lang.Override
-      public io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder getChangeTableOptionsOrBuilder() {
-        if ((kindCase_ == 6) && (changeTableOptionsBuilder_ != null)) {
-          return changeTableOptionsBuilder_.getMessageOrBuilder();
+      public io.greptime.v1.Ddl.SetTableOptionsOrBuilder getSetTableOptionsOrBuilder() {
+        if ((kindCase_ == 6) && (setTableOptionsBuilder_ != null)) {
+          return setTableOptionsBuilder_.getMessageOrBuilder();
         } else {
           if (kindCase_ == 6) {
-            return (io.greptime.v1.Ddl.ChangeTableOptions) kind_;
+            return (io.greptime.v1.Ddl.SetTableOptions) kind_;
           }
-          return io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+          return io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
         }
       }
       /**
-       * .greptime.v1.ChangeTableOptions change_table_options = 6;
+       * .greptime.v1.SetTableOptions set_table_options = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder> 
-          getChangeTableOptionsFieldBuilder() {
-        if (changeTableOptionsBuilder_ == null) {
+          io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder> 
+          getSetTableOptionsFieldBuilder() {
+        if (setTableOptionsBuilder_ == null) {
           if (!(kindCase_ == 6)) {
-            kind_ = io.greptime.v1.Ddl.ChangeTableOptions.getDefaultInstance();
+            kind_ = io.greptime.v1.Ddl.SetTableOptions.getDefaultInstance();
           }
-          changeTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
-              io.greptime.v1.Ddl.ChangeTableOptions, io.greptime.v1.Ddl.ChangeTableOptions.Builder, io.greptime.v1.Ddl.ChangeTableOptionsOrBuilder>(
-                  (io.greptime.v1.Ddl.ChangeTableOptions) kind_,
+          setTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.Ddl.SetTableOptions, io.greptime.v1.Ddl.SetTableOptions.Builder, io.greptime.v1.Ddl.SetTableOptionsOrBuilder>(
+                  (io.greptime.v1.Ddl.SetTableOptions) kind_,
                   getParentForChildren(),
                   isClean());
           kind_ = null;
         }
         kindCase_ = 6;
         onChanged();;
-        return changeTableOptionsBuilder_;
+        return setTableOptionsBuilder_;
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
@@ -18316,6 +18404,148 @@ public io.greptime.v1.Ddl.UnsetColumnFulltextOrBuilder getUnsetColumnFulltextOrB
         return unsetColumnFulltextBuilder_;
       }
 
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder> unsetTableOptionsBuilder_;
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       * @return Whether the unsetTableOptions field is set.
+       */
+      @java.lang.Override
+      public boolean hasUnsetTableOptions() {
+        return kindCase_ == 9;
+      }
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       * @return The unsetTableOptions.
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.UnsetTableOptions getUnsetTableOptions() {
+        if (unsetTableOptionsBuilder_ == null) {
+          if (kindCase_ == 9) {
+            return (io.greptime.v1.Ddl.UnsetTableOptions) kind_;
+          }
+          return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
+        } else {
+          if (kindCase_ == 9) {
+            return unsetTableOptionsBuilder_.getMessage();
+          }
+          return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       */
+      public Builder setUnsetTableOptions(io.greptime.v1.Ddl.UnsetTableOptions value) {
+        if (unsetTableOptionsBuilder_ == null) {
+          if (value == null) {
+            throw new NullPointerException();
+          }
+          kind_ = value;
+          onChanged();
+        } else {
+          unsetTableOptionsBuilder_.setMessage(value);
+        }
+        kindCase_ = 9;
+        return this;
+      }
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       */
+      public Builder setUnsetTableOptions(
+          io.greptime.v1.Ddl.UnsetTableOptions.Builder builderForValue) {
+        if (unsetTableOptionsBuilder_ == null) {
+          kind_ = builderForValue.build();
+          onChanged();
+        } else {
+          unsetTableOptionsBuilder_.setMessage(builderForValue.build());
+        }
+        kindCase_ = 9;
+        return this;
+      }
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       */
+      public Builder mergeUnsetTableOptions(io.greptime.v1.Ddl.UnsetTableOptions value) {
+        if (unsetTableOptionsBuilder_ == null) {
+          if (kindCase_ == 9 &&
+              kind_ != io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance()) {
+            kind_ = io.greptime.v1.Ddl.UnsetTableOptions.newBuilder((io.greptime.v1.Ddl.UnsetTableOptions) kind_)
+                .mergeFrom(value).buildPartial();
+          } else {
+            kind_ = value;
+          }
+          onChanged();
+        } else {
+          if (kindCase_ == 9) {
+            unsetTableOptionsBuilder_.mergeFrom(value);
+          } else {
+            unsetTableOptionsBuilder_.setMessage(value);
+          }
+        }
+        kindCase_ = 9;
+        return this;
+      }
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       */
+      public Builder clearUnsetTableOptions() {
+        if (unsetTableOptionsBuilder_ == null) {
+          if (kindCase_ == 9) {
+            kindCase_ = 0;
+            kind_ = null;
+            onChanged();
+          }
+        } else {
+          if (kindCase_ == 9) {
+            kindCase_ = 0;
+            kind_ = null;
+          }
+          unsetTableOptionsBuilder_.clear();
+        }
+        return this;
+      }
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       */
+      public io.greptime.v1.Ddl.UnsetTableOptions.Builder getUnsetTableOptionsBuilder() {
+        return getUnsetTableOptionsFieldBuilder().getBuilder();
+      }
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       */
+      @java.lang.Override
+      public io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder getUnsetTableOptionsOrBuilder() {
+        if ((kindCase_ == 9) && (unsetTableOptionsBuilder_ != null)) {
+          return unsetTableOptionsBuilder_.getMessageOrBuilder();
+        } else {
+          if (kindCase_ == 9) {
+            return (io.greptime.v1.Ddl.UnsetTableOptions) kind_;
+          }
+          return io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
+        }
+      }
+      /**
+       * .greptime.v1.UnsetTableOptions unset_table_options = 9;
+       */
+      private com.google.protobuf.SingleFieldBuilderV3<
+          io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder> 
+          getUnsetTableOptionsFieldBuilder() {
+        if (unsetTableOptionsBuilder_ == null) {
+          if (!(kindCase_ == 9)) {
+            kind_ = io.greptime.v1.Ddl.UnsetTableOptions.getDefaultInstance();
+          }
+          unsetTableOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+              io.greptime.v1.Ddl.UnsetTableOptions, io.greptime.v1.Ddl.UnsetTableOptions.Builder, io.greptime.v1.Ddl.UnsetTableOptionsOrBuilder>(
+                  (io.greptime.v1.Ddl.UnsetTableOptions) kind_,
+                  getParentForChildren(),
+                  isClean());
+          kind_ = null;
+        }
+        kindCase_ = 9;
+        onChanged();;
+        return unsetTableOptionsBuilder_;
+      }
+
       private long schemaVersion_ ;
       /**
        * 
@@ -25254,39 +25484,41 @@ 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\"\263\003\n\014Alte" +
+      "greptime.v1.region.AlterRequest\"\354\003\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\023modify_column_typ" +
       "es\030\005 \001(\0132\036.greptime.v1.ModifyColumnTypes" +
-      "H\000\022?\n\024change_table_options\030\006 \001(\0132\037.grept" +
-      "ime.v1.ChangeTableOptionsH\000\022=\n\023set_colum" +
-      "n_fulltext\030\007 \001(\0132\036.greptime.v1.SetColumn" +
-      "FulltextH\000\022A\n\025unset_column_fulltext\030\010 \001(" +
-      "\0132 .greptime.v1.UnsetColumnFulltextH\000\022\026\n" +
-      "\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColu" +
-      "mns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1.r" +
-      "egion.AddColumn\"C\n\013DropColumns\0224\n\014drop_c" +
-      "olumns\030\001 \003(\0132\036.greptime.v1.region.DropCo" +
-      "lumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#." +
-      "greptime.v1.region.RegionColumnDef\0220\n\010lo" +
-      "cation\030\003 \001(\0132\036.greptime.v1.AddColumnLoca" +
-      "tion\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Flus" +
-      "hRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&" +
-      "\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(\003\"\231" +
-      "\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007" +
-      "regular\030\002 \001(\0132\033.greptime.v1.region.Regul" +
-      "arH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime.v" +
-      "1.region.StrictWindowH\000B\t\n\007options\"$\n\017Tr" +
-      "uncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Regi" +
-      "onColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti" +
-      "me.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r2Y\n\006Re" +
-      "gion\022O\n\006Handle\022!.greptime.v1.region.Regi" +
-      "onRequest\032\".greptime.v1.region.RegionRes" +
-      "ponseB]\n\025io.greptime.v1.regionB\006ServerZ<" +
-      "github.com/GreptimeTeam/greptime-proto/g" +
-      "o/greptime/v1/regionb\006proto3"
+      "H\000\0229\n\021set_table_options\030\006 \001(\0132\034.greptime" +
+      ".v1.SetTableOptionsH\000\022=\n\023set_column_full" +
+      "text\030\007 \001(\0132\036.greptime.v1.SetColumnFullte" +
+      "xtH\000\022A\n\025unset_column_fulltext\030\010 \001(\0132 .gr" +
+      "eptime.v1.UnsetColumnFulltextH\000\022=\n\023unset" +
+      "_table_options\030\t \001(\0132\036.greptime.v1.Unset" +
+      "TableOptionsH\000\022\026\n\016schema_version\030\004 \001(\004B\006" +
+      "\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(" +
+      "\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop" +
+      "Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime" +
+      ".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco" +
+      "lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi" +
+      "onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" +
+      ".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n" +
+      "ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001" +
+      " \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo" +
+      "w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre" +
+      "gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim" +
+      "e.v1.region.RegularH\000\0229\n\rstrict_window\030\003" +
+      " \001(\0132 .greptime.v1.region.StrictWindowH\000" +
+      "B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion" +
+      "_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d" +
+      "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu" +
+      "mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti" +
+      "me.v1.region.RegionRequest\032\".greptime.v1" +
+      ".region.RegionResponseB]\n\025io.greptime.v1" +
+      ".regionB\006ServerZ