From 4031dba205a9726e5b50f037a8b12a667798dcc5 Mon Sep 17 00:00:00 2001 From: irenjj Date: Tue, 8 Oct 2024 21:22:07 +0800 Subject: [PATCH] use struct --- c++/greptime/v1/ddl.pb.cc | 512 ++++-- c++/greptime/v1/ddl.pb.h | 454 +++++- c++/greptime/v1/region/server.pb.cc | 114 +- c++/greptime/v1/region/server.pb.h | 106 +- go/greptime/v1/ddl.pb.go | 369 +++-- java/src/main/java/io/greptime/v1/Ddl.java | 1384 ++++++++++++----- .../java/io/greptime/v1/region/Server.java | 182 +-- proto/greptime/v1/ddl.proto | 8 +- 8 files changed, 2161 insertions(+), 968 deletions(-) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 90a69622..a8a26f02 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -289,21 +289,10 @@ struct ChangeColumnTypesDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_; -PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse( - ::_pbi::ConstantInitialized) {} -struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal { - PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal() {} - union { - ChangeFulltext_OptionsEntry_DoNotUse _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_; PROTOBUF_CONSTEXPR ChangeFulltext::ChangeFulltext( ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} - , /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.options_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct ChangeFulltextDefaultTypeInternal { PROTOBUF_CONSTEXPR ChangeFulltextDefaultTypeInternal() @@ -314,6 +303,21 @@ struct ChangeFulltextDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_; +PROTOBUF_CONSTEXPR FulltextOptions::FulltextOptions( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.analyzer_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.enable_)*/false + , /*decltype(_impl_.case_sensitive_)*/false + , /*decltype(_impl_._cached_size_)*/{}} {} +struct FulltextOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR FulltextOptionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~FulltextOptionsDefaultTypeInternal() {} + union { + FulltextOptions _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FulltextOptionsDefaultTypeInternal _FulltextOptions_default_instance_; PROTOBUF_CONSTEXPR RenameTable::RenameTable( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.new_table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -628,24 +632,23 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeColumnTypes, _impl_.change_column_types_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, _has_bits_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, key_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse, value_), - 0, - 1, + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.column_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.options_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _internal_metadata_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::FulltextOptions, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.column_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::ChangeFulltext, _impl_.options_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::FulltextOptions, _impl_.enable_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::FulltextOptions, _impl_.analyzer_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::FulltextOptions, _impl_.case_sensitive_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::RenameTable, _internal_metadata_), ~0u, // no _extensions_ @@ -732,16 +735,16 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 171, -1, -1, sizeof(::greptime::v1::AddColumns)}, { 178, -1, -1, sizeof(::greptime::v1::DropColumns)}, { 185, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)}, - { 192, 200, -1, sizeof(::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse)}, - { 202, -1, -1, sizeof(::greptime::v1::ChangeFulltext)}, - { 210, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 217, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 225, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, - { 234, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 241, -1, -1, sizeof(::greptime::v1::TableId)}, - { 248, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 255, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 269, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 192, -1, -1, sizeof(::greptime::v1::ChangeFulltext)}, + { 200, -1, -1, sizeof(::greptime::v1::FulltextOptions)}, + { 209, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 216, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 224, -1, -1, sizeof(::greptime::v1::ChangeColumnType)}, + { 233, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 240, -1, -1, sizeof(::greptime::v1::TableId)}, + { 247, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 254, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 268, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -762,8 +765,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_AddColumns_default_instance_._instance, &::greptime::v1::_DropColumns_default_instance_._instance, &::greptime::v1::_ChangeColumnTypes_default_instance_._instance, - &::greptime::v1::_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_ChangeFulltext_default_instance_._instance, + &::greptime::v1::_FulltextOptions_default_instance_._instance, &::greptime::v1::_RenameTable_default_instance_._instance, &::greptime::v1::_AddColumn_default_instance_._instance, &::greptime::v1::_ChangeColumnType_default_instance_._instance, @@ -849,41 +852,41 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013" "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum" "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr" - "eptime.v1.ChangeColumnType\"\220\001\n\016ChangeFul" - "ltext\022\023\n\013column_name\030\001 \001(\t\0229\n\007options\030\002 " - "\003(\0132(.greptime.v1.ChangeFulltext.Options" - "Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" - "lue\030\002 \001(\t:\0028\001\"%\n\013RenameTable\022\026\n\016new_tabl" - "e_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030" - "\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010locatio" - "n\030\003 \001(\0132\036.greptime.v1.AddColumnLocation\"" - "\236\001\n\020ChangeColumnType\022\023\n\013column_name\030\001 \001(" - "\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.Col" - "umnDataType\022C\n\025target_type_extension\030\003 \001" - "(\0132$.greptime.v1.ColumnDataTypeExtension" - "\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022" - "\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tCo" - "lumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\016" - "2\033.greptime.v1.ColumnDataType\022\023\n\013is_null" - "able\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220" - "\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Sema" - "nticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_ex" - "tension\030\007 \001(\0132$.greptime.v1.ColumnDataTy" - "peExtension\022+\n\007options\030\010 \001(\0132\032.greptime." - "v1.ColumnOptions\"\230\001\n\021AddColumnLocation\022B" - "\n\rlocation_type\030\001 \001(\0162+.greptime.v1.AddC" - "olumnLocation.LocationType\022\031\n\021after_colu" - "mn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000" - "\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5gith" - "ub.com/GreptimeTeam/greptime-proto/go/gr" - "eptime/v1b\006proto3" + "eptime.v1.ChangeColumnType\"T\n\016ChangeFull" + "text\022\023\n\013column_name\030\001 \001(\t\022-\n\007options\030\002 \001" + "(\0132\034.greptime.v1.FulltextOptions\"K\n\017Full" + "textOptions\022\016\n\006enable\030\001 \001(\010\022\020\n\010analyzer\030" + "\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"%\n\013RenameT" + "able\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColum" + "n\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu" + "mnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Ad" + "dColumnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013" + "column_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033" + ".greptime.v1.ColumnDataType\022C\n\025target_ty" + "pe_extension\030\003 \001(\0132$.greptime.v1.ColumnD" + "ataTypeExtension\"\032\n\nDropColumn\022\014\n\004name\030\001" + " \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n" + "\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n" + "\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnDat" + "aType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_co" + "nstraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031." + "greptime.v1.SemanticType\022\017\n\007comment\030\006 \001(" + "\t\022@\n\022datatype_extension\030\007 \001(\0132$.greptime" + ".v1.ColumnDataTypeExtension\022+\n\007options\030\010" + " \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021Add" + "ColumnLocation\022B\n\rlocation_type\030\001 \001(\0162+." + "greptime.v1.AddColumnLocation.LocationTy" + "pe\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locatio" + "nType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grepti" + "me.v1B\003DdlZ5github.com/GreptimeTeam/grep" + "time-proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 4057, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 4073, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, "greptime/v1/ddl.proto", &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 27, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -6764,43 +6767,30 @@ ::PROTOBUF_NAMESPACE_ID::Metadata ChangeColumnTypes::GetMetadata() const { // =================================================================== -ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse() {} -ChangeFulltext_OptionsEntry_DoNotUse::ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) - : SuperType(arena) {} -void ChangeFulltext_OptionsEntry_DoNotUse::MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other) { - MergeFromInternal(other); -} -::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext_OptionsEntry_DoNotUse::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, - file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); -} - -// =================================================================== - class ChangeFulltext::_Internal { public: + static const ::greptime::v1::FulltextOptions& options(const ChangeFulltext* msg); }; +const ::greptime::v1::FulltextOptions& +ChangeFulltext::_Internal::options(const ChangeFulltext* msg) { + return *msg->_impl_.options_; +} ChangeFulltext::ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { SharedCtor(arena, is_message_owned); - if (arena != nullptr && !is_message_owned) { - arena->OwnCustomDestructor(this, &ChangeFulltext::ArenaDtor); - } // @@protoc_insertion_point(arena_constructor:greptime.v1.ChangeFulltext) } ChangeFulltext::ChangeFulltext(const ChangeFulltext& from) : ::PROTOBUF_NAMESPACE_ID::Message() { ChangeFulltext* const _this = this; (void)_this; new (&_impl_) Impl_{ - /*decltype(_impl_.options_)*/{} - , decltype(_impl_.column_name_){} + decltype(_impl_.column_name_){} + , decltype(_impl_.options_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _this->_impl_.options_.MergeFrom(from._impl_.options_); _impl_.column_name_.InitDefault(); #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING _impl_.column_name_.Set("", GetArenaForAllocation()); @@ -6809,6 +6799,9 @@ ChangeFulltext::ChangeFulltext(const ChangeFulltext& from) _this->_impl_.column_name_.Set(from._internal_column_name(), _this->GetArenaForAllocation()); } + if (from._internal_has_options()) { + _this->_impl_.options_ = new ::greptime::v1::FulltextOptions(*from._impl_.options_); + } // @@protoc_insertion_point(copy_constructor:greptime.v1.ChangeFulltext) } @@ -6817,8 +6810,8 @@ inline void ChangeFulltext::SharedCtor( (void)arena; (void)is_message_owned; new (&_impl_) Impl_{ - /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} - , decltype(_impl_.column_name_){} + decltype(_impl_.column_name_){} + , decltype(_impl_.options_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.column_name_.InitDefault(); @@ -6831,7 +6824,6 @@ ChangeFulltext::~ChangeFulltext() { // @@protoc_insertion_point(destructor:greptime.v1.ChangeFulltext) if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { (void)arena; - ArenaDtor(this); return; } SharedDtor(); @@ -6839,15 +6831,10 @@ ChangeFulltext::~ChangeFulltext() { inline void ChangeFulltext::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.options_.Destruct(); - _impl_.options_.~MapField(); _impl_.column_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.options_; } -void ChangeFulltext::ArenaDtor(void* object) { - ChangeFulltext* _this = reinterpret_cast< ChangeFulltext* >(object); - _this->_impl_.options_.Destruct(); -} void ChangeFulltext::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } @@ -6858,8 +6845,11 @@ void ChangeFulltext::Clear() { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - _impl_.options_.Clear(); _impl_.column_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -6879,16 +6869,11 @@ const char* ChangeFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext } else goto handle_unusual; continue; - // map options = 2; + // .greptime.v1.FulltextOptions options = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - ptr -= 1; - do { - ptr += 1; - ptr = ctx->ParseMessage(&_impl_.options_, ptr); - CHK_(ptr); - if (!ctx->DataAvailable(ptr)) break; - } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); + ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); + CHK_(ptr); } else goto handle_unusual; continue; @@ -6931,34 +6916,11 @@ uint8_t* ChangeFulltext::_InternalSerialize( 1, this->_internal_column_name(), target); } - // map options = 2; - if (!this->_internal_options().empty()) { - using MapType = ::_pb::Map; - using WireHelper = ChangeFulltext_OptionsEntry_DoNotUse::Funcs; - const auto& map_field = this->_internal_options(); - auto check_utf8 = [](const MapType::value_type& entry) { - (void)entry; - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.first.data(), static_cast(entry.first.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.ChangeFulltext.OptionsEntry.key"); - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - entry.second.data(), static_cast(entry.second.length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.ChangeFulltext.OptionsEntry.value"); - }; - - if (stream->IsSerializationDeterministic() && map_field.size() > 1) { - for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { - target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } else { - for (const auto& entry : map_field) { - target = WireHelper::InternalSerialize(2, entry.first, entry.second, target, stream); - check_utf8(entry); - } - } + // .greptime.v1.FulltextOptions options = 2; + if (this->_internal_has_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::options(this), + _Internal::options(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -6977,15 +6939,6 @@ size_t ChangeFulltext::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // map options = 2; - total_size += 1 * - ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_options_size()); - for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator - it = this->_internal_options().begin(); - it != this->_internal_options().end(); ++it) { - total_size += ChangeFulltext_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); - } - // string column_name = 1; if (!this->_internal_column_name().empty()) { total_size += 1 + @@ -6993,6 +6946,13 @@ size_t ChangeFulltext::ByteSizeLong() const { this->_internal_column_name()); } + // .greptime.v1.FulltextOptions options = 2; + if (this->_internal_has_options()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.options_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -7011,10 +6971,13 @@ void ChangeFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const : uint32_t cached_has_bits = 0; (void) cached_has_bits; - _this->_impl_.options_.MergeFrom(from._impl_.options_); if (!from._internal_column_name().empty()) { _this->_internal_set_column_name(from._internal_column_name()); } + if (from._internal_has_options()) { + _this->_internal_mutable_options()->::greptime::v1::FulltextOptions::MergeFrom( + from._internal_options()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -7034,14 +6997,277 @@ void ChangeFulltext::InternalSwap(ChangeFulltext* other) { auto* lhs_arena = GetArenaForAllocation(); auto* rhs_arena = other->GetArenaForAllocation(); _internal_metadata_.InternalSwap(&other->_internal_metadata_); - _impl_.options_.InternalSwap(&other->_impl_.options_); ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( &_impl_.column_name_, lhs_arena, &other->_impl_.column_name_, rhs_arena ); + swap(_impl_.options_, other->_impl_.options_); } ::PROTOBUF_NAMESPACE_ID::Metadata ChangeFulltext::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); +} + +// =================================================================== + +class FulltextOptions::_Internal { + public: +}; + +FulltextOptions::FulltextOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.FulltextOptions) +} +FulltextOptions::FulltextOptions(const FulltextOptions& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + FulltextOptions* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.analyzer_){} + , decltype(_impl_.enable_){} + , decltype(_impl_.case_sensitive_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.analyzer_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.analyzer_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_analyzer().empty()) { + _this->_impl_.analyzer_.Set(from._internal_analyzer(), + _this->GetArenaForAllocation()); + } + ::memcpy(&_impl_.enable_, &from._impl_.enable_, + static_cast(reinterpret_cast(&_impl_.case_sensitive_) - + reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.FulltextOptions) +} + +inline void FulltextOptions::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.analyzer_){} + , decltype(_impl_.enable_){false} + , decltype(_impl_.case_sensitive_){false} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.analyzer_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.analyzer_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +FulltextOptions::~FulltextOptions() { + // @@protoc_insertion_point(destructor:greptime.v1.FulltextOptions) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void FulltextOptions::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.analyzer_.Destroy(); +} + +void FulltextOptions::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void FulltextOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.FulltextOptions) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.analyzer_.ClearToEmpty(); + ::memset(&_impl_.enable_, 0, static_cast( + reinterpret_cast(&_impl_.case_sensitive_) - + reinterpret_cast(&_impl_.enable_)) + sizeof(_impl_.case_sensitive_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* FulltextOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // bool enable = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.enable_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // string analyzer = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_analyzer(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.FulltextOptions.analyzer")); + } else + goto handle_unusual; + continue; + // bool case_sensitive = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.case_sensitive_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* FulltextOptions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.FulltextOptions) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // bool enable = 1; + if (this->_internal_enable() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(1, this->_internal_enable(), target); + } + + // string analyzer = 2; + if (!this->_internal_analyzer().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_analyzer().data(), static_cast(this->_internal_analyzer().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.FulltextOptions.analyzer"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_analyzer(), target); + } + + // bool case_sensitive = 3; + if (this->_internal_case_sensitive() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_case_sensitive(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.FulltextOptions) + return target; +} + +size_t FulltextOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.FulltextOptions) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string analyzer = 2; + if (!this->_internal_analyzer().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_analyzer()); + } + + // bool enable = 1; + if (this->_internal_enable() != 0) { + total_size += 1 + 1; + } + + // bool case_sensitive = 3; + if (this->_internal_case_sensitive() != 0) { + total_size += 1 + 1; + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FulltextOptions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + FulltextOptions::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FulltextOptions::GetClassData() const { return &_class_data_; } + + +void FulltextOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.FulltextOptions) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_analyzer().empty()) { + _this->_internal_set_analyzer(from._internal_analyzer()); + } + if (from._internal_enable() != 0) { + _this->_internal_set_enable(from._internal_enable()); + } + if (from._internal_case_sensitive() != 0) { + _this->_internal_set_case_sensitive(from._internal_case_sensitive()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void FulltextOptions::CopyFrom(const FulltextOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.FulltextOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool FulltextOptions::IsInitialized() const { + return true; +} + +void FulltextOptions::InternalSwap(FulltextOptions* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.analyzer_, lhs_arena, + &other->_impl_.analyzer_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(FulltextOptions, _impl_.case_sensitive_) + + sizeof(FulltextOptions::_impl_.case_sensitive_) + - PROTOBUF_FIELD_OFFSET(FulltextOptions, _impl_.enable_)>( + reinterpret_cast(&_impl_.enable_), + reinterpret_cast(&other->_impl_.enable_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata FulltextOptions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); @@ -9120,14 +9346,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage< ::greptime::v1::ChangeColumnTypes >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::ChangeColumnTypes >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse* -Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse >(arena); -} template<> PROTOBUF_NOINLINE ::greptime::v1::ChangeFulltext* Arena::CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::ChangeFulltext >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::FulltextOptions* +Arena::CreateMaybeMessage< ::greptime::v1::FulltextOptions >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::FulltextOptions >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::RenameTable* Arena::CreateMaybeMessage< ::greptime::v1::RenameTable >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::RenameTable >(arena); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index a3db71b4..41f0d1e2 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -72,9 +72,6 @@ extern ChangeColumnTypesDefaultTypeInternal _ChangeColumnTypes_default_instance_ class ChangeFulltext; struct ChangeFulltextDefaultTypeInternal; extern ChangeFulltextDefaultTypeInternal _ChangeFulltext_default_instance_; -class ChangeFulltext_OptionsEntry_DoNotUse; -struct ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal; -extern ChangeFulltext_OptionsEntry_DoNotUseDefaultTypeInternal _ChangeFulltext_OptionsEntry_DoNotUse_default_instance_; class ColumnDef; struct ColumnDefDefaultTypeInternal; extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_; @@ -123,6 +120,9 @@ extern DropViewExprDefaultTypeInternal _DropViewExpr_default_instance_; class FlowId; struct FlowIdDefaultTypeInternal; extern FlowIdDefaultTypeInternal _FlowId_default_instance_; +class FulltextOptions; +struct FulltextOptionsDefaultTypeInternal; +extern FulltextOptionsDefaultTypeInternal _FulltextOptions_default_instance_; class RenameTable; struct RenameTableDefaultTypeInternal; extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; @@ -142,7 +142,6 @@ template<> ::greptime::v1::AlterExpr* Arena::CreateMaybeMessage<::greptime::v1:: template<> ::greptime::v1::ChangeColumnType* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnType>(Arena*); template<> ::greptime::v1::ChangeColumnTypes* Arena::CreateMaybeMessage<::greptime::v1::ChangeColumnTypes>(Arena*); template<> ::greptime::v1::ChangeFulltext* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext>(Arena*); -template<> ::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::ChangeFulltext_OptionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr>(Arena*); template<> ::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse>(Arena*); @@ -159,6 +158,7 @@ template<> ::greptime::v1::DropFlowExpr* Arena::CreateMaybeMessage<::greptime::v template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*); template<> ::greptime::v1::DropViewExpr* Arena::CreateMaybeMessage<::greptime::v1::DropViewExpr>(Arena*); template<> ::greptime::v1::FlowId* Arena::CreateMaybeMessage<::greptime::v1::FlowId>(Arena*); +template<> ::greptime::v1::FulltextOptions* Arena::CreateMaybeMessage<::greptime::v1::FulltextOptions>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); @@ -3587,34 +3587,6 @@ class ChangeColumnTypes final : }; // ------------------------------------------------------------------- -class ChangeFulltext_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { -public: - typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; - ChangeFulltext_OptionsEntry_DoNotUse(); - explicit PROTOBUF_CONSTEXPR ChangeFulltext_OptionsEntry_DoNotUse( - ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - explicit ChangeFulltext_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); - void MergeFrom(const ChangeFulltext_OptionsEntry_DoNotUse& other); - static const ChangeFulltext_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ChangeFulltext_OptionsEntry_DoNotUse_default_instance_); } - static bool ValidateKey(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.ChangeFulltext.OptionsEntry.key"); - } - static bool ValidateValue(std::string* s) { - return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.ChangeFulltext.OptionsEntry.value"); - } - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; - friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; -}; - -// ------------------------------------------------------------------- - class ChangeFulltext final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ChangeFulltext) */ { public: @@ -3663,7 +3635,7 @@ class ChangeFulltext final : &_ChangeFulltext_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 17; friend void swap(ChangeFulltext& a, ChangeFulltext& b) { a.Swap(&b); @@ -3724,8 +3696,6 @@ class ChangeFulltext final : protected: explicit ChangeFulltext(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned = false); - private: - static void ArenaDtor(void* object); public: static const ClassData _class_data_; @@ -3735,30 +3705,12 @@ class ChangeFulltext final : // nested types ---------------------------------------------------- - // accessors ------------------------------------------------------- enum : int { - kOptionsFieldNumber = 2, kColumnNameFieldNumber = 1, + kOptionsFieldNumber = 2, }; - // map options = 2; - int options_size() const; - private: - int _internal_options_size() const; - public: - void clear_options(); - private: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - _internal_options() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - _internal_mutable_options(); - public: - const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& - options() const; - ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* - mutable_options(); - // string column_name = 1; void clear_column_name(); const std::string& column_name() const; @@ -3773,6 +3725,24 @@ class ChangeFulltext final : std::string* _internal_mutable_column_name(); public: + // .greptime.v1.FulltextOptions options = 2; + bool has_options() const; + private: + bool _internal_has_options() const; + public: + void clear_options(); + const ::greptime::v1::FulltextOptions& options() const; + PROTOBUF_NODISCARD ::greptime::v1::FulltextOptions* release_options(); + ::greptime::v1::FulltextOptions* mutable_options(); + void set_allocated_options(::greptime::v1::FulltextOptions* options); + private: + const ::greptime::v1::FulltextOptions& _internal_options() const; + ::greptime::v1::FulltextOptions* _internal_mutable_options(); + public: + void unsafe_arena_set_allocated_options( + ::greptime::v1::FulltextOptions* options); + ::greptime::v1::FulltextOptions* unsafe_arena_release_options(); + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext) private: class _Internal; @@ -3781,12 +3751,183 @@ class ChangeFulltext final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::MapField< - ChangeFulltext_OptionsEntry_DoNotUse, - std::string, std::string, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + ::greptime::v1::FulltextOptions* options_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; +// ------------------------------------------------------------------- + +class FulltextOptions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.FulltextOptions) */ { + public: + inline FulltextOptions() : FulltextOptions(nullptr) {} + ~FulltextOptions() override; + explicit PROTOBUF_CONSTEXPR FulltextOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + FulltextOptions(const FulltextOptions& from); + FulltextOptions(FulltextOptions&& from) noexcept + : FulltextOptions() { + *this = ::std::move(from); + } + + inline FulltextOptions& operator=(const FulltextOptions& from) { + CopyFrom(from); + return *this; + } + inline FulltextOptions& operator=(FulltextOptions&& from) noexcept { + if (this == &from) return *this; + if (GetOwningArena() == from.GetOwningArena() + #ifdef PROTOBUF_FORCE_COPY_IN_MOVE + && GetOwningArena() != nullptr + #endif // !PROTOBUF_FORCE_COPY_IN_MOVE + ) { + InternalSwap(&from); + } else { + CopyFrom(from); + } + return *this; + } + + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { + return GetDescriptor(); + } + static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { + return default_instance().GetMetadata().descriptor; + } + static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { + return default_instance().GetMetadata().reflection; + } + static const FulltextOptions& default_instance() { + return *internal_default_instance(); + } + static inline const FulltextOptions* internal_default_instance() { + return reinterpret_cast( + &_FulltextOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 18; + + friend void swap(FulltextOptions& a, FulltextOptions& b) { + a.Swap(&b); + } + inline void Swap(FulltextOptions* other) { + if (other == this) return; + #ifdef PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() != nullptr && + GetOwningArena() == other->GetOwningArena()) { + #else // PROTOBUF_FORCE_COPY_IN_SWAP + if (GetOwningArena() == other->GetOwningArena()) { + #endif // !PROTOBUF_FORCE_COPY_IN_SWAP + InternalSwap(other); + } else { + ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); + } + } + void UnsafeArenaSwap(FulltextOptions* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + FulltextOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const FulltextOptions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const FulltextOptions& from) { + FulltextOptions::MergeImpl(*this, from); + } + private: + static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); + public: + PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; + bool IsInitialized() const final; + + size_t ByteSizeLong() const final; + const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; + uint8_t* _InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; + int GetCachedSize() const final { return _impl_._cached_size_.Get(); } + + private: + void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); + void SharedDtor(); + void SetCachedSize(int size) const final; + void InternalSwap(FulltextOptions* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.FulltextOptions"; + } + protected: + explicit FulltextOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kAnalyzerFieldNumber = 2, + kEnableFieldNumber = 1, + kCaseSensitiveFieldNumber = 3, + }; + // string analyzer = 2; + void clear_analyzer(); + const std::string& analyzer() const; + template + void set_analyzer(ArgT0&& arg0, ArgT... args); + std::string* mutable_analyzer(); + PROTOBUF_NODISCARD std::string* release_analyzer(); + void set_allocated_analyzer(std::string* analyzer); + private: + const std::string& _internal_analyzer() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_analyzer(const std::string& value); + std::string* _internal_mutable_analyzer(); + public: + + // bool enable = 1; + void clear_enable(); + bool enable() const; + void set_enable(bool value); + private: + bool _internal_enable() const; + void _internal_set_enable(bool value); + public: + + // bool case_sensitive = 3; + void clear_case_sensitive(); + bool case_sensitive() const; + void set_case_sensitive(bool value); + private: + bool _internal_case_sensitive() const; + void _internal_set_case_sensitive(bool value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.FulltextOptions) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr analyzer_; + bool enable_; + bool case_sensitive_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -9348,8 +9489,6 @@ ChangeColumnTypes::change_column_types() const { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // ChangeFulltext // string column_name = 1; @@ -9402,33 +9541,188 @@ inline void ChangeFulltext::set_allocated_column_name(std::string* column_name) // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.column_name) } -// map options = 2; -inline int ChangeFulltext::_internal_options_size() const { - return _impl_.options_.size(); +// .greptime.v1.FulltextOptions options = 2; +inline bool ChangeFulltext::_internal_has_options() const { + return this != internal_default_instance() && _impl_.options_ != nullptr; } -inline int ChangeFulltext::options_size() const { - return _internal_options_size(); +inline bool ChangeFulltext::has_options() const { + return _internal_has_options(); } inline void ChangeFulltext::clear_options() { - _impl_.options_.Clear(); + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -ChangeFulltext::_internal_options() const { - return _impl_.options_.GetMap(); +inline const ::greptime::v1::FulltextOptions& ChangeFulltext::_internal_options() const { + const ::greptime::v1::FulltextOptions* p = _impl_.options_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_FulltextOptions_default_instance_); } -inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& -ChangeFulltext::options() const { - // @@protoc_insertion_point(field_map:greptime.v1.ChangeFulltext.options) +inline const ::greptime::v1::FulltextOptions& ChangeFulltext::options() const { + // @@protoc_insertion_point(field_get:greptime.v1.ChangeFulltext.options) return _internal_options(); } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -ChangeFulltext::_internal_mutable_options() { - return _impl_.options_.MutableMap(); +inline void ChangeFulltext::unsafe_arena_set_allocated_options( + ::greptime::v1::FulltextOptions* options) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_); + } + _impl_.options_ = options; + if (options) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ChangeFulltext.options) } -inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* -ChangeFulltext::mutable_options() { - // @@protoc_insertion_point(field_mutable_map:greptime.v1.ChangeFulltext.options) - return _internal_mutable_options(); +inline ::greptime::v1::FulltextOptions* ChangeFulltext::release_options() { + + ::greptime::v1::FulltextOptions* temp = _impl_.options_; + _impl_.options_ = nullptr; +#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE + auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + if (GetArenaForAllocation() == nullptr) { delete old; } +#else // PROTOBUF_FORCE_COPY_IN_RELEASE + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } +#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE + return temp; +} +inline ::greptime::v1::FulltextOptions* ChangeFulltext::unsafe_arena_release_options() { + // @@protoc_insertion_point(field_release:greptime.v1.ChangeFulltext.options) + + ::greptime::v1::FulltextOptions* temp = _impl_.options_; + _impl_.options_ = nullptr; + return temp; +} +inline ::greptime::v1::FulltextOptions* ChangeFulltext::_internal_mutable_options() { + + if (_impl_.options_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::FulltextOptions>(GetArenaForAllocation()); + _impl_.options_ = p; + } + return _impl_.options_; +} +inline ::greptime::v1::FulltextOptions* ChangeFulltext::mutable_options() { + ::greptime::v1::FulltextOptions* _msg = _internal_mutable_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ChangeFulltext.options) + return _msg; +} +inline void ChangeFulltext::set_allocated_options(::greptime::v1::FulltextOptions* options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.options_; + } + if (options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(options); + if (message_arena != submessage_arena) { + options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, options, submessage_arena); + } + + } else { + + } + _impl_.options_ = options; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ChangeFulltext.options) +} + +// ------------------------------------------------------------------- + +// FulltextOptions + +// bool enable = 1; +inline void FulltextOptions::clear_enable() { + _impl_.enable_ = false; +} +inline bool FulltextOptions::_internal_enable() const { + return _impl_.enable_; +} +inline bool FulltextOptions::enable() const { + // @@protoc_insertion_point(field_get:greptime.v1.FulltextOptions.enable) + return _internal_enable(); +} +inline void FulltextOptions::_internal_set_enable(bool value) { + + _impl_.enable_ = value; +} +inline void FulltextOptions::set_enable(bool value) { + _internal_set_enable(value); + // @@protoc_insertion_point(field_set:greptime.v1.FulltextOptions.enable) +} + +// string analyzer = 2; +inline void FulltextOptions::clear_analyzer() { + _impl_.analyzer_.ClearToEmpty(); +} +inline const std::string& FulltextOptions::analyzer() const { + // @@protoc_insertion_point(field_get:greptime.v1.FulltextOptions.analyzer) + return _internal_analyzer(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void FulltextOptions::set_analyzer(ArgT0&& arg0, ArgT... args) { + + _impl_.analyzer_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.FulltextOptions.analyzer) +} +inline std::string* FulltextOptions::mutable_analyzer() { + std::string* _s = _internal_mutable_analyzer(); + // @@protoc_insertion_point(field_mutable:greptime.v1.FulltextOptions.analyzer) + return _s; +} +inline const std::string& FulltextOptions::_internal_analyzer() const { + return _impl_.analyzer_.Get(); +} +inline void FulltextOptions::_internal_set_analyzer(const std::string& value) { + + _impl_.analyzer_.Set(value, GetArenaForAllocation()); +} +inline std::string* FulltextOptions::_internal_mutable_analyzer() { + + return _impl_.analyzer_.Mutable(GetArenaForAllocation()); +} +inline std::string* FulltextOptions::release_analyzer() { + // @@protoc_insertion_point(field_release:greptime.v1.FulltextOptions.analyzer) + return _impl_.analyzer_.Release(); +} +inline void FulltextOptions::set_allocated_analyzer(std::string* analyzer) { + if (analyzer != nullptr) { + + } else { + + } + _impl_.analyzer_.SetAllocated(analyzer, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.analyzer_.IsDefault()) { + _impl_.analyzer_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.FulltextOptions.analyzer) +} + +// bool case_sensitive = 3; +inline void FulltextOptions::clear_case_sensitive() { + _impl_.case_sensitive_ = false; +} +inline bool FulltextOptions::_internal_case_sensitive() const { + return _impl_.case_sensitive_; +} +inline bool FulltextOptions::case_sensitive() const { + // @@protoc_insertion_point(field_get:greptime.v1.FulltextOptions.case_sensitive) + return _internal_case_sensitive(); +} +inline void FulltextOptions::_internal_set_case_sensitive(bool value) { + + _impl_.case_sensitive_ = value; +} +inline void FulltextOptions::set_case_sensitive(bool value) { + _internal_set_case_sensitive(value); + // @@protoc_insertion_point(field_set:greptime.v1.FulltextOptions.case_sensitive) } // ------------------------------------------------------------------- diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index 9b871971..f165086b 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -827,36 +827,36 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" ":\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001(\004\"" "C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 .gre" - "ptime.v1.region.AlterRequest\"\247\002\n\014AlterRe" + "ptime.v1.region.AlterRequest\"\250\002\n\014AlterRe" "quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030" "\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022" "7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi" "on.DropColumnsH\000\022=\n\023change_column_types\030" "\005 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022" - "5\n\016change_fulltex\030\006 \001(\0132\033.greptime.v1.Ch" - "angeFulltextH\000\022\026\n\016schema_version\030\004 \001(\004B\006" - "\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(" - "\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop" - "Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime" - ".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco" - "lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi" - "onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" - ".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n" - "ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001" - " \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo" - "w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre" - "gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim" - "e.v1.region.RegularH\000\0229\n\rstrict_window\030\003" - " \001(\0132 .greptime.v1.region.StrictWindowH\000" - "B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion" - "_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d" - "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu" - "mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti" - "me.v1.region.RegionRequest\032\".greptime.v1" - ".region.RegionResponseB]\n\025io.greptime.v1" - ".regionB\006ServerZ_impl_.kind_.change_column_types_; } const ::greptime::v1::ChangeFulltext& -AlterRequest::_Internal::change_fulltex(const AlterRequest* msg) { - return *msg->_impl_.kind_.change_fulltex_; +AlterRequest::_Internal::change_fulltext(const AlterRequest* msg) { + return *msg->_impl_.kind_.change_fulltext_; } void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); @@ -5400,26 +5400,26 @@ void AlterRequest::clear_change_column_types() { clear_has_kind(); } } -void AlterRequest::set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex) { +void AlterRequest::set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); - if (change_fulltex) { + if (change_fulltext) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_fulltex)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(change_fulltext)); if (message_arena != submessage_arena) { - change_fulltex = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, change_fulltex, submessage_arena); + change_fulltext = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, change_fulltext, submessage_arena); } - set_has_change_fulltex(); - _impl_.kind_.change_fulltex_ = change_fulltex; + set_has_change_fulltext(); + _impl_.kind_.change_fulltext_ = change_fulltext; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_fulltex) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.change_fulltext) } -void AlterRequest::clear_change_fulltex() { - if (_internal_has_change_fulltex()) { +void AlterRequest::clear_change_fulltext() { + if (_internal_has_change_fulltext()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_fulltex_; + delete _impl_.kind_.change_fulltext_; } clear_has_kind(); } @@ -5461,9 +5461,9 @@ AlterRequest::AlterRequest(const AlterRequest& from) from._internal_change_column_types()); break; } - case kChangeFulltex: { - _this->_internal_mutable_change_fulltex()->::greptime::v1::ChangeFulltext::MergeFrom( - from._internal_change_fulltex()); + case kChangeFulltext: { + _this->_internal_mutable_change_fulltext()->::greptime::v1::ChangeFulltext::MergeFrom( + from._internal_change_fulltext()); break; } case KIND_NOT_SET: { @@ -5528,9 +5528,9 @@ void AlterRequest::clear_kind() { } break; } - case kChangeFulltex: { + case kChangeFulltext: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.kind_.change_fulltex_; + delete _impl_.kind_.change_fulltext_; } break; } @@ -5601,10 +5601,10 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; - // .greptime.v1.ChangeFulltext change_fulltex = 6; + // .greptime.v1.ChangeFulltext change_fulltext = 6; case 6: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { - ptr = ctx->ParseMessage(_internal_mutable_change_fulltex(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_change_fulltext(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -5671,11 +5671,11 @@ uint8_t* AlterRequest::_InternalSerialize( _Internal::change_column_types(this).GetCachedSize(), target, stream); } - // .greptime.v1.ChangeFulltext change_fulltex = 6; - if (_internal_has_change_fulltex()) { + // .greptime.v1.ChangeFulltext change_fulltext = 6; + if (_internal_has_change_fulltext()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(6, _Internal::change_fulltex(this), - _Internal::change_fulltex(this).GetCachedSize(), target, stream); + InternalWriteMessage(6, _Internal::change_fulltext(this), + _Internal::change_fulltext(this).GetCachedSize(), target, stream); } if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { @@ -5726,11 +5726,11 @@ size_t AlterRequest::ByteSizeLong() const { *_impl_.kind_.change_column_types_); break; } - // .greptime.v1.ChangeFulltext change_fulltex = 6; - case kChangeFulltex: { + // .greptime.v1.ChangeFulltext change_fulltext = 6; + case kChangeFulltext: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.kind_.change_fulltex_); + *_impl_.kind_.change_fulltext_); break; } case KIND_NOT_SET: { @@ -5777,9 +5777,9 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P from._internal_change_column_types()); break; } - case kChangeFulltex: { - _this->_internal_mutable_change_fulltex()->::greptime::v1::ChangeFulltext::MergeFrom( - from._internal_change_fulltex()); + case kChangeFulltext: { + _this->_internal_mutable_change_fulltext()->::greptime::v1::ChangeFulltext::MergeFrom( + from._internal_change_fulltext()); break; } case KIND_NOT_SET: { diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index b8d658ab..9a9e9925 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -3251,7 +3251,7 @@ class AlterRequest final : kAddColumns = 2, kDropColumns = 3, kChangeColumnTypes = 5, - kChangeFulltex = 6, + kChangeFulltext = 6, KIND_NOT_SET = 0, }; @@ -3338,7 +3338,7 @@ class AlterRequest final : kAddColumnsFieldNumber = 2, kDropColumnsFieldNumber = 3, kChangeColumnTypesFieldNumber = 5, - kChangeFulltexFieldNumber = 6, + kChangeFulltextFieldNumber = 6, }; // uint64 region_id = 1; void clear_region_id(); @@ -3412,23 +3412,23 @@ class AlterRequest final : ::greptime::v1::ChangeColumnTypes* change_column_types); ::greptime::v1::ChangeColumnTypes* unsafe_arena_release_change_column_types(); - // .greptime.v1.ChangeFulltext change_fulltex = 6; - bool has_change_fulltex() const; + // .greptime.v1.ChangeFulltext change_fulltext = 6; + bool has_change_fulltext() const; private: - bool _internal_has_change_fulltex() const; + bool _internal_has_change_fulltext() const; public: - void clear_change_fulltex(); - const ::greptime::v1::ChangeFulltext& change_fulltex() const; - PROTOBUF_NODISCARD ::greptime::v1::ChangeFulltext* release_change_fulltex(); - ::greptime::v1::ChangeFulltext* mutable_change_fulltex(); - void set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex); + void clear_change_fulltext(); + const ::greptime::v1::ChangeFulltext& change_fulltext() const; + PROTOBUF_NODISCARD ::greptime::v1::ChangeFulltext* release_change_fulltext(); + ::greptime::v1::ChangeFulltext* mutable_change_fulltext(); + void set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext); private: - const ::greptime::v1::ChangeFulltext& _internal_change_fulltex() const; - ::greptime::v1::ChangeFulltext* _internal_mutable_change_fulltex(); + const ::greptime::v1::ChangeFulltext& _internal_change_fulltext() const; + ::greptime::v1::ChangeFulltext* _internal_mutable_change_fulltext(); public: - void unsafe_arena_set_allocated_change_fulltex( - ::greptime::v1::ChangeFulltext* change_fulltex); - ::greptime::v1::ChangeFulltext* unsafe_arena_release_change_fulltex(); + void unsafe_arena_set_allocated_change_fulltext( + ::greptime::v1::ChangeFulltext* change_fulltext); + ::greptime::v1::ChangeFulltext* unsafe_arena_release_change_fulltext(); void clear_kind(); KindCase kind_case() const; @@ -3438,7 +3438,7 @@ class AlterRequest final : void set_has_add_columns(); void set_has_drop_columns(); void set_has_change_column_types(); - void set_has_change_fulltex(); + void set_has_change_fulltext(); inline bool has_kind() const; inline void clear_has_kind(); @@ -3455,7 +3455,7 @@ class AlterRequest final : ::greptime::v1::region::AddColumns* add_columns_; ::greptime::v1::region::DropColumns* drop_columns_; ::greptime::v1::ChangeColumnTypes* change_column_types_; - ::greptime::v1::ChangeFulltext* change_fulltex_; + ::greptime::v1::ChangeFulltext* change_fulltext_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -7712,69 +7712,69 @@ inline ::greptime::v1::ChangeColumnTypes* AlterRequest::mutable_change_column_ty return _msg; } -// .greptime.v1.ChangeFulltext change_fulltex = 6; -inline bool AlterRequest::_internal_has_change_fulltex() const { - return kind_case() == kChangeFulltex; +// .greptime.v1.ChangeFulltext change_fulltext = 6; +inline bool AlterRequest::_internal_has_change_fulltext() const { + return kind_case() == kChangeFulltext; } -inline bool AlterRequest::has_change_fulltex() const { - return _internal_has_change_fulltex(); +inline bool AlterRequest::has_change_fulltext() const { + return _internal_has_change_fulltext(); } -inline void AlterRequest::set_has_change_fulltex() { - _impl_._oneof_case_[0] = kChangeFulltex; +inline void AlterRequest::set_has_change_fulltext() { + _impl_._oneof_case_[0] = kChangeFulltext; } -inline ::greptime::v1::ChangeFulltext* AlterRequest::release_change_fulltex() { - // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_fulltex) - if (_internal_has_change_fulltex()) { +inline ::greptime::v1::ChangeFulltext* AlterRequest::release_change_fulltext() { + // @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.change_fulltext) + if (_internal_has_change_fulltext()) { clear_has_kind(); - ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltex_; + ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltext_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.kind_.change_fulltex_ = nullptr; + _impl_.kind_.change_fulltext_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::ChangeFulltext& AlterRequest::_internal_change_fulltex() const { - return _internal_has_change_fulltex() - ? *_impl_.kind_.change_fulltex_ +inline const ::greptime::v1::ChangeFulltext& AlterRequest::_internal_change_fulltext() const { + return _internal_has_change_fulltext() + ? *_impl_.kind_.change_fulltext_ : reinterpret_cast< ::greptime::v1::ChangeFulltext&>(::greptime::v1::_ChangeFulltext_default_instance_); } -inline const ::greptime::v1::ChangeFulltext& AlterRequest::change_fulltex() const { - // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_fulltex) - return _internal_change_fulltex(); +inline const ::greptime::v1::ChangeFulltext& AlterRequest::change_fulltext() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.change_fulltext) + return _internal_change_fulltext(); } -inline ::greptime::v1::ChangeFulltext* AlterRequest::unsafe_arena_release_change_fulltex() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_fulltex) - if (_internal_has_change_fulltex()) { +inline ::greptime::v1::ChangeFulltext* AlterRequest::unsafe_arena_release_change_fulltext() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.change_fulltext) + if (_internal_has_change_fulltext()) { clear_has_kind(); - ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltex_; - _impl_.kind_.change_fulltex_ = nullptr; + ::greptime::v1::ChangeFulltext* temp = _impl_.kind_.change_fulltext_; + _impl_.kind_.change_fulltext_ = nullptr; return temp; } else { return nullptr; } } -inline void AlterRequest::unsafe_arena_set_allocated_change_fulltex(::greptime::v1::ChangeFulltext* change_fulltex) { +inline void AlterRequest::unsafe_arena_set_allocated_change_fulltext(::greptime::v1::ChangeFulltext* change_fulltext) { clear_kind(); - if (change_fulltex) { - set_has_change_fulltex(); - _impl_.kind_.change_fulltex_ = change_fulltex; + if (change_fulltext) { + set_has_change_fulltext(); + _impl_.kind_.change_fulltext_ = change_fulltext; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_fulltex) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.change_fulltext) } -inline ::greptime::v1::ChangeFulltext* AlterRequest::_internal_mutable_change_fulltex() { - if (!_internal_has_change_fulltex()) { +inline ::greptime::v1::ChangeFulltext* AlterRequest::_internal_mutable_change_fulltext() { + if (!_internal_has_change_fulltext()) { clear_kind(); - set_has_change_fulltex(); - _impl_.kind_.change_fulltex_ = CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(GetArenaForAllocation()); + set_has_change_fulltext(); + _impl_.kind_.change_fulltext_ = CreateMaybeMessage< ::greptime::v1::ChangeFulltext >(GetArenaForAllocation()); } - return _impl_.kind_.change_fulltex_; + return _impl_.kind_.change_fulltext_; } -inline ::greptime::v1::ChangeFulltext* AlterRequest::mutable_change_fulltex() { - ::greptime::v1::ChangeFulltext* _msg = _internal_mutable_change_fulltex(); - // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_fulltex) +inline ::greptime::v1::ChangeFulltext* AlterRequest::mutable_change_fulltext() { + ::greptime::v1::ChangeFulltext* _msg = _internal_mutable_change_fulltext(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.change_fulltext) return _msg; } diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 1f5cc283..5bef529b 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -77,7 +77,7 @@ func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber { // Deprecated: Use AddColumnLocation_LocationType.Descriptor instead. func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22, 0} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23, 0} } // "Data Definition Language" requests, that create, modify or delete the @@ -1360,8 +1360,8 @@ type ChangeFulltext struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` - Options map[string]string `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` + Options *FulltextOptions `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"` } func (x *ChangeFulltext) Reset() { @@ -1403,13 +1403,76 @@ func (x *ChangeFulltext) GetColumnName() string { return "" } -func (x *ChangeFulltext) GetOptions() map[string]string { +func (x *ChangeFulltext) GetOptions() *FulltextOptions { if x != nil { return x.Options } return nil } +type FulltextOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"` + Analyzer string `protobuf:"bytes,2,opt,name=analyzer,proto3" json:"analyzer,omitempty"` + CaseSensitive bool `protobuf:"varint,3,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"` +} + +func (x *FulltextOptions) Reset() { + *x = FulltextOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *FulltextOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FulltextOptions) ProtoMessage() {} + +func (x *FulltextOptions) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FulltextOptions.ProtoReflect.Descriptor instead. +func (*FulltextOptions) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} +} + +func (x *FulltextOptions) GetEnable() bool { + if x != nil { + return x.Enable + } + return false +} + +func (x *FulltextOptions) GetAnalyzer() string { + if x != nil { + return x.Analyzer + } + return "" +} + +func (x *FulltextOptions) GetCaseSensitive() bool { + if x != nil { + return x.CaseSensitive + } + return false +} + type RenameTable struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1421,7 +1484,7 @@ type RenameTable struct { func (x *RenameTable) Reset() { *x = RenameTable{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1434,7 +1497,7 @@ func (x *RenameTable) String() string { func (*RenameTable) ProtoMessage() {} func (x *RenameTable) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1447,7 +1510,7 @@ func (x *RenameTable) ProtoReflect() protoreflect.Message { // Deprecated: Use RenameTable.ProtoReflect.Descriptor instead. func (*RenameTable) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} } func (x *RenameTable) GetNewTableName() string { @@ -1469,7 +1532,7 @@ type AddColumn struct { func (x *AddColumn) Reset() { *x = AddColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1482,7 +1545,7 @@ func (x *AddColumn) String() string { func (*AddColumn) ProtoMessage() {} func (x *AddColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1495,7 +1558,7 @@ func (x *AddColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumn.ProtoReflect.Descriptor instead. func (*AddColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} } func (x *AddColumn) GetColumnDef() *ColumnDef { @@ -1525,7 +1588,7 @@ type ChangeColumnType struct { func (x *ChangeColumnType) Reset() { *x = ChangeColumnType{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[17] + mi := &file_greptime_v1_ddl_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1538,7 +1601,7 @@ func (x *ChangeColumnType) String() string { func (*ChangeColumnType) ProtoMessage() {} func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[17] + mi := &file_greptime_v1_ddl_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1551,7 +1614,7 @@ func (x *ChangeColumnType) ProtoReflect() protoreflect.Message { // Deprecated: Use ChangeColumnType.ProtoReflect.Descriptor instead. func (*ChangeColumnType) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} } func (x *ChangeColumnType) GetColumnName() string { @@ -1586,7 +1649,7 @@ type DropColumn struct { func (x *DropColumn) Reset() { *x = DropColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[18] + mi := &file_greptime_v1_ddl_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1599,7 +1662,7 @@ func (x *DropColumn) String() string { func (*DropColumn) ProtoMessage() {} func (x *DropColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[18] + mi := &file_greptime_v1_ddl_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1612,7 +1675,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use DropColumn.ProtoReflect.Descriptor instead. func (*DropColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{18} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19} } func (x *DropColumn) GetName() string { @@ -1633,7 +1696,7 @@ type TableId struct { func (x *TableId) Reset() { *x = TableId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1646,7 +1709,7 @@ func (x *TableId) String() string { func (*TableId) ProtoMessage() {} func (x *TableId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[19] + mi := &file_greptime_v1_ddl_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1659,7 +1722,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message { // Deprecated: Use TableId.ProtoReflect.Descriptor instead. func (*TableId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{19} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20} } func (x *TableId) GetId() uint32 { @@ -1680,7 +1743,7 @@ type FlowId struct { func (x *FlowId) Reset() { *x = FlowId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[20] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1693,7 +1756,7 @@ func (x *FlowId) String() string { func (*FlowId) ProtoMessage() {} func (x *FlowId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[20] + mi := &file_greptime_v1_ddl_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1706,7 +1769,7 @@ func (x *FlowId) ProtoReflect() protoreflect.Message { // Deprecated: Use FlowId.ProtoReflect.Descriptor instead. func (*FlowId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{20} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21} } func (x *FlowId) GetId() uint32 { @@ -1736,7 +1799,7 @@ type ColumnDef struct { func (x *ColumnDef) Reset() { *x = ColumnDef{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[21] + mi := &file_greptime_v1_ddl_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1749,7 +1812,7 @@ func (x *ColumnDef) String() string { func (*ColumnDef) ProtoMessage() {} func (x *ColumnDef) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[21] + mi := &file_greptime_v1_ddl_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1762,7 +1825,7 @@ func (x *ColumnDef) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead. func (*ColumnDef) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{21} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22} } func (x *ColumnDef) GetName() string { @@ -1833,7 +1896,7 @@ type AddColumnLocation struct { func (x *AddColumnLocation) Reset() { *x = AddColumnLocation{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[22] + mi := &file_greptime_v1_ddl_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1846,7 +1909,7 @@ func (x *AddColumnLocation) String() string { func (*AddColumnLocation) ProtoMessage() {} func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[22] + mi := &file_greptime_v1_ddl_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1859,7 +1922,7 @@ func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead. func (*AddColumnLocation) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{22} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{23} } func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType { @@ -2126,90 +2189,92 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0xb1, 0x01, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e, - 0x67, 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, + 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x69, 0x0a, 0x0e, 0x43, 0x68, 0x61, 0x6e, 0x67, + 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, + 0x78, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0x6c, 0x0a, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x1a, 0x0a, + 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, + 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, + 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x42, 0x0a, 0x07, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x61, 0x6e, 0x67, - 0x65, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, - 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x33, 0x0a, 0x0b, 0x52, - 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, - 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, - 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x20, - 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x18, 0x0a, 0x06, 0x46, - 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, - 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, - 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, - 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, - 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, - 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, - 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, - 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, - 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, - 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, - 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, - 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, - 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, - 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, - 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, + 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, + 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, + 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, + 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, + 0x22, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, + 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, + 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, + 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, + 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, + 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, + 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, + 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, + 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, + 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, + 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, + 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, + 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, + 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, + 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, + 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, + 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2243,18 +2308,18 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*DropColumns)(nil), // 13: greptime.v1.DropColumns (*ChangeColumnTypes)(nil), // 14: greptime.v1.ChangeColumnTypes (*ChangeFulltext)(nil), // 15: greptime.v1.ChangeFulltext - (*RenameTable)(nil), // 16: greptime.v1.RenameTable - (*AddColumn)(nil), // 17: greptime.v1.AddColumn - (*ChangeColumnType)(nil), // 18: greptime.v1.ChangeColumnType - (*DropColumn)(nil), // 19: greptime.v1.DropColumn - (*TableId)(nil), // 20: greptime.v1.TableId - (*FlowId)(nil), // 21: greptime.v1.FlowId - (*ColumnDef)(nil), // 22: greptime.v1.ColumnDef - (*AddColumnLocation)(nil), // 23: greptime.v1.AddColumnLocation - nil, // 24: greptime.v1.CreateFlowExpr.FlowOptionsEntry - nil, // 25: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 26: greptime.v1.CreateDatabaseExpr.OptionsEntry - nil, // 27: greptime.v1.ChangeFulltext.OptionsEntry + (*FulltextOptions)(nil), // 16: greptime.v1.FulltextOptions + (*RenameTable)(nil), // 17: greptime.v1.RenameTable + (*AddColumn)(nil), // 18: greptime.v1.AddColumn + (*ChangeColumnType)(nil), // 19: greptime.v1.ChangeColumnType + (*DropColumn)(nil), // 20: greptime.v1.DropColumn + (*TableId)(nil), // 21: greptime.v1.TableId + (*FlowId)(nil), // 22: greptime.v1.FlowId + (*ColumnDef)(nil), // 23: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 24: greptime.v1.AddColumnLocation + nil, // 25: greptime.v1.CreateFlowExpr.FlowOptionsEntry + nil, // 26: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 27: greptime.v1.CreateDatabaseExpr.OptionsEntry (*TableName)(nil), // 28: greptime.v1.TableName (*ExpireAfter)(nil), // 29: greptime.v1.ExpireAfter (ColumnDataType)(0), // 30: greptime.v1.ColumnDataType @@ -2275,27 +2340,27 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 28, // 9: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName 28, // 10: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName 29, // 11: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter - 24, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry - 21, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId + 25, // 12: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry + 22, // 13: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId 28, // 14: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName - 20, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId - 22, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 25, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 20, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId + 21, // 15: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId + 23, // 16: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 26, // 17: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 21, // 18: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId 12, // 19: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns 13, // 20: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns - 16, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable + 17, // 21: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable 14, // 22: greptime.v1.AlterExpr.change_column_types:type_name -> greptime.v1.ChangeColumnTypes 15, // 23: greptime.v1.AlterExpr.change_fulltext:type_name -> greptime.v1.ChangeFulltext - 20, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 26, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 20, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 17, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 19, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 18, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType - 27, // 30: greptime.v1.ChangeFulltext.options:type_name -> greptime.v1.ChangeFulltext.OptionsEntry - 22, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 23, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 21, // 24: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 27, // 25: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 21, // 26: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 18, // 27: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 20, // 28: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 19, // 29: greptime.v1.ChangeColumnTypes.change_column_types:type_name -> greptime.v1.ChangeColumnType + 16, // 30: greptime.v1.ChangeFulltext.options:type_name -> greptime.v1.FulltextOptions + 23, // 31: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 24, // 32: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation 30, // 33: greptime.v1.ChangeColumnType.target_type:type_name -> greptime.v1.ColumnDataType 31, // 34: greptime.v1.ChangeColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension 30, // 35: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType @@ -2498,7 +2563,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RenameTable); i { + switch v := v.(*FulltextOptions); i { case 0: return &v.state case 1: @@ -2510,7 +2575,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AddColumn); i { + switch v := v.(*RenameTable); i { case 0: return &v.state case 1: @@ -2522,7 +2587,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ChangeColumnType); i { + switch v := v.(*AddColumn); i { case 0: return &v.state case 1: @@ -2534,7 +2599,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DropColumn); i { + switch v := v.(*ChangeColumnType); i { case 0: return &v.state case 1: @@ -2546,7 +2611,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableId); i { + switch v := v.(*DropColumn); i { case 0: return &v.state case 1: @@ -2558,7 +2623,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlowId); i { + switch v := v.(*TableId); i { case 0: return &v.state case 1: @@ -2570,7 +2635,7 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDef); i { + switch v := v.(*FlowId); i { case 0: return &v.state case 1: @@ -2582,6 +2647,18 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColumnDef); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_ddl_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumnLocation); i { case 0: return &v.state diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 9bc68531..9569bbd5 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -20254,40 +20254,19 @@ public interface ChangeFulltextOrBuilder extends getColumnNameBytes(); /** - * map<string, string> options = 2; - */ - int getOptionsCount(); - /** - * map<string, string> options = 2; - */ - boolean containsOptions( - java.lang.String key); - /** - * Use {@link #getOptionsMap()} instead. - */ - @java.lang.Deprecated - java.util.Map - getOptions(); - /** - * map<string, string> options = 2; + * .greptime.v1.FulltextOptions options = 2; + * @return Whether the options field is set. */ - java.util.Map - getOptionsMap(); + boolean hasOptions(); /** - * map<string, string> options = 2; + * .greptime.v1.FulltextOptions options = 2; + * @return The options. */ - - /* nullable */ -java.lang.String getOptionsOrDefault( - java.lang.String key, - /* nullable */ -java.lang.String defaultValue); + io.greptime.v1.Ddl.FulltextOptions getOptions(); /** - * map<string, string> options = 2; + * .greptime.v1.FulltextOptions options = 2; */ - - java.lang.String getOptionsOrThrow( - java.lang.String key); + io.greptime.v1.Ddl.FulltextOptionsOrBuilder getOptionsOrBuilder(); } /** * Protobuf type {@code greptime.v1.ChangeFulltext} @@ -20325,7 +20304,6 @@ private ChangeFulltext( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } - int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -20343,16 +20321,16 @@ private ChangeFulltext( break; } case 18: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - options_ = com.google.protobuf.MapField.newMapField( - OptionsDefaultEntryHolder.defaultEntry); - mutable_bitField0_ |= 0x00000001; + io.greptime.v1.Ddl.FulltextOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); } - com.google.protobuf.MapEntry - options__ = input.readMessage( - OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); - options_.getMutableMap().put( - options__.getKey(), options__.getValue()); + options_ = input.readMessage(io.greptime.v1.Ddl.FulltextOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + break; } default: { @@ -20381,18 +20359,6 @@ private ChangeFulltext( return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor; } - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetOptions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -20440,84 +20406,29 @@ public java.lang.String getColumnName() { } public static final int OPTIONS_FIELD_NUMBER = 2; - private static final class OptionsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, java.lang.String> defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> options_; - private com.google.protobuf.MapField - internalGetOptions() { - if (options_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OptionsDefaultEntryHolder.defaultEntry); - } - return options_; - } - - public int getOptionsCount() { - return internalGetOptions().getMap().size(); - } - /** - * map<string, string> options = 2; - */ - - @java.lang.Override - public boolean containsOptions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetOptions().getMap().containsKey(key); - } - /** - * Use {@link #getOptionsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getOptions() { - return getOptionsMap(); - } + private io.greptime.v1.Ddl.FulltextOptions options_; /** - * map<string, string> options = 2; + * .greptime.v1.FulltextOptions options = 2; + * @return Whether the options field is set. */ @java.lang.Override - - public java.util.Map getOptionsMap() { - return internalGetOptions().getMap(); + public boolean hasOptions() { + return options_ != null; } /** - * map<string, string> options = 2; + * .greptime.v1.FulltextOptions options = 2; + * @return The options. */ @java.lang.Override - - public java.lang.String getOptionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOptions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; + public io.greptime.v1.Ddl.FulltextOptions getOptions() { + return options_ == null ? io.greptime.v1.Ddl.FulltextOptions.getDefaultInstance() : options_; } /** - * map<string, string> options = 2; + * .greptime.v1.FulltextOptions options = 2; */ @java.lang.Override - - public java.lang.String getOptionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOptions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); + public io.greptime.v1.Ddl.FulltextOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); } private byte memoizedIsInitialized = -1; @@ -20537,12 +20448,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, columnName_); } - com.google.protobuf.GeneratedMessageV3 - .serializeStringMapTo( - output, - internalGetOptions(), - OptionsDefaultEntryHolder.defaultEntry, - 2); + if (options_ != null) { + output.writeMessage(2, getOptions()); + } unknownFields.writeTo(output); } @@ -20555,15 +20463,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(columnName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, columnName_); } - for (java.util.Map.Entry entry - : internalGetOptions().getMap().entrySet()) { - com.google.protobuf.MapEntry - options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); + if (options_ != null) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, options__); + .computeMessageSize(2, getOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -20582,8 +20484,11 @@ public boolean equals(final java.lang.Object obj) { if (!getColumnName() .equals(other.getColumnName())) return false; - if (!internalGetOptions().equals( - other.internalGetOptions())) return false; + if (hasOptions() != other.hasOptions()) return false; + if (hasOptions()) { + if (!getOptions() + .equals(other.getOptions())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -20597,78 +20502,849 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + COLUMN_NAME_FIELD_NUMBER; hash = (53 * hash) + getColumnName().hashCode(); - if (!internalGetOptions().getMap().isEmpty()) { + if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; - hash = (53 * hash) + internalGetOptions().hashCode(); + hash = (53 * hash) + getOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Ddl.ChangeFulltext prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.ChangeFulltext} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeFulltext) + io.greptime.v1.Ddl.ChangeFulltextOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor; } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.ChangeFulltext.class, io.greptime.v1.Ddl.ChangeFulltext.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.ChangeFulltext.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + columnName_ = ""; + + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeFulltext getDefaultInstanceForType() { + return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeFulltext build() { + io.greptime.v1.Ddl.ChangeFulltext result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeFulltext buildPartial() { + io.greptime.v1.Ddl.ChangeFulltext result = new io.greptime.v1.Ddl.ChangeFulltext(this); + result.columnName_ = columnName_; + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.ChangeFulltext) { + return mergeFrom((io.greptime.v1.Ddl.ChangeFulltext)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext other) { + if (other == io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance()) return this; + if (!other.getColumnName().isEmpty()) { + columnName_ = other.columnName_; + onChanged(); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Ddl.ChangeFulltext parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.ChangeFulltext) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object columnName_ = ""; + /** + * string column_name = 1; + * @return The columnName. + */ + public java.lang.String getColumnName() { + java.lang.Object ref = columnName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + columnName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string column_name = 1; + * @return The bytes for columnName. + */ + public com.google.protobuf.ByteString + getColumnNameBytes() { + java.lang.Object ref = columnName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + columnName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string column_name = 1; + * @param value The columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + columnName_ = value; + onChanged(); + return this; + } + /** + * string column_name = 1; + * @return This builder for chaining. + */ + public Builder clearColumnName() { + + columnName_ = getDefaultInstance().getColumnName(); + onChanged(); + return this; + } + /** + * string column_name = 1; + * @param value The bytes for columnName to set. + * @return This builder for chaining. + */ + public Builder setColumnNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + columnName_ = value; + onChanged(); + return this; + } + + private io.greptime.v1.Ddl.FulltextOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.FulltextOptions, io.greptime.v1.Ddl.FulltextOptions.Builder, io.greptime.v1.Ddl.FulltextOptionsOrBuilder> optionsBuilder_; + /** + * .greptime.v1.FulltextOptions options = 2; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + * .greptime.v1.FulltextOptions options = 2; + * @return The options. + */ + public io.greptime.v1.Ddl.FulltextOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? io.greptime.v1.Ddl.FulltextOptions.getDefaultInstance() : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + * .greptime.v1.FulltextOptions options = 2; + */ + public Builder setOptions(io.greptime.v1.Ddl.FulltextOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + * .greptime.v1.FulltextOptions options = 2; + */ + public Builder setOptions( + io.greptime.v1.Ddl.FulltextOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.FulltextOptions options = 2; + */ + public Builder mergeOptions(io.greptime.v1.Ddl.FulltextOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + io.greptime.v1.Ddl.FulltextOptions.newBuilder(options_).mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .greptime.v1.FulltextOptions options = 2; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.FulltextOptions options = 2; + */ + public io.greptime.v1.Ddl.FulltextOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.FulltextOptions options = 2; + */ + public io.greptime.v1.Ddl.FulltextOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null ? + io.greptime.v1.Ddl.FulltextOptions.getDefaultInstance() : options_; + } + } + /** + * .greptime.v1.FulltextOptions options = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.FulltextOptions, io.greptime.v1.Ddl.FulltextOptions.Builder, io.greptime.v1.Ddl.FulltextOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.FulltextOptions, io.greptime.v1.Ddl.FulltextOptions.Builder, io.greptime.v1.Ddl.FulltextOptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); + options_ = null; + } + return optionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeFulltext) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext) + private static final io.greptime.v1.Ddl.ChangeFulltext DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeFulltext(); + } + + public static io.greptime.v1.Ddl.ChangeFulltext getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeFulltext parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeFulltext(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Ddl.ChangeFulltext getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface FulltextOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.FulltextOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * bool enable = 1; + * @return The enable. + */ + boolean getEnable(); + + /** + * string analyzer = 2; + * @return The analyzer. + */ + java.lang.String getAnalyzer(); + /** + * string analyzer = 2; + * @return The bytes for analyzer. + */ + com.google.protobuf.ByteString + getAnalyzerBytes(); + + /** + * bool case_sensitive = 3; + * @return The caseSensitive. + */ + boolean getCaseSensitive(); + } + /** + * Protobuf type {@code greptime.v1.FulltextOptions} + */ + public static final class FulltextOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.FulltextOptions) + FulltextOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use FulltextOptions.newBuilder() to construct. + private FulltextOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private FulltextOptions() { + analyzer_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new FulltextOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private FulltextOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + enable_ = input.readBool(); + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + analyzer_ = s; + break; + } + case 24: { + + caseSensitive_ = input.readBool(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_FulltextOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_FulltextOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.FulltextOptions.class, io.greptime.v1.Ddl.FulltextOptions.Builder.class); + } + + public static final int ENABLE_FIELD_NUMBER = 1; + private boolean enable_; + /** + * bool enable = 1; + * @return The enable. + */ + @java.lang.Override + public boolean getEnable() { + return enable_; + } + + public static final int ANALYZER_FIELD_NUMBER = 2; + private volatile java.lang.Object analyzer_; + /** + * string analyzer = 2; + * @return The analyzer. + */ + @java.lang.Override + public java.lang.String getAnalyzer() { + java.lang.Object ref = analyzer_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + analyzer_ = s; + return s; + } + } + /** + * string analyzer = 2; + * @return The bytes for analyzer. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAnalyzerBytes() { + java.lang.Object ref = analyzer_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + analyzer_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CASE_SENSITIVE_FIELD_NUMBER = 3; + private boolean caseSensitive_; + /** + * bool case_sensitive = 3; + * @return The caseSensitive. + */ + @java.lang.Override + public boolean getCaseSensitive() { + return caseSensitive_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (enable_ != false) { + output.writeBool(1, enable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, analyzer_); + } + if (caseSensitive_ != false) { + output.writeBool(3, caseSensitive_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enable_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, enable_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(analyzer_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, analyzer_); + } + if (caseSensitive_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, caseSensitive_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Ddl.FulltextOptions)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.FulltextOptions other = (io.greptime.v1.Ddl.FulltextOptions) obj; + + if (getEnable() + != other.getEnable()) return false; + if (!getAnalyzer() + .equals(other.getAnalyzer())) return false; + if (getCaseSensitive() + != other.getCaseSensitive()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnable()); + hash = (37 * hash) + ANALYZER_FIELD_NUMBER; + hash = (53 * hash) + getAnalyzer().hashCode(); + hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getCaseSensitive()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom(byte[] data) + public static io.greptime.v1.Ddl.FulltextOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.FulltextOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeFulltext parseDelimitedFrom(java.io.InputStream input) + public static io.greptime.v1.Ddl.FulltextOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeFulltext parseDelimitedFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( + public static io.greptime.v1.Ddl.FulltextOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -20681,7 +21357,7 @@ public static io.greptime.v1.Ddl.ChangeFulltext parseFrom( public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(io.greptime.v1.Ddl.ChangeFulltext prototype) { + public static Builder newBuilder(io.greptime.v1.Ddl.FulltextOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -20697,48 +21373,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code greptime.v1.ChangeFulltext} + * Protobuf type {@code greptime.v1.FulltextOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.ChangeFulltext) - io.greptime.v1.Ddl.ChangeFulltextOrBuilder { + // @@protoc_insertion_point(builder_implements:greptime.v1.FulltextOptions) + io.greptime.v1.Ddl.FulltextOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_FulltextOptions_descriptor; } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMapField( - int number) { - switch (number) { - case 2: - return internalGetOptions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapField internalGetMutableMapField( - int number) { - switch (number) { - case 2: - return internalGetMutableOptions(); - default: - throw new RuntimeException( - "Invalid map field number: " + number); - } - } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable + return io.greptime.v1.Ddl.internal_static_greptime_v1_FulltextOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.ChangeFulltext.class, io.greptime.v1.Ddl.ChangeFulltext.Builder.class); + io.greptime.v1.Ddl.FulltextOptions.class, io.greptime.v1.Ddl.FulltextOptions.Builder.class); } - // Construct using io.greptime.v1.Ddl.ChangeFulltext.newBuilder() + // Construct using io.greptime.v1.Ddl.FulltextOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -20756,26 +21410,29 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - columnName_ = ""; + enable_ = false; + + analyzer_ = ""; + + caseSensitive_ = false; - internalGetMutableOptions().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_ChangeFulltext_descriptor; + return io.greptime.v1.Ddl.internal_static_greptime_v1_FulltextOptions_descriptor; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeFulltext getDefaultInstanceForType() { - return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance(); + public io.greptime.v1.Ddl.FulltextOptions getDefaultInstanceForType() { + return io.greptime.v1.Ddl.FulltextOptions.getDefaultInstance(); } @java.lang.Override - public io.greptime.v1.Ddl.ChangeFulltext build() { - io.greptime.v1.Ddl.ChangeFulltext result = buildPartial(); + public io.greptime.v1.Ddl.FulltextOptions build() { + io.greptime.v1.Ddl.FulltextOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -20783,12 +21440,11 @@ public io.greptime.v1.Ddl.ChangeFulltext build() { } @java.lang.Override - public io.greptime.v1.Ddl.ChangeFulltext buildPartial() { - io.greptime.v1.Ddl.ChangeFulltext result = new io.greptime.v1.Ddl.ChangeFulltext(this); - int from_bitField0_ = bitField0_; - result.columnName_ = columnName_; - result.options_ = internalGetOptions(); - result.options_.makeImmutable(); + public io.greptime.v1.Ddl.FulltextOptions buildPartial() { + io.greptime.v1.Ddl.FulltextOptions result = new io.greptime.v1.Ddl.FulltextOptions(this); + result.enable_ = enable_; + result.analyzer_ = analyzer_; + result.caseSensitive_ = caseSensitive_; onBuilt(); return result; } @@ -20827,22 +21483,26 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof io.greptime.v1.Ddl.ChangeFulltext) { - return mergeFrom((io.greptime.v1.Ddl.ChangeFulltext)other); + if (other instanceof io.greptime.v1.Ddl.FulltextOptions) { + return mergeFrom((io.greptime.v1.Ddl.FulltextOptions)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(io.greptime.v1.Ddl.ChangeFulltext other) { - if (other == io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance()) return this; - if (!other.getColumnName().isEmpty()) { - columnName_ = other.columnName_; + public Builder mergeFrom(io.greptime.v1.Ddl.FulltextOptions other) { + if (other == io.greptime.v1.Ddl.FulltextOptions.getDefaultInstance()) return this; + if (other.getEnable() != false) { + setEnable(other.getEnable()); + } + if (!other.getAnalyzer().isEmpty()) { + analyzer_ = other.analyzer_; onChanged(); } - internalGetMutableOptions().mergeFrom( - other.internalGetOptions()); + if (other.getCaseSensitive() != false) { + setCaseSensitive(other.getCaseSensitive()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -20858,11 +21518,11 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - io.greptime.v1.Ddl.ChangeFulltext parsedMessage = null; + io.greptime.v1.Ddl.FulltextOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.ChangeFulltext) e.getUnfinishedMessage(); + parsedMessage = (io.greptime.v1.Ddl.FulltextOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -20871,212 +21531,142 @@ public Builder mergeFrom( } return this; } - private int bitField0_; - private java.lang.Object columnName_ = ""; + private boolean enable_ ; /** - * string column_name = 1; - * @return The columnName. + * bool enable = 1; + * @return The enable. */ - public java.lang.String getColumnName() { - java.lang.Object ref = columnName_; + @java.lang.Override + public boolean getEnable() { + return enable_; + } + /** + * bool enable = 1; + * @param value The enable to set. + * @return This builder for chaining. + */ + public Builder setEnable(boolean value) { + + enable_ = value; + onChanged(); + return this; + } + /** + * bool enable = 1; + * @return This builder for chaining. + */ + public Builder clearEnable() { + + enable_ = false; + onChanged(); + return this; + } + + private java.lang.Object analyzer_ = ""; + /** + * string analyzer = 2; + * @return The analyzer. + */ + public java.lang.String getAnalyzer() { + java.lang.Object ref = analyzer_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - columnName_ = s; + analyzer_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string column_name = 1; - * @return The bytes for columnName. + * string analyzer = 2; + * @return The bytes for analyzer. */ public com.google.protobuf.ByteString - getColumnNameBytes() { - java.lang.Object ref = columnName_; + getAnalyzerBytes() { + java.lang.Object ref = analyzer_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - columnName_ = b; + analyzer_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string column_name = 1; - * @param value The columnName to set. + * string analyzer = 2; + * @param value The analyzer to set. * @return This builder for chaining. */ - public Builder setColumnName( + public Builder setAnalyzer( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - columnName_ = value; + analyzer_ = value; onChanged(); return this; } /** - * string column_name = 1; + * string analyzer = 2; * @return This builder for chaining. */ - public Builder clearColumnName() { + public Builder clearAnalyzer() { - columnName_ = getDefaultInstance().getColumnName(); + analyzer_ = getDefaultInstance().getAnalyzer(); onChanged(); return this; } /** - * string column_name = 1; - * @param value The bytes for columnName to set. + * string analyzer = 2; + * @param value The bytes for analyzer to set. * @return This builder for chaining. */ - public Builder setColumnNameBytes( + public Builder setAnalyzerBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - columnName_ = value; + analyzer_ = value; onChanged(); return this; } - private com.google.protobuf.MapField< - java.lang.String, java.lang.String> options_; - private com.google.protobuf.MapField - internalGetOptions() { - if (options_ == null) { - return com.google.protobuf.MapField.emptyMapField( - OptionsDefaultEntryHolder.defaultEntry); - } - return options_; - } - private com.google.protobuf.MapField - internalGetMutableOptions() { - onChanged();; - if (options_ == null) { - options_ = com.google.protobuf.MapField.newMapField( - OptionsDefaultEntryHolder.defaultEntry); - } - if (!options_.isMutable()) { - options_ = options_.copy(); - } - return options_; - } - - public int getOptionsCount() { - return internalGetOptions().getMap().size(); - } - /** - * map<string, string> options = 2; - */ - - @java.lang.Override - public boolean containsOptions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - return internalGetOptions().getMap().containsKey(key); - } - /** - * Use {@link #getOptionsMap()} instead. - */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getOptions() { - return getOptionsMap(); - } - /** - * map<string, string> options = 2; - */ - @java.lang.Override - - public java.util.Map getOptionsMap() { - return internalGetOptions().getMap(); - } - /** - * map<string, string> options = 2; - */ - @java.lang.Override - - public java.lang.String getOptionsOrDefault( - java.lang.String key, - java.lang.String defaultValue) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOptions().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } + private boolean caseSensitive_ ; /** - * map<string, string> options = 2; + * bool case_sensitive = 3; + * @return The caseSensitive. */ @java.lang.Override - - public java.lang.String getOptionsOrThrow( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - java.util.Map map = - internalGetOptions().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearOptions() { - internalGetMutableOptions().getMutableMap() - .clear(); - return this; - } - /** - * map<string, string> options = 2; - */ - - public Builder removeOptions( - java.lang.String key) { - if (key == null) { throw new NullPointerException("map key"); } - internalGetMutableOptions().getMutableMap() - .remove(key); - return this; - } - /** - * Use alternate mutation accessors instead. - */ - @java.lang.Deprecated - public java.util.Map - getMutableOptions() { - return internalGetMutableOptions().getMutableMap(); + public boolean getCaseSensitive() { + return caseSensitive_; } /** - * map<string, string> options = 2; + * bool case_sensitive = 3; + * @param value The caseSensitive to set. + * @return This builder for chaining. */ - public Builder putOptions( - java.lang.String key, - java.lang.String value) { - if (key == null) { throw new NullPointerException("map key"); } - if (value == null) { - throw new NullPointerException("map value"); -} - - internalGetMutableOptions().getMutableMap() - .put(key, value); + public Builder setCaseSensitive(boolean value) { + + caseSensitive_ = value; + onChanged(); return this; } /** - * map<string, string> options = 2; + * bool case_sensitive = 3; + * @return This builder for chaining. */ - - public Builder putAllOptions( - java.util.Map values) { - internalGetMutableOptions().getMutableMap() - .putAll(values); + public Builder clearCaseSensitive() { + + caseSensitive_ = false; + onChanged(); return this; } @java.lang.Override @@ -21092,41 +21682,41 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:greptime.v1.ChangeFulltext) + // @@protoc_insertion_point(builder_scope:greptime.v1.FulltextOptions) } - // @@protoc_insertion_point(class_scope:greptime.v1.ChangeFulltext) - private static final io.greptime.v1.Ddl.ChangeFulltext DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:greptime.v1.FulltextOptions) + private static final io.greptime.v1.Ddl.FulltextOptions DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.ChangeFulltext(); + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.FulltextOptions(); } - public static io.greptime.v1.Ddl.ChangeFulltext getDefaultInstance() { + public static io.greptime.v1.Ddl.FulltextOptions getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public ChangeFulltext parsePartialFrom( + public FulltextOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ChangeFulltext(input, extensionRegistry); + return new FulltextOptions(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public io.greptime.v1.Ddl.ChangeFulltext getDefaultInstanceForType() { + public io.greptime.v1.Ddl.FulltextOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } @@ -27439,10 +28029,10 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_ChangeFulltext_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor; + internal_static_greptime_v1_FulltextOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_ChangeFulltext_OptionsEntry_fieldAccessorTable; + internal_static_greptime_v1_FulltextOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_RenameTable_descriptor; private static final @@ -27566,34 +28156,34 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { "umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013" + "2\027.greptime.v1.DropColumn\"O\n\021ChangeColum" + "nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr" + - "eptime.v1.ChangeColumnType\"\220\001\n\016ChangeFul" + - "ltext\022\023\n\013column_name\030\001 \001(\t\0229\n\007options\030\002 " + - "\003(\0132(.greptime.v1.ChangeFulltext.Options" + - "Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va" + - "lue\030\002 \001(\t:\0028\001\"%\n\013RenameTable\022\026\n\016new_tabl" + - "e_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030" + - "\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n\010locatio" + - "n\030\003 \001(\0132\036.greptime.v1.AddColumnLocation\"" + - "\236\001\n\020ChangeColumnType\022\023\n\013column_name\030\001 \001(" + - "\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.Col" + - "umnDataType\022C\n\025target_type_extension\030\003 \001" + - "(\0132$.greptime.v1.ColumnDataTypeExtension" + - "\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022" + - "\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\254\002\n\tCo" + - "lumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\016" + - "2\033.greptime.v1.ColumnDataType\022\023\n\013is_null" + - "able\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220" + - "\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Sema" + - "nticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_ex" + - "tension\030\007 \001(\0132$.greptime.v1.ColumnDataTy" + - "peExtension\022+\n\007options\030\010 \001(\0132\032.greptime." + - "v1.ColumnOptions\"\230\001\n\021AddColumnLocation\022B" + - "\n\rlocation_type\030\001 \001(\0162+.greptime.v1.AddC" + - "olumnLocation.LocationType\022\031\n\021after_colu" + - "mn_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000" + - "\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5gith" + - "ub.com/GreptimeTeam/greptime-proto/go/gr" + - "eptime/v1b\006proto3" + "eptime.v1.ChangeColumnType\"T\n\016ChangeFull" + + "text\022\023\n\013column_name\030\001 \001(\t\022-\n\007options\030\002 \001" + + "(\0132\034.greptime.v1.FulltextOptions\"K\n\017Full" + + "textOptions\022\016\n\006enable\030\001 \001(\010\022\020\n\010analyzer\030" + + "\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"%\n\013RenameT" + + "able\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColum" + + "n\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colu" + + "mnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Ad" + + "dColumnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013" + + "column_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033" + + ".greptime.v1.ColumnDataType\022C\n\025target_ty" + + "pe_extension\030\003 \001(\0132$.greptime.v1.ColumnD" + + "ataTypeExtension\"\032\n\nDropColumn\022\014\n\004name\030\001" + + " \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n" + + "\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n" + + "\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnDat" + + "aType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_co" + + "nstraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031." + + "greptime.v1.SemanticType\022\017\n\007comment\030\006 \001(" + + "\t\022@\n\022datatype_extension\030\007 \001(\0132$.greptime" + + ".v1.ColumnDataTypeExtension\022+\n\007options\030\010" + + " \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021Add" + + "ColumnLocation\022B\n\rlocation_type\030\001 \001(\0162+." + + "greptime.v1.AddColumnLocation.LocationTy" + + "pe\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locatio" + + "nType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grepti" + + "me.v1B\003DdlZ5github.com/GreptimeTeam/grep" + + "time-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -27708,56 +28298,56 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeFulltext_descriptor, new java.lang.String[] { "ColumnName", "Options", }); - internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor = - internal_static_greptime_v1_ChangeFulltext_descriptor.getNestedTypes().get(0); - internal_static_greptime_v1_ChangeFulltext_OptionsEntry_fieldAccessorTable = new + internal_static_greptime_v1_FulltextOptions_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_greptime_v1_FulltextOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_ChangeFulltext_OptionsEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); + internal_static_greptime_v1_FulltextOptions_descriptor, + new java.lang.String[] { "Enable", "Analyzer", "CaseSensitive", }); internal_static_greptime_v1_RenameTable_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_RenameTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RenameTable_descriptor, new java.lang.String[] { "NewTableName", }); internal_static_greptime_v1_AddColumn_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(17); internal_static_greptime_v1_AddColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumn_descriptor, new java.lang.String[] { "ColumnDef", "Location", }); internal_static_greptime_v1_ChangeColumnType_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(18); internal_static_greptime_v1_ChangeColumnType_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ChangeColumnType_descriptor, new java.lang.String[] { "ColumnName", "TargetType", "TargetTypeExtension", }); internal_static_greptime_v1_DropColumn_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(19); internal_static_greptime_v1_DropColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumn_descriptor, new java.lang.String[] { "Name", }); internal_static_greptime_v1_TableId_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(20); internal_static_greptime_v1_TableId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TableId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_FlowId_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_greptime_v1_FlowId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_FlowId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_ColumnDef_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDef_descriptor, new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", "Options", }); internal_static_greptime_v1_AddColumnLocation_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(23); internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumnLocation_descriptor, diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java index ada71e1b..54ad5fc3 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -16434,19 +16434,19 @@ public interface AlterRequestOrBuilder extends io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuilder(); /** - * .greptime.v1.ChangeFulltext change_fulltex = 6; - * @return Whether the changeFulltex field is set. + * .greptime.v1.ChangeFulltext change_fulltext = 6; + * @return Whether the changeFulltext field is set. */ - boolean hasChangeFulltex(); + boolean hasChangeFulltext(); /** - * .greptime.v1.ChangeFulltext change_fulltex = 6; - * @return The changeFulltex. + * .greptime.v1.ChangeFulltext change_fulltext = 6; + * @return The changeFulltext. */ - io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex(); + io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext(); /** - * .greptime.v1.ChangeFulltext change_fulltex = 6; + * .greptime.v1.ChangeFulltext change_fulltext = 6; */ - io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder(); + io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder(); /** *
@@ -16613,7 +16613,7 @@ public enum KindCase
       ADD_COLUMNS(2),
       DROP_COLUMNS(3),
       CHANGE_COLUMN_TYPES(5),
-      CHANGE_FULLTEX(6),
+      CHANGE_FULLTEXT(6),
       KIND_NOT_SET(0);
       private final int value;
       private KindCase(int value) {
@@ -16634,7 +16634,7 @@ public static KindCase forNumber(int value) {
           case 2: return ADD_COLUMNS;
           case 3: return DROP_COLUMNS;
           case 5: return CHANGE_COLUMN_TYPES;
-          case 6: return CHANGE_FULLTEX;
+          case 6: return CHANGE_FULLTEXT;
           case 0: return KIND_NOT_SET;
           default: return null;
         }
@@ -16754,31 +16754,31 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild
       return io.greptime.v1.Ddl.ChangeColumnTypes.getDefaultInstance();
     }
 
-    public static final int CHANGE_FULLTEX_FIELD_NUMBER = 6;
+    public static final int CHANGE_FULLTEXT_FIELD_NUMBER = 6;
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
-     * @return Whether the changeFulltex field is set.
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
+     * @return Whether the changeFulltext field is set.
      */
     @java.lang.Override
-    public boolean hasChangeFulltex() {
+    public boolean hasChangeFulltext() {
       return kindCase_ == 6;
     }
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
-     * @return The changeFulltex.
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
+     * @return The changeFulltext.
      */
     @java.lang.Override
-    public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex() {
+    public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext() {
       if (kindCase_ == 6) {
          return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
       }
       return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
     }
     /**
-     * .greptime.v1.ChangeFulltext change_fulltex = 6;
+     * .greptime.v1.ChangeFulltext change_fulltext = 6;
      */
     @java.lang.Override
-    public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
+    public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder() {
       if (kindCase_ == 6) {
          return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
       }
@@ -16899,8 +16899,8 @@ public boolean equals(final java.lang.Object obj) {
               .equals(other.getChangeColumnTypes())) return false;
           break;
         case 6:
-          if (!getChangeFulltex()
-              .equals(other.getChangeFulltex())) return false;
+          if (!getChangeFulltext()
+              .equals(other.getChangeFulltext())) return false;
           break;
         case 0:
         default:
@@ -16936,8 +16936,8 @@ public int hashCode() {
           hash = (53 * hash) + getChangeColumnTypes().hashCode();
           break;
         case 6:
-          hash = (37 * hash) + CHANGE_FULLTEX_FIELD_NUMBER;
-          hash = (53 * hash) + getChangeFulltex().hashCode();
+          hash = (37 * hash) + CHANGE_FULLTEXT_FIELD_NUMBER;
+          hash = (53 * hash) + getChangeFulltext().hashCode();
           break;
         case 0:
         default:
@@ -17130,10 +17130,10 @@ public io.greptime.v1.region.Server.AlterRequest buildPartial() {
           }
         }
         if (kindCase_ == 6) {
-          if (changeFulltexBuilder_ == null) {
+          if (changeFulltextBuilder_ == null) {
             result.kind_ = kind_;
           } else {
-            result.kind_ = changeFulltexBuilder_.build();
+            result.kind_ = changeFulltextBuilder_.build();
           }
         }
         result.schemaVersion_ = schemaVersion_;
@@ -17205,8 +17205,8 @@ public Builder mergeFrom(io.greptime.v1.region.Server.AlterRequest other) {
             mergeChangeColumnTypes(other.getChangeColumnTypes());
             break;
           }
-          case CHANGE_FULLTEX: {
-            mergeChangeFulltex(other.getChangeFulltex());
+          case CHANGE_FULLTEXT: {
+            mergeChangeFulltext(other.getChangeFulltext());
             break;
           }
           case KIND_NOT_SET: {
@@ -17715,68 +17715,68 @@ public io.greptime.v1.Ddl.ChangeColumnTypesOrBuilder getChangeColumnTypesOrBuild
       }
 
       private com.google.protobuf.SingleFieldBuilderV3<
-          io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> changeFulltexBuilder_;
+          io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> changeFulltextBuilder_;
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
-       * @return Whether the changeFulltex field is set.
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
+       * @return Whether the changeFulltext field is set.
        */
       @java.lang.Override
-      public boolean hasChangeFulltex() {
+      public boolean hasChangeFulltext() {
         return kindCase_ == 6;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
-       * @return The changeFulltex.
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
+       * @return The changeFulltext.
        */
       @java.lang.Override
-      public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltex() {
-        if (changeFulltexBuilder_ == null) {
+      public io.greptime.v1.Ddl.ChangeFulltext getChangeFulltext() {
+        if (changeFulltextBuilder_ == null) {
           if (kindCase_ == 6) {
             return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
           }
           return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
         } else {
           if (kindCase_ == 6) {
-            return changeFulltexBuilder_.getMessage();
+            return changeFulltextBuilder_.getMessage();
           }
           return io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
         }
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public Builder setChangeFulltex(io.greptime.v1.Ddl.ChangeFulltext value) {
-        if (changeFulltexBuilder_ == null) {
+      public Builder setChangeFulltext(io.greptime.v1.Ddl.ChangeFulltext value) {
+        if (changeFulltextBuilder_ == null) {
           if (value == null) {
             throw new NullPointerException();
           }
           kind_ = value;
           onChanged();
         } else {
-          changeFulltexBuilder_.setMessage(value);
+          changeFulltextBuilder_.setMessage(value);
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public Builder setChangeFulltex(
+      public Builder setChangeFulltext(
           io.greptime.v1.Ddl.ChangeFulltext.Builder builderForValue) {
-        if (changeFulltexBuilder_ == null) {
+        if (changeFulltextBuilder_ == null) {
           kind_ = builderForValue.build();
           onChanged();
         } else {
-          changeFulltexBuilder_.setMessage(builderForValue.build());
+          changeFulltextBuilder_.setMessage(builderForValue.build());
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public Builder mergeChangeFulltex(io.greptime.v1.Ddl.ChangeFulltext value) {
-        if (changeFulltexBuilder_ == null) {
+      public Builder mergeChangeFulltext(io.greptime.v1.Ddl.ChangeFulltext value) {
+        if (changeFulltextBuilder_ == null) {
           if (kindCase_ == 6 &&
               kind_ != io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance()) {
             kind_ = io.greptime.v1.Ddl.ChangeFulltext.newBuilder((io.greptime.v1.Ddl.ChangeFulltext) kind_)
@@ -17787,19 +17787,19 @@ public Builder mergeChangeFulltex(io.greptime.v1.Ddl.ChangeFulltext value) {
           onChanged();
         } else {
           if (kindCase_ == 6) {
-            changeFulltexBuilder_.mergeFrom(value);
+            changeFulltextBuilder_.mergeFrom(value);
           } else {
-            changeFulltexBuilder_.setMessage(value);
+            changeFulltextBuilder_.setMessage(value);
           }
         }
         kindCase_ = 6;
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public Builder clearChangeFulltex() {
-        if (changeFulltexBuilder_ == null) {
+      public Builder clearChangeFulltext() {
+        if (changeFulltextBuilder_ == null) {
           if (kindCase_ == 6) {
             kindCase_ = 0;
             kind_ = null;
@@ -17810,23 +17810,23 @@ public Builder clearChangeFulltex() {
             kindCase_ = 0;
             kind_ = null;
           }
-          changeFulltexBuilder_.clear();
+          changeFulltextBuilder_.clear();
         }
         return this;
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
-      public io.greptime.v1.Ddl.ChangeFulltext.Builder getChangeFulltexBuilder() {
-        return getChangeFulltexFieldBuilder().getBuilder();
+      public io.greptime.v1.Ddl.ChangeFulltext.Builder getChangeFulltextBuilder() {
+        return getChangeFulltextFieldBuilder().getBuilder();
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
       @java.lang.Override
-      public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
-        if ((kindCase_ == 6) && (changeFulltexBuilder_ != null)) {
-          return changeFulltexBuilder_.getMessageOrBuilder();
+      public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltextOrBuilder() {
+        if ((kindCase_ == 6) && (changeFulltextBuilder_ != null)) {
+          return changeFulltextBuilder_.getMessageOrBuilder();
         } else {
           if (kindCase_ == 6) {
             return (io.greptime.v1.Ddl.ChangeFulltext) kind_;
@@ -17835,16 +17835,16 @@ public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
         }
       }
       /**
-       * .greptime.v1.ChangeFulltext change_fulltex = 6;
+       * .greptime.v1.ChangeFulltext change_fulltext = 6;
        */
       private com.google.protobuf.SingleFieldBuilderV3<
           io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder> 
-          getChangeFulltexFieldBuilder() {
-        if (changeFulltexBuilder_ == null) {
+          getChangeFulltextFieldBuilder() {
+        if (changeFulltextBuilder_ == null) {
           if (!(kindCase_ == 6)) {
             kind_ = io.greptime.v1.Ddl.ChangeFulltext.getDefaultInstance();
           }
-          changeFulltexBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+          changeFulltextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
               io.greptime.v1.Ddl.ChangeFulltext, io.greptime.v1.Ddl.ChangeFulltext.Builder, io.greptime.v1.Ddl.ChangeFulltextOrBuilder>(
                   (io.greptime.v1.Ddl.ChangeFulltext) kind_,
                   getParentForChildren(),
@@ -17853,7 +17853,7 @@ public io.greptime.v1.Ddl.ChangeFulltextOrBuilder getChangeFulltexOrBuilder() {
         }
         kindCase_ = 6;
         onChanged();;
-        return changeFulltexBuilder_;
+        return changeFulltextBuilder_;
       }
 
       private long schemaVersion_ ;
@@ -24794,36 +24794,36 @@ public io.greptime.v1.region.Server.RegionColumnDef getDefaultInstanceForType()
       "OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" +
       ":\0028\001\"!\n\014CloseRequest\022\021\n\tregion_id\030\001 \001(\004\"" +
       "C\n\rAlterRequests\0222\n\010requests\030\001 \003(\0132 .gre" +
-      "ptime.v1.region.AlterRequest\"\247\002\n\014AlterRe" +
+      "ptime.v1.region.AlterRequest\"\250\002\n\014AlterRe" +
       "quest\022\021\n\tregion_id\030\001 \001(\004\0225\n\013add_columns\030" +
       "\002 \001(\0132\036.greptime.v1.region.AddColumnsH\000\022" +
       "7\n\014drop_columns\030\003 \001(\0132\037.greptime.v1.regi" +
       "on.DropColumnsH\000\022=\n\023change_column_types\030" +
       "\005 \001(\0132\036.greptime.v1.ChangeColumnTypesH\000\022" +
-      "5\n\016change_fulltex\030\006 \001(\0132\033.greptime.v1.Ch" +
-      "angeFulltextH\000\022\026\n\016schema_version\030\004 \001(\004B\006" +
-      "\n\004kind\"@\n\nAddColumns\0222\n\013add_columns\030\001 \003(" +
-      "\0132\035.greptime.v1.region.AddColumn\"C\n\013Drop" +
-      "Columns\0224\n\014drop_columns\030\001 \003(\0132\036.greptime" +
-      ".v1.region.DropColumn\"v\n\tAddColumn\0227\n\nco" +
-      "lumn_def\030\001 \001(\0132#.greptime.v1.region.Regi" +
-      "onColumnDef\0220\n\010location\030\003 \001(\0132\036.greptime" +
-      ".v1.AddColumnLocation\"\032\n\nDropColumn\022\014\n\004n" +
-      "ame\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\tregion_id\030\001" +
-      " \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022\026\n\016windo" +
-      "w_seconds\030\001 \001(\003\"\231\001\n\016CompactRequest\022\021\n\tre" +
-      "gion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033.greptim" +
-      "e.v1.region.RegularH\000\0229\n\rstrict_window\030\003" +
-      " \001(\0132 .greptime.v1.region.StrictWindowH\000" +
-      "B\t\n\007options\"$\n\017TruncateRequest\022\021\n\tregion" +
-      "_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\ncolumn_d" +
-      "ef\030\001 \001(\0132\026.greptime.v1.ColumnDef\022\021\n\tcolu" +
-      "mn_id\030\002 \001(\r2Y\n\006Region\022O\n\006Handle\022!.grepti" +
-      "me.v1.region.RegionRequest\032\".greptime.v1" +
-      ".region.RegionResponseB]\n\025io.greptime.v1" +
-      ".regionB\006ServerZ options = 2;
+    FulltextOptions options = 2;
+}
+
+message FulltextOptions {
+    bool enable = 1;
+    string analyzer = 2;
+    bool case_sensitive = 3;
 }
 
 message RenameTable { string new_table_name = 1; }