diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 1cd2054e..ab3ae61d 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -175,6 +175,34 @@ struct AlterTableExprDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AlterTableExprDefaultTypeInternal _AlterTableExpr_default_instance_; +PROTOBUF_CONSTEXPR SetIndex::SetIndex( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.set_column_fulltext_)*/nullptr + , /*decltype(_impl_.set_column_inverted_index_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetIndexDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetIndexDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetIndexDefaultTypeInternal() {} + union { + SetIndex _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetIndexDefaultTypeInternal _SetIndex_default_instance_; +PROTOBUF_CONSTEXPR UnsetIndex::UnsetIndex( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.unset_column_fulltext_)*/nullptr + , /*decltype(_impl_.unset_column_inverted_index_)*/nullptr + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UnsetIndexDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnsetIndexDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnsetIndexDefaultTypeInternal() {} + union { + UnsetIndex _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetIndexDefaultTypeInternal _UnsetIndex_default_instance_; PROTOBUF_CONSTEXPR DropTableExpr::DropTableExpr( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -473,6 +501,32 @@ struct UnsetColumnFulltextDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetColumnFulltextDefaultTypeInternal _UnsetColumnFulltext_default_instance_; +PROTOBUF_CONSTEXPR SetColumnInvertedIndex::SetColumnInvertedIndex( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct SetColumnInvertedIndexDefaultTypeInternal { + PROTOBUF_CONSTEXPR SetColumnInvertedIndexDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~SetColumnInvertedIndexDefaultTypeInternal() {} + union { + SetColumnInvertedIndex _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetColumnInvertedIndexDefaultTypeInternal _SetColumnInvertedIndex_default_instance_; +PROTOBUF_CONSTEXPR UnsetColumnInvertedIndex::UnsetColumnInvertedIndex( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UnsetColumnInvertedIndexDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnsetColumnInvertedIndexDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnsetColumnInvertedIndexDefaultTypeInternal() {} + union { + UnsetColumnInvertedIndex _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetColumnInvertedIndexDefaultTypeInternal _UnsetColumnInvertedIndex_default_instance_; PROTOBUF_CONSTEXPR AlterDatabaseExpr::AlterDatabaseExpr( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -517,7 +571,7 @@ struct UnsetDatabaseOptionsDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetDatabaseOptionsDefaultTypeInternal _UnsetDatabaseOptions_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[33]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[37]; 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; @@ -648,6 +702,22 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterTableExpr, _impl_.kind_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetIndex, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetIndex, _impl_.set_column_fulltext_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetIndex, _impl_.set_column_inverted_index_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetIndex, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetIndex, _impl_.unset_column_fulltext_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetIndex, _impl_.unset_column_inverted_index_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropTableExpr, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -825,6 +895,20 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetColumnFulltext, _impl_.column_name_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetColumnInvertedIndex, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetColumnInvertedIndex, _impl_.column_name_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetColumnInvertedIndex, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetColumnInvertedIndex, _impl_.column_name_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterDatabaseExpr, _internal_metadata_), ~0u, // no _extensions_ PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterDatabaseExpr, _impl_._oneof_case_[0]), @@ -860,30 +944,34 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 80, 88, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, { 90, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, { 107, -1, -1, sizeof(::greptime::v1::AlterTableExpr)}, - { 125, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 136, 144, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 146, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 156, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 166, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 175, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 182, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 189, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, - { 196, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 203, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 211, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, - { 220, -1, -1, sizeof(::greptime::v1::Option)}, - { 228, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, - { 235, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, - { 242, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 249, -1, -1, sizeof(::greptime::v1::TableId)}, - { 256, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 263, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 277, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, - { 285, -1, -1, sizeof(::greptime::v1::SetColumnFulltext)}, - { 295, -1, -1, sizeof(::greptime::v1::UnsetColumnFulltext)}, - { 302, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, - { 313, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, - { 320, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, + { 125, -1, -1, sizeof(::greptime::v1::SetIndex)}, + { 133, -1, -1, sizeof(::greptime::v1::UnsetIndex)}, + { 141, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 152, 160, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 162, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 172, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 182, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 191, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 198, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 205, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, + { 212, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 219, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 227, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, + { 236, -1, -1, sizeof(::greptime::v1::Option)}, + { 244, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, + { 251, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, + { 258, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 265, -1, -1, sizeof(::greptime::v1::TableId)}, + { 272, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 279, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 293, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 301, -1, -1, sizeof(::greptime::v1::SetColumnFulltext)}, + { 311, -1, -1, sizeof(::greptime::v1::UnsetColumnFulltext)}, + { 318, -1, -1, sizeof(::greptime::v1::SetColumnInvertedIndex)}, + { 325, -1, -1, sizeof(::greptime::v1::UnsetColumnInvertedIndex)}, + { 332, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, + { 343, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, + { 350, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -896,6 +984,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateTableExpr_default_instance_._instance, &::greptime::v1::_AlterTableExpr_default_instance_._instance, + &::greptime::v1::_SetIndex_default_instance_._instance, + &::greptime::v1::_UnsetIndex_default_instance_._instance, &::greptime::v1::_DropTableExpr_default_instance_._instance, &::greptime::v1::_CreateDatabaseExpr_OptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateDatabaseExpr_default_instance_._instance, @@ -917,6 +1007,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_AddColumnLocation_default_instance_._instance, &::greptime::v1::_SetColumnFulltext_default_instance_._instance, &::greptime::v1::_UnsetColumnFulltext_default_instance_._instance, + &::greptime::v1::_SetColumnInvertedIndex_default_instance_._instance, + &::greptime::v1::_UnsetColumnInvertedIndex_default_instance_._instance, &::greptime::v1::_AlterDatabaseExpr_default_instance_._instance, &::greptime::v1::_SetDatabaseOptions_default_instance_._instance, &::greptime::v1::_UnsetDatabaseOptions_default_instance_._instance, @@ -971,7 +1063,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "teTableExpr.TableOptionsEntry\022&\n\010table_i" "d\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\"\246\004\n\016AlterTableExpr\022\024\n" + "\r\n\005value\030\002 \001(\t:\0028\001\"\200\004\n\016AlterTableExpr\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_columns\030\004 \001(" "\0132\027.greptime.v1.AddColumnsH\000\0220\n\014drop_col" @@ -980,59 +1072,68 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "eTableH\000\022=\n\023modify_column_types\030\007 \001(\0132\036." "greptime.v1.ModifyColumnTypesH\000\0229\n\021set_t" "able_options\030\010 \001(\0132\034.greptime.v1.SetTabl" - "eOptionsH\000\022=\n\023set_column_fulltext\030\t \001(\0132" - "\036.greptime.v1.SetColumnFulltextH\000\022A\n\025uns" - "et_column_fulltext\030\n \001(\0132 .greptime.v1.U" - "nsetColumnFulltextH\000\022=\n\023unset_table_opti" - "ons\030\013 \001(\0132\036.greptime.v1.UnsetTableOption" - "sH\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\ntabl" - "e_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptim" - "e.v1.TableId\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n" - "\022CreateDatabaseExpr\022\024\n\014catalog_name\030\001 \001(" - "\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_if_not_" - "exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime" - ".v1.CreateDatabaseExpr.OptionsEntry\032.\n\014O" - "ptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" - "\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalog_name" - "\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_nam" - "e\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1." - "TableId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_n" - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_i" - "f_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_colu" - "mns\030\001 \003(\0132\026.greptime.v1.AddColumn\"<\n\013Dro" - "pColumns\022-\n\014drop_columns\030\001 \003(\0132\027.greptim" - "e.v1.DropColumn\"O\n\021ModifyColumnTypes\022:\n\023" - "modify_column_types\030\001 \003(\0132\035.greptime.v1." - "ModifyColumnType\"%\n\013RenameTable\022\026\n\016new_t" - "able_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_d" - "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010loca" - "tion\030\003 \001(\0132\036.greptime.v1.AddColumnLocati" - "on\"\236\001\n\020ModifyColumnType\022\023\n\013column_name\030\001" - " \001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1." - "ColumnDataType\022C\n\025target_type_extension\030" - "\003 \001(\0132$.greptime.v1.ColumnDataTypeExtens" - "ion\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(" - "\t\"=\n\017SetTableOptions\022*\n\rtable_options\030\001 " - "\003(\0132\023.greptime.v1.Option\"!\n\021UnsetTableOp" - "tions\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004nam" - "e\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId" - "\022\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t" - "\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v1.Column" - "DataType\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(\016" - "2\031.greptime.v1.SemanticType\022\017\n\007comment\030\006" - " \001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grept" - "ime.v1.ColumnDataTypeExtension\022+\n\007option" - "s\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021" - "AddColumnLocation\022B\n\rlocation_type\030\001 \001(\016" - "2+.greptime.v1.AddColumnLocation.Locatio" - "nType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Loca" - "tionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"y\n\021SetCol" - "umnFulltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enab" - "le\030\002 \001(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1" - ".Analyzer\022\026\n\016case_sensitive\030\004 \001(\010\"*\n\023Uns" - "etColumnFulltext\022\023\n\013column_name\030\001 \001(\t\"\314\001" + "eOptionsH\000\022=\n\023unset_table_options\030\013 \001(\0132" + "\036.greptime.v1.UnsetTableOptionsH\000\022*\n\tset" + "_index\030\014 \001(\0132\025.greptime.v1.SetIndexH\000\022.\n" + "\013unset_index\030\r \001(\0132\027.greptime.v1.UnsetIn" + "dexH\000B\006\n\004kind\"\217\001\n\010SetIndex\022;\n\023set_column" + "_fulltext\030\001 \001(\0132\036.greptime.v1.SetColumnF" + "ulltext\022F\n\031set_column_inverted_index\030\002 \001" + "(\0132#.greptime.v1.SetColumnInvertedIndex\"" + "\231\001\n\nUnsetIndex\022\?\n\025unset_column_fulltext\030" + "\001 \001(\0132 .greptime.v1.UnsetColumnFulltext\022" + "J\n\033unset_column_inverted_index\030\002 \001(\0132%.g" + "reptime.v1.UnsetColumnInvertedIndex\"\216\001\n\r" + "DropTableExpr\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\022\026\n\016" + "drop_if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseE" + "xpr\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\007" + "options\030\004 \003(\0132,.greptime.v1.CreateDataba" + "seExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003k" + "ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateT" + "ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" + "_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table" + "_id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020DropD" + "atabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sch" + "ema_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.grep" + "time.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop" + "_columns\030\001 \003(\0132\027.greptime.v1.DropColumn\"" + "O\n\021ModifyColumnTypes\022:\n\023modify_column_ty" + "pes\030\001 \003(\0132\035.greptime.v1.ModifyColumnType" + "\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"" + "i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grept" + "ime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.gre" + "ptime.v1.AddColumnLocation\"\236\001\n\020ModifyCol" + "umnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_t" + "ype\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022C" + "\n\025target_type_extension\030\003 \001(\0132$.greptime" + ".v1.ColumnDataTypeExtension\"$\n\006Option\022\013\n" + "\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017SetTableOpt" + "ions\022*\n\rtable_options\030\001 \003(\0132\023.greptime.v" + "1.Option\"!\n\021UnsetTableOptions\022\014\n\004keys\030\001 " + "\003(\t\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007Table" + "Id\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_n" + "ullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(" + "\014\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.S" + "emanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype" + "_extension\030\007 \001(\0132$.greptime.v1.ColumnDat" + "aTypeExtension\022+\n\007options\030\010 \001(\0132\032.grepti" + "me.v1.ColumnOptions\"\230\001\n\021AddColumnLocatio" + "n\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v1.A" + "ddColumnLocation.LocationType\022\031\n\021after_c" + "olumn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRS" + "T\020\000\022\t\n\005AFTER\020\001\"y\n\021SetColumnFulltext\022\023\n\013c" + "olumn_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010anal" + "yzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016cas" + "e_sensitive\030\004 \001(\010\"*\n\023UnsetColumnFulltext" + "\022\023\n\013column_name\030\001 \001(\t\"-\n\026SetColumnInvert" + "edIndex\022\023\n\013column_name\030\001 \001(\t\"/\n\030UnsetCol" + "umnInvertedIndex\022\023\n\013column_name\030\001 \001(\t\"\314\001" "\n\021AlterDatabaseExpr\022\024\n\014catalog_name\030\001 \001(" "\t\022\023\n\013schema_name\030\002 \001(\t\022\?\n\024set_database_o" "ptions\030\003 \001(\0132\037.greptime.v1.SetDatabaseOp" @@ -1050,9 +1151,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 4839, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 5199, 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, 33, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 37, 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, @@ -4461,9 +4562,9 @@ class AlterTableExpr::_Internal { static const ::greptime::v1::RenameTable& rename_table(const AlterTableExpr* msg); static const ::greptime::v1::ModifyColumnTypes& modify_column_types(const AlterTableExpr* msg); static const ::greptime::v1::SetTableOptions& set_table_options(const AlterTableExpr* msg); - static const ::greptime::v1::SetColumnFulltext& set_column_fulltext(const AlterTableExpr* msg); - static const ::greptime::v1::UnsetColumnFulltext& unset_column_fulltext(const AlterTableExpr* msg); static const ::greptime::v1::UnsetTableOptions& unset_table_options(const AlterTableExpr* msg); + static const ::greptime::v1::SetIndex& set_index(const AlterTableExpr* msg); + static const ::greptime::v1::UnsetIndex& unset_index(const AlterTableExpr* msg); }; const ::greptime::v1::AddColumns& @@ -4486,18 +4587,18 @@ const ::greptime::v1::SetTableOptions& AlterTableExpr::_Internal::set_table_options(const AlterTableExpr* msg) { return *msg->_impl_.kind_.set_table_options_; } -const ::greptime::v1::SetColumnFulltext& -AlterTableExpr::_Internal::set_column_fulltext(const AlterTableExpr* msg) { - return *msg->_impl_.kind_.set_column_fulltext_; -} -const ::greptime::v1::UnsetColumnFulltext& -AlterTableExpr::_Internal::unset_column_fulltext(const AlterTableExpr* msg) { - return *msg->_impl_.kind_.unset_column_fulltext_; -} const ::greptime::v1::UnsetTableOptions& AlterTableExpr::_Internal::unset_table_options(const AlterTableExpr* msg) { return *msg->_impl_.kind_.unset_table_options_; } +const ::greptime::v1::SetIndex& +AlterTableExpr::_Internal::set_index(const AlterTableExpr* msg) { + return *msg->_impl_.kind_.set_index_; +} +const ::greptime::v1::UnsetIndex& +AlterTableExpr::_Internal::unset_index(const AlterTableExpr* msg) { + return *msg->_impl_.kind_.unset_index_; +} void AlterTableExpr::set_allocated_add_columns(::greptime::v1::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -4573,50 +4674,50 @@ void AlterTableExpr::set_allocated_set_table_options(::greptime::v1::SetTableOpt } // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.set_table_options) } -void AlterTableExpr::set_allocated_set_column_fulltext(::greptime::v1::SetColumnFulltext* set_column_fulltext) { +void AlterTableExpr::set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (set_column_fulltext) { + if (unset_table_options) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(set_column_fulltext); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unset_table_options); if (message_arena != submessage_arena) { - set_column_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, set_column_fulltext, submessage_arena); + unset_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unset_table_options, submessage_arena); } - set_has_set_column_fulltext(); - _impl_.kind_.set_column_fulltext_ = set_column_fulltext; + set_has_unset_table_options(); + _impl_.kind_.unset_table_options_ = unset_table_options; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.set_column_fulltext) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.unset_table_options) } -void AlterTableExpr::set_allocated_unset_column_fulltext(::greptime::v1::UnsetColumnFulltext* unset_column_fulltext) { +void AlterTableExpr::set_allocated_set_index(::greptime::v1::SetIndex* set_index) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (unset_column_fulltext) { + if (set_index) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unset_column_fulltext); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(set_index); if (message_arena != submessage_arena) { - unset_column_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, unset_column_fulltext, submessage_arena); + set_index = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, set_index, submessage_arena); } - set_has_unset_column_fulltext(); - _impl_.kind_.unset_column_fulltext_ = unset_column_fulltext; + set_has_set_index(); + _impl_.kind_.set_index_ = set_index; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.unset_column_fulltext) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.set_index) } -void AlterTableExpr::set_allocated_unset_table_options(::greptime::v1::UnsetTableOptions* unset_table_options) { +void AlterTableExpr::set_allocated_unset_index(::greptime::v1::UnsetIndex* unset_index) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (unset_table_options) { + if (unset_index) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unset_table_options); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unset_index); if (message_arena != submessage_arena) { - unset_table_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, unset_table_options, submessage_arena); + unset_index = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unset_index, submessage_arena); } - set_has_unset_table_options(); - _impl_.kind_.unset_table_options_ = unset_table_options; + set_has_unset_index(); + _impl_.kind_.unset_index_ = unset_index; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.unset_table_options) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterTableExpr.unset_index) } AlterTableExpr::AlterTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) @@ -4687,19 +4788,19 @@ AlterTableExpr::AlterTableExpr(const AlterTableExpr& from) from._internal_set_table_options()); break; } - case kSetColumnFulltext: { - _this->_internal_mutable_set_column_fulltext()->::greptime::v1::SetColumnFulltext::MergeFrom( - from._internal_set_column_fulltext()); + case kUnsetTableOptions: { + _this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom( + from._internal_unset_table_options()); break; } - case kUnsetColumnFulltext: { - _this->_internal_mutable_unset_column_fulltext()->::greptime::v1::UnsetColumnFulltext::MergeFrom( - from._internal_unset_column_fulltext()); + case kSetIndex: { + _this->_internal_mutable_set_index()->::greptime::v1::SetIndex::MergeFrom( + from._internal_set_index()); break; } - case kUnsetTableOptions: { - _this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom( - from._internal_unset_table_options()); + case kUnsetIndex: { + _this->_internal_mutable_unset_index()->::greptime::v1::UnsetIndex::MergeFrom( + from._internal_unset_index()); break; } case KIND_NOT_SET: { @@ -4792,21 +4893,21 @@ void AlterTableExpr::clear_kind() { } break; } - case kSetColumnFulltext: { + case kUnsetTableOptions: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.set_column_fulltext_; + delete _impl_.kind_.unset_table_options_; } break; } - case kUnsetColumnFulltext: { + case kSetIndex: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.unset_column_fulltext_; + delete _impl_.kind_.set_index_; } break; } - case kUnsetTableOptions: { + case kUnsetIndex: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.unset_table_options_; + delete _impl_.kind_.unset_index_; } break; } @@ -4907,26 +5008,26 @@ const char* AlterTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; - // .greptime.v1.SetColumnFulltext set_column_fulltext = 9; - case 9: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { - ptr = ctx->ParseMessage(_internal_mutable_set_column_fulltext(), ptr); + // .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; - // .greptime.v1.UnsetColumnFulltext unset_column_fulltext = 10; - case 10: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 82)) { - ptr = ctx->ParseMessage(_internal_mutable_unset_column_fulltext(), ptr); + // .greptime.v1.SetIndex set_index = 12; + case 12: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 98)) { + ptr = ctx->ParseMessage(_internal_mutable_set_index(), ptr); CHK_(ptr); } 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); + // .greptime.v1.UnsetIndex unset_index = 13; + case 13: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 106)) { + ptr = ctx->ParseMessage(_internal_mutable_unset_index(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -5025,25 +5126,25 @@ uint8_t* AlterTableExpr::_InternalSerialize( _Internal::set_table_options(this).GetCachedSize(), target, stream); } - // .greptime.v1.SetColumnFulltext set_column_fulltext = 9; - if (_internal_has_set_column_fulltext()) { + // .greptime.v1.UnsetTableOptions unset_table_options = 11; + if (_internal_has_unset_table_options()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(9, _Internal::set_column_fulltext(this), - _Internal::set_column_fulltext(this).GetCachedSize(), target, stream); + InternalWriteMessage(11, _Internal::unset_table_options(this), + _Internal::unset_table_options(this).GetCachedSize(), target, stream); } - // .greptime.v1.UnsetColumnFulltext unset_column_fulltext = 10; - if (_internal_has_unset_column_fulltext()) { + // .greptime.v1.SetIndex set_index = 12; + if (_internal_has_set_index()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(10, _Internal::unset_column_fulltext(this), - _Internal::unset_column_fulltext(this).GetCachedSize(), target, stream); + InternalWriteMessage(12, _Internal::set_index(this), + _Internal::set_index(this).GetCachedSize(), target, stream); } - // .greptime.v1.UnsetTableOptions unset_table_options = 11; - if (_internal_has_unset_table_options()) { + // .greptime.v1.UnsetIndex unset_index = 13; + if (_internal_has_unset_index()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(11, _Internal::unset_table_options(this), - _Internal::unset_table_options(this).GetCachedSize(), target, stream); + InternalWriteMessage(13, _Internal::unset_index(this), + _Internal::unset_index(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -5119,25 +5220,25 @@ size_t AlterTableExpr::ByteSizeLong() const { *_impl_.kind_.set_table_options_); break; } - // .greptime.v1.SetColumnFulltext set_column_fulltext = 9; - case kSetColumnFulltext: { + // .greptime.v1.UnsetTableOptions unset_table_options = 11; + case kUnsetTableOptions: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.set_column_fulltext_); + *_impl_.kind_.unset_table_options_); break; } - // .greptime.v1.UnsetColumnFulltext unset_column_fulltext = 10; - case kUnsetColumnFulltext: { + // .greptime.v1.SetIndex set_index = 12; + case kSetIndex: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.unset_column_fulltext_); + *_impl_.kind_.set_index_); break; } - // .greptime.v1.UnsetTableOptions unset_table_options = 11; - case kUnsetTableOptions: { + // .greptime.v1.UnsetIndex unset_index = 13; + case kUnsetIndex: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.unset_table_options_); + *_impl_.kind_.unset_index_); break; } case KIND_NOT_SET: { @@ -5197,19 +5298,19 @@ void AlterTableExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : from._internal_set_table_options()); break; } - case kSetColumnFulltext: { - _this->_internal_mutable_set_column_fulltext()->::greptime::v1::SetColumnFulltext::MergeFrom( - from._internal_set_column_fulltext()); + case kUnsetTableOptions: { + _this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom( + from._internal_unset_table_options()); break; } - case kUnsetColumnFulltext: { - _this->_internal_mutable_unset_column_fulltext()->::greptime::v1::UnsetColumnFulltext::MergeFrom( - from._internal_unset_column_fulltext()); + case kSetIndex: { + _this->_internal_mutable_set_index()->::greptime::v1::SetIndex::MergeFrom( + from._internal_set_index()); break; } - case kUnsetTableOptions: { - _this->_internal_mutable_unset_table_options()->::greptime::v1::UnsetTableOptions::MergeFrom( - from._internal_unset_table_options()); + case kUnsetIndex: { + _this->_internal_mutable_unset_index()->::greptime::v1::UnsetIndex::MergeFrom( + from._internal_unset_index()); break; } case KIND_NOT_SET: { @@ -5259,92 +5360,57 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AlterTableExpr::GetMetadata() const { // =================================================================== -class DropTableExpr::_Internal { +class SetIndex::_Internal { public: - static const ::greptime::v1::TableId& table_id(const DropTableExpr* msg); + static const ::greptime::v1::SetColumnFulltext& set_column_fulltext(const SetIndex* msg); + static const ::greptime::v1::SetColumnInvertedIndex& set_column_inverted_index(const SetIndex* msg); }; -const ::greptime::v1::TableId& -DropTableExpr::_Internal::table_id(const DropTableExpr* msg) { - return *msg->_impl_.table_id_; +const ::greptime::v1::SetColumnFulltext& +SetIndex::_Internal::set_column_fulltext(const SetIndex* msg) { + return *msg->_impl_.set_column_fulltext_; } -DropTableExpr::DropTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::greptime::v1::SetColumnInvertedIndex& +SetIndex::_Internal::set_column_inverted_index(const SetIndex* msg) { + return *msg->_impl_.set_column_inverted_index_; +} +SetIndex::SetIndex(::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.DropTableExpr) + // @@protoc_insertion_point(arena_constructor:greptime.v1.SetIndex) } -DropTableExpr::DropTableExpr(const DropTableExpr& from) +SetIndex::SetIndex(const SetIndex& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - DropTableExpr* const _this = this; (void)_this; + SetIndex* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.catalog_name_){} - , decltype(_impl_.schema_name_){} - , decltype(_impl_.table_name_){} - , decltype(_impl_.table_id_){nullptr} - , decltype(_impl_.drop_if_exists_){} + decltype(_impl_.set_column_fulltext_){nullptr} + , decltype(_impl_.set_column_inverted_index_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.catalog_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.catalog_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_catalog_name().empty()) { - _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), - _this->GetArenaForAllocation()); - } - _impl_.schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_schema_name().empty()) { - _this->_impl_.schema_name_.Set(from._internal_schema_name(), - _this->GetArenaForAllocation()); - } - _impl_.table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_table_name().empty()) { - _this->_impl_.table_name_.Set(from._internal_table_name(), - _this->GetArenaForAllocation()); + if (from._internal_has_set_column_fulltext()) { + _this->_impl_.set_column_fulltext_ = new ::greptime::v1::SetColumnFulltext(*from._impl_.set_column_fulltext_); } - if (from._internal_has_table_id()) { - _this->_impl_.table_id_ = new ::greptime::v1::TableId(*from._impl_.table_id_); + if (from._internal_has_set_column_inverted_index()) { + _this->_impl_.set_column_inverted_index_ = new ::greptime::v1::SetColumnInvertedIndex(*from._impl_.set_column_inverted_index_); } - _this->_impl_.drop_if_exists_ = from._impl_.drop_if_exists_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.DropTableExpr) + // @@protoc_insertion_point(copy_constructor:greptime.v1.SetIndex) } -inline void DropTableExpr::SharedCtor( +inline void SetIndex::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.catalog_name_){} - , decltype(_impl_.schema_name_){} - , decltype(_impl_.table_name_){} - , decltype(_impl_.table_id_){nullptr} - , decltype(_impl_.drop_if_exists_){false} + decltype(_impl_.set_column_fulltext_){nullptr} + , decltype(_impl_.set_column_inverted_index_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.catalog_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.catalog_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -DropTableExpr::~DropTableExpr() { - // @@protoc_insertion_point(destructor:greptime.v1.DropTableExpr) +SetIndex::~SetIndex() { + // @@protoc_insertion_point(destructor:greptime.v1.SetIndex) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -5352,83 +5418,51 @@ DropTableExpr::~DropTableExpr() { SharedDtor(); } -inline void DropTableExpr::SharedDtor() { +inline void SetIndex::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.catalog_name_.Destroy(); - _impl_.schema_name_.Destroy(); - _impl_.table_name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.table_id_; + if (this != internal_default_instance()) delete _impl_.set_column_fulltext_; + if (this != internal_default_instance()) delete _impl_.set_column_inverted_index_; } -void DropTableExpr::SetCachedSize(int size) const { +void SetIndex::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void DropTableExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.DropTableExpr) +void SetIndex::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SetIndex) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.catalog_name_.ClearToEmpty(); - _impl_.schema_name_.ClearToEmpty(); - _impl_.table_name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) { - delete _impl_.table_id_; + if (GetArenaForAllocation() == nullptr && _impl_.set_column_fulltext_ != nullptr) { + delete _impl_.set_column_fulltext_; } - _impl_.table_id_ = nullptr; - _impl_.drop_if_exists_ = false; + _impl_.set_column_fulltext_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.set_column_inverted_index_ != nullptr) { + delete _impl_.set_column_inverted_index_; + } + _impl_.set_column_inverted_index_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DropTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* SetIndex::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // string catalog_name = 1; + // .greptime.v1.SetColumnFulltext set_column_fulltext = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_catalog_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ctx->ParseMessage(_internal_mutable_set_column_fulltext(), ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropTableExpr.catalog_name")); } else goto handle_unusual; continue; - // string schema_name = 2; + // .greptime.v1.SetColumnInvertedIndex set_column_inverted_index = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_schema_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropTableExpr.schema_name")); - } else - goto handle_unusual; - continue; - // string table_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_table_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropTableExpr.table_name")); - } else - goto handle_unusual; - continue; - // .greptime.v1.TableId table_id = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_table_id(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // bool drop_if_exists = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - _impl_.drop_if_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + ptr = ctx->ParseMessage(_internal_mutable_set_column_inverted_index(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -5456,178 +5490,108 @@ const char* DropTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* #undef CHK_ } -uint8_t* DropTableExpr::_InternalSerialize( +uint8_t* SetIndex::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropTableExpr) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetIndex) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string catalog_name = 1; - if (!this->_internal_catalog_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.DropTableExpr.catalog_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_catalog_name(), target); + // .greptime.v1.SetColumnFulltext set_column_fulltext = 1; + if (this->_internal_has_set_column_fulltext()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::set_column_fulltext(this), + _Internal::set_column_fulltext(this).GetCachedSize(), target, stream); } - // string schema_name = 2; - if (!this->_internal_schema_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.DropTableExpr.schema_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_schema_name(), target); - } - - // string table_name = 3; - if (!this->_internal_table_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.DropTableExpr.table_name"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_table_name(), target); - } - - // .greptime.v1.TableId table_id = 4; - if (this->_internal_has_table_id()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::table_id(this), - _Internal::table_id(this).GetCachedSize(), target, stream); - } - - // bool drop_if_exists = 5; - if (this->_internal_drop_if_exists() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_drop_if_exists(), target); + // .greptime.v1.SetColumnInvertedIndex set_column_inverted_index = 2; + if (this->_internal_has_set_column_inverted_index()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::set_column_inverted_index(this), + _Internal::set_column_inverted_index(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DropTableExpr) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SetIndex) return target; } -size_t DropTableExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropTableExpr) +size_t SetIndex::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetIndex) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string catalog_name = 1; - if (!this->_internal_catalog_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_catalog_name()); - } - - // string schema_name = 2; - if (!this->_internal_schema_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_schema_name()); - } - - // string table_name = 3; - if (!this->_internal_table_name().empty()) { + // .greptime.v1.SetColumnFulltext set_column_fulltext = 1; + if (this->_internal_has_set_column_fulltext()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_table_name()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.set_column_fulltext_); } - // .greptime.v1.TableId table_id = 4; - if (this->_internal_has_table_id()) { + // .greptime.v1.SetColumnInvertedIndex set_column_inverted_index = 2; + if (this->_internal_has_set_column_inverted_index()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.table_id_); - } - - // bool drop_if_exists = 5; - if (this->_internal_drop_if_exists() != 0) { - total_size += 1 + 1; + *_impl_.set_column_inverted_index_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropTableExpr::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetIndex::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DropTableExpr::MergeImpl + SetIndex::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropTableExpr::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetIndex::GetClassData() const { return &_class_data_; } -void DropTableExpr::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.DropTableExpr) +void SetIndex::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.SetIndex) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_catalog_name().empty()) { - _this->_internal_set_catalog_name(from._internal_catalog_name()); - } - if (!from._internal_schema_name().empty()) { - _this->_internal_set_schema_name(from._internal_schema_name()); - } - if (!from._internal_table_name().empty()) { - _this->_internal_set_table_name(from._internal_table_name()); + if (from._internal_has_set_column_fulltext()) { + _this->_internal_mutable_set_column_fulltext()->::greptime::v1::SetColumnFulltext::MergeFrom( + from._internal_set_column_fulltext()); } - if (from._internal_has_table_id()) { - _this->_internal_mutable_table_id()->::greptime::v1::TableId::MergeFrom( - from._internal_table_id()); - } - if (from._internal_drop_if_exists() != 0) { - _this->_internal_set_drop_if_exists(from._internal_drop_if_exists()); + if (from._internal_has_set_column_inverted_index()) { + _this->_internal_mutable_set_column_inverted_index()->::greptime::v1::SetColumnInvertedIndex::MergeFrom( + from._internal_set_column_inverted_index()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void DropTableExpr::CopyFrom(const DropTableExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropTableExpr) +void SetIndex::CopyFrom(const SetIndex& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetIndex) if (&from == this) return; Clear(); MergeFrom(from); } -bool DropTableExpr::IsInitialized() const { +bool SetIndex::IsInitialized() const { return true; } -void DropTableExpr::InternalSwap(DropTableExpr* other) { +void SetIndex::InternalSwap(SetIndex* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.catalog_name_, lhs_arena, - &other->_impl_.catalog_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.schema_name_, lhs_arena, - &other->_impl_.schema_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.table_name_, lhs_arena, - &other->_impl_.table_name_, rhs_arena - ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(DropTableExpr, _impl_.drop_if_exists_) - + sizeof(DropTableExpr::_impl_.drop_if_exists_) - - PROTOBUF_FIELD_OFFSET(DropTableExpr, _impl_.table_id_)>( - reinterpret_cast(&_impl_.table_id_), - reinterpret_cast(&other->_impl_.table_id_)); + PROTOBUF_FIELD_OFFSET(SetIndex, _impl_.set_column_inverted_index_) + + sizeof(SetIndex::_impl_.set_column_inverted_index_) + - PROTOBUF_FIELD_OFFSET(SetIndex, _impl_.set_column_fulltext_)>( + reinterpret_cast(&_impl_.set_column_fulltext_), + reinterpret_cast(&other->_impl_.set_column_fulltext_)); } -::PROTOBUF_NAMESPACE_ID::Metadata DropTableExpr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetIndex::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[9]); @@ -5635,172 +5599,113 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DropTableExpr::GetMetadata() const { // =================================================================== -CreateDatabaseExpr_OptionsEntry_DoNotUse::CreateDatabaseExpr_OptionsEntry_DoNotUse() {} -CreateDatabaseExpr_OptionsEntry_DoNotUse::CreateDatabaseExpr_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void CreateDatabaseExpr_OptionsEntry_DoNotUse::MergeFrom(const CreateDatabaseExpr_OptionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr_OptionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[10]); -} - -// =================================================================== - -class CreateDatabaseExpr::_Internal { +class UnsetIndex::_Internal { public: + static const ::greptime::v1::UnsetColumnFulltext& unset_column_fulltext(const UnsetIndex* msg); + static const ::greptime::v1::UnsetColumnInvertedIndex& unset_column_inverted_index(const UnsetIndex* msg); }; -CreateDatabaseExpr::CreateDatabaseExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::greptime::v1::UnsetColumnFulltext& +UnsetIndex::_Internal::unset_column_fulltext(const UnsetIndex* msg) { + return *msg->_impl_.unset_column_fulltext_; +} +const ::greptime::v1::UnsetColumnInvertedIndex& +UnsetIndex::_Internal::unset_column_inverted_index(const UnsetIndex* msg) { + return *msg->_impl_.unset_column_inverted_index_; +} +UnsetIndex::UnsetIndex(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &CreateDatabaseExpr::ArenaDtor); - } - // @@protoc_insertion_point(arena_constructor:greptime.v1.CreateDatabaseExpr) + // @@protoc_insertion_point(arena_constructor:greptime.v1.UnsetIndex) } -CreateDatabaseExpr::CreateDatabaseExpr(const CreateDatabaseExpr& from) +UnsetIndex::UnsetIndex(const UnsetIndex& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - CreateDatabaseExpr* const _this = this; (void)_this; + UnsetIndex* const _this = this; (void)_this; new (&_impl_) Impl_{ - /*decltype(_impl_.options_)*/{} - , decltype(_impl_.catalog_name_){} - , decltype(_impl_.schema_name_){} - , decltype(_impl_.create_if_not_exists_){} + decltype(_impl_.unset_column_fulltext_){nullptr} + , decltype(_impl_.unset_column_inverted_index_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.options_.MergeFrom(from._impl_.options_); - _impl_.catalog_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.catalog_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_catalog_name().empty()) { - _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), - _this->GetArenaForAllocation()); + if (from._internal_has_unset_column_fulltext()) { + _this->_impl_.unset_column_fulltext_ = new ::greptime::v1::UnsetColumnFulltext(*from._impl_.unset_column_fulltext_); } - _impl_.schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_schema_name().empty()) { - _this->_impl_.schema_name_.Set(from._internal_schema_name(), - _this->GetArenaForAllocation()); + if (from._internal_has_unset_column_inverted_index()) { + _this->_impl_.unset_column_inverted_index_ = new ::greptime::v1::UnsetColumnInvertedIndex(*from._impl_.unset_column_inverted_index_); } - _this->_impl_.create_if_not_exists_ = from._impl_.create_if_not_exists_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.CreateDatabaseExpr) + // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetIndex) } -inline void CreateDatabaseExpr::SharedCtor( +inline void UnsetIndex::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.catalog_name_){} - , decltype(_impl_.schema_name_){} - , decltype(_impl_.create_if_not_exists_){false} + decltype(_impl_.unset_column_fulltext_){nullptr} + , decltype(_impl_.unset_column_inverted_index_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.catalog_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.catalog_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -CreateDatabaseExpr::~CreateDatabaseExpr() { - // @@protoc_insertion_point(destructor:greptime.v1.CreateDatabaseExpr) +UnsetIndex::~UnsetIndex() { + // @@protoc_insertion_point(destructor:greptime.v1.UnsetIndex) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; - ArenaDtor(this); return; } SharedDtor(); } -inline void CreateDatabaseExpr::SharedDtor() { +inline void UnsetIndex::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.options_.Destruct(); - _impl_.options_.~MapField(); - _impl_.catalog_name_.Destroy(); - _impl_.schema_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.unset_column_fulltext_; + if (this != internal_default_instance()) delete _impl_.unset_column_inverted_index_; } -void CreateDatabaseExpr::ArenaDtor(void* object) { - CreateDatabaseExpr* _this = reinterpret_cast< CreateDatabaseExpr* >(object); - _this->_impl_.options_.Destruct(); -} -void CreateDatabaseExpr::SetCachedSize(int size) const { +void UnsetIndex::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void CreateDatabaseExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.CreateDatabaseExpr) +void UnsetIndex::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.UnsetIndex) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.options_.Clear(); - _impl_.catalog_name_.ClearToEmpty(); - _impl_.schema_name_.ClearToEmpty(); - _impl_.create_if_not_exists_ = false; + if (GetArenaForAllocation() == nullptr && _impl_.unset_column_fulltext_ != nullptr) { + delete _impl_.unset_column_fulltext_; + } + _impl_.unset_column_fulltext_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.unset_column_inverted_index_ != nullptr) { + delete _impl_.unset_column_inverted_index_; + } + _impl_.unset_column_inverted_index_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* CreateDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* UnsetIndex::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // string catalog_name = 1; + // .greptime.v1.UnsetColumnFulltext unset_column_fulltext = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_catalog_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ctx->ParseMessage(_internal_mutable_unset_column_fulltext(), ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateDatabaseExpr.catalog_name")); } else goto handle_unusual; continue; - // string schema_name = 2; + // .greptime.v1.UnsetColumnInvertedIndex unset_column_inverted_index = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_schema_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateDatabaseExpr.schema_name")); - } else - goto handle_unusual; - continue; - // bool create_if_not_exists = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + ptr = ctx->ParseMessage(_internal_mutable_unset_column_inverted_index(), ptr); CHK_(ptr); } else goto handle_unusual; continue; - // map options = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.options_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); - } else - goto handle_unusual; - continue; default: goto handle_unusual; } // switch @@ -5824,202 +5729,139 @@ const char* CreateDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon #undef CHK_ } -uint8_t* CreateDatabaseExpr::_InternalSerialize( +uint8_t* UnsetIndex::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.CreateDatabaseExpr) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetIndex) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string catalog_name = 1; - if (!this->_internal_catalog_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateDatabaseExpr.catalog_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_catalog_name(), target); + // .greptime.v1.UnsetColumnFulltext unset_column_fulltext = 1; + if (this->_internal_has_unset_column_fulltext()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::unset_column_fulltext(this), + _Internal::unset_column_fulltext(this).GetCachedSize(), target, stream); } - // string schema_name = 2; - if (!this->_internal_schema_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateDatabaseExpr.schema_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_schema_name(), target); + // .greptime.v1.UnsetColumnInvertedIndex unset_column_inverted_index = 2; + if (this->_internal_has_unset_column_inverted_index()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::unset_column_inverted_index(this), + _Internal::unset_column_inverted_index(this).GetCachedSize(), target, stream); } - // bool create_if_not_exists = 3; - if (this->_internal_create_if_not_exists() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_create_if_not_exists(), 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.UnsetIndex) + return target; +} - // map options = 4; - if (!this->_internal_options().empty()) { - using MapType = ::_pb::Map; - using WireHelper = CreateDatabaseExpr_OptionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_options(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateDatabaseExpr.OptionsEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.CreateDatabaseExpr.OptionsEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } - } - - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { - target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( - _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); - } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.CreateDatabaseExpr) - return target; -} - -size_t CreateDatabaseExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.CreateDatabaseExpr) - size_t total_size = 0; +size_t UnsetIndex::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.UnsetIndex) + size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // map options = 4; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_options().begin(); - it != this->_internal_options().end(); ++it) { - total_size += CreateDatabaseExpr_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - - // string catalog_name = 1; - if (!this->_internal_catalog_name().empty()) { + // .greptime.v1.UnsetColumnFulltext unset_column_fulltext = 1; + if (this->_internal_has_unset_column_fulltext()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_catalog_name()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.unset_column_fulltext_); } - // string schema_name = 2; - if (!this->_internal_schema_name().empty()) { + // .greptime.v1.UnsetColumnInvertedIndex unset_column_inverted_index = 2; + if (this->_internal_has_unset_column_inverted_index()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_schema_name()); - } - - // bool create_if_not_exists = 3; - if (this->_internal_create_if_not_exists() != 0) { - total_size += 1 + 1; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.unset_column_inverted_index_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateDatabaseExpr::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetIndex::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - CreateDatabaseExpr::MergeImpl + UnsetIndex::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateDatabaseExpr::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetIndex::GetClassData() const { return &_class_data_; } -void CreateDatabaseExpr::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.CreateDatabaseExpr) +void UnsetIndex::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.UnsetIndex) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.options_.MergeFrom(from._impl_.options_); - if (!from._internal_catalog_name().empty()) { - _this->_internal_set_catalog_name(from._internal_catalog_name()); - } - if (!from._internal_schema_name().empty()) { - _this->_internal_set_schema_name(from._internal_schema_name()); + if (from._internal_has_unset_column_fulltext()) { + _this->_internal_mutable_unset_column_fulltext()->::greptime::v1::UnsetColumnFulltext::MergeFrom( + from._internal_unset_column_fulltext()); } - if (from._internal_create_if_not_exists() != 0) { - _this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists()); + if (from._internal_has_unset_column_inverted_index()) { + _this->_internal_mutable_unset_column_inverted_index()->::greptime::v1::UnsetColumnInvertedIndex::MergeFrom( + from._internal_unset_column_inverted_index()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void CreateDatabaseExpr::CopyFrom(const CreateDatabaseExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.CreateDatabaseExpr) +void UnsetIndex::CopyFrom(const UnsetIndex& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.UnsetIndex) if (&from == this) return; Clear(); MergeFrom(from); } -bool CreateDatabaseExpr::IsInitialized() const { +bool UnsetIndex::IsInitialized() const { return true; } -void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) { +void UnsetIndex::InternalSwap(UnsetIndex* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.options_.InternalSwap(&other->_impl_.options_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.catalog_name_, lhs_arena, - &other->_impl_.catalog_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.schema_name_, lhs_arena, - &other->_impl_.schema_name_, rhs_arena - ); - swap(_impl_.create_if_not_exists_, other->_impl_.create_if_not_exists_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(UnsetIndex, _impl_.unset_column_inverted_index_) + + sizeof(UnsetIndex::_impl_.unset_column_inverted_index_) + - PROTOBUF_FIELD_OFFSET(UnsetIndex, _impl_.unset_column_fulltext_)>( + reinterpret_cast(&_impl_.unset_column_fulltext_), + reinterpret_cast(&other->_impl_.unset_column_fulltext_)); } -::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UnsetIndex::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[11]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[10]); } // =================================================================== -class TruncateTableExpr::_Internal { +class DropTableExpr::_Internal { public: - static const ::greptime::v1::TableId& table_id(const TruncateTableExpr* msg); + static const ::greptime::v1::TableId& table_id(const DropTableExpr* msg); }; const ::greptime::v1::TableId& -TruncateTableExpr::_Internal::table_id(const TruncateTableExpr* msg) { +DropTableExpr::_Internal::table_id(const DropTableExpr* msg) { return *msg->_impl_.table_id_; } -TruncateTableExpr::TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +DropTableExpr::DropTableExpr(::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.TruncateTableExpr) + // @@protoc_insertion_point(arena_constructor:greptime.v1.DropTableExpr) } -TruncateTableExpr::TruncateTableExpr(const TruncateTableExpr& from) +DropTableExpr::DropTableExpr(const DropTableExpr& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - TruncateTableExpr* const _this = this; (void)_this; + DropTableExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.catalog_name_){} , decltype(_impl_.schema_name_){} , decltype(_impl_.table_name_){} , decltype(_impl_.table_id_){nullptr} + , decltype(_impl_.drop_if_exists_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -6050,10 +5892,11 @@ TruncateTableExpr::TruncateTableExpr(const TruncateTableExpr& from) if (from._internal_has_table_id()) { _this->_impl_.table_id_ = new ::greptime::v1::TableId(*from._impl_.table_id_); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.TruncateTableExpr) + _this->_impl_.drop_if_exists_ = from._impl_.drop_if_exists_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.DropTableExpr) } -inline void TruncateTableExpr::SharedCtor( +inline void DropTableExpr::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -6062,6 +5905,7 @@ inline void TruncateTableExpr::SharedCtor( , decltype(_impl_.schema_name_){} , decltype(_impl_.table_name_){} , decltype(_impl_.table_id_){nullptr} + , decltype(_impl_.drop_if_exists_){false} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.catalog_name_.InitDefault(); @@ -6078,8 +5922,8 @@ inline void TruncateTableExpr::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -TruncateTableExpr::~TruncateTableExpr() { - // @@protoc_insertion_point(destructor:greptime.v1.TruncateTableExpr) +DropTableExpr::~DropTableExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.DropTableExpr) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -6087,7 +5931,7 @@ TruncateTableExpr::~TruncateTableExpr() { SharedDtor(); } -inline void TruncateTableExpr::SharedDtor() { +inline void DropTableExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.catalog_name_.Destroy(); _impl_.schema_name_.Destroy(); @@ -6095,12 +5939,12 @@ inline void TruncateTableExpr::SharedDtor() { if (this != internal_default_instance()) delete _impl_.table_id_; } -void TruncateTableExpr::SetCachedSize(int size) const { +void DropTableExpr::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void TruncateTableExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.TruncateTableExpr) +void DropTableExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.DropTableExpr) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -6112,10 +5956,11 @@ void TruncateTableExpr::Clear() { delete _impl_.table_id_; } _impl_.table_id_ = nullptr; + _impl_.drop_if_exists_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DropTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -6127,7 +5972,7 @@ const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_catalog_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.catalog_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropTableExpr.catalog_name")); } else goto handle_unusual; continue; @@ -6137,7 +5982,7 @@ const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_schema_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.schema_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropTableExpr.schema_name")); } else goto handle_unusual; continue; @@ -6147,7 +5992,7 @@ const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_table_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.table_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropTableExpr.table_name")); } else goto handle_unusual; continue; @@ -6159,6 +6004,14 @@ const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; + // bool drop_if_exists = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + _impl_.drop_if_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -6182,9 +6035,9 @@ const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* TruncateTableExpr::_InternalSerialize( +uint8_t* DropTableExpr::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TruncateTableExpr) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropTableExpr) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -6193,7 +6046,7 @@ uint8_t* TruncateTableExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.TruncateTableExpr.catalog_name"); + "greptime.v1.DropTableExpr.catalog_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_catalog_name(), target); } @@ -6203,7 +6056,7 @@ uint8_t* TruncateTableExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.TruncateTableExpr.schema_name"); + "greptime.v1.DropTableExpr.schema_name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_schema_name(), target); } @@ -6213,7 +6066,7 @@ uint8_t* TruncateTableExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.TruncateTableExpr.table_name"); + "greptime.v1.DropTableExpr.table_name"); target = stream->WriteStringMaybeAliased( 3, this->_internal_table_name(), target); } @@ -6225,16 +6078,22 @@ uint8_t* TruncateTableExpr::_InternalSerialize( _Internal::table_id(this).GetCachedSize(), target, stream); } + // bool drop_if_exists = 5; + if (this->_internal_drop_if_exists() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(5, this->_internal_drop_if_exists(), 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.TruncateTableExpr) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DropTableExpr) return target; } -size_t TruncateTableExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TruncateTableExpr) +size_t DropTableExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropTableExpr) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -6269,20 +6128,25 @@ size_t TruncateTableExpr::ByteSizeLong() const { *_impl_.table_id_); } + // bool drop_if_exists = 5; + if (this->_internal_drop_if_exists() != 0) { + total_size += 1 + 1; + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TruncateTableExpr::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropTableExpr::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TruncateTableExpr::MergeImpl + DropTableExpr::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TruncateTableExpr::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropTableExpr::GetClassData() const { return &_class_data_; } -void TruncateTableExpr::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.TruncateTableExpr) +void DropTableExpr::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.DropTableExpr) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -6300,21 +6164,24 @@ void TruncateTableExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_table_id()->::greptime::v1::TableId::MergeFrom( from._internal_table_id()); } + if (from._internal_drop_if_exists() != 0) { + _this->_internal_set_drop_if_exists(from._internal_drop_if_exists()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void TruncateTableExpr::CopyFrom(const TruncateTableExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TruncateTableExpr) +void DropTableExpr::CopyFrom(const DropTableExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropTableExpr) if (&from == this) return; Clear(); MergeFrom(from); } -bool TruncateTableExpr::IsInitialized() const { +bool DropTableExpr::IsInitialized() const { return true; } -void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) { +void DropTableExpr::InternalSwap(DropTableExpr* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -6331,10 +6198,29 @@ void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) { &_impl_.table_name_, lhs_arena, &other->_impl_.table_name_, rhs_arena ); - swap(_impl_.table_id_, other->_impl_.table_id_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DropTableExpr, _impl_.drop_if_exists_) + + sizeof(DropTableExpr::_impl_.drop_if_exists_) + - PROTOBUF_FIELD_OFFSET(DropTableExpr, _impl_.table_id_)>( + reinterpret_cast(&_impl_.table_id_), + reinterpret_cast(&other->_impl_.table_id_)); } -::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DropTableExpr::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[11]); +} + +// =================================================================== + +CreateDatabaseExpr_OptionsEntry_DoNotUse::CreateDatabaseExpr_OptionsEntry_DoNotUse() {} +CreateDatabaseExpr_OptionsEntry_DoNotUse::CreateDatabaseExpr_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void CreateDatabaseExpr_OptionsEntry_DoNotUse::MergeFrom(const CreateDatabaseExpr_OptionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr_OptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[12]); @@ -6342,26 +6228,31 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const { // =================================================================== -class DropDatabaseExpr::_Internal { +class CreateDatabaseExpr::_Internal { public: }; -DropDatabaseExpr::DropDatabaseExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, +CreateDatabaseExpr::CreateDatabaseExpr(::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.DropDatabaseExpr) + if (arena != nullptr && !is_message_owned) { + arena->OwnCustomDestructor(this, &CreateDatabaseExpr::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:greptime.v1.CreateDatabaseExpr) } -DropDatabaseExpr::DropDatabaseExpr(const DropDatabaseExpr& from) +CreateDatabaseExpr::CreateDatabaseExpr(const CreateDatabaseExpr& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - DropDatabaseExpr* const _this = this; (void)_this; + CreateDatabaseExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.catalog_name_){} + /*decltype(_impl_.options_)*/{} + , decltype(_impl_.catalog_name_){} , decltype(_impl_.schema_name_){} - , decltype(_impl_.drop_if_exists_){} + , decltype(_impl_.create_if_not_exists_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.options_.MergeFrom(from._impl_.options_); _impl_.catalog_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.catalog_name_.Set("", GetArenaForAllocation()); @@ -6378,18 +6269,19 @@ DropDatabaseExpr::DropDatabaseExpr(const DropDatabaseExpr& from) _this->_impl_.schema_name_.Set(from._internal_schema_name(), _this->GetArenaForAllocation()); } - _this->_impl_.drop_if_exists_ = from._impl_.drop_if_exists_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.DropDatabaseExpr) + _this->_impl_.create_if_not_exists_ = from._impl_.create_if_not_exists_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.CreateDatabaseExpr) } -inline void DropDatabaseExpr::SharedCtor( +inline void CreateDatabaseExpr::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.catalog_name_){} + /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} + , decltype(_impl_.catalog_name_){} , decltype(_impl_.schema_name_){} - , decltype(_impl_.drop_if_exists_){false} + , decltype(_impl_.create_if_not_exists_){false} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.catalog_name_.InitDefault(); @@ -6402,38 +6294,46 @@ inline void DropDatabaseExpr::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -DropDatabaseExpr::~DropDatabaseExpr() { - // @@protoc_insertion_point(destructor:greptime.v1.DropDatabaseExpr) +CreateDatabaseExpr::~CreateDatabaseExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.CreateDatabaseExpr) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; + ArenaDtor(this); return; } SharedDtor(); } -inline void DropDatabaseExpr::SharedDtor() { +inline void CreateDatabaseExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.options_.Destruct(); + _impl_.options_.~MapField(); _impl_.catalog_name_.Destroy(); _impl_.schema_name_.Destroy(); } -void DropDatabaseExpr::SetCachedSize(int size) const { +void CreateDatabaseExpr::ArenaDtor(void* object) { + CreateDatabaseExpr* _this = reinterpret_cast< CreateDatabaseExpr* >(object); + _this->_impl_.options_.Destruct(); +} +void CreateDatabaseExpr::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void DropDatabaseExpr::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.DropDatabaseExpr) +void CreateDatabaseExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.CreateDatabaseExpr) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + _impl_.options_.Clear(); _impl_.catalog_name_.ClearToEmpty(); _impl_.schema_name_.ClearToEmpty(); - _impl_.drop_if_exists_ = false; + _impl_.create_if_not_exists_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DropDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* CreateDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -6445,7 +6345,7 @@ const char* DropDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseConte auto str = _internal_mutable_catalog_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropDatabaseExpr.catalog_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateDatabaseExpr.catalog_name")); } else goto handle_unusual; continue; @@ -6455,18 +6355,31 @@ const char* DropDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseConte auto str = _internal_mutable_schema_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropDatabaseExpr.schema_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateDatabaseExpr.schema_name")); } else goto handle_unusual; continue; - // bool drop_if_exists = 3; + // bool create_if_not_exists = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - _impl_.drop_if_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + _impl_.create_if_not_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; + // map options = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.options_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -6490,9 +6403,9 @@ const char* DropDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseConte #undef CHK_ } -uint8_t* DropDatabaseExpr::_InternalSerialize( +uint8_t* CreateDatabaseExpr::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropDatabaseExpr) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.CreateDatabaseExpr) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -6501,7 +6414,7 @@ uint8_t* DropDatabaseExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.DropDatabaseExpr.catalog_name"); + "greptime.v1.CreateDatabaseExpr.catalog_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_catalog_name(), target); } @@ -6511,33 +6424,72 @@ uint8_t* DropDatabaseExpr::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.DropDatabaseExpr.schema_name"); + "greptime.v1.CreateDatabaseExpr.schema_name"); target = stream->WriteStringMaybeAliased( 2, this->_internal_schema_name(), target); } - // bool drop_if_exists = 3; - if (this->_internal_drop_if_exists() != 0) { + // bool create_if_not_exists = 3; + if (this->_internal_create_if_not_exists() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_drop_if_exists(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_create_if_not_exists(), target); + } + + // map options = 4; + if (!this->_internal_options().empty()) { + using MapType = ::_pb::Map; + using WireHelper = CreateDatabaseExpr_OptionsEntry_DoNotUse::Funcs; + const auto& map_field = this->_internal_options(); + auto check_utf8 = [](const MapType::value_type& entry) { + (void)entry; + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.first.data(), static_cast(entry.first.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.CreateDatabaseExpr.OptionsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.CreateDatabaseExpr.OptionsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DropDatabaseExpr) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.CreateDatabaseExpr) return target; } -size_t DropDatabaseExpr::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropDatabaseExpr) +size_t CreateDatabaseExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.CreateDatabaseExpr) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; + // map options = 4; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); + for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator + it = this->_internal_options().begin(); + it != this->_internal_options().end(); ++it) { + total_size += CreateDatabaseExpr_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + // string catalog_name = 1; if (!this->_internal_catalog_name().empty()) { total_size += 1 + @@ -6552,57 +6504,59 @@ size_t DropDatabaseExpr::ByteSizeLong() const { this->_internal_schema_name()); } - // bool drop_if_exists = 3; - if (this->_internal_drop_if_exists() != 0) { + // bool create_if_not_exists = 3; + if (this->_internal_create_if_not_exists() != 0) { total_size += 1 + 1; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropDatabaseExpr::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData CreateDatabaseExpr::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DropDatabaseExpr::MergeImpl + CreateDatabaseExpr::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropDatabaseExpr::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*CreateDatabaseExpr::GetClassData() const { return &_class_data_; } -void DropDatabaseExpr::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.DropDatabaseExpr) +void CreateDatabaseExpr::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.CreateDatabaseExpr) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; + _this->_impl_.options_.MergeFrom(from._impl_.options_); if (!from._internal_catalog_name().empty()) { _this->_internal_set_catalog_name(from._internal_catalog_name()); } if (!from._internal_schema_name().empty()) { _this->_internal_set_schema_name(from._internal_schema_name()); } - if (from._internal_drop_if_exists() != 0) { - _this->_internal_set_drop_if_exists(from._internal_drop_if_exists()); + if (from._internal_create_if_not_exists() != 0) { + _this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void DropDatabaseExpr::CopyFrom(const DropDatabaseExpr& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropDatabaseExpr) +void CreateDatabaseExpr::CopyFrom(const CreateDatabaseExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.CreateDatabaseExpr) if (&from == this) return; Clear(); MergeFrom(from); } -bool DropDatabaseExpr::IsInitialized() const { +bool CreateDatabaseExpr::IsInitialized() const { return true; } -void DropDatabaseExpr::InternalSwap(DropDatabaseExpr* other) { +void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.options_.InternalSwap(&other->_impl_.options_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.catalog_name_, lhs_arena, &other->_impl_.catalog_name_, rhs_arena @@ -6611,10 +6565,10 @@ void DropDatabaseExpr::InternalSwap(DropDatabaseExpr* other) { &_impl_.schema_name_, lhs_arena, &other->_impl_.schema_name_, rhs_arena ); - swap(_impl_.drop_if_exists_, other->_impl_.drop_if_exists_); + swap(_impl_.create_if_not_exists_, other->_impl_.create_if_not_exists_); } -::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseExpr::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr::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[13]); @@ -6622,39 +6576,89 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseExpr::GetMetadata() const { // =================================================================== -class AddColumns::_Internal { +class TruncateTableExpr::_Internal { public: + static const ::greptime::v1::TableId& table_id(const TruncateTableExpr* msg); }; -AddColumns::AddColumns(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::greptime::v1::TableId& +TruncateTableExpr::_Internal::table_id(const TruncateTableExpr* msg) { + return *msg->_impl_.table_id_; +} +TruncateTableExpr::TruncateTableExpr(::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.AddColumns) + // @@protoc_insertion_point(arena_constructor:greptime.v1.TruncateTableExpr) } -AddColumns::AddColumns(const AddColumns& from) +TruncateTableExpr::TruncateTableExpr(const TruncateTableExpr& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - AddColumns* const _this = this; (void)_this; + TruncateTableExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.add_columns_){from._impl_.add_columns_} + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , decltype(_impl_.table_id_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.AddColumns) + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_catalog_name().empty()) { + _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), + _this->GetArenaForAllocation()); + } + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_schema_name().empty()) { + _this->_impl_.schema_name_.Set(from._internal_schema_name(), + _this->GetArenaForAllocation()); + } + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table_name().empty()) { + _this->_impl_.table_name_.Set(from._internal_table_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_table_id()) { + _this->_impl_.table_id_ = new ::greptime::v1::TableId(*from._impl_.table_id_); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.TruncateTableExpr) } -inline void AddColumns::SharedCtor( +inline void TruncateTableExpr::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.add_columns_){arena} + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , decltype(_impl_.table_id_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -AddColumns::~AddColumns() { - // @@protoc_insertion_point(destructor:greptime.v1.AddColumns) +TruncateTableExpr::~TruncateTableExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.TruncateTableExpr) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -6662,41 +6666,75 @@ AddColumns::~AddColumns() { SharedDtor(); } -inline void AddColumns::SharedDtor() { +inline void TruncateTableExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.add_columns_.~RepeatedPtrField(); + _impl_.catalog_name_.Destroy(); + _impl_.schema_name_.Destroy(); + _impl_.table_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.table_id_; } -void AddColumns::SetCachedSize(int size) const { +void TruncateTableExpr::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void AddColumns::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.AddColumns) +void TruncateTableExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.TruncateTableExpr) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.add_columns_.Clear(); + _impl_.catalog_name_.ClearToEmpty(); + _impl_.schema_name_.ClearToEmpty(); + _impl_.table_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.table_id_ != nullptr) { + delete _impl_.table_id_; + } + _impl_.table_id_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AddColumns::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* TruncateTableExpr::_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.AddColumn add_columns = 1; + // string catalog_name = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_add_columns(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + auto str = _internal_mutable_catalog_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.catalog_name")); + } else + goto handle_unusual; + continue; + // string schema_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_schema_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.schema_name")); + } else + goto handle_unusual; + continue; + // string table_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_table_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TruncateTableExpr.table_name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.TableId table_id = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_table_id(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -6723,83 +6761,159 @@ const char* AddColumns::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct #undef CHK_ } -uint8_t* AddColumns::_InternalSerialize( +uint8_t* TruncateTableExpr::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddColumns) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TruncateTableExpr) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .greptime.v1.AddColumn add_columns = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_add_columns_size()); i < n; i++) { - const auto& repfield = this->_internal_add_columns(i); + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.TruncateTableExpr.catalog_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_catalog_name(), target); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.TruncateTableExpr.schema_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_schema_name(), target); + } + + // string table_name = 3; + if (!this->_internal_table_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.TruncateTableExpr.table_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_table_name(), target); + } + + // .greptime.v1.TableId table_id = 4; + if (this->_internal_has_table_id()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(4, _Internal::table_id(this), + _Internal::table_id(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.AddColumns) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.TruncateTableExpr) return target; } -size_t AddColumns::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddColumns) +size_t TruncateTableExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TruncateTableExpr) 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.AddColumn add_columns = 1; - total_size += 1UL * this->_internal_add_columns_size(); - for (const auto& msg : this->_impl_.add_columns_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_catalog_name()); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema_name()); + } + + // string table_name = 3; + if (!this->_internal_table_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table_name()); + } + + // .greptime.v1.TableId table_id = 4; + if (this->_internal_has_table_id()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.table_id_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddColumns::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TruncateTableExpr::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - AddColumns::MergeImpl + TruncateTableExpr::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddColumns::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TruncateTableExpr::GetClassData() const { return &_class_data_; } -void AddColumns::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.AddColumns) +void TruncateTableExpr::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.TruncateTableExpr) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.add_columns_.MergeFrom(from._impl_.add_columns_); + if (!from._internal_catalog_name().empty()) { + _this->_internal_set_catalog_name(from._internal_catalog_name()); + } + if (!from._internal_schema_name().empty()) { + _this->_internal_set_schema_name(from._internal_schema_name()); + } + if (!from._internal_table_name().empty()) { + _this->_internal_set_table_name(from._internal_table_name()); + } + if (from._internal_has_table_id()) { + _this->_internal_mutable_table_id()->::greptime::v1::TableId::MergeFrom( + from._internal_table_id()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void AddColumns::CopyFrom(const AddColumns& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddColumns) +void TruncateTableExpr::CopyFrom(const TruncateTableExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TruncateTableExpr) if (&from == this) return; Clear(); MergeFrom(from); } -bool AddColumns::IsInitialized() const { +bool TruncateTableExpr::IsInitialized() const { return true; } -void AddColumns::InternalSwap(AddColumns* other) { +void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.add_columns_.InternalSwap(&other->_impl_.add_columns_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.catalog_name_, lhs_arena, + &other->_impl_.catalog_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.schema_name_, lhs_arena, + &other->_impl_.schema_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_name_, lhs_arena, + &other->_impl_.table_name_, rhs_arena + ); + swap(_impl_.table_id_, other->_impl_.table_id_); } -::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[14]); @@ -6807,39 +6921,68 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const { // =================================================================== -class DropColumns::_Internal { +class DropDatabaseExpr::_Internal { public: }; -DropColumns::DropColumns(::PROTOBUF_NAMESPACE_ID::Arena* arena, +DropDatabaseExpr::DropDatabaseExpr(::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.DropColumns) + // @@protoc_insertion_point(arena_constructor:greptime.v1.DropDatabaseExpr) } -DropColumns::DropColumns(const DropColumns& from) +DropDatabaseExpr::DropDatabaseExpr(const DropDatabaseExpr& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - DropColumns* const _this = this; (void)_this; + DropDatabaseExpr* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.drop_columns_){from._impl_.drop_columns_} + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.drop_if_exists_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.DropColumns) + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_catalog_name().empty()) { + _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), + _this->GetArenaForAllocation()); + } + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_schema_name().empty()) { + _this->_impl_.schema_name_.Set(from._internal_schema_name(), + _this->GetArenaForAllocation()); + } + _this->_impl_.drop_if_exists_ = from._impl_.drop_if_exists_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.DropDatabaseExpr) } -inline void DropColumns::SharedCtor( +inline void DropDatabaseExpr::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.drop_columns_){arena} + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.drop_if_exists_){false} , /*decltype(_impl_._cached_size_)*/{} }; + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -DropColumns::~DropColumns() { - // @@protoc_insertion_point(destructor:greptime.v1.DropColumns) +DropDatabaseExpr::~DropDatabaseExpr() { + // @@protoc_insertion_point(destructor:greptime.v1.DropDatabaseExpr) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -6847,41 +6990,59 @@ DropColumns::~DropColumns() { SharedDtor(); } -inline void DropColumns::SharedDtor() { +inline void DropDatabaseExpr::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.drop_columns_.~RepeatedPtrField(); + _impl_.catalog_name_.Destroy(); + _impl_.schema_name_.Destroy(); } -void DropColumns::SetCachedSize(int size) const { +void DropDatabaseExpr::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void DropColumns::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.DropColumns) +void DropDatabaseExpr::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.DropDatabaseExpr) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.drop_columns_.Clear(); + _impl_.catalog_name_.ClearToEmpty(); + _impl_.schema_name_.ClearToEmpty(); + _impl_.drop_if_exists_ = false; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DropColumns::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DropDatabaseExpr::_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.DropColumn drop_columns = 1; + // string catalog_name = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_drop_columns(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + auto str = _internal_mutable_catalog_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropDatabaseExpr.catalog_name")); + } else + goto handle_unusual; + continue; + // string schema_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_schema_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropDatabaseExpr.schema_name")); + } else + goto handle_unusual; + continue; + // bool drop_if_exists = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.drop_if_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -6908,83 +7069,131 @@ const char* DropColumns::_InternalParse(const char* ptr, ::_pbi::ParseContext* c #undef CHK_ } -uint8_t* DropColumns::_InternalSerialize( +uint8_t* DropDatabaseExpr::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropColumns) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropDatabaseExpr) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .greptime.v1.DropColumn drop_columns = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_drop_columns_size()); i < n; i++) { - const auto& repfield = this->_internal_drop_columns(i); - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.DropDatabaseExpr.catalog_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_catalog_name(), 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.DropColumns) - return target; + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.DropDatabaseExpr.schema_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_schema_name(), target); + } + + // bool drop_if_exists = 3; + if (this->_internal_drop_if_exists() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_drop_if_exists(), 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.DropDatabaseExpr) + return target; } -size_t DropColumns::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropColumns) +size_t DropDatabaseExpr::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropDatabaseExpr) 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.DropColumn drop_columns = 1; - total_size += 1UL * this->_internal_drop_columns_size(); - for (const auto& msg : this->_impl_.drop_columns_) { - total_size += - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_catalog_name()); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema_name()); + } + + // bool drop_if_exists = 3; + if (this->_internal_drop_if_exists() != 0) { + total_size += 1 + 1; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropColumns::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropDatabaseExpr::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DropColumns::MergeImpl + DropDatabaseExpr::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropColumns::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropDatabaseExpr::GetClassData() const { return &_class_data_; } -void DropColumns::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.DropColumns) +void DropDatabaseExpr::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.DropDatabaseExpr) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.drop_columns_.MergeFrom(from._impl_.drop_columns_); + if (!from._internal_catalog_name().empty()) { + _this->_internal_set_catalog_name(from._internal_catalog_name()); + } + if (!from._internal_schema_name().empty()) { + _this->_internal_set_schema_name(from._internal_schema_name()); + } + if (from._internal_drop_if_exists() != 0) { + _this->_internal_set_drop_if_exists(from._internal_drop_if_exists()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void DropColumns::CopyFrom(const DropColumns& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropColumns) +void DropDatabaseExpr::CopyFrom(const DropDatabaseExpr& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropDatabaseExpr) if (&from == this) return; Clear(); MergeFrom(from); } -bool DropColumns::IsInitialized() const { +bool DropDatabaseExpr::IsInitialized() const { return true; } -void DropColumns::InternalSwap(DropColumns* other) { +void DropDatabaseExpr::InternalSwap(DropDatabaseExpr* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.drop_columns_.InternalSwap(&other->_impl_.drop_columns_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.catalog_name_, lhs_arena, + &other->_impl_.catalog_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.schema_name_, lhs_arena, + &other->_impl_.schema_name_, rhs_arena + ); + swap(_impl_.drop_if_exists_, other->_impl_.drop_if_exists_); } -::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseExpr::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[15]); @@ -6992,39 +7201,39 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { // =================================================================== -class ModifyColumnTypes::_Internal { +class AddColumns::_Internal { public: }; -ModifyColumnTypes::ModifyColumnTypes(::PROTOBUF_NAMESPACE_ID::Arena* arena, +AddColumns::AddColumns(::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.ModifyColumnTypes) + // @@protoc_insertion_point(arena_constructor:greptime.v1.AddColumns) } -ModifyColumnTypes::ModifyColumnTypes(const ModifyColumnTypes& from) +AddColumns::AddColumns(const AddColumns& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ModifyColumnTypes* const _this = this; (void)_this; + AddColumns* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.modify_column_types_){from._impl_.modify_column_types_} + decltype(_impl_.add_columns_){from._impl_.add_columns_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.ModifyColumnTypes) + // @@protoc_insertion_point(copy_constructor:greptime.v1.AddColumns) } -inline void ModifyColumnTypes::SharedCtor( +inline void AddColumns::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.modify_column_types_){arena} + decltype(_impl_.add_columns_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } -ModifyColumnTypes::~ModifyColumnTypes() { - // @@protoc_insertion_point(destructor:greptime.v1.ModifyColumnTypes) +AddColumns::~AddColumns() { + // @@protoc_insertion_point(destructor:greptime.v1.AddColumns) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -7032,38 +7241,38 @@ ModifyColumnTypes::~ModifyColumnTypes() { SharedDtor(); } -inline void ModifyColumnTypes::SharedDtor() { +inline void AddColumns::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.modify_column_types_.~RepeatedPtrField(); + _impl_.add_columns_.~RepeatedPtrField(); } -void ModifyColumnTypes::SetCachedSize(int size) const { +void AddColumns::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ModifyColumnTypes::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.ModifyColumnTypes) +void AddColumns::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.AddColumns) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.modify_column_types_.Clear(); + _impl_.add_columns_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ModifyColumnTypes::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* AddColumns::_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.ModifyColumnType modify_column_types = 1; + // repeated .greptime.v1.AddColumn add_columns = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { ptr -= 1; do { ptr += 1; - ptr = ctx->ParseMessage(_internal_add_modify_column_types(), ptr); + ptr = ctx->ParseMessage(_internal_add_add_columns(), ptr); CHK_(ptr); if (!ctx->DataAvailable(ptr)) break; } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); @@ -7093,16 +7302,16 @@ const char* ModifyColumnTypes::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* ModifyColumnTypes::_InternalSerialize( +uint8_t* AddColumns::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ModifyColumnTypes) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddColumns) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .greptime.v1.ModifyColumnType modify_column_types = 1; + // repeated .greptime.v1.AddColumn add_columns = 1; for (unsigned i = 0, - n = static_cast(this->_internal_modify_column_types_size()); i < n; i++) { - const auto& repfield = this->_internal_modify_column_types(i); + n = static_cast(this->_internal_add_columns_size()); i < n; i++) { + const auto& repfield = this->_internal_add_columns(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } @@ -7111,21 +7320,21 @@ uint8_t* ModifyColumnTypes::_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.ModifyColumnTypes) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.AddColumns) return target; } -size_t ModifyColumnTypes::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ModifyColumnTypes) +size_t AddColumns::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddColumns) 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.ModifyColumnType modify_column_types = 1; - total_size += 1UL * this->_internal_modify_column_types_size(); - for (const auto& msg : this->_impl_.modify_column_types_) { + // repeated .greptime.v1.AddColumn add_columns = 1; + total_size += 1UL * this->_internal_add_columns_size(); + for (const auto& msg : this->_impl_.add_columns_) { total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } @@ -7133,43 +7342,43 @@ size_t ModifyColumnTypes::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModifyColumnTypes::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddColumns::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ModifyColumnTypes::MergeImpl + AddColumns::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModifyColumnTypes::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddColumns::GetClassData() const { return &_class_data_; } -void ModifyColumnTypes::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.ModifyColumnTypes) +void AddColumns::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.AddColumns) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.modify_column_types_.MergeFrom(from._impl_.modify_column_types_); + _this->_impl_.add_columns_.MergeFrom(from._impl_.add_columns_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ModifyColumnTypes::CopyFrom(const ModifyColumnTypes& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ModifyColumnTypes) +void AddColumns::CopyFrom(const AddColumns& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddColumns) if (&from == this) return; Clear(); MergeFrom(from); } -bool ModifyColumnTypes::IsInitialized() const { +bool AddColumns::IsInitialized() const { return true; } -void ModifyColumnTypes::InternalSwap(ModifyColumnTypes* other) { +void AddColumns::InternalSwap(AddColumns* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.modify_column_types_.InternalSwap(&other->_impl_.modify_column_types_); + _impl_.add_columns_.InternalSwap(&other->_impl_.add_columns_); } -::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnTypes::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[16]); @@ -7177,51 +7386,39 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnTypes::GetMetadata() const { // =================================================================== -class RenameTable::_Internal { +class DropColumns::_Internal { public: }; -RenameTable::RenameTable(::PROTOBUF_NAMESPACE_ID::Arena* arena, +DropColumns::DropColumns(::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.RenameTable) + // @@protoc_insertion_point(arena_constructor:greptime.v1.DropColumns) } -RenameTable::RenameTable(const RenameTable& from) +DropColumns::DropColumns(const DropColumns& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - RenameTable* const _this = this; (void)_this; + DropColumns* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.new_table_name_){} + decltype(_impl_.drop_columns_){from._impl_.drop_columns_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.new_table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.new_table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_new_table_name().empty()) { - _this->_impl_.new_table_name_.Set(from._internal_new_table_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.RenameTable) + // @@protoc_insertion_point(copy_constructor:greptime.v1.DropColumns) } -inline void RenameTable::SharedCtor( +inline void DropColumns::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.new_table_name_){} + decltype(_impl_.drop_columns_){arena} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.new_table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.new_table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -RenameTable::~RenameTable() { - // @@protoc_insertion_point(destructor:greptime.v1.RenameTable) +DropColumns::~DropColumns() { + // @@protoc_insertion_point(destructor:greptime.v1.DropColumns) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -7229,38 +7426,41 @@ RenameTable::~RenameTable() { SharedDtor(); } -inline void RenameTable::SharedDtor() { +inline void DropColumns::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.new_table_name_.Destroy(); + _impl_.drop_columns_.~RepeatedPtrField(); } -void RenameTable::SetCachedSize(int size) const { +void DropColumns::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void RenameTable::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.RenameTable) +void DropColumns::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.DropColumns) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.new_table_name_.ClearToEmpty(); + _impl_.drop_columns_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* RenameTable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DropColumns::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // string new_table_name = 1; + // repeated .greptime.v1.DropColumn drop_columns = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_new_table_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RenameTable.new_table_name")); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_drop_columns(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; @@ -7287,92 +7487,83 @@ const char* RenameTable::_InternalParse(const char* ptr, ::_pbi::ParseContext* c #undef CHK_ } -uint8_t* RenameTable::_InternalSerialize( +uint8_t* DropColumns::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.RenameTable) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropColumns) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string new_table_name = 1; - if (!this->_internal_new_table_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_new_table_name().data(), static_cast(this->_internal_new_table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.RenameTable.new_table_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_new_table_name(), target); + // repeated .greptime.v1.DropColumn drop_columns = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_drop_columns_size()); i < n; i++) { + const auto& repfield = this->_internal_drop_columns(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.RenameTable) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DropColumns) return target; } -size_t RenameTable::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RenameTable) +size_t DropColumns::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropColumns) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string new_table_name = 1; - if (!this->_internal_new_table_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_new_table_name()); + // repeated .greptime.v1.DropColumn drop_columns = 1; + total_size += 1UL * this->_internal_drop_columns_size(); + for (const auto& msg : this->_impl_.drop_columns_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RenameTable::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropColumns::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - RenameTable::MergeImpl + DropColumns::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RenameTable::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropColumns::GetClassData() const { return &_class_data_; } -void RenameTable::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.RenameTable) +void DropColumns::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.DropColumns) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_new_table_name().empty()) { - _this->_internal_set_new_table_name(from._internal_new_table_name()); - } + _this->_impl_.drop_columns_.MergeFrom(from._impl_.drop_columns_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void RenameTable::CopyFrom(const RenameTable& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RenameTable) +void DropColumns::CopyFrom(const DropColumns& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropColumns) if (&from == this) return; Clear(); MergeFrom(from); } -bool RenameTable::IsInitialized() const { +bool DropColumns::IsInitialized() const { return true; } -void RenameTable::InternalSwap(RenameTable* other) { +void DropColumns::InternalSwap(DropColumns* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.new_table_name_, lhs_arena, - &other->_impl_.new_table_name_, rhs_arena - ); + _impl_.drop_columns_.InternalSwap(&other->_impl_.drop_columns_); } -::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); @@ -7380,57 +7571,39 @@ ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const { // =================================================================== -class AddColumn::_Internal { +class ModifyColumnTypes::_Internal { public: - static const ::greptime::v1::ColumnDef& column_def(const AddColumn* msg); - static const ::greptime::v1::AddColumnLocation& location(const AddColumn* msg); }; -const ::greptime::v1::ColumnDef& -AddColumn::_Internal::column_def(const AddColumn* msg) { - return *msg->_impl_.column_def_; -} -const ::greptime::v1::AddColumnLocation& -AddColumn::_Internal::location(const AddColumn* msg) { - return *msg->_impl_.location_; -} -AddColumn::AddColumn(::PROTOBUF_NAMESPACE_ID::Arena* arena, +ModifyColumnTypes::ModifyColumnTypes(::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.AddColumn) + // @@protoc_insertion_point(arena_constructor:greptime.v1.ModifyColumnTypes) } -AddColumn::AddColumn(const AddColumn& from) +ModifyColumnTypes::ModifyColumnTypes(const ModifyColumnTypes& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - AddColumn* const _this = this; (void)_this; + ModifyColumnTypes* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.column_def_){nullptr} - , decltype(_impl_.location_){nullptr} + decltype(_impl_.modify_column_types_){from._impl_.modify_column_types_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - if (from._internal_has_column_def()) { - _this->_impl_.column_def_ = new ::greptime::v1::ColumnDef(*from._impl_.column_def_); - } - if (from._internal_has_location()) { - _this->_impl_.location_ = new ::greptime::v1::AddColumnLocation(*from._impl_.location_); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.AddColumn) + // @@protoc_insertion_point(copy_constructor:greptime.v1.ModifyColumnTypes) } -inline void AddColumn::SharedCtor( +inline void ModifyColumnTypes::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.column_def_){nullptr} - , decltype(_impl_.location_){nullptr} + decltype(_impl_.modify_column_types_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } -AddColumn::~AddColumn() { - // @@protoc_insertion_point(destructor:greptime.v1.AddColumn) +ModifyColumnTypes::~ModifyColumnTypes() { + // @@protoc_insertion_point(destructor:greptime.v1.ModifyColumnTypes) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -7438,52 +7611,41 @@ AddColumn::~AddColumn() { SharedDtor(); } -inline void AddColumn::SharedDtor() { +inline void ModifyColumnTypes::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - if (this != internal_default_instance()) delete _impl_.column_def_; - if (this != internal_default_instance()) delete _impl_.location_; + _impl_.modify_column_types_.~RepeatedPtrField(); } -void AddColumn::SetCachedSize(int size) const { +void ModifyColumnTypes::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void AddColumn::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.AddColumn) +void ModifyColumnTypes::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ModifyColumnTypes) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - if (GetArenaForAllocation() == nullptr && _impl_.column_def_ != nullptr) { - delete _impl_.column_def_; - } - _impl_.column_def_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { - delete _impl_.location_; - } - _impl_.location_ = nullptr; + _impl_.modify_column_types_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AddColumn::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ModifyColumnTypes::_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) { - // .greptime.v1.ColumnDef column_def = 1; + // repeated .greptime.v1.ModifyColumnType modify_column_types = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr = ctx->ParseMessage(_internal_mutable_column_def(), ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .greptime.v1.AddColumnLocation location = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_location(), ptr); - CHK_(ptr); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_modify_column_types(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; @@ -7510,108 +7672,83 @@ const char* AddColumn::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx #undef CHK_ } -uint8_t* AddColumn::_InternalSerialize( +uint8_t* ModifyColumnTypes::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddColumn) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ModifyColumnTypes) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .greptime.v1.ColumnDef column_def = 1; - if (this->_internal_has_column_def()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, _Internal::column_def(this), - _Internal::column_def(this).GetCachedSize(), target, stream); - } - - // .greptime.v1.AddColumnLocation location = 3; - if (this->_internal_has_location()) { + // repeated .greptime.v1.ModifyColumnType modify_column_types = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_modify_column_types_size()); i < n; i++) { + const auto& repfield = this->_internal_modify_column_types(i); target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::location(this), - _Internal::location(this).GetCachedSize(), target, stream); + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.AddColumn) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ModifyColumnTypes) return target; } -size_t AddColumn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddColumn) +size_t ModifyColumnTypes::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ModifyColumnTypes) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // .greptime.v1.ColumnDef column_def = 1; - if (this->_internal_has_column_def()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.column_def_); - } - - // .greptime.v1.AddColumnLocation location = 3; - if (this->_internal_has_location()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.location_); + // repeated .greptime.v1.ModifyColumnType modify_column_types = 1; + total_size += 1UL * this->_internal_modify_column_types_size(); + for (const auto& msg : this->_impl_.modify_column_types_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddColumn::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModifyColumnTypes::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - AddColumn::MergeImpl + ModifyColumnTypes::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddColumn::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModifyColumnTypes::GetClassData() const { return &_class_data_; } -void AddColumn::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.AddColumn) +void ModifyColumnTypes::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.ModifyColumnTypes) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_has_column_def()) { - _this->_internal_mutable_column_def()->::greptime::v1::ColumnDef::MergeFrom( - from._internal_column_def()); - } - if (from._internal_has_location()) { - _this->_internal_mutable_location()->::greptime::v1::AddColumnLocation::MergeFrom( - from._internal_location()); - } + _this->_impl_.modify_column_types_.MergeFrom(from._impl_.modify_column_types_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void AddColumn::CopyFrom(const AddColumn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddColumn) +void ModifyColumnTypes::CopyFrom(const ModifyColumnTypes& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ModifyColumnTypes) if (&from == this) return; Clear(); MergeFrom(from); } -bool AddColumn::IsInitialized() const { +bool ModifyColumnTypes::IsInitialized() const { return true; } -void AddColumn::InternalSwap(AddColumn* other) { +void ModifyColumnTypes::InternalSwap(ModifyColumnTypes* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(AddColumn, _impl_.location_) - + sizeof(AddColumn::_impl_.location_) - - PROTOBUF_FIELD_OFFSET(AddColumn, _impl_.column_def_)>( - reinterpret_cast(&_impl_.column_def_), - reinterpret_cast(&other->_impl_.column_def_)); + _impl_.modify_column_types_.InternalSwap(&other->_impl_.modify_column_types_); } -::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnTypes::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); @@ -7619,70 +7756,51 @@ ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { // =================================================================== -class ModifyColumnType::_Internal { +class RenameTable::_Internal { public: - static const ::greptime::v1::ColumnDataTypeExtension& target_type_extension(const ModifyColumnType* msg); }; -const ::greptime::v1::ColumnDataTypeExtension& -ModifyColumnType::_Internal::target_type_extension(const ModifyColumnType* msg) { - return *msg->_impl_.target_type_extension_; -} -void ModifyColumnType::clear_target_type_extension() { - if (GetArenaForAllocation() == nullptr && _impl_.target_type_extension_ != nullptr) { - delete _impl_.target_type_extension_; - } - _impl_.target_type_extension_ = nullptr; -} -ModifyColumnType::ModifyColumnType(::PROTOBUF_NAMESPACE_ID::Arena* arena, +RenameTable::RenameTable(::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.ModifyColumnType) + // @@protoc_insertion_point(arena_constructor:greptime.v1.RenameTable) } -ModifyColumnType::ModifyColumnType(const ModifyColumnType& from) +RenameTable::RenameTable(const RenameTable& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ModifyColumnType* const _this = this; (void)_this; + RenameTable* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.column_name_){} - , decltype(_impl_.target_type_extension_){nullptr} - , decltype(_impl_.target_type_){} + decltype(_impl_.new_table_name_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.column_name_.InitDefault(); + _impl_.new_table_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.column_name_.Set("", GetArenaForAllocation()); + _impl_.new_table_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_column_name().empty()) { - _this->_impl_.column_name_.Set(from._internal_column_name(), + if (!from._internal_new_table_name().empty()) { + _this->_impl_.new_table_name_.Set(from._internal_new_table_name(), _this->GetArenaForAllocation()); } - if (from._internal_has_target_type_extension()) { - _this->_impl_.target_type_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.target_type_extension_); - } - _this->_impl_.target_type_ = from._impl_.target_type_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.ModifyColumnType) + // @@protoc_insertion_point(copy_constructor:greptime.v1.RenameTable) } -inline void ModifyColumnType::SharedCtor( +inline void RenameTable::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.column_name_){} - , decltype(_impl_.target_type_extension_){nullptr} - , decltype(_impl_.target_type_){0} + decltype(_impl_.new_table_name_){} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.column_name_.InitDefault(); + _impl_.new_table_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.column_name_.Set("", GetArenaForAllocation()); + _impl_.new_table_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -ModifyColumnType::~ModifyColumnType() { - // @@protoc_insertion_point(destructor:greptime.v1.ModifyColumnType) +RenameTable::~RenameTable() { + // @@protoc_insertion_point(destructor:greptime.v1.RenameTable) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -7690,61 +7808,38 @@ ModifyColumnType::~ModifyColumnType() { SharedDtor(); } -inline void ModifyColumnType::SharedDtor() { +inline void RenameTable::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.column_name_.Destroy(); - if (this != internal_default_instance()) delete _impl_.target_type_extension_; + _impl_.new_table_name_.Destroy(); } -void ModifyColumnType::SetCachedSize(int size) const { +void RenameTable::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ModifyColumnType::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.ModifyColumnType) +void RenameTable::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.RenameTable) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.column_name_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.target_type_extension_ != nullptr) { - delete _impl_.target_type_extension_; - } - _impl_.target_type_extension_ = nullptr; - _impl_.target_type_ = 0; + _impl_.new_table_name_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ModifyColumnType::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* RenameTable::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // string column_name = 1; + // string new_table_name = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_column_name(); + auto str = _internal_mutable_new_table_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ModifyColumnType.column_name")); - } else - goto handle_unusual; - continue; - // .greptime.v1.ColumnDataType target_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_target_type(static_cast<::greptime::v1::ColumnDataType>(val)); - } else - goto handle_unusual; - continue; - // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - ptr = ctx->ParseMessage(_internal_mutable_target_type_extension(), ptr); - CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.RenameTable.new_table_name")); } else goto handle_unusual; continue; @@ -7771,132 +7866,92 @@ const char* ModifyColumnType::_InternalParse(const char* ptr, ::_pbi::ParseConte #undef CHK_ } -uint8_t* ModifyColumnType::_InternalSerialize( +uint8_t* RenameTable::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ModifyColumnType) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.RenameTable) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string column_name = 1; - if (!this->_internal_column_name().empty()) { + // string new_table_name = 1; + if (!this->_internal_new_table_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + this->_internal_new_table_name().data(), static_cast(this->_internal_new_table_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.ModifyColumnType.column_name"); + "greptime.v1.RenameTable.new_table_name"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_column_name(), target); - } - - // .greptime.v1.ColumnDataType target_type = 2; - if (this->_internal_target_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_target_type(), target); - } - - // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - if (this->_internal_has_target_type_extension()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(3, _Internal::target_type_extension(this), - _Internal::target_type_extension(this).GetCachedSize(), target, stream); + 1, this->_internal_new_table_name(), 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.ModifyColumnType) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.RenameTable) return target; } -size_t ModifyColumnType::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ModifyColumnType) +size_t RenameTable::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RenameTable) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string column_name = 1; - if (!this->_internal_column_name().empty()) { + // string new_table_name = 1; + if (!this->_internal_new_table_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_column_name()); - } - - // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - if (this->_internal_has_target_type_extension()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.target_type_extension_); - } - - // .greptime.v1.ColumnDataType target_type = 2; - if (this->_internal_target_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_target_type()); + this->_internal_new_table_name()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModifyColumnType::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RenameTable::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ModifyColumnType::MergeImpl + RenameTable::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModifyColumnType::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RenameTable::GetClassData() const { return &_class_data_; } -void ModifyColumnType::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.ModifyColumnType) +void RenameTable::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.RenameTable) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_column_name().empty()) { - _this->_internal_set_column_name(from._internal_column_name()); - } - if (from._internal_has_target_type_extension()) { - _this->_internal_mutable_target_type_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( - from._internal_target_type_extension()); - } - if (from._internal_target_type() != 0) { - _this->_internal_set_target_type(from._internal_target_type()); + if (!from._internal_new_table_name().empty()) { + _this->_internal_set_new_table_name(from._internal_new_table_name()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ModifyColumnType::CopyFrom(const ModifyColumnType& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ModifyColumnType) +void RenameTable::CopyFrom(const RenameTable& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RenameTable) if (&from == this) return; Clear(); MergeFrom(from); } -bool ModifyColumnType::IsInitialized() const { +bool RenameTable::IsInitialized() const { return true; } -void ModifyColumnType::InternalSwap(ModifyColumnType* other) { +void RenameTable::InternalSwap(RenameTable* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.column_name_, lhs_arena, - &other->_impl_.column_name_, rhs_arena + &_impl_.new_table_name_, lhs_arena, + &other->_impl_.new_table_name_, rhs_arena ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ModifyColumnType, _impl_.target_type_) - + sizeof(ModifyColumnType::_impl_.target_type_) - - PROTOBUF_FIELD_OFFSET(ModifyColumnType, _impl_.target_type_extension_)>( - reinterpret_cast(&_impl_.target_type_extension_), - reinterpret_cast(&other->_impl_.target_type_extension_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnType::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); @@ -7904,65 +7959,57 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnType::GetMetadata() const { // =================================================================== -class Option::_Internal { +class AddColumn::_Internal { public: + static const ::greptime::v1::ColumnDef& column_def(const AddColumn* msg); + static const ::greptime::v1::AddColumnLocation& location(const AddColumn* msg); }; -Option::Option(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::greptime::v1::ColumnDef& +AddColumn::_Internal::column_def(const AddColumn* msg) { + return *msg->_impl_.column_def_; +} +const ::greptime::v1::AddColumnLocation& +AddColumn::_Internal::location(const AddColumn* msg) { + return *msg->_impl_.location_; +} +AddColumn::AddColumn(::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.Option) + // @@protoc_insertion_point(arena_constructor:greptime.v1.AddColumn) } -Option::Option(const Option& from) +AddColumn::AddColumn(const AddColumn& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - Option* const _this = this; (void)_this; + AddColumn* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.key_){} - , decltype(_impl_.value_){} + decltype(_impl_.column_def_){nullptr} + , decltype(_impl_.location_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_key().empty()) { - _this->_impl_.key_.Set(from._internal_key(), - _this->GetArenaForAllocation()); + if (from._internal_has_column_def()) { + _this->_impl_.column_def_ = new ::greptime::v1::ColumnDef(*from._impl_.column_def_); } - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_value().empty()) { - _this->_impl_.value_.Set(from._internal_value(), - _this->GetArenaForAllocation()); + if (from._internal_has_location()) { + _this->_impl_.location_ = new ::greptime::v1::AddColumnLocation(*from._impl_.location_); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.Option) + // @@protoc_insertion_point(copy_constructor:greptime.v1.AddColumn) } -inline void Option::SharedCtor( +inline void AddColumn::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.key_){} - , decltype(_impl_.value_){} + decltype(_impl_.column_def_){nullptr} + , decltype(_impl_.location_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.key_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.key_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.value_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -Option::~Option() { - // @@protoc_insertion_point(destructor:greptime.v1.Option) +AddColumn::~AddColumn() { + // @@protoc_insertion_point(destructor:greptime.v1.AddColumn) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -7970,50 +8017,52 @@ Option::~Option() { SharedDtor(); } -inline void Option::SharedDtor() { +inline void AddColumn::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.key_.Destroy(); - _impl_.value_.Destroy(); + if (this != internal_default_instance()) delete _impl_.column_def_; + if (this != internal_default_instance()) delete _impl_.location_; } -void Option::SetCachedSize(int size) const { +void AddColumn::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void Option::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.Option) +void AddColumn::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.AddColumn) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.key_.ClearToEmpty(); - _impl_.value_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.column_def_ != nullptr) { + delete _impl_.column_def_; + } + _impl_.column_def_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.location_ != nullptr) { + delete _impl_.location_; + } + _impl_.location_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* Option::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* AddColumn::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // string key = 1; + // .greptime.v1.ColumnDef column_def = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_key(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + ptr = ctx->ParseMessage(_internal_mutable_column_def(), ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.Option.key")); } else goto handle_unusual; continue; - // string value = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_value(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + // .greptime.v1.AddColumnLocation location = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_location(), ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.Option.value")); } else goto handle_unusual; continue; @@ -8040,116 +8089,108 @@ const char* Option::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #undef CHK_ } -uint8_t* Option::_InternalSerialize( +uint8_t* AddColumn::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.Option) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddColumn) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string key = 1; - if (!this->_internal_key().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_key().data(), static_cast(this->_internal_key().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.Option.key"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_key(), target); + // .greptime.v1.ColumnDef column_def = 1; + if (this->_internal_has_column_def()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::column_def(this), + _Internal::column_def(this).GetCachedSize(), target, stream); } - // string value = 2; - if (!this->_internal_value().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_value().data(), static_cast(this->_internal_value().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.Option.value"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_value(), target); + // .greptime.v1.AddColumnLocation location = 3; + if (this->_internal_has_location()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::location(this), + _Internal::location(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.Option) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.AddColumn) return target; } -size_t Option::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.Option) +size_t AddColumn::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddColumn) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string key = 1; - if (!this->_internal_key().empty()) { + // .greptime.v1.ColumnDef column_def = 1; + if (this->_internal_has_column_def()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_key()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.column_def_); } - // string value = 2; - if (!this->_internal_value().empty()) { + // .greptime.v1.AddColumnLocation location = 3; + if (this->_internal_has_location()) { total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_value()); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.location_); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Option::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddColumn::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - Option::MergeImpl + AddColumn::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Option::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddColumn::GetClassData() const { return &_class_data_; } -void Option::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.Option) +void AddColumn::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.AddColumn) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_key().empty()) { - _this->_internal_set_key(from._internal_key()); + if (from._internal_has_column_def()) { + _this->_internal_mutable_column_def()->::greptime::v1::ColumnDef::MergeFrom( + from._internal_column_def()); } - if (!from._internal_value().empty()) { - _this->_internal_set_value(from._internal_value()); + if (from._internal_has_location()) { + _this->_internal_mutable_location()->::greptime::v1::AddColumnLocation::MergeFrom( + from._internal_location()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void Option::CopyFrom(const Option& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.Option) +void AddColumn::CopyFrom(const AddColumn& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddColumn) if (&from == this) return; Clear(); MergeFrom(from); } -bool Option::IsInitialized() const { +bool AddColumn::IsInitialized() const { return true; } -void Option::InternalSwap(Option* other) { +void AddColumn::InternalSwap(AddColumn* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.key_, lhs_arena, - &other->_impl_.key_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.value_, lhs_arena, - &other->_impl_.value_, rhs_arena - ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(AddColumn, _impl_.location_) + + sizeof(AddColumn::_impl_.location_) + - PROTOBUF_FIELD_OFFSET(AddColumn, _impl_.column_def_)>( + reinterpret_cast(&_impl_.column_def_), + reinterpret_cast(&other->_impl_.column_def_)); } -::PROTOBUF_NAMESPACE_ID::Metadata Option::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[20]); @@ -8157,39 +8198,70 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Option::GetMetadata() const { // =================================================================== -class SetTableOptions::_Internal { +class ModifyColumnType::_Internal { public: + static const ::greptime::v1::ColumnDataTypeExtension& target_type_extension(const ModifyColumnType* msg); }; -SetTableOptions::SetTableOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, +const ::greptime::v1::ColumnDataTypeExtension& +ModifyColumnType::_Internal::target_type_extension(const ModifyColumnType* msg) { + return *msg->_impl_.target_type_extension_; +} +void ModifyColumnType::clear_target_type_extension() { + if (GetArenaForAllocation() == nullptr && _impl_.target_type_extension_ != nullptr) { + delete _impl_.target_type_extension_; + } + _impl_.target_type_extension_ = nullptr; +} +ModifyColumnType::ModifyColumnType(::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.SetTableOptions) + // @@protoc_insertion_point(arena_constructor:greptime.v1.ModifyColumnType) } -SetTableOptions::SetTableOptions(const SetTableOptions& from) +ModifyColumnType::ModifyColumnType(const ModifyColumnType& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - SetTableOptions* const _this = this; (void)_this; + ModifyColumnType* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.table_options_){from._impl_.table_options_} + decltype(_impl_.column_name_){} + , decltype(_impl_.target_type_extension_){nullptr} + , decltype(_impl_.target_type_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.SetTableOptions) + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_target_type_extension()) { + _this->_impl_.target_type_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.target_type_extension_); + } + _this->_impl_.target_type_ = from._impl_.target_type_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.ModifyColumnType) } -inline void SetTableOptions::SharedCtor( +inline void ModifyColumnType::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.table_options_){arena} + decltype(_impl_.column_name_){} + , decltype(_impl_.target_type_extension_){nullptr} + , decltype(_impl_.target_type_){0} , /*decltype(_impl_._cached_size_)*/{} }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -SetTableOptions::~SetTableOptions() { - // @@protoc_insertion_point(destructor:greptime.v1.SetTableOptions) +ModifyColumnType::~ModifyColumnType() { + // @@protoc_insertion_point(destructor:greptime.v1.ModifyColumnType) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -8197,41 +8269,61 @@ SetTableOptions::~SetTableOptions() { SharedDtor(); } -inline void SetTableOptions::SharedDtor() { +inline void ModifyColumnType::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.table_options_.~RepeatedPtrField(); + _impl_.column_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.target_type_extension_; } -void SetTableOptions::SetCachedSize(int size) const { +void ModifyColumnType::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void SetTableOptions::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.SetTableOptions) +void ModifyColumnType::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ModifyColumnType) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.table_options_.Clear(); + _impl_.column_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.target_type_extension_ != nullptr) { + delete _impl_.target_type_extension_; + } + _impl_.target_type_extension_ = nullptr; + _impl_.target_type_ = 0; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SetTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* ModifyColumnType::_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.Option table_options = 1; + // string column_name = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(_internal_add_table_options(), ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + auto str = _internal_mutable_column_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ModifyColumnType.column_name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataType target_type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_target_type(static_cast<::greptime::v1::ColumnDataType>(val)); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_target_type_extension(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -8258,83 +8350,132 @@ const char* SetTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseContex #undef CHK_ } -uint8_t* SetTableOptions::_InternalSerialize( +uint8_t* ModifyColumnType::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetTableOptions) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ModifyColumnType) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // repeated .greptime.v1.Option table_options = 1; - for (unsigned i = 0, - n = static_cast(this->_internal_table_options_size()); i < n; i++) { - const auto& repfield = this->_internal_table_options(i); + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.ModifyColumnType.column_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_column_name(), target); + } + + // .greptime.v1.ColumnDataType target_type = 2; + if (this->_internal_target_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_target_type(), target); + } + + // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + if (this->_internal_has_target_type_extension()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + InternalWriteMessage(3, _Internal::target_type_extension(this), + _Internal::target_type_extension(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SetTableOptions) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ModifyColumnType) return target; } -size_t SetTableOptions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetTableOptions) +size_t ModifyColumnType::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ModifyColumnType) 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.Option 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); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} + // string column_name = 1; + if (!this->_internal_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_column_name()); + } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTableOptions::_class_data_ = { + // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; + if (this->_internal_has_target_type_extension()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.target_type_extension_); + } + + // .greptime.v1.ColumnDataType target_type = 2; + if (this->_internal_target_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_target_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ModifyColumnType::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetTableOptions::MergeImpl + ModifyColumnType::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTableOptions::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ModifyColumnType::GetClassData() const { return &_class_data_; } -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) +void ModifyColumnType::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.ModifyColumnType) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.table_options_.MergeFrom(from._impl_.table_options_); + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); + } + if (from._internal_has_target_type_extension()) { + _this->_internal_mutable_target_type_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( + from._internal_target_type_extension()); + } + if (from._internal_target_type() != 0) { + _this->_internal_set_target_type(from._internal_target_type()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void SetTableOptions::CopyFrom(const SetTableOptions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetTableOptions) +void ModifyColumnType::CopyFrom(const ModifyColumnType& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ModifyColumnType) if (&from == this) return; Clear(); MergeFrom(from); } -bool SetTableOptions::IsInitialized() const { +bool ModifyColumnType::IsInitialized() const { return true; } -void SetTableOptions::InternalSwap(SetTableOptions* other) { +void ModifyColumnType::InternalSwap(ModifyColumnType* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.table_options_.InternalSwap(&other->_impl_.table_options_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ModifyColumnType, _impl_.target_type_) + + sizeof(ModifyColumnType::_impl_.target_type_) + - PROTOBUF_FIELD_OFFSET(ModifyColumnType, _impl_.target_type_extension_)>( + reinterpret_cast(&_impl_.target_type_extension_), + reinterpret_cast(&other->_impl_.target_type_extension_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SetTableOptions::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata ModifyColumnType::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]); @@ -8342,39 +8483,65 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetTableOptions::GetMetadata() const { // =================================================================== -class UnsetTableOptions::_Internal { +class Option::_Internal { public: }; -UnsetTableOptions::UnsetTableOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, +Option::Option(::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) + // @@protoc_insertion_point(arena_constructor:greptime.v1.Option) } -UnsetTableOptions::UnsetTableOptions(const UnsetTableOptions& from) +Option::Option(const Option& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - UnsetTableOptions* const _this = this; (void)_this; + Option* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.keys_){from._impl_.keys_} + decltype(_impl_.key_){} + , decltype(_impl_.value_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetTableOptions) + _impl_.key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_key().empty()) { + _this->_impl_.key_.Set(from._internal_key(), + _this->GetArenaForAllocation()); + } + _impl_.value_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.value_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_value().empty()) { + _this->_impl_.value_.Set(from._internal_value(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.Option) } -inline void UnsetTableOptions::SharedCtor( +inline void Option::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.keys_){arena} + decltype(_impl_.key_){} + , decltype(_impl_.value_){} , /*decltype(_impl_._cached_size_)*/{} }; + _impl_.key_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.key_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.value_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.value_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -UnsetTableOptions::~UnsetTableOptions() { - // @@protoc_insertion_point(destructor:greptime.v1.UnsetTableOptions) +Option::~Option() { + // @@protoc_insertion_point(destructor:greptime.v1.Option) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -8382,43 +8549,50 @@ UnsetTableOptions::~UnsetTableOptions() { SharedDtor(); } -inline void UnsetTableOptions::SharedDtor() { +inline void Option::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.keys_.~RepeatedPtrField(); + _impl_.key_.Destroy(); + _impl_.value_.Destroy(); } -void UnsetTableOptions::SetCachedSize(int size) const { +void Option::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void UnsetTableOptions::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.UnsetTableOptions) +void Option::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.Option) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.keys_.Clear(); + _impl_.key_.ClearToEmpty(); + _impl_.value_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* UnsetTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* Option::_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; + // string key = 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)); + auto str = _internal_mutable_key(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.Option.key")); + } else + goto handle_unusual; + continue; + // string value = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_value(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.Option.value")); } else goto handle_unusual; continue; @@ -8445,86 +8619,116 @@ const char* UnsetTableOptions::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* UnsetTableOptions::_InternalSerialize( +uint8_t* Option::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetTableOptions) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.Option) 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); + // string key = 1; + if (!this->_internal_key().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - s.data(), static_cast(s.length()), + this->_internal_key().data(), static_cast(this->_internal_key().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.UnsetTableOptions.keys"); - target = stream->WriteString(1, s, target); + "greptime.v1.Option.key"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_key(), target); + } + + // string value = 2; + if (!this->_internal_value().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_value().data(), static_cast(this->_internal_value().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.Option.value"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_value(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.UnsetTableOptions) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.Option) return target; } -size_t UnsetTableOptions::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.UnsetTableOptions) +size_t Option::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.Option) 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)); + // string key = 1; + if (!this->_internal_key().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_key()); + } + + // string value = 2; + if (!this->_internal_value().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_value()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetTableOptions::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Option::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - UnsetTableOptions::MergeImpl + Option::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetTableOptions::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Option::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) +void Option::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.Option) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.keys_.MergeFrom(from._impl_.keys_); + if (!from._internal_key().empty()) { + _this->_internal_set_key(from._internal_key()); + } + if (!from._internal_value().empty()) { + _this->_internal_set_value(from._internal_value()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void UnsetTableOptions::CopyFrom(const UnsetTableOptions& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.UnsetTableOptions) +void Option::CopyFrom(const Option& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.Option) if (&from == this) return; Clear(); MergeFrom(from); } -bool UnsetTableOptions::IsInitialized() const { +bool Option::IsInitialized() const { return true; } -void UnsetTableOptions::InternalSwap(UnsetTableOptions* other) { +void Option::InternalSwap(Option* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.keys_.InternalSwap(&other->_impl_.keys_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.key_, lhs_arena, + &other->_impl_.key_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.value_, lhs_arena, + &other->_impl_.value_, rhs_arena + ); } -::PROTOBUF_NAMESPACE_ID::Metadata UnsetTableOptions::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata Option::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]); @@ -8532,51 +8736,39 @@ ::PROTOBUF_NAMESPACE_ID::Metadata UnsetTableOptions::GetMetadata() const { // =================================================================== -class DropColumn::_Internal { +class SetTableOptions::_Internal { public: }; -DropColumn::DropColumn(::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.DropColumn) + // @@protoc_insertion_point(arena_constructor:greptime.v1.SetTableOptions) } -DropColumn::DropColumn(const DropColumn& from) +SetTableOptions::SetTableOptions(const SetTableOptions& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - DropColumn* const _this = this; (void)_this; + SetTableOptions* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.name_){} + decltype(_impl_.table_options_){from._impl_.table_options_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.DropColumn) + // @@protoc_insertion_point(copy_constructor:greptime.v1.SetTableOptions) } -inline void DropColumn::SharedCtor( +inline void SetTableOptions::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.name_){} + decltype(_impl_.table_options_){arena} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -DropColumn::~DropColumn() { - // @@protoc_insertion_point(destructor:greptime.v1.DropColumn) +SetTableOptions::~SetTableOptions() { + // @@protoc_insertion_point(destructor:greptime.v1.SetTableOptions) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -8584,38 +8776,41 @@ DropColumn::~DropColumn() { SharedDtor(); } -inline void DropColumn::SharedDtor() { +inline void SetTableOptions::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); + _impl_.table_options_.~RepeatedPtrField(); } -void DropColumn::SetCachedSize(int size) const { +void SetTableOptions::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void DropColumn::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.DropColumn) +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_.name_.ClearToEmpty(); + _impl_.table_options_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* DropColumn::_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) { - // string name = 1; + // repeated .greptime.v1.Option table_options = 1; case 1: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropColumn.name")); + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_table_options(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); } else goto handle_unusual; continue; @@ -8642,92 +8837,83 @@ const char* DropColumn::_InternalParse(const char* ptr, ::_pbi::ParseContext* ct #undef CHK_ } -uint8_t* DropColumn::_InternalSerialize( +uint8_t* SetTableOptions::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropColumn) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetTableOptions) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string name = 1; - if (!this->_internal_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.DropColumn.name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); + // repeated .greptime.v1.Option table_options = 1; + for (unsigned i = 0, + 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); } 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.DropColumn) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SetTableOptions) return target; } -size_t DropColumn::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropColumn) +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; - // string name = 1; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); + // repeated .greptime.v1.Option 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); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropColumn::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetTableOptions::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - DropColumn::MergeImpl + SetTableOptions::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropColumn::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetTableOptions::GetClassData() const { return &_class_data_; } -void DropColumn::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.DropColumn) +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; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } + _this->_impl_.table_options_.MergeFrom(from._impl_.table_options_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void DropColumn::CopyFrom(const DropColumn& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropColumn) +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 DropColumn::IsInitialized() const { +bool SetTableOptions::IsInitialized() const { return true; } -void DropColumn::InternalSwap(DropColumn* other) { +void SetTableOptions::InternalSwap(SetTableOptions* other) { using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); + _impl_.table_options_.InternalSwap(&other->_impl_.table_options_); } -::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::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[23]); @@ -8735,40 +8921,39 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const { // =================================================================== -class TableId::_Internal { +class UnsetTableOptions::_Internal { public: }; -TableId::TableId(::PROTOBUF_NAMESPACE_ID::Arena* arena, +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.TableId) + // @@protoc_insertion_point(arena_constructor:greptime.v1.UnsetTableOptions) } -TableId::TableId(const TableId& from) +UnsetTableOptions::UnsetTableOptions(const UnsetTableOptions& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - TableId* const _this = this; (void)_this; + UnsetTableOptions* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.id_){} + decltype(_impl_.keys_){from._impl_.keys_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.id_ = from._impl_.id_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.TableId) + // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetTableOptions) } -inline void TableId::SharedCtor( +inline void UnsetTableOptions::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.id_){0u} + decltype(_impl_.keys_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } -TableId::~TableId() { - // @@protoc_insertion_point(destructor:greptime.v1.TableId) +UnsetTableOptions::~UnsetTableOptions() { + // @@protoc_insertion_point(destructor:greptime.v1.UnsetTableOptions) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -8776,35 +8961,43 @@ TableId::~TableId() { SharedDtor(); } -inline void TableId::SharedDtor() { +inline void UnsetTableOptions::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.keys_.~RepeatedPtrField(); } -void TableId::SetCachedSize(int size) const { +void UnsetTableOptions::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void TableId::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.TableId) +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_.id_ = 0u; + _impl_.keys_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* TableId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +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) { - // uint32 id = 1; + // repeated string keys = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); - CHK_(ptr); + 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; @@ -8831,81 +9024,86 @@ const char* TableId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) #undef CHK_ } -uint8_t* TableId::_InternalSerialize( +uint8_t* UnsetTableOptions::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TableId) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetTableOptions) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // uint32 id = 1; - if (this->_internal_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), target); + // 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.TableId) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.UnsetTableOptions) return target; } -size_t TableId::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TableId) +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; - // uint32 id = 1; - if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); + // 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 TableId::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetTableOptions::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TableId::MergeImpl + UnsetTableOptions::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TableId::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetTableOptions::GetClassData() const { return &_class_data_; } -void TableId::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.TableId) +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; - if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); - } + _this->_impl_.keys_.MergeFrom(from._impl_.keys_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void TableId::CopyFrom(const TableId& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TableId) +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 TableId::IsInitialized() const { +bool UnsetTableOptions::IsInitialized() const { return true; } -void TableId::InternalSwap(TableId* other) { +void UnsetTableOptions::InternalSwap(UnsetTableOptions* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.id_, other->_impl_.id_); + _impl_.keys_.InternalSwap(&other->_impl_.keys_); } -::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const { +::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[24]); @@ -8913,40 +9111,51 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const { // =================================================================== -class FlowId::_Internal { +class DropColumn::_Internal { public: }; -FlowId::FlowId(::PROTOBUF_NAMESPACE_ID::Arena* arena, +DropColumn::DropColumn(::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.FlowId) + // @@protoc_insertion_point(arena_constructor:greptime.v1.DropColumn) } -FlowId::FlowId(const FlowId& from) +DropColumn::DropColumn(const DropColumn& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - FlowId* const _this = this; (void)_this; + DropColumn* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.id_){} + decltype(_impl_.name_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.id_ = from._impl_.id_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.FlowId) -} - -inline void FlowId::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.DropColumn) +} + +inline void DropColumn::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.id_){0u} + decltype(_impl_.name_){} , /*decltype(_impl_._cached_size_)*/{} }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -FlowId::~FlowId() { - // @@protoc_insertion_point(destructor:greptime.v1.FlowId) +DropColumn::~DropColumn() { + // @@protoc_insertion_point(destructor:greptime.v1.DropColumn) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -8954,35 +9163,38 @@ FlowId::~FlowId() { SharedDtor(); } -inline void FlowId::SharedDtor() { +inline void DropColumn::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); } -void FlowId::SetCachedSize(int size) const { +void DropColumn::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void FlowId::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.FlowId) +void DropColumn::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.DropColumn) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.id_ = 0u; + _impl_.name_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* FlowId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* DropColumn::_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) { - // uint32 id = 1; + // string name = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.DropColumn.name")); } else goto handle_unusual; continue; @@ -9009,81 +9221,92 @@ const char* FlowId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #undef CHK_ } -uint8_t* FlowId::_InternalSerialize( +uint8_t* DropColumn::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.FlowId) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropColumn) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // uint32 id = 1; - if (this->_internal_id() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), target); + // string name = 1; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.DropColumn.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), 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.FlowId) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DropColumn) return target; } -size_t FlowId::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.FlowId) +size_t DropColumn::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropColumn) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // uint32 id = 1; - if (this->_internal_id() != 0) { - total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlowId::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropColumn::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - FlowId::MergeImpl + DropColumn::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlowId::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropColumn::GetClassData() const { return &_class_data_; } -void FlowId::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.FlowId) +void DropColumn::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.DropColumn) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (from._internal_id() != 0) { - _this->_internal_set_id(from._internal_id()); + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void FlowId::CopyFrom(const FlowId& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.FlowId) +void DropColumn::CopyFrom(const DropColumn& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropColumn) if (&from == this) return; Clear(); MergeFrom(from); } -bool FlowId::IsInitialized() const { +bool DropColumn::IsInitialized() const { return true; } -void FlowId::InternalSwap(FlowId* other) { +void DropColumn::InternalSwap(DropColumn* other) { using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - swap(_impl_.id_, other->_impl_.id_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); } -::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const { +::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[25]); @@ -9091,120 +9314,40 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const { // =================================================================== -class ColumnDef::_Internal { +class TableId::_Internal { public: - static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnDef* msg); - static const ::greptime::v1::ColumnOptions& options(const ColumnDef* msg); }; -const ::greptime::v1::ColumnDataTypeExtension& -ColumnDef::_Internal::datatype_extension(const ColumnDef* msg) { - return *msg->_impl_.datatype_extension_; -} -const ::greptime::v1::ColumnOptions& -ColumnDef::_Internal::options(const ColumnDef* msg) { - return *msg->_impl_.options_; -} -void ColumnDef::clear_datatype_extension() { - if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { - delete _impl_.datatype_extension_; - } - _impl_.datatype_extension_ = nullptr; -} -void ColumnDef::clear_options() { - if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { - delete _impl_.options_; - } - _impl_.options_ = nullptr; -} -ColumnDef::ColumnDef(::PROTOBUF_NAMESPACE_ID::Arena* arena, +TableId::TableId(::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.ColumnDef) + // @@protoc_insertion_point(arena_constructor:greptime.v1.TableId) } -ColumnDef::ColumnDef(const ColumnDef& from) +TableId::TableId(const TableId& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - ColumnDef* const _this = this; (void)_this; + TableId* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.default_constraint_){} - , decltype(_impl_.comment_){} - , decltype(_impl_.datatype_extension_){nullptr} - , decltype(_impl_.options_){nullptr} - , decltype(_impl_.data_type_){} - , decltype(_impl_.is_nullable_){} - , decltype(_impl_.semantic_type_){} + decltype(_impl_.id_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_name().empty()) { - _this->_impl_.name_.Set(from._internal_name(), - _this->GetArenaForAllocation()); - } - _impl_.default_constraint_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default_constraint_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_default_constraint().empty()) { - _this->_impl_.default_constraint_.Set(from._internal_default_constraint(), - _this->GetArenaForAllocation()); - } - _impl_.comment_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.comment_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_comment().empty()) { - _this->_impl_.comment_.Set(from._internal_comment(), - _this->GetArenaForAllocation()); - } - if (from._internal_has_datatype_extension()) { - _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); - } - if (from._internal_has_options()) { - _this->_impl_.options_ = new ::greptime::v1::ColumnOptions(*from._impl_.options_); - } - ::memcpy(&_impl_.data_type_, &from._impl_.data_type_, - static_cast(reinterpret_cast(&_impl_.semantic_type_) - - reinterpret_cast(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_)); - // @@protoc_insertion_point(copy_constructor:greptime.v1.ColumnDef) + _this->_impl_.id_ = from._impl_.id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.TableId) } -inline void ColumnDef::SharedCtor( +inline void TableId::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.name_){} - , decltype(_impl_.default_constraint_){} - , decltype(_impl_.comment_){} - , decltype(_impl_.datatype_extension_){nullptr} - , decltype(_impl_.options_){nullptr} - , decltype(_impl_.data_type_){0} - , decltype(_impl_.is_nullable_){false} - , decltype(_impl_.semantic_type_){0} + decltype(_impl_.id_){0u} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default_constraint_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.default_constraint_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.comment_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.comment_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -ColumnDef::~ColumnDef() { - // @@protoc_insertion_point(destructor:greptime.v1.ColumnDef) +TableId::~TableId() { + // @@protoc_insertion_point(destructor:greptime.v1.TableId) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -9212,62 +9355,498 @@ ColumnDef::~ColumnDef() { SharedDtor(); } -inline void ColumnDef::SharedDtor() { +inline void TableId::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.name_.Destroy(); - _impl_.default_constraint_.Destroy(); - _impl_.comment_.Destroy(); - if (this != internal_default_instance()) delete _impl_.datatype_extension_; - if (this != internal_default_instance()) delete _impl_.options_; } -void ColumnDef::SetCachedSize(int size) const { +void TableId::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void ColumnDef::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.ColumnDef) +void TableId::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.TableId) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.name_.ClearToEmpty(); - _impl_.default_constraint_.ClearToEmpty(); - _impl_.comment_.ClearToEmpty(); - if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { - delete _impl_.datatype_extension_; - } - _impl_.datatype_extension_ = nullptr; - if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { - delete _impl_.options_; - } - _impl_.options_ = nullptr; - ::memset(&_impl_.data_type_, 0, static_cast( - reinterpret_cast(&_impl_.semantic_type_) - - reinterpret_cast(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_)); + _impl_.id_ = 0u; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* ColumnDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* TableId::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; ptr = ::_pbi::ReadTag(ptr, &tag); switch (tag >> 3) { - // string name = 1; + // uint32 id = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ColumnDef.name")); } else goto handle_unusual; continue; - // .greptime.v1.ColumnDataType data_type = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + 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* TableId::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TableId) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 id = 1; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), 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.TableId) + return target; +} + +size_t TableId::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TableId) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 id = 1; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TableId::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TableId::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TableId::GetClassData() const { return &_class_data_; } + + +void TableId::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.TableId) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TableId::CopyFrom(const TableId& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TableId) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TableId::IsInitialized() const { + return true; +} + +void TableId::InternalSwap(TableId* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.id_, other->_impl_.id_); +} + +::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[26]); +} + +// =================================================================== + +class FlowId::_Internal { + public: +}; + +FlowId::FlowId(::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.FlowId) +} +FlowId::FlowId(const FlowId& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FlowId* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.id_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.id_ = from._impl_.id_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.FlowId) +} + +inline void FlowId::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.id_){0u} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +FlowId::~FlowId() { + // @@protoc_insertion_point(destructor:greptime.v1.FlowId) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FlowId::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void FlowId::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FlowId::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.FlowId) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.id_ = 0u; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FlowId::_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) { + // uint32 id = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* FlowId::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.FlowId) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // uint32 id = 1; + if (this->_internal_id() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), 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.FlowId) + return target; +} + +size_t FlowId::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.FlowId) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // uint32 id = 1; + if (this->_internal_id() != 0) { + total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlowId::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FlowId::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlowId::GetClassData() const { return &_class_data_; } + + +void FlowId::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.FlowId) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_id() != 0) { + _this->_internal_set_id(from._internal_id()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FlowId::CopyFrom(const FlowId& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.FlowId) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FlowId::IsInitialized() const { + return true; +} + +void FlowId::InternalSwap(FlowId* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.id_, other->_impl_.id_); +} + +::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[27]); +} + +// =================================================================== + +class ColumnDef::_Internal { + public: + static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnDef* msg); + static const ::greptime::v1::ColumnOptions& options(const ColumnDef* msg); +}; + +const ::greptime::v1::ColumnDataTypeExtension& +ColumnDef::_Internal::datatype_extension(const ColumnDef* msg) { + return *msg->_impl_.datatype_extension_; +} +const ::greptime::v1::ColumnOptions& +ColumnDef::_Internal::options(const ColumnDef* msg) { + return *msg->_impl_.options_; +} +void ColumnDef::clear_datatype_extension() { + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; +} +void ColumnDef::clear_options() { + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; +} +ColumnDef::ColumnDef(::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.ColumnDef) +} +ColumnDef::ColumnDef(const ColumnDef& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ColumnDef* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.default_constraint_){} + , decltype(_impl_.comment_){} + , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.options_){nullptr} + , decltype(_impl_.data_type_){} + , decltype(_impl_.is_nullable_){} + , decltype(_impl_.semantic_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + _impl_.default_constraint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default_constraint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_default_constraint().empty()) { + _this->_impl_.default_constraint_.Set(from._internal_default_constraint(), + _this->GetArenaForAllocation()); + } + _impl_.comment_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.comment_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_comment().empty()) { + _this->_impl_.comment_.Set(from._internal_comment(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_datatype_extension()) { + _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); + } + if (from._internal_has_options()) { + _this->_impl_.options_ = new ::greptime::v1::ColumnOptions(*from._impl_.options_); + } + ::memcpy(&_impl_.data_type_, &from._impl_.data_type_, + static_cast(reinterpret_cast(&_impl_.semantic_type_) - + reinterpret_cast(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.ColumnDef) +} + +inline void ColumnDef::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.default_constraint_){} + , decltype(_impl_.comment_){} + , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.options_){nullptr} + , decltype(_impl_.data_type_){0} + , decltype(_impl_.is_nullable_){false} + , decltype(_impl_.semantic_type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default_constraint_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.default_constraint_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.comment_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.comment_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +ColumnDef::~ColumnDef() { + // @@protoc_insertion_point(destructor:greptime.v1.ColumnDef) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ColumnDef::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + _impl_.default_constraint_.Destroy(); + _impl_.comment_.Destroy(); + if (this != internal_default_instance()) delete _impl_.datatype_extension_; + if (this != internal_default_instance()) delete _impl_.options_; +} + +void ColumnDef::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ColumnDef::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ColumnDef) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + _impl_.default_constraint_.ClearToEmpty(); + _impl_.comment_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; + ::memset(&_impl_.data_type_, 0, static_cast( + reinterpret_cast(&_impl_.semantic_type_) - + reinterpret_cast(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ColumnDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ColumnDef.name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataType data_type = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); _internal_set_data_type(static_cast<::greptime::v1::ColumnDataType>(val)); } else @@ -9281,46 +9860,651 @@ const char* ColumnDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; - // bytes default_constraint = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - auto str = _internal_mutable_default_constraint(); + // bytes default_constraint = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + auto str = _internal_mutable_default_constraint(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.SemanticType semantic_type = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_semantic_type(static_cast<::greptime::v1::SemanticType>(val)); + } else + goto handle_unusual; + continue; + // string comment = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + auto str = _internal_mutable_comment(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ColumnDef.comment")); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnOptions options = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ColumnDef::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ColumnDef) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.ColumnDef.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .greptime.v1.ColumnDataType data_type = 2; + if (this->_internal_data_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_data_type(), target); + } + + // bool is_nullable = 3; + if (this->_internal_is_nullable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_nullable(), target); + } + + // bytes default_constraint = 4; + if (!this->_internal_default_constraint().empty()) { + target = stream->WriteBytesMaybeAliased( + 4, this->_internal_default_constraint(), target); + } + + // .greptime.v1.SemanticType semantic_type = 5; + if (this->_internal_semantic_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 5, this->_internal_semantic_type(), target); + } + + // string comment = 6; + if (!this->_internal_comment().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_comment().data(), static_cast(this->_internal_comment().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.ColumnDef.comment"); + target = stream->WriteStringMaybeAliased( + 6, this->_internal_comment(), target); + } + + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + if (this->_internal_has_datatype_extension()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::datatype_extension(this), + _Internal::datatype_extension(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.ColumnOptions options = 8; + if (this->_internal_has_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::options(this), + _Internal::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); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ColumnDef) + return target; +} + +size_t ColumnDef::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ColumnDef) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // bytes default_constraint = 4; + if (!this->_internal_default_constraint().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( + this->_internal_default_constraint()); + } + + // string comment = 6; + if (!this->_internal_comment().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_comment()); + } + + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + if (this->_internal_has_datatype_extension()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.datatype_extension_); + } + + // .greptime.v1.ColumnOptions options = 8; + if (this->_internal_has_options()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.options_); + } + + // .greptime.v1.ColumnDataType data_type = 2; + if (this->_internal_data_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_data_type()); + } + + // bool is_nullable = 3; + if (this->_internal_is_nullable() != 0) { + total_size += 1 + 1; + } + + // .greptime.v1.SemanticType semantic_type = 5; + if (this->_internal_semantic_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_semantic_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnDef::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ColumnDef::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnDef::GetClassData() const { return &_class_data_; } + + +void ColumnDef::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.ColumnDef) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (!from._internal_default_constraint().empty()) { + _this->_internal_set_default_constraint(from._internal_default_constraint()); + } + if (!from._internal_comment().empty()) { + _this->_internal_set_comment(from._internal_comment()); + } + if (from._internal_has_datatype_extension()) { + _this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( + from._internal_datatype_extension()); + } + if (from._internal_has_options()) { + _this->_internal_mutable_options()->::greptime::v1::ColumnOptions::MergeFrom( + from._internal_options()); + } + if (from._internal_data_type() != 0) { + _this->_internal_set_data_type(from._internal_data_type()); + } + if (from._internal_is_nullable() != 0) { + _this->_internal_set_is_nullable(from._internal_is_nullable()); + } + if (from._internal_semantic_type() != 0) { + _this->_internal_set_semantic_type(from._internal_semantic_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ColumnDef::CopyFrom(const ColumnDef& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ColumnDef) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnDef::IsInitialized() const { + return true; +} + +void ColumnDef::InternalSwap(ColumnDef* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.default_constraint_, lhs_arena, + &other->_impl_.default_constraint_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.comment_, lhs_arena, + &other->_impl_.comment_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.semantic_type_) + + sizeof(ColumnDef::_impl_.semantic_type_) + - PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.datatype_extension_)>( + reinterpret_cast(&_impl_.datatype_extension_), + reinterpret_cast(&other->_impl_.datatype_extension_)); +} + +::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[28]); +} + +// =================================================================== + +class AddColumnLocation::_Internal { + public: +}; + +AddColumnLocation::AddColumnLocation(::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.AddColumnLocation) +} +AddColumnLocation::AddColumnLocation(const AddColumnLocation& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + AddColumnLocation* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.after_column_name_){} + , decltype(_impl_.location_type_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.after_column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.after_column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_after_column_name().empty()) { + _this->_impl_.after_column_name_.Set(from._internal_after_column_name(), + _this->GetArenaForAllocation()); + } + _this->_impl_.location_type_ = from._impl_.location_type_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.AddColumnLocation) +} + +inline void AddColumnLocation::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.after_column_name_){} + , decltype(_impl_.location_type_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.after_column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.after_column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +AddColumnLocation::~AddColumnLocation() { + // @@protoc_insertion_point(destructor:greptime.v1.AddColumnLocation) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void AddColumnLocation::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.after_column_name_.Destroy(); +} + +void AddColumnLocation::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void AddColumnLocation::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.AddColumnLocation) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.after_column_name_.ClearToEmpty(); + _impl_.location_type_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* AddColumnLocation::_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) { + // .greptime.v1.AddColumnLocation.LocationType location_type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_location_type(static_cast<::greptime::v1::AddColumnLocation_LocationType>(val)); + } else + goto handle_unusual; + continue; + // string after_column_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_after_column_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.AddColumnLocation.after_column_name")); } else goto handle_unusual; continue; - // .greptime.v1.SemanticType semantic_type = 5; - case 5: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 40)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_semantic_type(static_cast<::greptime::v1::SemanticType>(val)); - } else - goto handle_unusual; - continue; - // string comment = 6; - case 6: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - auto str = _internal_mutable_comment(); + 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* AddColumnLocation::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddColumnLocation) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.AddColumnLocation.LocationType location_type = 1; + if (this->_internal_location_type() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_location_type(), target); + } + + // string after_column_name = 2; + if (!this->_internal_after_column_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_after_column_name().data(), static_cast(this->_internal_after_column_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.AddColumnLocation.after_column_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_after_column_name(), 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.AddColumnLocation) + return target; +} + +size_t AddColumnLocation::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddColumnLocation) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string after_column_name = 2; + if (!this->_internal_after_column_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_after_column_name()); + } + + // .greptime.v1.AddColumnLocation.LocationType location_type = 1; + if (this->_internal_location_type() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_location_type()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddColumnLocation::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + AddColumnLocation::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddColumnLocation::GetClassData() const { return &_class_data_; } + + +void AddColumnLocation::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.AddColumnLocation) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_after_column_name().empty()) { + _this->_internal_set_after_column_name(from._internal_after_column_name()); + } + if (from._internal_location_type() != 0) { + _this->_internal_set_location_type(from._internal_location_type()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void AddColumnLocation::CopyFrom(const AddColumnLocation& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddColumnLocation) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool AddColumnLocation::IsInitialized() const { + return true; +} + +void AddColumnLocation::InternalSwap(AddColumnLocation* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.after_column_name_, lhs_arena, + &other->_impl_.after_column_name_, rhs_arena + ); + swap(_impl_.location_type_, other->_impl_.location_type_); +} + +::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[29]); +} + +// =================================================================== + +class SetColumnFulltext::_Internal { + public: +}; + +SetColumnFulltext::SetColumnFulltext(::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.SetColumnFulltext) +} +SetColumnFulltext::SetColumnFulltext(const SetColumnFulltext& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + SetColumnFulltext* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.analyzer_){} + , decltype(_impl_.enable_){} + , decltype(_impl_.case_sensitive_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.analyzer_, &from._impl_.analyzer_, + static_cast(reinterpret_cast(&_impl_.case_sensitive_) - + reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.SetColumnFulltext) +} + +inline void SetColumnFulltext::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.column_name_){} + , decltype(_impl_.analyzer_){0} + , decltype(_impl_.enable_){false} + , decltype(_impl_.case_sensitive_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.column_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.column_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +SetColumnFulltext::~SetColumnFulltext() { + // @@protoc_insertion_point(destructor:greptime.v1.SetColumnFulltext) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void SetColumnFulltext::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.column_name_.Destroy(); +} + +void SetColumnFulltext::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void SetColumnFulltext::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SetColumnFulltext) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.column_name_.ClearToEmpty(); + ::memset(&_impl_.analyzer_, 0, static_cast( + reinterpret_cast(&_impl_.case_sensitive_) - + reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* SetColumnFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string column_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.ColumnDef.comment")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.SetColumnFulltext.column_name")); } else goto handle_unusual; continue; - // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; - case 7: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { - ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr); + // bool enable = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; continue; - // .greptime.v1.ColumnOptions options = 8; - case 8: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { - ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); + // .greptime.v1.Analyzer analyzer = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_analyzer(static_cast<::greptime::v1::Analyzer>(val)); + } else + goto handle_unusual; + continue; + // bool case_sensitive = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.case_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); CHK_(ptr); } else goto handle_unusual; @@ -9348,279 +10532,194 @@ const char* ColumnDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx #undef CHK_ } -uint8_t* ColumnDef::_InternalSerialize( +uint8_t* SetColumnFulltext::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ColumnDef) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetColumnFulltext) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // string name = 1; - if (!this->_internal_name().empty()) { + // string column_name = 1; + if (!this->_internal_column_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_name().data(), static_cast(this->_internal_name().length()), + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.ColumnDef.name"); + "greptime.v1.SetColumnFulltext.column_name"); target = stream->WriteStringMaybeAliased( - 1, this->_internal_name(), target); - } - - // .greptime.v1.ColumnDataType data_type = 2; - if (this->_internal_data_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 2, this->_internal_data_type(), target); + 1, this->_internal_column_name(), target); } - // bool is_nullable = 3; - if (this->_internal_is_nullable() != 0) { + // bool enable = 2; + if (this->_internal_enable() != 0) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_nullable(), target); - } - - // bytes default_constraint = 4; - if (!this->_internal_default_constraint().empty()) { - target = stream->WriteBytesMaybeAliased( - 4, this->_internal_default_constraint(), target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_enable(), target); } - // .greptime.v1.SemanticType semantic_type = 5; - if (this->_internal_semantic_type() != 0) { + // .greptime.v1.Analyzer analyzer = 3; + if (this->_internal_analyzer() != 0) { target = stream->EnsureSpace(target); target = ::_pbi::WireFormatLite::WriteEnumToArray( - 5, this->_internal_semantic_type(), target); - } - - // string comment = 6; - if (!this->_internal_comment().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_comment().data(), static_cast(this->_internal_comment().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.ColumnDef.comment"); - target = stream->WriteStringMaybeAliased( - 6, this->_internal_comment(), target); - } - - // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; - if (this->_internal_has_datatype_extension()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(7, _Internal::datatype_extension(this), - _Internal::datatype_extension(this).GetCachedSize(), target, stream); + 3, this->_internal_analyzer(), target); } - // .greptime.v1.ColumnOptions options = 8; - if (this->_internal_has_options()) { - target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(8, _Internal::options(this), - _Internal::options(this).GetCachedSize(), target, stream); + // bool case_sensitive = 4; + if (this->_internal_case_sensitive() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_case_sensitive(), target); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ColumnDef) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SetColumnFulltext) return target; } -size_t ColumnDef::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ColumnDef) +size_t SetColumnFulltext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetColumnFulltext) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string name = 1; - if (!this->_internal_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_name()); - } - - // bytes default_constraint = 4; - if (!this->_internal_default_constraint().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( - this->_internal_default_constraint()); - } - - // string comment = 6; - if (!this->_internal_comment().empty()) { + // string column_name = 1; + if (!this->_internal_column_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_comment()); - } - - // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; - if (this->_internal_has_datatype_extension()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.datatype_extension_); - } - - // .greptime.v1.ColumnOptions options = 8; - if (this->_internal_has_options()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.options_); + this->_internal_column_name()); } - // .greptime.v1.ColumnDataType data_type = 2; - if (this->_internal_data_type() != 0) { + // .greptime.v1.Analyzer analyzer = 3; + if (this->_internal_analyzer() != 0) { total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_data_type()); + ::_pbi::WireFormatLite::EnumSize(this->_internal_analyzer()); } - // bool is_nullable = 3; - if (this->_internal_is_nullable() != 0) { + // bool enable = 2; + if (this->_internal_enable() != 0) { total_size += 1 + 1; } - // .greptime.v1.SemanticType semantic_type = 5; - if (this->_internal_semantic_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_semantic_type()); + // bool case_sensitive = 4; + if (this->_internal_case_sensitive() != 0) { + total_size += 1 + 1; } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnDef::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetColumnFulltext::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - ColumnDef::MergeImpl + SetColumnFulltext::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnDef::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetColumnFulltext::GetClassData() const { return &_class_data_; } -void ColumnDef::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.ColumnDef) +void SetColumnFulltext::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.SetColumnFulltext) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_name().empty()) { - _this->_internal_set_name(from._internal_name()); - } - if (!from._internal_default_constraint().empty()) { - _this->_internal_set_default_constraint(from._internal_default_constraint()); - } - if (!from._internal_comment().empty()) { - _this->_internal_set_comment(from._internal_comment()); - } - if (from._internal_has_datatype_extension()) { - _this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( - from._internal_datatype_extension()); - } - if (from._internal_has_options()) { - _this->_internal_mutable_options()->::greptime::v1::ColumnOptions::MergeFrom( - from._internal_options()); + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); } - if (from._internal_data_type() != 0) { - _this->_internal_set_data_type(from._internal_data_type()); + if (from._internal_analyzer() != 0) { + _this->_internal_set_analyzer(from._internal_analyzer()); } - if (from._internal_is_nullable() != 0) { - _this->_internal_set_is_nullable(from._internal_is_nullable()); + if (from._internal_enable() != 0) { + _this->_internal_set_enable(from._internal_enable()); } - if (from._internal_semantic_type() != 0) { - _this->_internal_set_semantic_type(from._internal_semantic_type()); + if (from._internal_case_sensitive() != 0) { + _this->_internal_set_case_sensitive(from._internal_case_sensitive()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void ColumnDef::CopyFrom(const ColumnDef& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ColumnDef) +void SetColumnFulltext::CopyFrom(const SetColumnFulltext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetColumnFulltext) if (&from == this) return; Clear(); MergeFrom(from); } -bool ColumnDef::IsInitialized() const { +bool SetColumnFulltext::IsInitialized() const { return true; } -void ColumnDef::InternalSwap(ColumnDef* other) { +void SetColumnFulltext::InternalSwap(SetColumnFulltext* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.name_, lhs_arena, - &other->_impl_.name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.default_constraint_, lhs_arena, - &other->_impl_.default_constraint_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.comment_, lhs_arena, - &other->_impl_.comment_, rhs_arena + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.semantic_type_) - + sizeof(ColumnDef::_impl_.semantic_type_) - - PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.datatype_extension_)>( - reinterpret_cast(&_impl_.datatype_extension_), - reinterpret_cast(&other->_impl_.datatype_extension_)); + PROTOBUF_FIELD_OFFSET(SetColumnFulltext, _impl_.case_sensitive_) + + sizeof(SetColumnFulltext::_impl_.case_sensitive_) + - PROTOBUF_FIELD_OFFSET(SetColumnFulltext, _impl_.analyzer_)>( + reinterpret_cast(&_impl_.analyzer_), + reinterpret_cast(&other->_impl_.analyzer_)); } -::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const { +::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[26]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[30]); } // =================================================================== -class AddColumnLocation::_Internal { +class UnsetColumnFulltext::_Internal { public: }; -AddColumnLocation::AddColumnLocation(::PROTOBUF_NAMESPACE_ID::Arena* arena, +UnsetColumnFulltext::UnsetColumnFulltext(::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.AddColumnLocation) + // @@protoc_insertion_point(arena_constructor:greptime.v1.UnsetColumnFulltext) } -AddColumnLocation::AddColumnLocation(const AddColumnLocation& from) +UnsetColumnFulltext::UnsetColumnFulltext(const UnsetColumnFulltext& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - AddColumnLocation* const _this = this; (void)_this; + UnsetColumnFulltext* const _this = this; (void)_this; new (&_impl_) Impl_{ - decltype(_impl_.after_column_name_){} - , decltype(_impl_.location_type_){} + decltype(_impl_.column_name_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.after_column_name_.InitDefault(); + _impl_.column_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.after_column_name_.Set("", GetArenaForAllocation()); + _impl_.column_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_after_column_name().empty()) { - _this->_impl_.after_column_name_.Set(from._internal_after_column_name(), + if (!from._internal_column_name().empty()) { + _this->_impl_.column_name_.Set(from._internal_column_name(), _this->GetArenaForAllocation()); } - _this->_impl_.location_type_ = from._impl_.location_type_; - // @@protoc_insertion_point(copy_constructor:greptime.v1.AddColumnLocation) + // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetColumnFulltext) } -inline void AddColumnLocation::SharedCtor( +inline void UnsetColumnFulltext::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - decltype(_impl_.after_column_name_){} - , decltype(_impl_.location_type_){0} + decltype(_impl_.column_name_){} , /*decltype(_impl_._cached_size_)*/{} }; - _impl_.after_column_name_.InitDefault(); + _impl_.column_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.after_column_name_.Set("", GetArenaForAllocation()); + _impl_.column_name_.Set("", GetArenaForAllocation()); #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -AddColumnLocation::~AddColumnLocation() { - // @@protoc_insertion_point(destructor:greptime.v1.AddColumnLocation) +UnsetColumnFulltext::~UnsetColumnFulltext() { + // @@protoc_insertion_point(destructor:greptime.v1.UnsetColumnFulltext) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -9628,48 +10727,38 @@ AddColumnLocation::~AddColumnLocation() { SharedDtor(); } -inline void AddColumnLocation::SharedDtor() { +inline void UnsetColumnFulltext::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.after_column_name_.Destroy(); + _impl_.column_name_.Destroy(); } -void AddColumnLocation::SetCachedSize(int size) const { +void UnsetColumnFulltext::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void AddColumnLocation::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.AddColumnLocation) +void UnsetColumnFulltext::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.UnsetColumnFulltext) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.after_column_name_.ClearToEmpty(); - _impl_.location_type_ = 0; + _impl_.column_name_.ClearToEmpty(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* AddColumnLocation::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* UnsetColumnFulltext::_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) { - // .greptime.v1.AddColumnLocation.LocationType location_type = 1; + // string column_name = 1; case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_location_type(static_cast<::greptime::v1::AddColumnLocation_LocationType>(val)); - } else - goto handle_unusual; - continue; - // string after_column_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_after_column_name(); + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_column_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.AddColumnLocation.after_column_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.UnsetColumnFulltext.column_name")); } else goto handle_unusual; continue; @@ -9696,134 +10785,114 @@ const char* AddColumnLocation::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* AddColumnLocation::_InternalSerialize( +uint8_t* UnsetColumnFulltext::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.AddColumnLocation) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetColumnFulltext) uint32_t cached_has_bits = 0; (void) cached_has_bits; - // .greptime.v1.AddColumnLocation.LocationType location_type = 1; - if (this->_internal_location_type() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 1, this->_internal_location_type(), target); - } - - // string after_column_name = 2; - if (!this->_internal_after_column_name().empty()) { + // string column_name = 1; + if (!this->_internal_column_name().empty()) { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_after_column_name().data(), static_cast(this->_internal_after_column_name().length()), + this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.AddColumnLocation.after_column_name"); + "greptime.v1.UnsetColumnFulltext.column_name"); target = stream->WriteStringMaybeAliased( - 2, this->_internal_after_column_name(), target); + 1, this->_internal_column_name(), 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.AddColumnLocation) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.UnsetColumnFulltext) return target; } -size_t AddColumnLocation::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.AddColumnLocation) +size_t UnsetColumnFulltext::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.UnsetColumnFulltext) size_t total_size = 0; uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // string after_column_name = 2; - if (!this->_internal_after_column_name().empty()) { + // string column_name = 1; + if (!this->_internal_column_name().empty()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_after_column_name()); - } - - // .greptime.v1.AddColumnLocation.LocationType location_type = 1; - if (this->_internal_location_type() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_location_type()); + this->_internal_column_name()); } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AddColumnLocation::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetColumnFulltext::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - AddColumnLocation::MergeImpl + UnsetColumnFulltext::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AddColumnLocation::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetColumnFulltext::GetClassData() const { return &_class_data_; } -void AddColumnLocation::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.AddColumnLocation) +void UnsetColumnFulltext::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.UnsetColumnFulltext) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; - if (!from._internal_after_column_name().empty()) { - _this->_internal_set_after_column_name(from._internal_after_column_name()); - } - if (from._internal_location_type() != 0) { - _this->_internal_set_location_type(from._internal_location_type()); + if (!from._internal_column_name().empty()) { + _this->_internal_set_column_name(from._internal_column_name()); } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void AddColumnLocation::CopyFrom(const AddColumnLocation& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.AddColumnLocation) +void UnsetColumnFulltext::CopyFrom(const UnsetColumnFulltext& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.UnsetColumnFulltext) if (&from == this) return; Clear(); MergeFrom(from); } -bool AddColumnLocation::IsInitialized() const { +bool UnsetColumnFulltext::IsInitialized() const { return true; } -void AddColumnLocation::InternalSwap(AddColumnLocation* other) { +void UnsetColumnFulltext::InternalSwap(UnsetColumnFulltext* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.after_column_name_, lhs_arena, - &other->_impl_.after_column_name_, rhs_arena + &_impl_.column_name_, lhs_arena, + &other->_impl_.column_name_, rhs_arena ); - swap(_impl_.location_type_, other->_impl_.location_type_); } -::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const { +::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[27]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[31]); } // =================================================================== -class SetColumnFulltext::_Internal { +class SetColumnInvertedIndex::_Internal { public: }; -SetColumnFulltext::SetColumnFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, +SetColumnInvertedIndex::SetColumnInvertedIndex(::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.SetColumnFulltext) + // @@protoc_insertion_point(arena_constructor:greptime.v1.SetColumnInvertedIndex) } -SetColumnFulltext::SetColumnFulltext(const SetColumnFulltext& from) +SetColumnInvertedIndex::SetColumnInvertedIndex(const SetColumnInvertedIndex& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - SetColumnFulltext* const _this = this; (void)_this; + SetColumnInvertedIndex* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.column_name_){} - , decltype(_impl_.analyzer_){} - , decltype(_impl_.enable_){} - , decltype(_impl_.case_sensitive_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -9835,21 +10904,15 @@ SetColumnFulltext::SetColumnFulltext(const SetColumnFulltext& from) _this->_impl_.column_name_.Set(from._internal_column_name(), _this->GetArenaForAllocation()); } - ::memcpy(&_impl_.analyzer_, &from._impl_.analyzer_, - static_cast(reinterpret_cast(&_impl_.case_sensitive_) - - reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_)); - // @@protoc_insertion_point(copy_constructor:greptime.v1.SetColumnFulltext) + // @@protoc_insertion_point(copy_constructor:greptime.v1.SetColumnInvertedIndex) } -inline void SetColumnFulltext::SharedCtor( +inline void SetColumnInvertedIndex::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.column_name_){} - , decltype(_impl_.analyzer_){0} - , decltype(_impl_.enable_){false} - , decltype(_impl_.case_sensitive_){false} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.column_name_.InitDefault(); @@ -9858,8 +10921,8 @@ inline void SetColumnFulltext::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -SetColumnFulltext::~SetColumnFulltext() { - // @@protoc_insertion_point(destructor:greptime.v1.SetColumnFulltext) +SetColumnInvertedIndex::~SetColumnInvertedIndex() { + // @@protoc_insertion_point(destructor:greptime.v1.SetColumnInvertedIndex) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -9867,29 +10930,26 @@ SetColumnFulltext::~SetColumnFulltext() { SharedDtor(); } -inline void SetColumnFulltext::SharedDtor() { +inline void SetColumnInvertedIndex::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.column_name_.Destroy(); } -void SetColumnFulltext::SetCachedSize(int size) const { +void SetColumnInvertedIndex::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void SetColumnFulltext::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.SetColumnFulltext) +void SetColumnInvertedIndex::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.SetColumnInvertedIndex) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; _impl_.column_name_.ClearToEmpty(); - ::memset(&_impl_.analyzer_, 0, static_cast( - reinterpret_cast(&_impl_.case_sensitive_) - - reinterpret_cast(&_impl_.analyzer_)) + sizeof(_impl_.case_sensitive_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* SetColumnFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* SetColumnInvertedIndex::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -9901,32 +10961,7 @@ const char* SetColumnFulltext::_InternalParse(const char* ptr, ::_pbi::ParseCont auto str = _internal_mutable_column_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.SetColumnFulltext.column_name")); - } else - goto handle_unusual; - continue; - // bool enable = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { - _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - } else - goto handle_unusual; - continue; - // .greptime.v1.Analyzer analyzer = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { - uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); - _internal_set_analyzer(static_cast<::greptime::v1::Analyzer>(val)); - } else - goto handle_unusual; - continue; - // bool case_sensitive = 4; - case 4: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { - _impl_.case_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); - CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.SetColumnInvertedIndex.column_name")); } else goto handle_unusual; continue; @@ -9953,9 +10988,9 @@ const char* SetColumnFulltext::_InternalParse(const char* ptr, ::_pbi::ParseCont #undef CHK_ } -uint8_t* SetColumnFulltext::_InternalSerialize( +uint8_t* SetColumnInvertedIndex::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetColumnFulltext) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SetColumnInvertedIndex) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -9964,40 +10999,21 @@ uint8_t* SetColumnFulltext::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.SetColumnFulltext.column_name"); + "greptime.v1.SetColumnInvertedIndex.column_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_column_name(), target); } - // bool enable = 2; - if (this->_internal_enable() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(2, this->_internal_enable(), target); - } - - // .greptime.v1.Analyzer analyzer = 3; - if (this->_internal_analyzer() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteEnumToArray( - 3, this->_internal_analyzer(), target); - } - - // bool case_sensitive = 4; - if (this->_internal_case_sensitive() != 0) { - target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_case_sensitive(), target); - } - if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); } - // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SetColumnFulltext) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.SetColumnInvertedIndex) return target; } -size_t SetColumnFulltext::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetColumnFulltext) +size_t SetColumnInvertedIndex::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SetColumnInvertedIndex) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -10011,36 +11027,20 @@ size_t SetColumnFulltext::ByteSizeLong() const { this->_internal_column_name()); } - // .greptime.v1.Analyzer analyzer = 3; - if (this->_internal_analyzer() != 0) { - total_size += 1 + - ::_pbi::WireFormatLite::EnumSize(this->_internal_analyzer()); - } - - // bool enable = 2; - if (this->_internal_enable() != 0) { - total_size += 1 + 1; - } - - // bool case_sensitive = 4; - if (this->_internal_case_sensitive() != 0) { - total_size += 1 + 1; - } - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetColumnFulltext::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SetColumnInvertedIndex::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SetColumnFulltext::MergeImpl + SetColumnInvertedIndex::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetColumnFulltext::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SetColumnInvertedIndex::GetClassData() const { return &_class_data_; } -void SetColumnFulltext::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.SetColumnFulltext) +void SetColumnInvertedIndex::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.SetColumnInvertedIndex) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -10048,30 +11048,21 @@ void SetColumnFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons if (!from._internal_column_name().empty()) { _this->_internal_set_column_name(from._internal_column_name()); } - if (from._internal_analyzer() != 0) { - _this->_internal_set_analyzer(from._internal_analyzer()); - } - if (from._internal_enable() != 0) { - _this->_internal_set_enable(from._internal_enable()); - } - if (from._internal_case_sensitive() != 0) { - _this->_internal_set_case_sensitive(from._internal_case_sensitive()); - } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void SetColumnFulltext::CopyFrom(const SetColumnFulltext& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetColumnFulltext) +void SetColumnInvertedIndex::CopyFrom(const SetColumnInvertedIndex& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SetColumnInvertedIndex) if (&from == this) return; Clear(); MergeFrom(from); } -bool SetColumnFulltext::IsInitialized() const { +bool SetColumnInvertedIndex::IsInitialized() const { return true; } -void SetColumnFulltext::InternalSwap(SetColumnFulltext* other) { +void SetColumnInvertedIndex::InternalSwap(SetColumnInvertedIndex* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -10080,35 +11071,29 @@ void SetColumnFulltext::InternalSwap(SetColumnFulltext* other) { &_impl_.column_name_, lhs_arena, &other->_impl_.column_name_, rhs_arena ); - ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetColumnFulltext, _impl_.case_sensitive_) - + sizeof(SetColumnFulltext::_impl_.case_sensitive_) - - PROTOBUF_FIELD_OFFSET(SetColumnFulltext, _impl_.analyzer_)>( - reinterpret_cast(&_impl_.analyzer_), - reinterpret_cast(&other->_impl_.analyzer_)); } -::PROTOBUF_NAMESPACE_ID::Metadata SetColumnFulltext::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata SetColumnInvertedIndex::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[32]); } // =================================================================== -class UnsetColumnFulltext::_Internal { +class UnsetColumnInvertedIndex::_Internal { public: }; -UnsetColumnFulltext::UnsetColumnFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, +UnsetColumnInvertedIndex::UnsetColumnInvertedIndex(::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.UnsetColumnFulltext) + // @@protoc_insertion_point(arena_constructor:greptime.v1.UnsetColumnInvertedIndex) } -UnsetColumnFulltext::UnsetColumnFulltext(const UnsetColumnFulltext& from) +UnsetColumnInvertedIndex::UnsetColumnInvertedIndex(const UnsetColumnInvertedIndex& from) : ::PROTOBUF_NAMESPACE_ID::Message() { - UnsetColumnFulltext* const _this = this; (void)_this; + UnsetColumnInvertedIndex* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.column_name_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -10122,10 +11107,10 @@ UnsetColumnFulltext::UnsetColumnFulltext(const UnsetColumnFulltext& from) _this->_impl_.column_name_.Set(from._internal_column_name(), _this->GetArenaForAllocation()); } - // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetColumnFulltext) + // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetColumnInvertedIndex) } -inline void UnsetColumnFulltext::SharedCtor( +inline void UnsetColumnInvertedIndex::SharedCtor( ::_pb::Arena* arena, bool is_message_owned) { (void)arena; (void)is_message_owned; @@ -10139,8 +11124,8 @@ inline void UnsetColumnFulltext::SharedCtor( #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING } -UnsetColumnFulltext::~UnsetColumnFulltext() { - // @@protoc_insertion_point(destructor:greptime.v1.UnsetColumnFulltext) +UnsetColumnInvertedIndex::~UnsetColumnInvertedIndex() { + // @@protoc_insertion_point(destructor:greptime.v1.UnsetColumnInvertedIndex) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; return; @@ -10148,17 +11133,17 @@ UnsetColumnFulltext::~UnsetColumnFulltext() { SharedDtor(); } -inline void UnsetColumnFulltext::SharedDtor() { +inline void UnsetColumnInvertedIndex::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.column_name_.Destroy(); } -void UnsetColumnFulltext::SetCachedSize(int size) const { +void UnsetColumnInvertedIndex::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } -void UnsetColumnFulltext::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.UnsetColumnFulltext) +void UnsetColumnInvertedIndex::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.UnsetColumnInvertedIndex) uint32_t cached_has_bits = 0; // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; @@ -10167,7 +11152,7 @@ void UnsetColumnFulltext::Clear() { _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -const char* UnsetColumnFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +const char* UnsetColumnInvertedIndex::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure while (!ctx->Done(&ptr)) { uint32_t tag; @@ -10179,7 +11164,7 @@ const char* UnsetColumnFulltext::_InternalParse(const char* ptr, ::_pbi::ParseCo auto str = _internal_mutable_column_name(); ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.UnsetColumnFulltext.column_name")); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.UnsetColumnInvertedIndex.column_name")); } else goto handle_unusual; continue; @@ -10206,9 +11191,9 @@ const char* UnsetColumnFulltext::_InternalParse(const char* ptr, ::_pbi::ParseCo #undef CHK_ } -uint8_t* UnsetColumnFulltext::_InternalSerialize( +uint8_t* UnsetColumnInvertedIndex::_InternalSerialize( uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetColumnFulltext) + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetColumnInvertedIndex) uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -10217,7 +11202,7 @@ uint8_t* UnsetColumnFulltext::_InternalSerialize( ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( this->_internal_column_name().data(), static_cast(this->_internal_column_name().length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.UnsetColumnFulltext.column_name"); + "greptime.v1.UnsetColumnInvertedIndex.column_name"); target = stream->WriteStringMaybeAliased( 1, this->_internal_column_name(), target); } @@ -10226,12 +11211,12 @@ uint8_t* UnsetColumnFulltext::_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.UnsetColumnFulltext) + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.UnsetColumnInvertedIndex) return target; } -size_t UnsetColumnFulltext::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.UnsetColumnFulltext) +size_t UnsetColumnInvertedIndex::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.UnsetColumnInvertedIndex) size_t total_size = 0; uint32_t cached_has_bits = 0; @@ -10248,17 +11233,17 @@ size_t UnsetColumnFulltext::ByteSizeLong() const { return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetColumnFulltext::_class_data_ = { +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetColumnInvertedIndex::_class_data_ = { ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - UnsetColumnFulltext::MergeImpl + UnsetColumnInvertedIndex::MergeImpl }; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetColumnFulltext::GetClassData() const { return &_class_data_; } +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetColumnInvertedIndex::GetClassData() const { return &_class_data_; } -void UnsetColumnFulltext::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.UnsetColumnFulltext) +void UnsetColumnInvertedIndex::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.UnsetColumnInvertedIndex) GOOGLE_DCHECK_NE(&from, _this); uint32_t cached_has_bits = 0; (void) cached_has_bits; @@ -10269,18 +11254,18 @@ void UnsetColumnFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, co _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } -void UnsetColumnFulltext::CopyFrom(const UnsetColumnFulltext& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.UnsetColumnFulltext) +void UnsetColumnInvertedIndex::CopyFrom(const UnsetColumnInvertedIndex& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.UnsetColumnInvertedIndex) if (&from == this) return; Clear(); MergeFrom(from); } -bool UnsetColumnFulltext::IsInitialized() const { +bool UnsetColumnInvertedIndex::IsInitialized() const { return true; } -void UnsetColumnFulltext::InternalSwap(UnsetColumnFulltext* other) { +void UnsetColumnInvertedIndex::InternalSwap(UnsetColumnInvertedIndex* other) { using std::swap; auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); @@ -10291,10 +11276,10 @@ void UnsetColumnFulltext::InternalSwap(UnsetColumnFulltext* other) { ); } -::PROTOBUF_NAMESPACE_ID::Metadata UnsetColumnFulltext::GetMetadata() const { +::PROTOBUF_NAMESPACE_ID::Metadata UnsetColumnInvertedIndex::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[29]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[33]); } // =================================================================== @@ -10701,7 +11686,7 @@ void AlterDatabaseExpr::InternalSwap(AlterDatabaseExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AlterDatabaseExpr::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[30]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[34]); } // =================================================================== @@ -10886,7 +11871,7 @@ void SetDatabaseOptions::InternalSwap(SetDatabaseOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SetDatabaseOptions::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[31]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[35]); } // =================================================================== @@ -11076,7 +12061,7 @@ void UnsetDatabaseOptions::InternalSwap(UnsetDatabaseOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata UnsetDatabaseOptions::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[32]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[36]); } // @@protoc_insertion_point(namespace_scope) @@ -11119,6 +12104,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::AlterTableExpr* Arena::CreateMaybeMessage< ::greptime::v1::AlterTableExpr >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::AlterTableExpr >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::SetIndex* +Arena::CreateMaybeMessage< ::greptime::v1::SetIndex >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SetIndex >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::UnsetIndex* +Arena::CreateMaybeMessage< ::greptime::v1::UnsetIndex >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::UnsetIndex >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage< ::greptime::v1::DropTableExpr >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DropTableExpr >(arena); @@ -11203,6 +12196,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::UnsetColumnFulltext* Arena::CreateMaybeMessage< ::greptime::v1::UnsetColumnFulltext >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::UnsetColumnFulltext >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::SetColumnInvertedIndex* +Arena::CreateMaybeMessage< ::greptime::v1::SetColumnInvertedIndex >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::SetColumnInvertedIndex >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::UnsetColumnInvertedIndex* +Arena::CreateMaybeMessage< ::greptime::v1::UnsetColumnInvertedIndex >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::UnsetColumnInvertedIndex >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::AlterDatabaseExpr* Arena::CreateMaybeMessage< ::greptime::v1::AlterDatabaseExpr >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::AlterDatabaseExpr >(arena); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 36ce5cfd..69e8f03f 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -129,9 +129,15 @@ extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; class SetColumnFulltext; struct SetColumnFulltextDefaultTypeInternal; extern SetColumnFulltextDefaultTypeInternal _SetColumnFulltext_default_instance_; +class SetColumnInvertedIndex; +struct SetColumnInvertedIndexDefaultTypeInternal; +extern SetColumnInvertedIndexDefaultTypeInternal _SetColumnInvertedIndex_default_instance_; class SetDatabaseOptions; struct SetDatabaseOptionsDefaultTypeInternal; extern SetDatabaseOptionsDefaultTypeInternal _SetDatabaseOptions_default_instance_; +class SetIndex; +struct SetIndexDefaultTypeInternal; +extern SetIndexDefaultTypeInternal _SetIndex_default_instance_; class SetTableOptions; struct SetTableOptionsDefaultTypeInternal; extern SetTableOptionsDefaultTypeInternal _SetTableOptions_default_instance_; @@ -144,9 +150,15 @@ extern TruncateTableExprDefaultTypeInternal _TruncateTableExpr_default_instance_ class UnsetColumnFulltext; struct UnsetColumnFulltextDefaultTypeInternal; extern UnsetColumnFulltextDefaultTypeInternal _UnsetColumnFulltext_default_instance_; +class UnsetColumnInvertedIndex; +struct UnsetColumnInvertedIndexDefaultTypeInternal; +extern UnsetColumnInvertedIndexDefaultTypeInternal _UnsetColumnInvertedIndex_default_instance_; class UnsetDatabaseOptions; struct UnsetDatabaseOptionsDefaultTypeInternal; extern UnsetDatabaseOptionsDefaultTypeInternal _UnsetDatabaseOptions_default_instance_; +class UnsetIndex; +struct UnsetIndexDefaultTypeInternal; +extern UnsetIndexDefaultTypeInternal _UnsetIndex_default_instance_; class UnsetTableOptions; struct UnsetTableOptionsDefaultTypeInternal; extern UnsetTableOptionsDefaultTypeInternal _UnsetTableOptions_default_instance_; @@ -179,12 +191,16 @@ template<> ::greptime::v1::ModifyColumnTypes* Arena::CreateMaybeMessage<::grepti template<> ::greptime::v1::Option* Arena::CreateMaybeMessage<::greptime::v1::Option>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); template<> ::greptime::v1::SetColumnFulltext* Arena::CreateMaybeMessage<::greptime::v1::SetColumnFulltext>(Arena*); +template<> ::greptime::v1::SetColumnInvertedIndex* Arena::CreateMaybeMessage<::greptime::v1::SetColumnInvertedIndex>(Arena*); template<> ::greptime::v1::SetDatabaseOptions* Arena::CreateMaybeMessage<::greptime::v1::SetDatabaseOptions>(Arena*); +template<> ::greptime::v1::SetIndex* Arena::CreateMaybeMessage<::greptime::v1::SetIndex>(Arena*); template<> ::greptime::v1::SetTableOptions* Arena::CreateMaybeMessage<::greptime::v1::SetTableOptions>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); template<> ::greptime::v1::UnsetColumnFulltext* Arena::CreateMaybeMessage<::greptime::v1::UnsetColumnFulltext>(Arena*); +template<> ::greptime::v1::UnsetColumnInvertedIndex* Arena::CreateMaybeMessage<::greptime::v1::UnsetColumnInvertedIndex>(Arena*); template<> ::greptime::v1::UnsetDatabaseOptions* Arena::CreateMaybeMessage<::greptime::v1::UnsetDatabaseOptions>(Arena*); +template<> ::greptime::v1::UnsetIndex* Arena::CreateMaybeMessage<::greptime::v1::UnsetIndex>(Arena*); template<> ::greptime::v1::UnsetTableOptions* Arena::CreateMaybeMessage<::greptime::v1::UnsetTableOptions>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { @@ -2091,9 +2107,9 @@ class AlterTableExpr final : kRenameTable = 6, kModifyColumnTypes = 7, kSetTableOptions = 8, - kSetColumnFulltext = 9, - kUnsetColumnFulltext = 10, kUnsetTableOptions = 11, + kSetIndex = 12, + kUnsetIndex = 13, KIND_NOT_SET = 0, }; @@ -2183,9 +2199,9 @@ class AlterTableExpr final : kRenameTableFieldNumber = 6, kModifyColumnTypesFieldNumber = 7, kSetTableOptionsFieldNumber = 8, - kSetColumnFulltextFieldNumber = 9, - kUnsetColumnFulltextFieldNumber = 10, kUnsetTableOptionsFieldNumber = 11, + kSetIndexFieldNumber = 12, + kUnsetIndexFieldNumber = 13, }; // string catalog_name = 1; void clear_catalog_name(); @@ -2319,42 +2335,6 @@ class AlterTableExpr final : ::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; - private: - bool _internal_has_set_column_fulltext() const; - public: - void clear_set_column_fulltext(); - const ::greptime::v1::SetColumnFulltext& set_column_fulltext() const; - PROTOBUF_NODISCARD ::greptime::v1::SetColumnFulltext* release_set_column_fulltext(); - ::greptime::v1::SetColumnFulltext* mutable_set_column_fulltext(); - void set_allocated_set_column_fulltext(::greptime::v1::SetColumnFulltext* set_column_fulltext); - private: - const ::greptime::v1::SetColumnFulltext& _internal_set_column_fulltext() const; - ::greptime::v1::SetColumnFulltext* _internal_mutable_set_column_fulltext(); - public: - void unsafe_arena_set_allocated_set_column_fulltext( - ::greptime::v1::SetColumnFulltext* set_column_fulltext); - ::greptime::v1::SetColumnFulltext* unsafe_arena_release_set_column_fulltext(); - - // .greptime.v1.UnsetColumnFulltext unset_column_fulltext = 10; - bool has_unset_column_fulltext() const; - private: - bool _internal_has_unset_column_fulltext() const; - public: - void clear_unset_column_fulltext(); - const ::greptime::v1::UnsetColumnFulltext& unset_column_fulltext() const; - PROTOBUF_NODISCARD ::greptime::v1::UnsetColumnFulltext* release_unset_column_fulltext(); - ::greptime::v1::UnsetColumnFulltext* mutable_unset_column_fulltext(); - void set_allocated_unset_column_fulltext(::greptime::v1::UnsetColumnFulltext* unset_column_fulltext); - private: - const ::greptime::v1::UnsetColumnFulltext& _internal_unset_column_fulltext() const; - ::greptime::v1::UnsetColumnFulltext* _internal_mutable_unset_column_fulltext(); - public: - void unsafe_arena_set_allocated_unset_column_fulltext( - ::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: @@ -2373,6 +2353,42 @@ class AlterTableExpr final : ::greptime::v1::UnsetTableOptions* unset_table_options); ::greptime::v1::UnsetTableOptions* unsafe_arena_release_unset_table_options(); + // .greptime.v1.SetIndex set_index = 12; + bool has_set_index() const; + private: + bool _internal_has_set_index() const; + public: + void clear_set_index(); + const ::greptime::v1::SetIndex& set_index() const; + PROTOBUF_NODISCARD ::greptime::v1::SetIndex* release_set_index(); + ::greptime::v1::SetIndex* mutable_set_index(); + void set_allocated_set_index(::greptime::v1::SetIndex* set_index); + private: + const ::greptime::v1::SetIndex& _internal_set_index() const; + ::greptime::v1::SetIndex* _internal_mutable_set_index(); + public: + void unsafe_arena_set_allocated_set_index( + ::greptime::v1::SetIndex* set_index); + ::greptime::v1::SetIndex* unsafe_arena_release_set_index(); + + // .greptime.v1.UnsetIndex unset_index = 13; + bool has_unset_index() const; + private: + bool _internal_has_unset_index() const; + public: + void clear_unset_index(); + const ::greptime::v1::UnsetIndex& unset_index() const; + PROTOBUF_NODISCARD ::greptime::v1::UnsetIndex* release_unset_index(); + ::greptime::v1::UnsetIndex* mutable_unset_index(); + void set_allocated_unset_index(::greptime::v1::UnsetIndex* unset_index); + private: + const ::greptime::v1::UnsetIndex& _internal_unset_index() const; + ::greptime::v1::UnsetIndex* _internal_mutable_unset_index(); + public: + void unsafe_arena_set_allocated_unset_index( + ::greptime::v1::UnsetIndex* unset_index); + ::greptime::v1::UnsetIndex* unsafe_arena_release_unset_index(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.AlterTableExpr) @@ -2383,9 +2399,9 @@ class AlterTableExpr final : void set_has_rename_table(); void set_has_modify_column_types(); void set_has_set_table_options(); - void set_has_set_column_fulltext(); - void set_has_unset_column_fulltext(); void set_has_unset_table_options(); + void set_has_set_index(); + void set_has_unset_index(); inline bool has_kind() const; inline void clear_has_kind(); @@ -2405,9 +2421,9 @@ class AlterTableExpr final : ::greptime::v1::RenameTable* rename_table_; ::greptime::v1::ModifyColumnTypes* modify_column_types_; ::greptime::v1::SetTableOptions* set_table_options_; - ::greptime::v1::SetColumnFulltext* set_column_fulltext_; - ::greptime::v1::UnsetColumnFulltext* unset_column_fulltext_; ::greptime::v1::UnsetTableOptions* unset_table_options_; + ::greptime::v1::SetIndex* set_index_; + ::greptime::v1::UnsetIndex* unset_index_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -2418,24 +2434,24 @@ class AlterTableExpr final : }; // ------------------------------------------------------------------- -class DropTableExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropTableExpr) */ { +class SetIndex final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetIndex) */ { public: - inline DropTableExpr() : DropTableExpr(nullptr) {} - ~DropTableExpr() override; - explicit PROTOBUF_CONSTEXPR DropTableExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline SetIndex() : SetIndex(nullptr) {} + ~SetIndex() override; + explicit PROTOBUF_CONSTEXPR SetIndex(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - DropTableExpr(const DropTableExpr& from); - DropTableExpr(DropTableExpr&& from) noexcept - : DropTableExpr() { + SetIndex(const SetIndex& from); + SetIndex(SetIndex&& from) noexcept + : SetIndex() { *this = ::std::move(from); } - inline DropTableExpr& operator=(const DropTableExpr& from) { + inline SetIndex& operator=(const SetIndex& from) { CopyFrom(from); return *this; } - inline DropTableExpr& operator=(DropTableExpr&& from) noexcept { + inline SetIndex& operator=(SetIndex&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2458,20 +2474,20 @@ class DropTableExpr final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DropTableExpr& default_instance() { + static const SetIndex& default_instance() { return *internal_default_instance(); } - static inline const DropTableExpr* internal_default_instance() { - return reinterpret_cast( - &_DropTableExpr_default_instance_); + static inline const SetIndex* internal_default_instance() { + return reinterpret_cast( + &_SetIndex_default_instance_); } static constexpr int kIndexInFileMessages = 9; - friend void swap(DropTableExpr& a, DropTableExpr& b) { + friend void swap(SetIndex& a, SetIndex& b) { a.Swap(&b); } - inline void Swap(DropTableExpr* other) { + inline void Swap(SetIndex* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2484,7 +2500,7 @@ class DropTableExpr final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DropTableExpr* other) { + void UnsafeArenaSwap(SetIndex* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2492,14 +2508,14 @@ class DropTableExpr final : // implements Message ---------------------------------------------- - DropTableExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + SetIndex* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropTableExpr& from); + void CopyFrom(const SetIndex& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropTableExpr& from) { - DropTableExpr::MergeImpl(*this, from); + void MergeFrom( const SetIndex& from) { + SetIndex::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -2517,15 +2533,15 @@ class DropTableExpr final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(DropTableExpr* other); + void InternalSwap(SetIndex* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.DropTableExpr"; + return "greptime.v1.SetIndex"; } protected: - explicit DropTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit SetIndex(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2539,82 +2555,46 @@ class DropTableExpr final : // accessors ------------------------------------------------------- enum : int { - kCatalogNameFieldNumber = 1, - kSchemaNameFieldNumber = 2, - kTableNameFieldNumber = 3, - kTableIdFieldNumber = 4, - kDropIfExistsFieldNumber = 5, + kSetColumnFulltextFieldNumber = 1, + kSetColumnInvertedIndexFieldNumber = 2, }; - // string catalog_name = 1; - void clear_catalog_name(); - const std::string& catalog_name() const; - template - void set_catalog_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_catalog_name(); - PROTOBUF_NODISCARD std::string* release_catalog_name(); - void set_allocated_catalog_name(std::string* catalog_name); - private: - const std::string& _internal_catalog_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); - std::string* _internal_mutable_catalog_name(); - public: - - // string schema_name = 2; - void clear_schema_name(); - const std::string& schema_name() const; - template - void set_schema_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_schema_name(); - PROTOBUF_NODISCARD std::string* release_schema_name(); - void set_allocated_schema_name(std::string* schema_name); + // .greptime.v1.SetColumnFulltext set_column_fulltext = 1; + bool has_set_column_fulltext() const; private: - const std::string& _internal_schema_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); - std::string* _internal_mutable_schema_name(); + bool _internal_has_set_column_fulltext() const; public: - - // string table_name = 3; - void clear_table_name(); - const std::string& table_name() const; - template - void set_table_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_table_name(); - PROTOBUF_NODISCARD std::string* release_table_name(); - void set_allocated_table_name(std::string* table_name); + void clear_set_column_fulltext(); + const ::greptime::v1::SetColumnFulltext& set_column_fulltext() const; + PROTOBUF_NODISCARD ::greptime::v1::SetColumnFulltext* release_set_column_fulltext(); + ::greptime::v1::SetColumnFulltext* mutable_set_column_fulltext(); + void set_allocated_set_column_fulltext(::greptime::v1::SetColumnFulltext* set_column_fulltext); private: - const std::string& _internal_table_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); - std::string* _internal_mutable_table_name(); + const ::greptime::v1::SetColumnFulltext& _internal_set_column_fulltext() const; + ::greptime::v1::SetColumnFulltext* _internal_mutable_set_column_fulltext(); public: + void unsafe_arena_set_allocated_set_column_fulltext( + ::greptime::v1::SetColumnFulltext* set_column_fulltext); + ::greptime::v1::SetColumnFulltext* unsafe_arena_release_set_column_fulltext(); - // .greptime.v1.TableId table_id = 4; - bool has_table_id() const; - private: - bool _internal_has_table_id() const; - public: - void clear_table_id(); - const ::greptime::v1::TableId& table_id() const; - PROTOBUF_NODISCARD ::greptime::v1::TableId* release_table_id(); - ::greptime::v1::TableId* mutable_table_id(); - void set_allocated_table_id(::greptime::v1::TableId* table_id); + // .greptime.v1.SetColumnInvertedIndex set_column_inverted_index = 2; + bool has_set_column_inverted_index() const; private: - const ::greptime::v1::TableId& _internal_table_id() const; - ::greptime::v1::TableId* _internal_mutable_table_id(); + bool _internal_has_set_column_inverted_index() const; public: - void unsafe_arena_set_allocated_table_id( - ::greptime::v1::TableId* table_id); - ::greptime::v1::TableId* unsafe_arena_release_table_id(); - - // bool drop_if_exists = 5; - void clear_drop_if_exists(); - bool drop_if_exists() const; - void set_drop_if_exists(bool value); + void clear_set_column_inverted_index(); + const ::greptime::v1::SetColumnInvertedIndex& set_column_inverted_index() const; + PROTOBUF_NODISCARD ::greptime::v1::SetColumnInvertedIndex* release_set_column_inverted_index(); + ::greptime::v1::SetColumnInvertedIndex* mutable_set_column_inverted_index(); + void set_allocated_set_column_inverted_index(::greptime::v1::SetColumnInvertedIndex* set_column_inverted_index); private: - bool _internal_drop_if_exists() const; - void _internal_set_drop_if_exists(bool value); + const ::greptime::v1::SetColumnInvertedIndex& _internal_set_column_inverted_index() const; + ::greptime::v1::SetColumnInvertedIndex* _internal_mutable_set_column_inverted_index(); public: + void unsafe_arena_set_allocated_set_column_inverted_index( + ::greptime::v1::SetColumnInvertedIndex* set_column_inverted_index); + ::greptime::v1::SetColumnInvertedIndex* unsafe_arena_release_set_column_inverted_index(); - // @@protoc_insertion_point(class_scope:greptime.v1.DropTableExpr) + // @@protoc_insertion_point(class_scope:greptime.v1.SetIndex) private: class _Internal; @@ -2622,11 +2602,8 @@ class DropTableExpr final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; - ::greptime::v1::TableId* table_id_; - bool drop_if_exists_; + ::greptime::v1::SetColumnFulltext* set_column_fulltext_; + ::greptime::v1::SetColumnInvertedIndex* set_column_inverted_index_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2634,52 +2611,24 @@ class DropTableExpr final : }; // ------------------------------------------------------------------- -class CreateDatabaseExpr_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - CreateDatabaseExpr_OptionsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR CreateDatabaseExpr_OptionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit CreateDatabaseExpr_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const CreateDatabaseExpr_OptionsEntry_DoNotUse& other); - static const CreateDatabaseExpr_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CreateDatabaseExpr_OptionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.CreateDatabaseExpr.OptionsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.CreateDatabaseExpr.OptionsEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; -}; - -// ------------------------------------------------------------------- - -class CreateDatabaseExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.CreateDatabaseExpr) */ { +class UnsetIndex final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.UnsetIndex) */ { public: - inline CreateDatabaseExpr() : CreateDatabaseExpr(nullptr) {} - ~CreateDatabaseExpr() override; - explicit PROTOBUF_CONSTEXPR CreateDatabaseExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline UnsetIndex() : UnsetIndex(nullptr) {} + ~UnsetIndex() override; + explicit PROTOBUF_CONSTEXPR UnsetIndex(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - CreateDatabaseExpr(const CreateDatabaseExpr& from); - CreateDatabaseExpr(CreateDatabaseExpr&& from) noexcept - : CreateDatabaseExpr() { + UnsetIndex(const UnsetIndex& from); + UnsetIndex(UnsetIndex&& from) noexcept + : UnsetIndex() { *this = ::std::move(from); } - inline CreateDatabaseExpr& operator=(const CreateDatabaseExpr& from) { + inline UnsetIndex& operator=(const UnsetIndex& from) { CopyFrom(from); return *this; } - inline CreateDatabaseExpr& operator=(CreateDatabaseExpr&& from) noexcept { + inline UnsetIndex& operator=(UnsetIndex&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2702,20 +2651,20 @@ class CreateDatabaseExpr final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const CreateDatabaseExpr& default_instance() { + static const UnsetIndex& default_instance() { return *internal_default_instance(); } - static inline const CreateDatabaseExpr* internal_default_instance() { - return reinterpret_cast( - &_CreateDatabaseExpr_default_instance_); + static inline const UnsetIndex* internal_default_instance() { + return reinterpret_cast( + &_UnsetIndex_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 10; - friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) { + friend void swap(UnsetIndex& a, UnsetIndex& b) { a.Swap(&b); } - inline void Swap(CreateDatabaseExpr* other) { + inline void Swap(UnsetIndex* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2728,7 +2677,7 @@ class CreateDatabaseExpr final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(CreateDatabaseExpr* other) { + void UnsafeArenaSwap(UnsetIndex* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2736,14 +2685,14 @@ class CreateDatabaseExpr final : // implements Message ---------------------------------------------- - CreateDatabaseExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + UnsetIndex* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const CreateDatabaseExpr& from); + void CopyFrom(const UnsetIndex& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const CreateDatabaseExpr& from) { - CreateDatabaseExpr::MergeImpl(*this, from); + void MergeFrom( const UnsetIndex& from) { + UnsetIndex::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -2761,18 +2710,16 @@ class CreateDatabaseExpr final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(CreateDatabaseExpr* other); + void InternalSwap(UnsetIndex* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.CreateDatabaseExpr"; + return "greptime.v1.UnsetIndex"; } protected: - explicit CreateDatabaseExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit UnsetIndex(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -2782,70 +2729,49 @@ class CreateDatabaseExpr final : // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kOptionsFieldNumber = 4, - kCatalogNameFieldNumber = 1, - kSchemaNameFieldNumber = 2, - kCreateIfNotExistsFieldNumber = 3, + kUnsetColumnFulltextFieldNumber = 1, + kUnsetColumnInvertedIndexFieldNumber = 2, }; - // map options = 4; - int options_size() const; + // .greptime.v1.UnsetColumnFulltext unset_column_fulltext = 1; + bool has_unset_column_fulltext() const; private: - int _internal_options_size() const; + bool _internal_has_unset_column_fulltext() const; public: - void clear_options(); + void clear_unset_column_fulltext(); + const ::greptime::v1::UnsetColumnFulltext& unset_column_fulltext() const; + PROTOBUF_NODISCARD ::greptime::v1::UnsetColumnFulltext* release_unset_column_fulltext(); + ::greptime::v1::UnsetColumnFulltext* mutable_unset_column_fulltext(); + void set_allocated_unset_column_fulltext(::greptime::v1::UnsetColumnFulltext* unset_column_fulltext); private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_options() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_options(); + const ::greptime::v1::UnsetColumnFulltext& _internal_unset_column_fulltext() const; + ::greptime::v1::UnsetColumnFulltext* _internal_mutable_unset_column_fulltext(); public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - options() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_options(); + void unsafe_arena_set_allocated_unset_column_fulltext( + ::greptime::v1::UnsetColumnFulltext* unset_column_fulltext); + ::greptime::v1::UnsetColumnFulltext* unsafe_arena_release_unset_column_fulltext(); - // string catalog_name = 1; - void clear_catalog_name(); - const std::string& catalog_name() const; - template - void set_catalog_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_catalog_name(); - PROTOBUF_NODISCARD std::string* release_catalog_name(); - void set_allocated_catalog_name(std::string* catalog_name); + // .greptime.v1.UnsetColumnInvertedIndex unset_column_inverted_index = 2; + bool has_unset_column_inverted_index() const; private: - const std::string& _internal_catalog_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); - std::string* _internal_mutable_catalog_name(); + bool _internal_has_unset_column_inverted_index() const; public: - - // string schema_name = 2; - void clear_schema_name(); - const std::string& schema_name() const; - template - void set_schema_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_schema_name(); - PROTOBUF_NODISCARD std::string* release_schema_name(); - void set_allocated_schema_name(std::string* schema_name); + void clear_unset_column_inverted_index(); + const ::greptime::v1::UnsetColumnInvertedIndex& unset_column_inverted_index() const; + PROTOBUF_NODISCARD ::greptime::v1::UnsetColumnInvertedIndex* release_unset_column_inverted_index(); + ::greptime::v1::UnsetColumnInvertedIndex* mutable_unset_column_inverted_index(); + void set_allocated_unset_column_inverted_index(::greptime::v1::UnsetColumnInvertedIndex* unset_column_inverted_index); private: - const std::string& _internal_schema_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); - std::string* _internal_mutable_schema_name(); - public: - - // bool create_if_not_exists = 3; - void clear_create_if_not_exists(); - bool create_if_not_exists() const; - void set_create_if_not_exists(bool value); - private: - bool _internal_create_if_not_exists() const; - void _internal_set_create_if_not_exists(bool value); + const ::greptime::v1::UnsetColumnInvertedIndex& _internal_unset_column_inverted_index() const; + ::greptime::v1::UnsetColumnInvertedIndex* _internal_mutable_unset_column_inverted_index(); public: + void unsafe_arena_set_allocated_unset_column_inverted_index( + ::greptime::v1::UnsetColumnInvertedIndex* unset_column_inverted_index); + ::greptime::v1::UnsetColumnInvertedIndex* unsafe_arena_release_unset_column_inverted_index(); - // @@protoc_insertion_point(class_scope:greptime.v1.CreateDatabaseExpr) + // @@protoc_insertion_point(class_scope:greptime.v1.UnsetIndex) private: class _Internal; @@ -2853,14 +2779,8 @@ class CreateDatabaseExpr final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - CreateDatabaseExpr_OptionsEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; - bool create_if_not_exists_; + ::greptime::v1::UnsetColumnFulltext* unset_column_fulltext_; + ::greptime::v1::UnsetColumnInvertedIndex* unset_column_inverted_index_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2868,24 +2788,24 @@ class CreateDatabaseExpr final : }; // ------------------------------------------------------------------- -class TruncateTableExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.TruncateTableExpr) */ { +class DropTableExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropTableExpr) */ { public: - inline TruncateTableExpr() : TruncateTableExpr(nullptr) {} - ~TruncateTableExpr() override; - explicit PROTOBUF_CONSTEXPR TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DropTableExpr() : DropTableExpr(nullptr) {} + ~DropTableExpr() override; + explicit PROTOBUF_CONSTEXPR DropTableExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - TruncateTableExpr(const TruncateTableExpr& from); - TruncateTableExpr(TruncateTableExpr&& from) noexcept - : TruncateTableExpr() { + DropTableExpr(const DropTableExpr& from); + DropTableExpr(DropTableExpr&& from) noexcept + : DropTableExpr() { *this = ::std::move(from); } - inline TruncateTableExpr& operator=(const TruncateTableExpr& from) { + inline DropTableExpr& operator=(const DropTableExpr& from) { CopyFrom(from); return *this; } - inline TruncateTableExpr& operator=(TruncateTableExpr&& from) noexcept { + inline DropTableExpr& operator=(DropTableExpr&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -2908,20 +2828,20 @@ class TruncateTableExpr final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const TruncateTableExpr& default_instance() { + static const DropTableExpr& default_instance() { return *internal_default_instance(); } - static inline const TruncateTableExpr* internal_default_instance() { - return reinterpret_cast( - &_TruncateTableExpr_default_instance_); + static inline const DropTableExpr* internal_default_instance() { + return reinterpret_cast( + &_DropTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 11; - friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) { + friend void swap(DropTableExpr& a, DropTableExpr& b) { a.Swap(&b); } - inline void Swap(TruncateTableExpr* other) { + inline void Swap(DropTableExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -2934,7 +2854,7 @@ class TruncateTableExpr final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(TruncateTableExpr* other) { + void UnsafeArenaSwap(DropTableExpr* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -2942,14 +2862,14 @@ class TruncateTableExpr final : // implements Message ---------------------------------------------- - TruncateTableExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DropTableExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TruncateTableExpr& from); + void CopyFrom(const DropTableExpr& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TruncateTableExpr& from) { - TruncateTableExpr::MergeImpl(*this, from); + void MergeFrom( const DropTableExpr& from) { + DropTableExpr::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -2967,15 +2887,15 @@ class TruncateTableExpr final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(TruncateTableExpr* other); + void InternalSwap(DropTableExpr* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.TruncateTableExpr"; + return "greptime.v1.DropTableExpr"; } protected: - explicit TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DropTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -2993,6 +2913,7 @@ class TruncateTableExpr final : kSchemaNameFieldNumber = 2, kTableNameFieldNumber = 3, kTableIdFieldNumber = 4, + kDropIfExistsFieldNumber = 5, }; // string catalog_name = 1; void clear_catalog_name(); @@ -3054,7 +2975,16 @@ class TruncateTableExpr final : ::greptime::v1::TableId* table_id); ::greptime::v1::TableId* unsafe_arena_release_table_id(); - // @@protoc_insertion_point(class_scope:greptime.v1.TruncateTableExpr) + // bool drop_if_exists = 5; + void clear_drop_if_exists(); + bool drop_if_exists() const; + void set_drop_if_exists(bool value); + private: + bool _internal_drop_if_exists() const; + void _internal_set_drop_if_exists(bool value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.DropTableExpr) private: class _Internal; @@ -3066,6 +2996,7 @@ class TruncateTableExpr final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; ::greptime::v1::TableId* table_id_; + bool drop_if_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -3073,24 +3004,52 @@ class TruncateTableExpr final : }; // ------------------------------------------------------------------- -class DropDatabaseExpr final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropDatabaseExpr) */ { +class CreateDatabaseExpr_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + CreateDatabaseExpr_OptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR CreateDatabaseExpr_OptionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit CreateDatabaseExpr_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const CreateDatabaseExpr_OptionsEntry_DoNotUse& other); + static const CreateDatabaseExpr_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_CreateDatabaseExpr_OptionsEntry_DoNotUse_default_instance_); } + static bool ValidateKey(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.CreateDatabaseExpr.OptionsEntry.key"); + } + static bool ValidateValue(std::string* s) { + return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.CreateDatabaseExpr.OptionsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; + +// ------------------------------------------------------------------- + +class CreateDatabaseExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.CreateDatabaseExpr) */ { public: - inline DropDatabaseExpr() : DropDatabaseExpr(nullptr) {} - ~DropDatabaseExpr() override; - explicit PROTOBUF_CONSTEXPR DropDatabaseExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline CreateDatabaseExpr() : CreateDatabaseExpr(nullptr) {} + ~CreateDatabaseExpr() override; + explicit PROTOBUF_CONSTEXPR CreateDatabaseExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - DropDatabaseExpr(const DropDatabaseExpr& from); - DropDatabaseExpr(DropDatabaseExpr&& from) noexcept - : DropDatabaseExpr() { + CreateDatabaseExpr(const CreateDatabaseExpr& from); + CreateDatabaseExpr(CreateDatabaseExpr&& from) noexcept + : CreateDatabaseExpr() { *this = ::std::move(from); } - inline DropDatabaseExpr& operator=(const DropDatabaseExpr& from) { + inline CreateDatabaseExpr& operator=(const CreateDatabaseExpr& from) { CopyFrom(from); return *this; } - inline DropDatabaseExpr& operator=(DropDatabaseExpr&& from) noexcept { + inline CreateDatabaseExpr& operator=(CreateDatabaseExpr&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3113,20 +3072,20 @@ class DropDatabaseExpr final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DropDatabaseExpr& default_instance() { + static const CreateDatabaseExpr& default_instance() { return *internal_default_instance(); } - static inline const DropDatabaseExpr* internal_default_instance() { - return reinterpret_cast( - &_DropDatabaseExpr_default_instance_); + static inline const CreateDatabaseExpr* internal_default_instance() { + return reinterpret_cast( + &_CreateDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = 13; - friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) { + friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) { a.Swap(&b); } - inline void Swap(DropDatabaseExpr* other) { + inline void Swap(CreateDatabaseExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3139,7 +3098,7 @@ class DropDatabaseExpr final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DropDatabaseExpr* other) { + void UnsafeArenaSwap(CreateDatabaseExpr* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3147,14 +3106,14 @@ class DropDatabaseExpr final : // implements Message ---------------------------------------------- - DropDatabaseExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + CreateDatabaseExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropDatabaseExpr& from); + void CopyFrom(const CreateDatabaseExpr& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropDatabaseExpr& from) { - DropDatabaseExpr::MergeImpl(*this, from); + void MergeFrom( const CreateDatabaseExpr& from) { + CreateDatabaseExpr::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3172,16 +3131,18 @@ class DropDatabaseExpr final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(DropDatabaseExpr* other); + void InternalSwap(CreateDatabaseExpr* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.DropDatabaseExpr"; + return "greptime.v1.CreateDatabaseExpr"; } protected: - explicit DropDatabaseExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit CreateDatabaseExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); + private: + static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -3191,13 +3152,32 @@ class DropDatabaseExpr final : // nested types ---------------------------------------------------- + // accessors ------------------------------------------------------- enum : int { + kOptionsFieldNumber = 4, kCatalogNameFieldNumber = 1, kSchemaNameFieldNumber = 2, - kDropIfExistsFieldNumber = 3, + kCreateIfNotExistsFieldNumber = 3, }; + // map options = 4; + int options_size() const; + private: + int _internal_options_size() const; + public: + void clear_options(); + private: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + _internal_options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + _internal_mutable_options(); + public: + const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& + options() const; + ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* + mutable_options(); + // string catalog_name = 1; void clear_catalog_name(); const std::string& catalog_name() const; @@ -3226,16 +3206,16 @@ class DropDatabaseExpr final : std::string* _internal_mutable_schema_name(); public: - // bool drop_if_exists = 3; - void clear_drop_if_exists(); - bool drop_if_exists() const; - void set_drop_if_exists(bool value); + // bool create_if_not_exists = 3; + void clear_create_if_not_exists(); + bool create_if_not_exists() const; + void set_create_if_not_exists(bool value); private: - bool _internal_drop_if_exists() const; - void _internal_set_drop_if_exists(bool value); + bool _internal_create_if_not_exists() const; + void _internal_set_create_if_not_exists(bool value); public: - // @@protoc_insertion_point(class_scope:greptime.v1.DropDatabaseExpr) + // @@protoc_insertion_point(class_scope:greptime.v1.CreateDatabaseExpr) private: class _Internal; @@ -3243,9 +3223,14 @@ class DropDatabaseExpr final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + CreateDatabaseExpr_OptionsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; - bool drop_if_exists_; + bool create_if_not_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -3253,24 +3238,24 @@ class DropDatabaseExpr final : }; // ------------------------------------------------------------------- -class AddColumns final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddColumns) */ { +class TruncateTableExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.TruncateTableExpr) */ { public: - inline AddColumns() : AddColumns(nullptr) {} - ~AddColumns() override; - explicit PROTOBUF_CONSTEXPR AddColumns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline TruncateTableExpr() : TruncateTableExpr(nullptr) {} + ~TruncateTableExpr() override; + explicit PROTOBUF_CONSTEXPR TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - AddColumns(const AddColumns& from); - AddColumns(AddColumns&& from) noexcept - : AddColumns() { + TruncateTableExpr(const TruncateTableExpr& from); + TruncateTableExpr(TruncateTableExpr&& from) noexcept + : TruncateTableExpr() { *this = ::std::move(from); } - inline AddColumns& operator=(const AddColumns& from) { + inline TruncateTableExpr& operator=(const TruncateTableExpr& from) { CopyFrom(from); return *this; } - inline AddColumns& operator=(AddColumns&& from) noexcept { + inline TruncateTableExpr& operator=(TruncateTableExpr&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3293,20 +3278,20 @@ class AddColumns final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddColumns& default_instance() { + static const TruncateTableExpr& default_instance() { return *internal_default_instance(); } - static inline const AddColumns* internal_default_instance() { - return reinterpret_cast( - &_AddColumns_default_instance_); + static inline const TruncateTableExpr* internal_default_instance() { + return reinterpret_cast( + &_TruncateTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = 14; - friend void swap(AddColumns& a, AddColumns& b) { + friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) { a.Swap(&b); } - inline void Swap(AddColumns* other) { + inline void Swap(TruncateTableExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3319,7 +3304,7 @@ class AddColumns final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddColumns* other) { + void UnsafeArenaSwap(TruncateTableExpr* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3327,14 +3312,14 @@ class AddColumns final : // implements Message ---------------------------------------------- - AddColumns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + TruncateTableExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AddColumns& from); + void CopyFrom(const TruncateTableExpr& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AddColumns& from) { - AddColumns::MergeImpl(*this, from); + void MergeFrom( const TruncateTableExpr& from) { + TruncateTableExpr::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3352,15 +3337,15 @@ class AddColumns final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(AddColumns* other); + void InternalSwap(TruncateTableExpr* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.AddColumns"; + return "greptime.v1.TruncateTableExpr"; } protected: - explicit AddColumns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3374,27 +3359,72 @@ class AddColumns final : // accessors ------------------------------------------------------- enum : int { - kAddColumnsFieldNumber = 1, + kCatalogNameFieldNumber = 1, + kSchemaNameFieldNumber = 2, + kTableNameFieldNumber = 3, + kTableIdFieldNumber = 4, }; - // repeated .greptime.v1.AddColumn add_columns = 1; - int add_columns_size() const; + // string catalog_name = 1; + void clear_catalog_name(); + const std::string& catalog_name() const; + template + void set_catalog_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_catalog_name(); + PROTOBUF_NODISCARD std::string* release_catalog_name(); + void set_allocated_catalog_name(std::string* catalog_name); private: - int _internal_add_columns_size() const; + const std::string& _internal_catalog_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); + std::string* _internal_mutable_catalog_name(); public: - void clear_add_columns(); - ::greptime::v1::AddColumn* mutable_add_columns(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddColumn >* - mutable_add_columns(); + + // string schema_name = 2; + void clear_schema_name(); + const std::string& schema_name() const; + template + void set_schema_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_schema_name(); + PROTOBUF_NODISCARD std::string* release_schema_name(); + void set_allocated_schema_name(std::string* schema_name); private: - const ::greptime::v1::AddColumn& _internal_add_columns(int index) const; - ::greptime::v1::AddColumn* _internal_add_add_columns(); + const std::string& _internal_schema_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); + std::string* _internal_mutable_schema_name(); public: - const ::greptime::v1::AddColumn& add_columns(int index) const; - ::greptime::v1::AddColumn* add_add_columns(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddColumn >& - add_columns() const; - // @@protoc_insertion_point(class_scope:greptime.v1.AddColumns) + // string table_name = 3; + void clear_table_name(); + const std::string& table_name() const; + template + void set_table_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_table_name(); + PROTOBUF_NODISCARD std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); + private: + const std::string& _internal_table_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); + std::string* _internal_mutable_table_name(); + public: + + // .greptime.v1.TableId table_id = 4; + bool has_table_id() const; + private: + bool _internal_has_table_id() const; + public: + void clear_table_id(); + const ::greptime::v1::TableId& table_id() const; + PROTOBUF_NODISCARD ::greptime::v1::TableId* release_table_id(); + ::greptime::v1::TableId* mutable_table_id(); + void set_allocated_table_id(::greptime::v1::TableId* table_id); + private: + const ::greptime::v1::TableId& _internal_table_id() const; + ::greptime::v1::TableId* _internal_mutable_table_id(); + public: + void unsafe_arena_set_allocated_table_id( + ::greptime::v1::TableId* table_id); + ::greptime::v1::TableId* unsafe_arena_release_table_id(); + + // @@protoc_insertion_point(class_scope:greptime.v1.TruncateTableExpr) private: class _Internal; @@ -3402,7 +3432,10 @@ class AddColumns final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddColumn > add_columns_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + ::greptime::v1::TableId* table_id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -3410,24 +3443,24 @@ class AddColumns final : }; // ------------------------------------------------------------------- -class DropColumns final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumns) */ { +class DropDatabaseExpr final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropDatabaseExpr) */ { public: - inline DropColumns() : DropColumns(nullptr) {} - ~DropColumns() override; - explicit PROTOBUF_CONSTEXPR DropColumns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DropDatabaseExpr() : DropDatabaseExpr(nullptr) {} + ~DropDatabaseExpr() override; + explicit PROTOBUF_CONSTEXPR DropDatabaseExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - DropColumns(const DropColumns& from); - DropColumns(DropColumns&& from) noexcept - : DropColumns() { + DropDatabaseExpr(const DropDatabaseExpr& from); + DropDatabaseExpr(DropDatabaseExpr&& from) noexcept + : DropDatabaseExpr() { *this = ::std::move(from); } - inline DropColumns& operator=(const DropColumns& from) { + inline DropDatabaseExpr& operator=(const DropDatabaseExpr& from) { CopyFrom(from); return *this; } - inline DropColumns& operator=(DropColumns&& from) noexcept { + inline DropDatabaseExpr& operator=(DropDatabaseExpr&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3450,20 +3483,20 @@ class DropColumns final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const DropColumns& default_instance() { + static const DropDatabaseExpr& default_instance() { return *internal_default_instance(); } - static inline const DropColumns* internal_default_instance() { - return reinterpret_cast( - &_DropColumns_default_instance_); + static inline const DropDatabaseExpr* internal_default_instance() { + return reinterpret_cast( + &_DropDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = 15; - friend void swap(DropColumns& a, DropColumns& b) { + friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) { a.Swap(&b); } - inline void Swap(DropColumns* other) { + inline void Swap(DropDatabaseExpr* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3476,7 +3509,7 @@ class DropColumns final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(DropColumns* other) { + void UnsafeArenaSwap(DropDatabaseExpr* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3484,14 +3517,14 @@ class DropColumns final : // implements Message ---------------------------------------------- - DropColumns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DropDatabaseExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const DropColumns& from); + void CopyFrom(const DropDatabaseExpr& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const DropColumns& from) { - DropColumns::MergeImpl(*this, from); + void MergeFrom( const DropDatabaseExpr& from) { + DropDatabaseExpr::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3509,15 +3542,15 @@ class DropColumns final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(DropColumns* other); + void InternalSwap(DropDatabaseExpr* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.DropColumns"; + return "greptime.v1.DropDatabaseExpr"; } protected: - explicit DropColumns(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DropDatabaseExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3531,27 +3564,48 @@ class DropColumns final : // accessors ------------------------------------------------------- enum : int { - kDropColumnsFieldNumber = 1, + kCatalogNameFieldNumber = 1, + kSchemaNameFieldNumber = 2, + kDropIfExistsFieldNumber = 3, }; - // repeated .greptime.v1.DropColumn drop_columns = 1; - int drop_columns_size() const; + // string catalog_name = 1; + void clear_catalog_name(); + const std::string& catalog_name() const; + template + void set_catalog_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_catalog_name(); + PROTOBUF_NODISCARD std::string* release_catalog_name(); + void set_allocated_catalog_name(std::string* catalog_name); private: - int _internal_drop_columns_size() const; + const std::string& _internal_catalog_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); + std::string* _internal_mutable_catalog_name(); public: - void clear_drop_columns(); - ::greptime::v1::DropColumn* mutable_drop_columns(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropColumn >* - mutable_drop_columns(); + + // string schema_name = 2; + void clear_schema_name(); + const std::string& schema_name() const; + template + void set_schema_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_schema_name(); + PROTOBUF_NODISCARD std::string* release_schema_name(); + void set_allocated_schema_name(std::string* schema_name); private: - const ::greptime::v1::DropColumn& _internal_drop_columns(int index) const; - ::greptime::v1::DropColumn* _internal_add_drop_columns(); + const std::string& _internal_schema_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); + std::string* _internal_mutable_schema_name(); public: - const ::greptime::v1::DropColumn& drop_columns(int index) const; - ::greptime::v1::DropColumn* add_drop_columns(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropColumn >& - drop_columns() const; - // @@protoc_insertion_point(class_scope:greptime.v1.DropColumns) + // bool drop_if_exists = 3; + void clear_drop_if_exists(); + bool drop_if_exists() const; + void set_drop_if_exists(bool value); + private: + bool _internal_drop_if_exists() const; + void _internal_set_drop_if_exists(bool value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.DropDatabaseExpr) private: class _Internal; @@ -3559,7 +3613,9 @@ class DropColumns final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropColumn > drop_columns_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; + bool drop_if_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -3567,24 +3623,24 @@ class DropColumns final : }; // ------------------------------------------------------------------- -class ModifyColumnTypes final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ModifyColumnTypes) */ { +class AddColumns final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddColumns) */ { public: - inline ModifyColumnTypes() : ModifyColumnTypes(nullptr) {} - ~ModifyColumnTypes() override; - explicit PROTOBUF_CONSTEXPR ModifyColumnTypes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline AddColumns() : AddColumns(nullptr) {} + ~AddColumns() override; + explicit PROTOBUF_CONSTEXPR AddColumns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ModifyColumnTypes(const ModifyColumnTypes& from); - ModifyColumnTypes(ModifyColumnTypes&& from) noexcept - : ModifyColumnTypes() { + AddColumns(const AddColumns& from); + AddColumns(AddColumns&& from) noexcept + : AddColumns() { *this = ::std::move(from); } - inline ModifyColumnTypes& operator=(const ModifyColumnTypes& from) { + inline AddColumns& operator=(const AddColumns& from) { CopyFrom(from); return *this; } - inline ModifyColumnTypes& operator=(ModifyColumnTypes&& from) noexcept { + inline AddColumns& operator=(AddColumns&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3607,20 +3663,20 @@ class ModifyColumnTypes final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ModifyColumnTypes& default_instance() { + static const AddColumns& default_instance() { return *internal_default_instance(); } - static inline const ModifyColumnTypes* internal_default_instance() { - return reinterpret_cast( - &_ModifyColumnTypes_default_instance_); + static inline const AddColumns* internal_default_instance() { + return reinterpret_cast( + &_AddColumns_default_instance_); } static constexpr int kIndexInFileMessages = 16; - friend void swap(ModifyColumnTypes& a, ModifyColumnTypes& b) { + friend void swap(AddColumns& a, AddColumns& b) { a.Swap(&b); } - inline void Swap(ModifyColumnTypes* other) { + inline void Swap(AddColumns* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3633,7 +3689,7 @@ class ModifyColumnTypes final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ModifyColumnTypes* other) { + void UnsafeArenaSwap(AddColumns* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3641,14 +3697,14 @@ class ModifyColumnTypes final : // implements Message ---------------------------------------------- - ModifyColumnTypes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + AddColumns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ModifyColumnTypes& from); + void CopyFrom(const AddColumns& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ModifyColumnTypes& from) { - ModifyColumnTypes::MergeImpl(*this, from); + void MergeFrom( const AddColumns& from) { + AddColumns::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3666,15 +3722,15 @@ class ModifyColumnTypes final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ModifyColumnTypes* other); + void InternalSwap(AddColumns* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.ModifyColumnTypes"; + return "greptime.v1.AddColumns"; } protected: - explicit ModifyColumnTypes(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit AddColumns(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3688,27 +3744,27 @@ class ModifyColumnTypes final : // accessors ------------------------------------------------------- enum : int { - kModifyColumnTypesFieldNumber = 1, + kAddColumnsFieldNumber = 1, }; - // repeated .greptime.v1.ModifyColumnType modify_column_types = 1; - int modify_column_types_size() const; + // repeated .greptime.v1.AddColumn add_columns = 1; + int add_columns_size() const; private: - int _internal_modify_column_types_size() const; + int _internal_add_columns_size() const; public: - void clear_modify_column_types(); - ::greptime::v1::ModifyColumnType* mutable_modify_column_types(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType >* - mutable_modify_column_types(); + void clear_add_columns(); + ::greptime::v1::AddColumn* mutable_add_columns(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddColumn >* + mutable_add_columns(); private: - const ::greptime::v1::ModifyColumnType& _internal_modify_column_types(int index) const; - ::greptime::v1::ModifyColumnType* _internal_add_modify_column_types(); + const ::greptime::v1::AddColumn& _internal_add_columns(int index) const; + ::greptime::v1::AddColumn* _internal_add_add_columns(); public: - const ::greptime::v1::ModifyColumnType& modify_column_types(int index) const; - ::greptime::v1::ModifyColumnType* add_modify_column_types(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType >& - modify_column_types() const; + const ::greptime::v1::AddColumn& add_columns(int index) const; + ::greptime::v1::AddColumn* add_add_columns(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddColumn >& + add_columns() const; - // @@protoc_insertion_point(class_scope:greptime.v1.ModifyColumnTypes) + // @@protoc_insertion_point(class_scope:greptime.v1.AddColumns) private: class _Internal; @@ -3716,7 +3772,7 @@ class ModifyColumnTypes final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType > modify_column_types_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::AddColumn > add_columns_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -3724,24 +3780,24 @@ class ModifyColumnTypes final : }; // ------------------------------------------------------------------- -class RenameTable final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RenameTable) */ { +class DropColumns final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumns) */ { public: - inline RenameTable() : RenameTable(nullptr) {} - ~RenameTable() override; - explicit PROTOBUF_CONSTEXPR RenameTable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline DropColumns() : DropColumns(nullptr) {} + ~DropColumns() override; + explicit PROTOBUF_CONSTEXPR DropColumns(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - RenameTable(const RenameTable& from); - RenameTable(RenameTable&& from) noexcept - : RenameTable() { + DropColumns(const DropColumns& from); + DropColumns(DropColumns&& from) noexcept + : DropColumns() { *this = ::std::move(from); } - inline RenameTable& operator=(const RenameTable& from) { + inline DropColumns& operator=(const DropColumns& from) { CopyFrom(from); return *this; } - inline RenameTable& operator=(RenameTable&& from) noexcept { + inline DropColumns& operator=(DropColumns&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3764,20 +3820,20 @@ class RenameTable final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const RenameTable& default_instance() { + static const DropColumns& default_instance() { return *internal_default_instance(); } - static inline const RenameTable* internal_default_instance() { - return reinterpret_cast( - &_RenameTable_default_instance_); + static inline const DropColumns* internal_default_instance() { + return reinterpret_cast( + &_DropColumns_default_instance_); } static constexpr int kIndexInFileMessages = 17; - friend void swap(RenameTable& a, RenameTable& b) { + friend void swap(DropColumns& a, DropColumns& b) { a.Swap(&b); } - inline void Swap(RenameTable* other) { + inline void Swap(DropColumns* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3790,7 +3846,7 @@ class RenameTable final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(RenameTable* other) { + void UnsafeArenaSwap(DropColumns* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3798,14 +3854,14 @@ class RenameTable final : // implements Message ---------------------------------------------- - RenameTable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + DropColumns* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const RenameTable& from); + void CopyFrom(const DropColumns& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const RenameTable& from) { - RenameTable::MergeImpl(*this, from); + void MergeFrom( const DropColumns& from) { + DropColumns::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3823,15 +3879,15 @@ class RenameTable final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(RenameTable* other); + void InternalSwap(DropColumns* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.RenameTable"; + return "greptime.v1.DropColumns"; } protected: - explicit RenameTable(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit DropColumns(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3845,23 +3901,27 @@ class RenameTable final : // accessors ------------------------------------------------------- enum : int { - kNewTableNameFieldNumber = 1, + kDropColumnsFieldNumber = 1, }; - // string new_table_name = 1; - void clear_new_table_name(); - const std::string& new_table_name() const; - template - void set_new_table_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_new_table_name(); - PROTOBUF_NODISCARD std::string* release_new_table_name(); - void set_allocated_new_table_name(std::string* new_table_name); + // repeated .greptime.v1.DropColumn drop_columns = 1; + int drop_columns_size() const; private: - const std::string& _internal_new_table_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_table_name(const std::string& value); - std::string* _internal_mutable_new_table_name(); + int _internal_drop_columns_size() const; + public: + void clear_drop_columns(); + ::greptime::v1::DropColumn* mutable_drop_columns(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropColumn >* + mutable_drop_columns(); + private: + const ::greptime::v1::DropColumn& _internal_drop_columns(int index) const; + ::greptime::v1::DropColumn* _internal_add_drop_columns(); public: + const ::greptime::v1::DropColumn& drop_columns(int index) const; + ::greptime::v1::DropColumn* add_drop_columns(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropColumn >& + drop_columns() const; - // @@protoc_insertion_point(class_scope:greptime.v1.RenameTable) + // @@protoc_insertion_point(class_scope:greptime.v1.DropColumns) private: class _Internal; @@ -3869,7 +3929,7 @@ class RenameTable final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr new_table_name_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropColumn > drop_columns_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -3877,24 +3937,24 @@ class RenameTable final : }; // ------------------------------------------------------------------- -class AddColumn final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddColumn) */ { +class ModifyColumnTypes final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ModifyColumnTypes) */ { public: - inline AddColumn() : AddColumn(nullptr) {} - ~AddColumn() override; - explicit PROTOBUF_CONSTEXPR AddColumn(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline ModifyColumnTypes() : ModifyColumnTypes(nullptr) {} + ~ModifyColumnTypes() override; + explicit PROTOBUF_CONSTEXPR ModifyColumnTypes(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - AddColumn(const AddColumn& from); - AddColumn(AddColumn&& from) noexcept - : AddColumn() { + ModifyColumnTypes(const ModifyColumnTypes& from); + ModifyColumnTypes(ModifyColumnTypes&& from) noexcept + : ModifyColumnTypes() { *this = ::std::move(from); } - inline AddColumn& operator=(const AddColumn& from) { + inline ModifyColumnTypes& operator=(const ModifyColumnTypes& from) { CopyFrom(from); return *this; } - inline AddColumn& operator=(AddColumn&& from) noexcept { + inline ModifyColumnTypes& operator=(ModifyColumnTypes&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -3917,20 +3977,20 @@ class AddColumn final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const AddColumn& default_instance() { + static const ModifyColumnTypes& default_instance() { return *internal_default_instance(); } - static inline const AddColumn* internal_default_instance() { - return reinterpret_cast( - &_AddColumn_default_instance_); + static inline const ModifyColumnTypes* internal_default_instance() { + return reinterpret_cast( + &_ModifyColumnTypes_default_instance_); } static constexpr int kIndexInFileMessages = 18; - friend void swap(AddColumn& a, AddColumn& b) { + friend void swap(ModifyColumnTypes& a, ModifyColumnTypes& b) { a.Swap(&b); } - inline void Swap(AddColumn* other) { + inline void Swap(ModifyColumnTypes* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -3943,7 +4003,7 @@ class AddColumn final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(AddColumn* other) { + void UnsafeArenaSwap(ModifyColumnTypes* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -3951,14 +4011,14 @@ class AddColumn final : // implements Message ---------------------------------------------- - AddColumn* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + ModifyColumnTypes* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const AddColumn& from); + void CopyFrom(const ModifyColumnTypes& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const AddColumn& from) { - AddColumn::MergeImpl(*this, from); + void MergeFrom( const ModifyColumnTypes& from) { + ModifyColumnTypes::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -3976,15 +4036,15 @@ class AddColumn final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(AddColumn* other); + void InternalSwap(ModifyColumnTypes* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.AddColumn"; + return "greptime.v1.ModifyColumnTypes"; } protected: - explicit AddColumn(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit ModifyColumnTypes(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -3998,46 +4058,27 @@ class AddColumn final : // accessors ------------------------------------------------------- enum : int { - kColumnDefFieldNumber = 1, - kLocationFieldNumber = 3, + kModifyColumnTypesFieldNumber = 1, }; - // .greptime.v1.ColumnDef column_def = 1; - bool has_column_def() const; - private: - bool _internal_has_column_def() const; - public: - void clear_column_def(); - const ::greptime::v1::ColumnDef& column_def() const; - PROTOBUF_NODISCARD ::greptime::v1::ColumnDef* release_column_def(); - ::greptime::v1::ColumnDef* mutable_column_def(); - void set_allocated_column_def(::greptime::v1::ColumnDef* column_def); - private: - const ::greptime::v1::ColumnDef& _internal_column_def() const; - ::greptime::v1::ColumnDef* _internal_mutable_column_def(); - public: - void unsafe_arena_set_allocated_column_def( - ::greptime::v1::ColumnDef* column_def); - ::greptime::v1::ColumnDef* unsafe_arena_release_column_def(); - - // .greptime.v1.AddColumnLocation location = 3; - bool has_location() const; + // repeated .greptime.v1.ModifyColumnType modify_column_types = 1; + int modify_column_types_size() const; private: - bool _internal_has_location() const; + int _internal_modify_column_types_size() const; public: - void clear_location(); - const ::greptime::v1::AddColumnLocation& location() const; - PROTOBUF_NODISCARD ::greptime::v1::AddColumnLocation* release_location(); - ::greptime::v1::AddColumnLocation* mutable_location(); - void set_allocated_location(::greptime::v1::AddColumnLocation* location); + void clear_modify_column_types(); + ::greptime::v1::ModifyColumnType* mutable_modify_column_types(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType >* + mutable_modify_column_types(); private: - const ::greptime::v1::AddColumnLocation& _internal_location() const; - ::greptime::v1::AddColumnLocation* _internal_mutable_location(); + const ::greptime::v1::ModifyColumnType& _internal_modify_column_types(int index) const; + ::greptime::v1::ModifyColumnType* _internal_add_modify_column_types(); public: - void unsafe_arena_set_allocated_location( - ::greptime::v1::AddColumnLocation* location); - ::greptime::v1::AddColumnLocation* unsafe_arena_release_location(); + const ::greptime::v1::ModifyColumnType& modify_column_types(int index) const; + ::greptime::v1::ModifyColumnType* add_modify_column_types(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType >& + modify_column_types() const; - // @@protoc_insertion_point(class_scope:greptime.v1.AddColumn) + // @@protoc_insertion_point(class_scope:greptime.v1.ModifyColumnTypes) private: class _Internal; @@ -4045,8 +4086,7 @@ class AddColumn final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::greptime::v1::ColumnDef* column_def_; - ::greptime::v1::AddColumnLocation* location_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ModifyColumnType > modify_column_types_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -4054,24 +4094,24 @@ class AddColumn final : }; // ------------------------------------------------------------------- -class ModifyColumnType final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ModifyColumnType) */ { +class RenameTable final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RenameTable) */ { public: - inline ModifyColumnType() : ModifyColumnType(nullptr) {} - ~ModifyColumnType() override; - explicit PROTOBUF_CONSTEXPR ModifyColumnType(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline RenameTable() : RenameTable(nullptr) {} + ~RenameTable() override; + explicit PROTOBUF_CONSTEXPR RenameTable(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - ModifyColumnType(const ModifyColumnType& from); - ModifyColumnType(ModifyColumnType&& from) noexcept - : ModifyColumnType() { + RenameTable(const RenameTable& from); + RenameTable(RenameTable&& from) noexcept + : RenameTable() { *this = ::std::move(from); } - inline ModifyColumnType& operator=(const ModifyColumnType& from) { + inline RenameTable& operator=(const RenameTable& from) { CopyFrom(from); return *this; } - inline ModifyColumnType& operator=(ModifyColumnType&& from) noexcept { + inline RenameTable& operator=(RenameTable&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4094,20 +4134,20 @@ class ModifyColumnType final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const ModifyColumnType& default_instance() { + static const RenameTable& default_instance() { return *internal_default_instance(); } - static inline const ModifyColumnType* internal_default_instance() { - return reinterpret_cast( - &_ModifyColumnType_default_instance_); + static inline const RenameTable* internal_default_instance() { + return reinterpret_cast( + &_RenameTable_default_instance_); } static constexpr int kIndexInFileMessages = 19; - friend void swap(ModifyColumnType& a, ModifyColumnType& b) { + friend void swap(RenameTable& a, RenameTable& b) { a.Swap(&b); } - inline void Swap(ModifyColumnType* other) { + inline void Swap(RenameTable* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4120,7 +4160,7 @@ class ModifyColumnType final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(ModifyColumnType* other) { + void UnsafeArenaSwap(RenameTable* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4128,14 +4168,14 @@ class ModifyColumnType final : // implements Message ---------------------------------------------- - ModifyColumnType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); + RenameTable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); } using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const ModifyColumnType& from); + void CopyFrom(const RenameTable& from); using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const ModifyColumnType& from) { - ModifyColumnType::MergeImpl(*this, from); + void MergeFrom( const RenameTable& from) { + RenameTable::MergeImpl(*this, from); } private: static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); @@ -4153,15 +4193,15 @@ class ModifyColumnType final : void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); void SharedDtor(); void SetCachedSize(int size) const final; - void InternalSwap(ModifyColumnType* other); + void InternalSwap(RenameTable* other); private: friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.ModifyColumnType"; + return "greptime.v1.RenameTable"; } protected: - explicit ModifyColumnType(::PROTOBUF_NAMESPACE_ID::Arena* arena, + explicit RenameTable(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); public: @@ -4175,52 +4215,23 @@ class ModifyColumnType final : // accessors ------------------------------------------------------- enum : int { - kColumnNameFieldNumber = 1, - kTargetTypeExtensionFieldNumber = 3, - kTargetTypeFieldNumber = 2, + kNewTableNameFieldNumber = 1, }; - // string column_name = 1; - void clear_column_name(); - const std::string& column_name() const; + // string new_table_name = 1; + void clear_new_table_name(); + const std::string& new_table_name() const; template - void set_column_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_column_name(); - PROTOBUF_NODISCARD std::string* release_column_name(); - void set_allocated_column_name(std::string* column_name); - private: - const std::string& _internal_column_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value); - std::string* _internal_mutable_column_name(); - public: - - // .greptime.v1.ColumnDataTypeExtension target_type_extension = 3; - bool has_target_type_extension() const; - private: - bool _internal_has_target_type_extension() const; - public: - void clear_target_type_extension(); - const ::greptime::v1::ColumnDataTypeExtension& target_type_extension() const; - PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_target_type_extension(); - ::greptime::v1::ColumnDataTypeExtension* mutable_target_type_extension(); - void set_allocated_target_type_extension(::greptime::v1::ColumnDataTypeExtension* target_type_extension); - private: - const ::greptime::v1::ColumnDataTypeExtension& _internal_target_type_extension() const; - ::greptime::v1::ColumnDataTypeExtension* _internal_mutable_target_type_extension(); - public: - void unsafe_arena_set_allocated_target_type_extension( - ::greptime::v1::ColumnDataTypeExtension* target_type_extension); - ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_target_type_extension(); - - // .greptime.v1.ColumnDataType target_type = 2; - void clear_target_type(); - ::greptime::v1::ColumnDataType target_type() const; - void set_target_type(::greptime::v1::ColumnDataType value); + void set_new_table_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_new_table_name(); + PROTOBUF_NODISCARD std::string* release_new_table_name(); + void set_allocated_new_table_name(std::string* new_table_name); private: - ::greptime::v1::ColumnDataType _internal_target_type() const; - void _internal_set_target_type(::greptime::v1::ColumnDataType value); + const std::string& _internal_new_table_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_new_table_name(const std::string& value); + std::string* _internal_mutable_new_table_name(); public: - // @@protoc_insertion_point(class_scope:greptime.v1.ModifyColumnType) + // @@protoc_insertion_point(class_scope:greptime.v1.RenameTable) private: class _Internal; @@ -4228,9 +4239,7 @@ class ModifyColumnType final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; - ::greptime::v1::ColumnDataTypeExtension* target_type_extension_; - int target_type_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr new_table_name_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -4238,24 +4247,24 @@ class ModifyColumnType final : }; // ------------------------------------------------------------------- -class Option final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Option) */ { +class AddColumn final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddColumn) */ { public: - inline Option() : Option(nullptr) {} - ~Option() override; - explicit PROTOBUF_CONSTEXPR Option(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + inline AddColumn() : AddColumn(nullptr) {} + ~AddColumn() override; + explicit PROTOBUF_CONSTEXPR AddColumn(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - Option(const Option& from); - Option(Option&& from) noexcept - : Option() { + AddColumn(const AddColumn& from); + AddColumn(AddColumn&& from) noexcept + : AddColumn() { *this = ::std::move(from); } - inline Option& operator=(const Option& from) { + inline AddColumn& operator=(const AddColumn& from) { CopyFrom(from); return *this; } - inline Option& operator=(Option&& from) noexcept { + inline AddColumn& operator=(AddColumn&& from) noexcept { if (this == &from) return *this; if (GetOwningArena() == from.GetOwningArena() #ifdef PROTOBUF_FORCE_COPY_IN_MOVE @@ -4278,20 +4287,20 @@ class Option final : static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { return default_instance().GetMetadata().reflection; } - static const Option& default_instance() { + static const AddColumn& default_instance() { return *internal_default_instance(); } - static inline const Option* internal_default_instance() { - return reinterpret_cast( - &_Option_default_instance_); + static inline const AddColumn* internal_default_instance() { + return reinterpret_cast( + &_AddColumn_default_instance_); } static constexpr int kIndexInFileMessages = 20; - friend void swap(Option& a, Option& b) { + friend void swap(AddColumn& a, AddColumn& b) { a.Swap(&b); } - inline void Swap(Option* other) { + inline void Swap(AddColumn* other) { if (other == this) return; #ifdef PROTOBUF_FORCE_COPY_IN_SWAP if (GetOwningArena() != nullptr && @@ -4304,7 +4313,7 @@ class Option final : ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); } } - void UnsafeArenaSwap(Option* other) { + void UnsafeArenaSwap(AddColumn* other) { if (other == this) return; GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); InternalSwap(other); @@ -4312,14 +4321,14 @@ class Option final : // implements Message ---------------------------------------------- - Option* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage