diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 4afc5e63..3991332a 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -505,6 +505,8 @@ PROTOBUF_CONSTEXPR SetFulltext::SetFulltext( , /*decltype(_impl_.analyzer_)*/0 , /*decltype(_impl_.enable_)*/false , /*decltype(_impl_.case_sensitive_)*/false + , /*decltype(_impl_.granularity_)*/uint64_t{0u} + , /*decltype(_impl_.false_positive_rate_)*/0 , /*decltype(_impl_.backend_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct SetFulltextDefaultTypeInternal { @@ -561,6 +563,7 @@ PROTOBUF_CONSTEXPR SetSkipping::SetSkipping( , /*decltype(_impl_.granularity_)*/uint64_t{0u} , /*decltype(_impl_.enable_)*/false , /*decltype(_impl_.skipping_index_type_)*/0 + , /*decltype(_impl_.false_positive_rate_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} struct SetSkippingDefaultTypeInternal { PROTOBUF_CONSTEXPR SetSkippingDefaultTypeInternal() @@ -1062,6 +1065,8 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::SetFulltext, _impl_.analyzer_), PROTOBUF_FIELD_OFFSET(::greptime::v1::SetFulltext, _impl_.case_sensitive_), PROTOBUF_FIELD_OFFSET(::greptime::v1::SetFulltext, _impl_.backend_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetFulltext, _impl_.granularity_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetFulltext, _impl_.false_positive_rate_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetFulltext, _internal_metadata_), ~0u, // no _extensions_ @@ -1093,6 +1098,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _impl_.enable_), PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _impl_.granularity_), PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _impl_.skipping_index_type_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::SetSkipping, _impl_.false_positive_rate_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetSkipping, _internal_metadata_), ~0u, // no _extensions_ @@ -1230,21 +1236,21 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 299, -1, -1, sizeof(::greptime::v1::ColumnDef)}, { 313, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, { 321, -1, -1, sizeof(::greptime::v1::SetFulltext)}, - { 332, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, - { 339, -1, -1, sizeof(::greptime::v1::SetInverted)}, - { 346, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, - { 353, -1, -1, sizeof(::greptime::v1::SetSkipping)}, - { 363, -1, -1, sizeof(::greptime::v1::UnsetSkipping)}, - { 370, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, - { 381, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, - { 388, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, - { 395, 403, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)}, - { 405, 413, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)}, - { 415, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)}, - { 429, -1, -1, sizeof(::greptime::v1::NotifyChannel)}, - { 438, 446, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)}, - { 448, -1, -1, sizeof(::greptime::v1::WebhookOptions)}, - { 456, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)}, + { 334, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, + { 341, -1, -1, sizeof(::greptime::v1::SetInverted)}, + { 348, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, + { 355, -1, -1, sizeof(::greptime::v1::SetSkipping)}, + { 366, -1, -1, sizeof(::greptime::v1::UnsetSkipping)}, + { 373, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, + { 384, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, + { 391, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, + { 398, 406, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)}, + { 408, 416, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)}, + { 418, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)}, + { 432, -1, -1, sizeof(::greptime::v1::NotifyChannel)}, + { 441, 449, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)}, + { 451, -1, -1, sizeof(::greptime::v1::WebhookOptions)}, + { 459, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1416,56 +1422,58 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "lumnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gr" "eptime.v1.AddColumnLocation.LocationType" "\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationT" - "ype\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\242\001\n\013SetFulltex" + "ype\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltex" "t\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'" "\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022" "\026\n\016case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\016" - "2\034.greptime.v1.FulltextBackend\"$\n\rUnsetF" - "ulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013SetInver" - "ted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnsetInverte" - "d\022\023\n\013column_name\030\001 \001(\t\"\204\001\n\013SetSkipping\022\023" - "\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\023\n\013g" - "ranularity\030\003 \001(\004\022;\n\023skipping_index_type\030" - "\004 \001(\0162\036.greptime.v1.SkippingIndexType\"$\n" - "\rUnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021" - "AlterDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022" - "\023\n\013schema_name\030\002 \001(\t\022\?\n\024set_database_opt" - "ions\030\003 \001(\0132\037.greptime.v1.SetDatabaseOpti" - "onsH\000\022C\n\026unset_database_options\030\004 \001(\0132!." - "greptime.v1.UnsetDatabaseOptionsH\000B\006\n\004ki" - "nd\"G\n\022SetDatabaseOptions\0221\n\024set_database" - "_options\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024U" - "nsetDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Cr" - "eateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n" - "\014trigger_name\030\002 \001(\t\022\034\n\024create_if_not_exi" - "sts\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\013" - "2\032.greptime.v1.NotifyChannel\022:\n\006labels\030\006" - " \003(\0132*.greptime.v1.CreateTriggerExpr.Lab" - "elsEntry\022D\n\013annotations\030\007 \003(\0132/.greptime" - ".v1.CreateTriggerExpr.AnnotationsEntry\022\020" - "\n\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001" - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEn" - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rN" - "otifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 " - "\001(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n\014ch" - "annel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(" - "\t\0223\n\004opts\030\002 \003(\0132%.greptime.v1.WebhookOpt" - "ions.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t" - "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024" - "\n\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001" - "(\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013" - "\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBack" - "end\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingI" - "ndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptim" - "e.v1B\003DdlZ5github.com/GreptimeTeam/grept" - "ime-proto/go/greptime/v1b\006proto3" + "2\034.greptime.v1.FulltextBackend\022\023\n\013granul" + "arity\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001" + "\"$\n\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"" + "\n\013SetInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUn" + "setInverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013Set" + "Skipping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030" + "\002 \001(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_i" + "ndex_type\030\004 \001(\0162\036.greptime.v1.SkippingIn" + "dexType\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\r" + "UnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021A" + "lterDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" + "\n\013schema_name\030\002 \001(\t\022\?\n\024set_database_opti" + "ons\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptio" + "nsH\000\022C\n\026unset_database_options\030\004 \001(\0132!.g" + "reptime.v1.UnsetDatabaseOptionsH\000B\006\n\004kin" + "d\"G\n\022SetDatabaseOptions\0221\n\024set_database_" + "options\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Un" + "setDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Cre" + "ateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014" + "trigger_name\030\002 \001(\t\022\034\n\024create_if_not_exis" + "ts\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132" + "\032.greptime.v1.NotifyChannel\022:\n\006labels\030\006 " + "\003(\0132*.greptime.v1.CreateTriggerExpr.Labe" + "lsEntry\022D\n\013annotations\030\007 \003(\0132/.greptime." + "v1.CreateTriggerExpr.AnnotationsEntry\022\020\n" + "\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEnt" + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNo" + "tifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001" + "(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n\014cha" + "nnel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t" + "\0223\n\004opts\030\002 \003(\0132%.greptime.v1.WebhookOpti" + "ons.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022" + "\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n" + "\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(" + "\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n" + "\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBacke" + "nd\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIn" + "dexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime" + ".v1B\003DdlZ5github.com/GreptimeTeam/grepti" + "me-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, 6392, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 6471, 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, 48, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -11464,6 +11472,8 @@ SetFulltext::SetFulltext(const SetFulltext& from) , decltype(_impl_.analyzer_){} , decltype(_impl_.enable_){} , decltype(_impl_.case_sensitive_){} + , decltype(_impl_.granularity_){} + , decltype(_impl_.false_positive_rate_){} , decltype(_impl_.backend_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -11491,6 +11501,8 @@ inline void SetFulltext::SharedCtor( , decltype(_impl_.analyzer_){0} , decltype(_impl_.enable_){false} , decltype(_impl_.case_sensitive_){false} + , decltype(_impl_.granularity_){uint64_t{0u}} + , decltype(_impl_.false_positive_rate_){0} , decltype(_impl_.backend_){0} , /*decltype(_impl_._cached_size_)*/{} }; @@ -11581,6 +11593,22 @@ const char* SetFulltext::_InternalParse(const char* ptr, ::_pbi::ParseContext* c } else goto handle_unusual; continue; + // uint64 granularity = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 48)) { + _impl_.granularity_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // double false_positive_rate = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 57)) { + _impl_.false_positive_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -11646,6 +11674,22 @@ uint8_t* SetFulltext::_InternalSerialize( 5, this->_internal_backend(), target); } + // uint64 granularity = 6; + if (this->_internal_granularity() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteUInt64ToArray(6, this->_internal_granularity(), target); + } + + // double false_positive_rate = 7; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_false_positive_rate = this->_internal_false_positive_rate(); + uint64_t raw_false_positive_rate; + memcpy(&raw_false_positive_rate, &tmp_false_positive_rate, sizeof(tmp_false_positive_rate)); + if (raw_false_positive_rate != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(7, this->_internal_false_positive_rate(), 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); @@ -11685,6 +11729,20 @@ size_t SetFulltext::ByteSizeLong() const { total_size += 1 + 1; } + // uint64 granularity = 6; + if (this->_internal_granularity() != 0) { + total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_granularity()); + } + + // double false_positive_rate = 7; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_false_positive_rate = this->_internal_false_positive_rate(); + uint64_t raw_false_positive_rate; + memcpy(&raw_false_positive_rate, &tmp_false_positive_rate, sizeof(tmp_false_positive_rate)); + if (raw_false_positive_rate != 0) { + total_size += 1 + 8; + } + // .greptime.v1.FulltextBackend backend = 5; if (this->_internal_backend() != 0) { total_size += 1 + @@ -11721,6 +11779,16 @@ void SetFulltext::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR if (from._internal_case_sensitive() != 0) { _this->_internal_set_case_sensitive(from._internal_case_sensitive()); } + if (from._internal_granularity() != 0) { + _this->_internal_set_granularity(from._internal_granularity()); + } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_false_positive_rate = from._internal_false_positive_rate(); + uint64_t raw_false_positive_rate; + memcpy(&raw_false_positive_rate, &tmp_false_positive_rate, sizeof(tmp_false_positive_rate)); + if (raw_false_positive_rate != 0) { + _this->_internal_set_false_positive_rate(from._internal_false_positive_rate()); + } if (from._internal_backend() != 0) { _this->_internal_set_backend(from._internal_backend()); } @@ -12390,6 +12458,7 @@ SetSkipping::SetSkipping(const SetSkipping& from) , decltype(_impl_.granularity_){} , decltype(_impl_.enable_){} , decltype(_impl_.skipping_index_type_){} + , decltype(_impl_.false_positive_rate_){} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -12402,8 +12471,8 @@ SetSkipping::SetSkipping(const SetSkipping& from) _this->GetArenaForAllocation()); } ::memcpy(&_impl_.granularity_, &from._impl_.granularity_, - static_cast(reinterpret_cast(&_impl_.skipping_index_type_) - - reinterpret_cast(&_impl_.granularity_)) + sizeof(_impl_.skipping_index_type_)); + static_cast(reinterpret_cast(&_impl_.false_positive_rate_) - + reinterpret_cast(&_impl_.granularity_)) + sizeof(_impl_.false_positive_rate_)); // @@protoc_insertion_point(copy_constructor:greptime.v1.SetSkipping) } @@ -12416,6 +12485,7 @@ inline void SetSkipping::SharedCtor( , decltype(_impl_.granularity_){uint64_t{0u}} , decltype(_impl_.enable_){false} , decltype(_impl_.skipping_index_type_){0} + , decltype(_impl_.false_positive_rate_){0} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.column_name_.InitDefault(); @@ -12450,8 +12520,8 @@ void SetSkipping::Clear() { _impl_.column_name_.ClearToEmpty(); ::memset(&_impl_.granularity_, 0, static_cast( - reinterpret_cast(&_impl_.skipping_index_type_) - - reinterpret_cast(&_impl_.granularity_)) + sizeof(_impl_.skipping_index_type_)); + reinterpret_cast(&_impl_.false_positive_rate_) - + reinterpret_cast(&_impl_.granularity_)) + sizeof(_impl_.false_positive_rate_)); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -12496,6 +12566,14 @@ const char* SetSkipping::_InternalParse(const char* ptr, ::_pbi::ParseContext* c } else goto handle_unusual; continue; + // double false_positive_rate = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 41)) { + _impl_.false_positive_rate_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad(ptr); + ptr += sizeof(double); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -12554,6 +12632,16 @@ uint8_t* SetSkipping::_InternalSerialize( 4, this->_internal_skipping_index_type(), target); } + // double false_positive_rate = 5; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_false_positive_rate = this->_internal_false_positive_rate(); + uint64_t raw_false_positive_rate; + memcpy(&raw_false_positive_rate, &tmp_false_positive_rate, sizeof(tmp_false_positive_rate)); + if (raw_false_positive_rate != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteDoubleToArray(5, this->_internal_false_positive_rate(), 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); @@ -12593,6 +12681,15 @@ size_t SetSkipping::ByteSizeLong() const { ::_pbi::WireFormatLite::EnumSize(this->_internal_skipping_index_type()); } + // double false_positive_rate = 5; + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_false_positive_rate = this->_internal_false_positive_rate(); + uint64_t raw_false_positive_rate; + memcpy(&raw_false_positive_rate, &tmp_false_positive_rate, sizeof(tmp_false_positive_rate)); + if (raw_false_positive_rate != 0) { + total_size += 1 + 8; + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -12623,6 +12720,13 @@ void SetSkipping::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR if (from._internal_skipping_index_type() != 0) { _this->_internal_set_skipping_index_type(from._internal_skipping_index_type()); } + static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size."); + double tmp_false_positive_rate = from._internal_false_positive_rate(); + uint64_t raw_false_positive_rate; + memcpy(&raw_false_positive_rate, &tmp_false_positive_rate, sizeof(tmp_false_positive_rate)); + if (raw_false_positive_rate != 0) { + _this->_internal_set_false_positive_rate(from._internal_false_positive_rate()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -12647,8 +12751,8 @@ void SetSkipping::InternalSwap(SetSkipping* other) { &other->_impl_.column_name_, rhs_arena ); ::PROTOBUF_NAMESPACE_ID::internal::memswap< - PROTOBUF_FIELD_OFFSET(SetSkipping, _impl_.skipping_index_type_) - + sizeof(SetSkipping::_impl_.skipping_index_type_) + PROTOBUF_FIELD_OFFSET(SetSkipping, _impl_.false_positive_rate_) + + sizeof(SetSkipping::_impl_.false_positive_rate_) - PROTOBUF_FIELD_OFFSET(SetSkipping, _impl_.granularity_)>( reinterpret_cast(&_impl_.granularity_), reinterpret_cast(&other->_impl_.granularity_)); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 18ee6bb1..56213de3 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -6641,6 +6641,8 @@ class SetFulltext final : kAnalyzerFieldNumber = 3, kEnableFieldNumber = 2, kCaseSensitiveFieldNumber = 4, + kGranularityFieldNumber = 6, + kFalsePositiveRateFieldNumber = 7, kBackendFieldNumber = 5, }; // string column_name = 1; @@ -6684,6 +6686,24 @@ class SetFulltext final : void _internal_set_case_sensitive(bool value); public: + // uint64 granularity = 6; + void clear_granularity(); + uint64_t granularity() const; + void set_granularity(uint64_t value); + private: + uint64_t _internal_granularity() const; + void _internal_set_granularity(uint64_t value); + public: + + // double false_positive_rate = 7; + void clear_false_positive_rate(); + double false_positive_rate() const; + void set_false_positive_rate(double value); + private: + double _internal_false_positive_rate() const; + void _internal_set_false_positive_rate(double value); + public: + // .greptime.v1.FulltextBackend backend = 5; void clear_backend(); ::greptime::v1::FulltextBackend backend() const; @@ -6705,6 +6725,8 @@ class SetFulltext final : int analyzer_; bool enable_; bool case_sensitive_; + uint64_t granularity_; + double false_positive_rate_; int backend_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -7297,6 +7319,7 @@ class SetSkipping final : kGranularityFieldNumber = 3, kEnableFieldNumber = 2, kSkippingIndexTypeFieldNumber = 4, + kFalsePositiveRateFieldNumber = 5, }; // string column_name = 1; void clear_column_name(); @@ -7339,6 +7362,15 @@ class SetSkipping final : void _internal_set_skipping_index_type(::greptime::v1::SkippingIndexType value); public: + // double false_positive_rate = 5; + void clear_false_positive_rate(); + double false_positive_rate() const; + void set_false_positive_rate(double value); + private: + double _internal_false_positive_rate() const; + void _internal_set_false_positive_rate(double value); + public: + // @@protoc_insertion_point(class_scope:greptime.v1.SetSkipping) private: class _Internal; @@ -7351,6 +7383,7 @@ class SetSkipping final : uint64_t granularity_; bool enable_; int skipping_index_type_; + double false_positive_rate_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -15381,6 +15414,46 @@ inline void SetFulltext::set_backend(::greptime::v1::FulltextBackend value) { // @@protoc_insertion_point(field_set:greptime.v1.SetFulltext.backend) } +// uint64 granularity = 6; +inline void SetFulltext::clear_granularity() { + _impl_.granularity_ = uint64_t{0u}; +} +inline uint64_t SetFulltext::_internal_granularity() const { + return _impl_.granularity_; +} +inline uint64_t SetFulltext::granularity() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetFulltext.granularity) + return _internal_granularity(); +} +inline void SetFulltext::_internal_set_granularity(uint64_t value) { + + _impl_.granularity_ = value; +} +inline void SetFulltext::set_granularity(uint64_t value) { + _internal_set_granularity(value); + // @@protoc_insertion_point(field_set:greptime.v1.SetFulltext.granularity) +} + +// double false_positive_rate = 7; +inline void SetFulltext::clear_false_positive_rate() { + _impl_.false_positive_rate_ = 0; +} +inline double SetFulltext::_internal_false_positive_rate() const { + return _impl_.false_positive_rate_; +} +inline double SetFulltext::false_positive_rate() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetFulltext.false_positive_rate) + return _internal_false_positive_rate(); +} +inline void SetFulltext::_internal_set_false_positive_rate(double value) { + + _impl_.false_positive_rate_ = value; +} +inline void SetFulltext::set_false_positive_rate(double value) { + _internal_set_false_positive_rate(value); + // @@protoc_insertion_point(field_set:greptime.v1.SetFulltext.false_positive_rate) +} + // ------------------------------------------------------------------- // UnsetFulltext @@ -15657,6 +15730,26 @@ inline void SetSkipping::set_skipping_index_type(::greptime::v1::SkippingIndexTy // @@protoc_insertion_point(field_set:greptime.v1.SetSkipping.skipping_index_type) } +// double false_positive_rate = 5; +inline void SetSkipping::clear_false_positive_rate() { + _impl_.false_positive_rate_ = 0; +} +inline double SetSkipping::_internal_false_positive_rate() const { + return _impl_.false_positive_rate_; +} +inline double SetSkipping::false_positive_rate() const { + // @@protoc_insertion_point(field_get:greptime.v1.SetSkipping.false_positive_rate) + return _internal_false_positive_rate(); +} +inline void SetSkipping::_internal_set_false_positive_rate(double value) { + + _impl_.false_positive_rate_ = value; +} +inline void SetSkipping::set_false_positive_rate(double value) { + _internal_set_false_positive_rate(value); + // @@protoc_insertion_point(field_set:greptime.v1.SetSkipping.false_positive_rate) +} + // ------------------------------------------------------------------- // UnsetSkipping diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 2b94e945..0c83e0ab 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -2477,6 +2477,10 @@ type SetFulltext struct { Analyzer Analyzer `protobuf:"varint,3,opt,name=analyzer,proto3,enum=greptime.v1.Analyzer" json:"analyzer,omitempty"` CaseSensitive bool `protobuf:"varint,4,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"` Backend FulltextBackend `protobuf:"varint,5,opt,name=backend,proto3,enum=greptime.v1.FulltextBackend" json:"backend,omitempty"` + // The granularity for the fulltext index (for bloom backend only). + Granularity uint64 `protobuf:"varint,6,opt,name=granularity,proto3" json:"granularity,omitempty"` + // The false positive rate for the fulltext index (for bloom backend only). + FalsePositiveRate float64 `protobuf:"fixed64,7,opt,name=false_positive_rate,json=falsePositiveRate,proto3" json:"false_positive_rate,omitempty"` } func (x *SetFulltext) Reset() { @@ -2546,6 +2550,20 @@ func (x *SetFulltext) GetBackend() FulltextBackend { return FulltextBackend_TANTIVY } +func (x *SetFulltext) GetGranularity() uint64 { + if x != nil { + return x.Granularity + } + return 0 +} + +func (x *SetFulltext) GetFalsePositiveRate() float64 { + if x != nil { + return x.FalsePositiveRate + } + return 0 +} + type UnsetFulltext struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2696,6 +2714,7 @@ type SetSkipping struct { Enable bool `protobuf:"varint,2,opt,name=enable,proto3" json:"enable,omitempty"` Granularity uint64 `protobuf:"varint,3,opt,name=granularity,proto3" json:"granularity,omitempty"` SkippingIndexType SkippingIndexType `protobuf:"varint,4,opt,name=skipping_index_type,json=skippingIndexType,proto3,enum=greptime.v1.SkippingIndexType" json:"skipping_index_type,omitempty"` + FalsePositiveRate float64 `protobuf:"fixed64,5,opt,name=false_positive_rate,json=falsePositiveRate,proto3" json:"false_positive_rate,omitempty"` } func (x *SetSkipping) Reset() { @@ -2758,6 +2777,13 @@ func (x *SetSkipping) GetSkippingIndexType() SkippingIndexType { return SkippingIndexType_BLOOM_FILTER } +func (x *SetSkipping) GetFalsePositiveRate() float64 { + if x != nil { + return x.FalsePositiveRate + } + return 0 +} + type UnsetSkipping struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -3685,7 +3711,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x22, - 0xd8, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, + 0xaa, 0x02, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, @@ -3698,126 +3724,135 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x76, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, - 0x64, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, - 0x73, 0x65, 0x74, 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, 0x22, 0x2e, 0x0a, 0x0b, - 0x53, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 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, 0x22, 0x30, 0x0a, 0x0d, - 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, + 0x64, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, + 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x13, + 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, + 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x11, 0x66, 0x61, 0x6c, 0x73, 0x65, + 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x52, 0x61, 0x74, 0x65, 0x22, 0x30, 0x0a, 0x0d, + 0x55, 0x6e, 0x73, 0x65, 0x74, 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, 0x22, 0xb8, - 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1f, - 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, - 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, - 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x6b, 0x69, - 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, - 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, - 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 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, 0x22, 0x8f, 0x02, 0x0a, 0x11, - 0x41, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, - 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, 0x75, 0x6e, - 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, - 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, - 0x14, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x5b, 0x0a, - 0x12, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x6e, - 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, - 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x82, 0x04, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, - 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, - 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, - 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x36, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, - 0x6e, 0x65, 0x6c, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x42, 0x0a, - 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, - 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x1a, 0x3e, 0x0a, 0x10, 0x41, - 0x6e, 0x6e, 0x6f, 0x74, 0x61, 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, 0x6c, 0x0a, 0x0d, 0x4e, - 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x37, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, - 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x68, 0x61, - 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x0e, 0x57, 0x65, - 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, - 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x39, - 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, - 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4f, 0x70, 0x74, - 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, 0x7d, 0x0a, 0x0f, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, - 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, - 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, - 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, - 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, - 0x73, 0x2a, 0x24, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, - 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, - 0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x29, 0x0a, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, - 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x41, - 0x4e, 0x54, 0x49, 0x56, 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, - 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, - 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, - 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x00, 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, + 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2e, + 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 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, 0x22, 0x30, + 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 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, + 0x22, 0xe8, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, + 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, 0x61, + 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x12, 0x4e, 0x0a, 0x13, 0x73, + 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, + 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x66, + 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x61, + 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x11, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x50, + 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x52, 0x61, 0x74, 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, + 0x6e, 0x73, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 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, 0x22, 0x8f, 0x02, + 0x0a, 0x11, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, + 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, + 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, + 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, + 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, + 0x00, 0x52, 0x14, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, + 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2a, 0x0a, 0x14, + 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x82, 0x04, 0x0a, 0x11, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, + 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, + 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, + 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x36, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, + 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, + 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, + 0x65, 0x6c, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x1a, 0x3e, 0x0a, + 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 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, 0x6c, 0x0a, + 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x12, + 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x48, 0x00, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x0e, 0x0a, 0x0c, 0x63, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x0e, + 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, + 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, + 0x12, 0x39, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, + 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4f, + 0x70, 0x74, 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, 0x7d, 0x0a, 0x0f, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x72, 0x69, 0x67, + 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, + 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, + 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, + 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, + 0x73, 0x74, 0x73, 0x2a, 0x24, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, + 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, + 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x29, 0x0a, 0x0f, 0x46, 0x75, 0x6c, + 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, + 0x54, 0x41, 0x4e, 0x54, 0x49, 0x56, 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4c, 0x4f, + 0x4f, 0x4d, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, + 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4c, 0x4f, + 0x4f, 0x4d, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x00, 0x42, 0x4c, 0x0a, 0x0e, 0x69, + 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, + 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 1f7c1b58..794c34d4 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -33920,6 +33920,26 @@ public interface SetFulltextOrBuilder extends * @return The backend. */ io.greptime.v1.Ddl.FulltextBackend getBackend(); + + /** + *
+     * The granularity for the fulltext index (for bloom backend only).
+     * 
+ * + * uint64 granularity = 6; + * @return The granularity. + */ + long getGranularity(); + + /** + *
+     * The false positive rate for the fulltext index (for bloom backend only).
+     * 
+ * + * double false_positive_rate = 7; + * @return The falsePositiveRate. + */ + double getFalsePositiveRate(); } /** * Protobuf type {@code greptime.v1.SetFulltext} @@ -33997,6 +34017,16 @@ private SetFulltext( backend_ = rawValue; break; } + case 48: { + + granularity_ = input.readUInt64(); + break; + } + case 57: { + + falsePositiveRate_ = input.readDouble(); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -34129,6 +34159,36 @@ public boolean getCaseSensitive() { return result == null ? io.greptime.v1.Ddl.FulltextBackend.UNRECOGNIZED : result; } + public static final int GRANULARITY_FIELD_NUMBER = 6; + private long granularity_; + /** + *
+     * The granularity for the fulltext index (for bloom backend only).
+     * 
+ * + * uint64 granularity = 6; + * @return The granularity. + */ + @java.lang.Override + public long getGranularity() { + return granularity_; + } + + public static final int FALSE_POSITIVE_RATE_FIELD_NUMBER = 7; + private double falsePositiveRate_; + /** + *
+     * The false positive rate for the fulltext index (for bloom backend only).
+     * 
+ * + * double false_positive_rate = 7; + * @return The falsePositiveRate. + */ + @java.lang.Override + public double getFalsePositiveRate() { + return falsePositiveRate_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -34158,6 +34218,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (backend_ != io.greptime.v1.Ddl.FulltextBackend.TANTIVY.getNumber()) { output.writeEnum(5, backend_); } + if (granularity_ != 0L) { + output.writeUInt64(6, granularity_); + } + if (java.lang.Double.doubleToRawLongBits(falsePositiveRate_) != 0) { + output.writeDouble(7, falsePositiveRate_); + } unknownFields.writeTo(output); } @@ -34186,6 +34252,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, backend_); } + if (granularity_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeUInt64Size(6, granularity_); + } + if (java.lang.Double.doubleToRawLongBits(falsePositiveRate_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(7, falsePositiveRate_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -34209,6 +34283,11 @@ public boolean equals(final java.lang.Object obj) { if (getCaseSensitive() != other.getCaseSensitive()) return false; if (backend_ != other.backend_) return false; + if (getGranularity() + != other.getGranularity()) return false; + if (java.lang.Double.doubleToLongBits(getFalsePositiveRate()) + != java.lang.Double.doubleToLongBits( + other.getFalsePositiveRate())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -34232,6 +34311,12 @@ public int hashCode() { getCaseSensitive()); hash = (37 * hash) + BACKEND_FIELD_NUMBER; hash = (53 * hash) + backend_; + hash = (37 * hash) + GRANULARITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getGranularity()); + hash = (37 * hash) + FALSE_POSITIVE_RATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFalsePositiveRate())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -34375,6 +34460,10 @@ public Builder clear() { backend_ = 0; + granularity_ = 0L; + + falsePositiveRate_ = 0D; + return this; } @@ -34406,6 +34495,8 @@ public io.greptime.v1.Ddl.SetFulltext buildPartial() { result.analyzer_ = analyzer_; result.caseSensitive_ = caseSensitive_; result.backend_ = backend_; + result.granularity_ = granularity_; + result.falsePositiveRate_ = falsePositiveRate_; onBuilt(); return result; } @@ -34470,6 +34561,12 @@ public Builder mergeFrom(io.greptime.v1.Ddl.SetFulltext other) { if (other.backend_ != 0) { setBackendValue(other.getBackendValue()); } + if (other.getGranularity() != 0L) { + setGranularity(other.getGranularity()); + } + if (other.getFalsePositiveRate() != 0D) { + setFalsePositiveRate(other.getFalsePositiveRate()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -34744,6 +34841,92 @@ public Builder clearBackend() { onChanged(); return this; } + + private long granularity_ ; + /** + *
+       * The granularity for the fulltext index (for bloom backend only).
+       * 
+ * + * uint64 granularity = 6; + * @return The granularity. + */ + @java.lang.Override + public long getGranularity() { + return granularity_; + } + /** + *
+       * The granularity for the fulltext index (for bloom backend only).
+       * 
+ * + * uint64 granularity = 6; + * @param value The granularity to set. + * @return This builder for chaining. + */ + public Builder setGranularity(long value) { + + granularity_ = value; + onChanged(); + return this; + } + /** + *
+       * The granularity for the fulltext index (for bloom backend only).
+       * 
+ * + * uint64 granularity = 6; + * @return This builder for chaining. + */ + public Builder clearGranularity() { + + granularity_ = 0L; + onChanged(); + return this; + } + + private double falsePositiveRate_ ; + /** + *
+       * The false positive rate for the fulltext index (for bloom backend only).
+       * 
+ * + * double false_positive_rate = 7; + * @return The falsePositiveRate. + */ + @java.lang.Override + public double getFalsePositiveRate() { + return falsePositiveRate_; + } + /** + *
+       * The false positive rate for the fulltext index (for bloom backend only).
+       * 
+ * + * double false_positive_rate = 7; + * @param value The falsePositiveRate to set. + * @return This builder for chaining. + */ + public Builder setFalsePositiveRate(double value) { + + falsePositiveRate_ = value; + onChanged(); + return this; + } + /** + *
+       * The false positive rate for the fulltext index (for bloom backend only).
+       * 
+ * + * double false_positive_rate = 7; + * @return This builder for chaining. + */ + public Builder clearFalsePositiveRate() { + + falsePositiveRate_ = 0D; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -36545,6 +36728,12 @@ public interface SetSkippingOrBuilder extends * @return The skippingIndexType. */ io.greptime.v1.Ddl.SkippingIndexType getSkippingIndexType(); + + /** + * double false_positive_rate = 5; + * @return The falsePositiveRate. + */ + double getFalsePositiveRate(); } /** * Protobuf type {@code greptime.v1.SetSkipping} @@ -36615,6 +36804,11 @@ private SetSkipping( skippingIndexType_ = rawValue; break; } + case 41: { + + falsePositiveRate_ = input.readDouble(); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -36728,6 +36922,17 @@ public long getGranularity() { return result == null ? io.greptime.v1.Ddl.SkippingIndexType.UNRECOGNIZED : result; } + public static final int FALSE_POSITIVE_RATE_FIELD_NUMBER = 5; + private double falsePositiveRate_; + /** + * double false_positive_rate = 5; + * @return The falsePositiveRate. + */ + @java.lang.Override + public double getFalsePositiveRate() { + return falsePositiveRate_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -36754,6 +36959,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (skippingIndexType_ != io.greptime.v1.Ddl.SkippingIndexType.BLOOM_FILTER.getNumber()) { output.writeEnum(4, skippingIndexType_); } + if (java.lang.Double.doubleToRawLongBits(falsePositiveRate_) != 0) { + output.writeDouble(5, falsePositiveRate_); + } unknownFields.writeTo(output); } @@ -36778,6 +36986,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, skippingIndexType_); } + if (java.lang.Double.doubleToRawLongBits(falsePositiveRate_) != 0) { + size += com.google.protobuf.CodedOutputStream + .computeDoubleSize(5, falsePositiveRate_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -36800,6 +37012,9 @@ public boolean equals(final java.lang.Object obj) { if (getGranularity() != other.getGranularity()) return false; if (skippingIndexType_ != other.skippingIndexType_) return false; + if (java.lang.Double.doubleToLongBits(getFalsePositiveRate()) + != java.lang.Double.doubleToLongBits( + other.getFalsePositiveRate())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -36821,6 +37036,9 @@ public int hashCode() { getGranularity()); hash = (37 * hash) + SKIPPING_INDEX_TYPE_FIELD_NUMBER; hash = (53 * hash) + skippingIndexType_; + hash = (37 * hash) + FALSE_POSITIVE_RATE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getFalsePositiveRate())); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -36962,6 +37180,8 @@ public Builder clear() { skippingIndexType_ = 0; + falsePositiveRate_ = 0D; + return this; } @@ -36992,6 +37212,7 @@ public io.greptime.v1.Ddl.SetSkipping buildPartial() { result.enable_ = enable_; result.granularity_ = granularity_; result.skippingIndexType_ = skippingIndexType_; + result.falsePositiveRate_ = falsePositiveRate_; onBuilt(); return result; } @@ -37053,6 +37274,9 @@ public Builder mergeFrom(io.greptime.v1.Ddl.SetSkipping other) { if (other.skippingIndexType_ != 0) { setSkippingIndexTypeValue(other.getSkippingIndexTypeValue()); } + if (other.getFalsePositiveRate() != 0D) { + setFalsePositiveRate(other.getFalsePositiveRate()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -37273,6 +37497,37 @@ public Builder clearSkippingIndexType() { onChanged(); return this; } + + private double falsePositiveRate_ ; + /** + * double false_positive_rate = 5; + * @return The falsePositiveRate. + */ + @java.lang.Override + public double getFalsePositiveRate() { + return falsePositiveRate_; + } + /** + * double false_positive_rate = 5; + * @param value The falsePositiveRate to set. + * @return This builder for chaining. + */ + public Builder setFalsePositiveRate(double value) { + + falsePositiveRate_ = value; + onChanged(); + return this; + } + /** + * double false_positive_rate = 5; + * @return This builder for chaining. + */ + public Builder clearFalsePositiveRate() { + + falsePositiveRate_ = 0D; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -45828,49 +46083,51 @@ public io.greptime.v1.Ddl.DropTriggerExpr getDefaultInstanceForType() { "lumnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gr" + "eptime.v1.AddColumnLocation.LocationType" + "\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationT" + - "ype\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\242\001\n\013SetFulltex" + + "ype\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltex" + "t\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'" + "\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022" + "\026\n\016case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\016" + - "2\034.greptime.v1.FulltextBackend\"$\n\rUnsetF" + - "ulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013SetInver" + - "ted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnsetInverte" + - "d\022\023\n\013column_name\030\001 \001(\t\"\204\001\n\013SetSkipping\022\023" + - "\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\023\n\013g" + - "ranularity\030\003 \001(\004\022;\n\023skipping_index_type\030" + - "\004 \001(\0162\036.greptime.v1.SkippingIndexType\"$\n" + - "\rUnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021" + - "AlterDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022" + - "\023\n\013schema_name\030\002 \001(\t\022?\n\024set_database_opt" + - "ions\030\003 \001(\0132\037.greptime.v1.SetDatabaseOpti" + - "onsH\000\022C\n\026unset_database_options\030\004 \001(\0132!." + - "greptime.v1.UnsetDatabaseOptionsH\000B\006\n\004ki" + - "nd\"G\n\022SetDatabaseOptions\0221\n\024set_database" + - "_options\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024U" + - "nsetDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Cr" + - "eateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n" + - "\014trigger_name\030\002 \001(\t\022\034\n\024create_if_not_exi" + - "sts\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\013" + - "2\032.greptime.v1.NotifyChannel\022:\n\006labels\030\006" + - " \003(\0132*.greptime.v1.CreateTriggerExpr.Lab" + - "elsEntry\022D\n\013annotations\030\007 \003(\0132/.greptime" + - ".v1.CreateTriggerExpr.AnnotationsEntry\022\020" + - "\n\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEn" + - "try\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rN" + - "otifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 " + - "\001(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n\014ch" + - "annel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(" + - "\t\0223\n\004opts\030\002 \003(\0132%.greptime.v1.WebhookOpt" + - "ions.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024" + - "\n\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001" + - "(\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013" + - "\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBack" + - "end\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingI" + - "ndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptim" + - "e.v1B\003DdlZ5github.com/GreptimeTeam/grept" + - "ime-proto/go/greptime/v1b\006proto3" + "2\034.greptime.v1.FulltextBackend\022\023\n\013granul" + + "arity\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001" + + "\"$\n\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"" + + "\n\013SetInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUn" + + "setInverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013Set" + + "Skipping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030" + + "\002 \001(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_i" + + "ndex_type\030\004 \001(\0162\036.greptime.v1.SkippingIn" + + "dexType\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\r" + + "UnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021A" + + "lterDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023" + + "\n\013schema_name\030\002 \001(\t\022?\n\024set_database_opti" + + "ons\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptio" + + "nsH\000\022C\n\026unset_database_options\030\004 \001(\0132!.g" + + "reptime.v1.UnsetDatabaseOptionsH\000B\006\n\004kin" + + "d\"G\n\022SetDatabaseOptions\0221\n\024set_database_" + + "options\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Un" + + "setDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Cre" + + "ateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014" + + "trigger_name\030\002 \001(\t\022\034\n\024create_if_not_exis" + + "ts\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132" + + "\032.greptime.v1.NotifyChannel\022:\n\006labels\030\006 " + + "\003(\0132*.greptime.v1.CreateTriggerExpr.Labe" + + "lsEntry\022D\n\013annotations\030\007 \003(\0132/.greptime." + + "v1.CreateTriggerExpr.AnnotationsEntry\022\020\n" + + "\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEnt" + + "ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNo" + + "tifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001" + + "(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n\014cha" + + "nnel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t" + + "\0223\n\004opts\030\002 \003(\0132%.greptime.v1.WebhookOpti" + + "ons.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n" + + "\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(" + + "\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n" + + "\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBacke" + + "nd\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIn" + + "dexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime" + + ".v1B\003DdlZ5github.com/GreptimeTeam/grepti" + + "me-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -46074,7 +46331,7 @@ public io.greptime.v1.Ddl.DropTriggerExpr getDefaultInstanceForType() { internal_static_greptime_v1_SetFulltext_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetFulltext_descriptor, - new java.lang.String[] { "ColumnName", "Enable", "Analyzer", "CaseSensitive", "Backend", }); + new java.lang.String[] { "ColumnName", "Enable", "Analyzer", "CaseSensitive", "Backend", "Granularity", "FalsePositiveRate", }); internal_static_greptime_v1_UnsetFulltext_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_greptime_v1_UnsetFulltext_fieldAccessorTable = new @@ -46098,7 +46355,7 @@ public io.greptime.v1.Ddl.DropTriggerExpr getDefaultInstanceForType() { internal_static_greptime_v1_SetSkipping_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetSkipping_descriptor, - new java.lang.String[] { "ColumnName", "Enable", "Granularity", "SkippingIndexType", }); + new java.lang.String[] { "ColumnName", "Enable", "Granularity", "SkippingIndexType", "FalsePositiveRate", }); internal_static_greptime_v1_UnsetSkipping_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_greptime_v1_UnsetSkipping_fieldAccessorTable = new diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index ffd97b31..1cb6f300 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -251,6 +251,10 @@ message SetFulltext { Analyzer analyzer = 3; bool case_sensitive = 4; FulltextBackend backend = 5; + // The granularity for the fulltext index (for bloom backend only). + uint64 granularity = 6; + // The false positive rate for the fulltext index (for bloom backend only). + double false_positive_rate = 7; } message UnsetFulltext { @@ -274,6 +278,7 @@ message SetSkipping { bool enable = 2; uint64 granularity = 3; SkippingIndexType skipping_index_type = 4; + double false_positive_rate = 5; } message UnsetSkipping {