diff --git a/c++/greptime/v1/column.pb.cc b/c++/greptime/v1/column.pb.cc index 34ac0d64..e7e33c8e 100644 --- a/c++/greptime/v1/column.pb.cc +++ b/c++/greptime/v1/column.pb.cc @@ -87,6 +87,7 @@ PROTOBUF_CONSTEXPR Column::Column( , /*decltype(_impl_.null_mask_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.values_)*/nullptr , /*decltype(_impl_.datatype_extension_)*/nullptr + , /*decltype(_impl_.options_)*/nullptr , /*decltype(_impl_.semantic_type_)*/0 , /*decltype(_impl_.datatype_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} @@ -151,6 +152,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.null_mask_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.datatype_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.datatype_extension_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.options_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::Column_Values)}, @@ -164,43 +166,44 @@ static const ::_pb::Message* const file_default_instances[] = { const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\030greptime/v1/column.proto\022\013greptime.v1\032" - "\030greptime/v1/common.proto\"\226\010\n\006Column\022\023\n\013" + "\030greptime/v1/common.proto\"\303\010\n\006Column\022\023\n\013" "column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016" "2\031.greptime.v1.SemanticType\022*\n\006values\030\003 " "\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_" "mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime." "v1.ColumnDataType\022@\n\022datatype_extension\030" "\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens" - "ion\032\224\006\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16" - "_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64" - "_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_" - "values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_" - "values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_" - "values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbin" - "ary_values\030\014 \003(\014\022\025\n\rstring_values\030\r \003(\t\022" - "\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_values\030" - "\017 \003(\003\022\037\n\027timestamp_second_values\030\020 \003(\003\022$" - "\n\034timestamp_millisecond_values\030\021 \003(\003\022$\n\034" - "timestamp_microsecond_values\030\022 \003(\003\022#\n\033ti" - "mestamp_nanosecond_values\030\023 \003(\003\022\032\n\022time_" - "second_values\030\024 \003(\003\022\037\n\027time_millisecond_" - "values\030\025 \003(\003\022\037\n\027time_microsecond_values\030" - "\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003(\003\022\"\n" - "\032interval_year_month_values\030\030 \003(\005\022 \n\030int" - "erval_day_time_values\030\031 \003(\003\022I\n\036interval_" - "month_day_nano_values\030\032 \003(\0132!.greptime.v" - "1.IntervalMonthDayNano\0222\n\021decimal128_val" - "ues\030\037 \003(\0132\027.greptime.v1.Decimal128BP\n\016io" - ".greptime.v1B\007ColumnsZ5github.com/Grepti" - "meTeam/greptime-proto/go/greptime/v1b\006pr" - "oto3" + "ion\022+\n\007options\030\007 \001(\0132\032.greptime.v1.Colum" + "nOptions\032\224\006\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022" + "\n\ni16_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022" + "\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n" + "\nu16_values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n" + "\nu64_values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n" + "\nf64_values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025" + "\n\rbinary_values\030\014 \003(\014\022\025\n\rstring_values\030\r" + " \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_va" + "lues\030\017 \003(\003\022\037\n\027timestamp_second_values\030\020 " + "\003(\003\022$\n\034timestamp_millisecond_values\030\021 \003(" + "\003\022$\n\034timestamp_microsecond_values\030\022 \003(\003\022" + "#\n\033timestamp_nanosecond_values\030\023 \003(\003\022\032\n\022" + "time_second_values\030\024 \003(\003\022\037\n\027time_millise" + "cond_values\030\025 \003(\003\022\037\n\027time_microsecond_va" + "lues\030\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003" + "(\003\022\"\n\032interval_year_month_values\030\030 \003(\005\022 " + "\n\030interval_day_time_values\030\031 \003(\003\022I\n\036inte" + "rval_month_day_nano_values\030\032 \003(\0132!.grept" + "ime.v1.IntervalMonthDayNano\0222\n\021decimal12" + "8_values\030\037 \003(\0132\027.greptime.v1.Decimal128B" + "P\n\016io.greptime.v1B\007ColumnsZ5github.com/G" + "reptimeTeam/greptime-proto/go/greptime/v" + "1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcolumn_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcolumn_2eproto = { - false, false, 1204, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto, + false, false, 1249, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto, "greptime/v1/column.proto", &descriptor_table_greptime_2fv1_2fcolumn_2eproto_once, descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps, 1, 2, schemas, file_default_instances, TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets, @@ -1459,6 +1462,7 @@ class Column::_Internal { public: static const ::greptime::v1::Column_Values& values(const Column* msg); static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const Column* msg); + static const ::greptime::v1::ColumnOptions& options(const Column* msg); }; const ::greptime::v1::Column_Values& @@ -1469,12 +1473,22 @@ const ::greptime::v1::ColumnDataTypeExtension& Column::_Internal::datatype_extension(const Column* msg) { return *msg->_impl_.datatype_extension_; } +const ::greptime::v1::ColumnOptions& +Column::_Internal::options(const Column* msg) { + return *msg->_impl_.options_; +} void Column::clear_datatype_extension() { if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { delete _impl_.datatype_extension_; } _impl_.datatype_extension_ = nullptr; } +void Column::clear_options() { + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; +} Column::Column(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1489,6 +1503,7 @@ Column::Column(const Column& from) , decltype(_impl_.null_mask_){} , decltype(_impl_.values_){nullptr} , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.options_){nullptr} , decltype(_impl_.semantic_type_){} , decltype(_impl_.datatype_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -1516,6 +1531,9 @@ Column::Column(const Column& from) if (from._internal_has_datatype_extension()) { _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); } + if (from._internal_has_options()) { + _this->_impl_.options_ = new ::greptime::v1::ColumnOptions(*from._impl_.options_); + } ::memcpy(&_impl_.semantic_type_, &from._impl_.semantic_type_, static_cast(reinterpret_cast(&_impl_.datatype_) - reinterpret_cast(&_impl_.semantic_type_)) + sizeof(_impl_.datatype_)); @@ -1531,6 +1549,7 @@ inline void Column::SharedCtor( , decltype(_impl_.null_mask_){} , decltype(_impl_.values_){nullptr} , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.options_){nullptr} , decltype(_impl_.semantic_type_){0} , decltype(_impl_.datatype_){0} , /*decltype(_impl_._cached_size_)*/{} @@ -1560,6 +1579,7 @@ inline void Column::SharedDtor() { _impl_.null_mask_.Destroy(); if (this != internal_default_instance()) delete _impl_.values_; if (this != internal_default_instance()) delete _impl_.datatype_extension_; + if (this != internal_default_instance()) delete _impl_.options_; } void Column::SetCachedSize(int size) const { @@ -1582,6 +1602,10 @@ void Column::Clear() { delete _impl_.datatype_extension_; } _impl_.datatype_extension_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; ::memset(&_impl_.semantic_type_, 0, static_cast( reinterpret_cast(&_impl_.datatype_) - reinterpret_cast(&_impl_.semantic_type_)) + sizeof(_impl_.datatype_)); @@ -1647,6 +1671,14 @@ const char* Column::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; + // .greptime.v1.ColumnOptions options = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1720,6 +1752,13 @@ uint8_t* Column::_InternalSerialize( _Internal::datatype_extension(this).GetCachedSize(), target, stream); } + // .greptime.v1.ColumnOptions options = 7; + if (this->_internal_has_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::options(this), + _Internal::options(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1764,6 +1803,13 @@ size_t Column::ByteSizeLong() const { *_impl_.datatype_extension_); } + // .greptime.v1.ColumnOptions options = 7; + if (this->_internal_has_options()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.options_); + } + // .greptime.v1.SemanticType semantic_type = 2; if (this->_internal_semantic_type() != 0) { total_size += 1 + @@ -1808,6 +1854,10 @@ void Column::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU _this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( from._internal_datatype_extension()); } + if (from._internal_has_options()) { + _this->_internal_mutable_options()->::greptime::v1::ColumnOptions::MergeFrom( + from._internal_options()); + } if (from._internal_semantic_type() != 0) { _this->_internal_set_semantic_type(from._internal_semantic_type()); } diff --git a/c++/greptime/v1/column.pb.h b/c++/greptime/v1/column.pb.h index c105cbef..1af43865 100644 --- a/c++/greptime/v1/column.pb.h +++ b/c++/greptime/v1/column.pb.h @@ -992,6 +992,7 @@ class Column final : kNullMaskFieldNumber = 4, kValuesFieldNumber = 3, kDatatypeExtensionFieldNumber = 6, + kOptionsFieldNumber = 7, kSemanticTypeFieldNumber = 2, kDatatypeFieldNumber = 5, }; @@ -1059,6 +1060,24 @@ class Column final : ::greptime::v1::ColumnDataTypeExtension* datatype_extension); ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension(); + // .greptime.v1.ColumnOptions options = 7; + bool has_options() const; + private: + bool _internal_has_options() const; + public: + void clear_options(); + const ::greptime::v1::ColumnOptions& options() const; + PROTOBUF_NODISCARD ::greptime::v1::ColumnOptions* release_options(); + ::greptime::v1::ColumnOptions* mutable_options(); + void set_allocated_options(::greptime::v1::ColumnOptions* options); + private: + const ::greptime::v1::ColumnOptions& _internal_options() const; + ::greptime::v1::ColumnOptions* _internal_mutable_options(); + public: + void unsafe_arena_set_allocated_options( + ::greptime::v1::ColumnOptions* options); + ::greptime::v1::ColumnOptions* unsafe_arena_release_options(); + // .greptime.v1.SemanticType semantic_type = 2; void clear_semantic_type(); ::greptime::v1::SemanticType semantic_type() const; @@ -1089,6 +1108,7 @@ class Column final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr null_mask_; ::greptime::v1::Column_Values* values_; ::greptime::v1::ColumnDataTypeExtension* datatype_extension_; + ::greptime::v1::ColumnOptions* options_; int semantic_type_; int datatype_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -2731,6 +2751,91 @@ inline void Column::set_allocated_datatype_extension(::greptime::v1::ColumnDataT // @@protoc_insertion_point(field_set_allocated:greptime.v1.Column.datatype_extension) } +// .greptime.v1.ColumnOptions options = 7; +inline bool Column::_internal_has_options() const { + return this != internal_default_instance() && _impl_.options_ != nullptr; +} +inline bool Column::has_options() const { + return _internal_has_options(); +} +inline const ::greptime::v1::ColumnOptions& Column::_internal_options() const { + const ::greptime::v1::ColumnOptions* p = _impl_.options_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_ColumnOptions_default_instance_); +} +inline const ::greptime::v1::ColumnOptions& Column::options() const { + // @@protoc_insertion_point(field_get:greptime.v1.Column.options) + return _internal_options(); +} +inline void Column::unsafe_arena_set_allocated_options( + ::greptime::v1::ColumnOptions* 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.Column.options) +} +inline ::greptime::v1::ColumnOptions* Column::release_options() { + + ::greptime::v1::ColumnOptions* 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::ColumnOptions* Column::unsafe_arena_release_options() { + // @@protoc_insertion_point(field_release:greptime.v1.Column.options) + + ::greptime::v1::ColumnOptions* temp = _impl_.options_; + _impl_.options_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnOptions* Column::_internal_mutable_options() { + + if (_impl_.options_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::ColumnOptions>(GetArenaForAllocation()); + _impl_.options_ = p; + } + return _impl_.options_; +} +inline ::greptime::v1::ColumnOptions* Column::mutable_options() { + ::greptime::v1::ColumnOptions* _msg = _internal_mutable_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.Column.options) + return _msg; +} +inline void Column::set_allocated_options(::greptime::v1::ColumnOptions* options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_); + } + if (options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(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.Column.options) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ diff --git a/c++/greptime/v1/common.pb.cc b/c++/greptime/v1/common.pb.cc index 4ae0373f..fd7a67d4 100644 --- a/c++/greptime/v1/common.pb.cc +++ b/c++/greptime/v1/common.pb.cc @@ -271,9 +271,33 @@ struct DecimalTypeExtensionDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_; +PROTOBUF_CONSTEXPR ColumnOptions_OptionsEntry_DoNotUse::ColumnOptions_OptionsEntry_DoNotUse( + ::_pbi::ConstantInitialized) {} +struct ColumnOptions_OptionsEntry_DoNotUseDefaultTypeInternal { + PROTOBUF_CONSTEXPR ColumnOptions_OptionsEntry_DoNotUseDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ColumnOptions_OptionsEntry_DoNotUseDefaultTypeInternal() {} + union { + ColumnOptions_OptionsEntry_DoNotUse _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnOptions_OptionsEntry_DoNotUseDefaultTypeInternal _ColumnOptions_OptionsEntry_DoNotUse_default_instance_; +PROTOBUF_CONSTEXPR ColumnOptions::ColumnOptions( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.options_)*/{::_pbi::ConstantInitialized()} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ColumnOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR ColumnOptionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ColumnOptionsDefaultTypeInternal() {} + union { + ColumnOptions _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnOptionsDefaultTypeInternal _ColumnOptions_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[18]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr; @@ -430,6 +454,23 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.precision_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.scale_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse, _has_bits_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse, key_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse, value_), + 0, + 1, + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions, _impl_.options_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, -1, sizeof(::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse)}, @@ -450,6 +491,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 128, -1, -1, sizeof(::greptime::v1::Decimal128)}, { 136, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, { 144, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, + { 152, 160, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, + { 162, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -471,6 +514,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_Decimal128_default_instance_._instance, &::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance, &::greptime::v1::_DecimalTypeExtension_default_instance_._instance, + &::greptime::v1::_ColumnOptions_OptionsEntry_DoNotUse_default_instance_._instance, + &::greptime::v1::_ColumnOptions_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -506,29 +551,32 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S "\n\027ColumnDataTypeExtension\0229\n\014decimal_typ" "e\030\001 \001(\0132!.greptime.v1.DecimalTypeExtensi" "onH\000B\n\n\010type_ext\"8\n\024DecimalTypeExtension" - "\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005*1\n\014Se" - "manticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMEST" - "AMP\020\002*\326\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n" - "\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004" - "\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006U" - "INT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BIN" - "ARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020" - "\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_MIL" - "LISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n" - "\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023" - "\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECO" - "ND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YE" - "AR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INT" - "ERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036BO" - "\n\016io.greptime.v1B\006CommonZ5github.com/Gre" - "ptimeTeam/greptime-proto/go/greptime/v1b" - "\006proto3" + "\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"y\n\rCo" + "lumnOptions\0228\n\007options\030\001 \003(\0132\'.greptime." + "v1.ColumnOptions.OptionsEntry\032.\n\014Options" + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*1\n" + "\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIM" + "ESTAMP\020\002*\326\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000" + "\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT6" + "4\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n" + "\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006" + "BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETI" + "ME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_" + "MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021" + "\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECON" + "D\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICROS" + "ECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL" + "_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027" + "INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020" + "\036BO\n\016io.greptime.v1B\006CommonZ5github.com/" + "GreptimeTeam/greptime-proto/go/greptime/" + "v1b\006proto3" ; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { - false, false, 1927, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, + false, false, 2050, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, "greptime/v1/common.proto", - &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 18, + &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 20, schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets, file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto, file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto, @@ -4642,6 +4690,239 @@ ::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const { file_level_metadata_greptime_2fv1_2fcommon_2eproto[17]); } +// =================================================================== + +ColumnOptions_OptionsEntry_DoNotUse::ColumnOptions_OptionsEntry_DoNotUse() {} +ColumnOptions_OptionsEntry_DoNotUse::ColumnOptions_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena) + : SuperType(arena) {} +void ColumnOptions_OptionsEntry_DoNotUse::MergeFrom(const ColumnOptions_OptionsEntry_DoNotUse& other) { + MergeFromInternal(other); +} +::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions_OptionsEntry_DoNotUse::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, + file_level_metadata_greptime_2fv1_2fcommon_2eproto[18]); +} + +// =================================================================== + +class ColumnOptions::_Internal { + public: +}; + +ColumnOptions::ColumnOptions(::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, &ColumnOptions::ArenaDtor); + } + // @@protoc_insertion_point(arena_constructor:greptime.v1.ColumnOptions) +} +ColumnOptions::ColumnOptions(const ColumnOptions& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ColumnOptions* const _this = this; (void)_this; + new (&_impl_) Impl_{ + /*decltype(_impl_.options_)*/{} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _this->_impl_.options_.MergeFrom(from._impl_.options_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.ColumnOptions) +} + +inline void ColumnOptions::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + /*decltype(_impl_.options_)*/{::_pbi::ArenaInitialized(), arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ColumnOptions::~ColumnOptions() { + // @@protoc_insertion_point(destructor:greptime.v1.ColumnOptions) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + ArenaDtor(this); + return; + } + SharedDtor(); +} + +inline void ColumnOptions::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.options_.Destruct(); + _impl_.options_.~MapField(); +} + +void ColumnOptions::ArenaDtor(void* object) { + ColumnOptions* _this = reinterpret_cast< ColumnOptions* >(object); + _this->_impl_.options_.Destruct(); +} +void ColumnOptions::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ColumnOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ColumnOptions) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.options_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ColumnOptions::_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) { + // map options = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(&_impl_.options_, ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ColumnOptions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ColumnOptions) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // map options = 1; + if (!this->_internal_options().empty()) { + using MapType = ::_pb::Map; + using WireHelper = ColumnOptions_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.ColumnOptions.OptionsEntry.key"); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + entry.second.data(), static_cast(entry.second.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.ColumnOptions.OptionsEntry.value"); + }; + + if (stream->IsSerializationDeterministic() && map_field.size() > 1) { + for (const auto& entry : ::_pbi::MapSorterPtr(map_field)) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } else { + for (const auto& entry : map_field) { + target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream); + check_utf8(entry); + } + } + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ColumnOptions) + return target; +} + +size_t ColumnOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ColumnOptions) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // map options = 1; + 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 += ColumnOptions_OptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnOptions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ColumnOptions::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnOptions::GetClassData() const { return &_class_data_; } + + +void ColumnOptions::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.ColumnOptions) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.options_.MergeFrom(from._impl_.options_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ColumnOptions::CopyFrom(const ColumnOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ColumnOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnOptions::IsInitialized() const { + return true; +} + +void ColumnOptions::InternalSwap(ColumnOptions* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.options_.InternalSwap(&other->_impl_.options_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, + file_level_metadata_greptime_2fv1_2fcommon_2eproto[19]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace greptime @@ -4718,6 +4999,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage< ::greptime::v1::DecimalTypeExtension >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DecimalTypeExtension >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnOptions* +Arena::CreateMaybeMessage< ::greptime::v1::ColumnOptions >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ColumnOptions >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/c++/greptime/v1/common.pb.h b/c++/greptime/v1/common.pb.h index 6cd053ea..e2f4c998 100644 --- a/c++/greptime/v1/common.pb.h +++ b/c++/greptime/v1/common.pb.h @@ -62,6 +62,12 @@ extern BasicDefaultTypeInternal _Basic_default_instance_; class ColumnDataTypeExtension; struct ColumnDataTypeExtensionDefaultTypeInternal; extern ColumnDataTypeExtensionDefaultTypeInternal _ColumnDataTypeExtension_default_instance_; +class ColumnOptions; +struct ColumnOptionsDefaultTypeInternal; +extern ColumnOptionsDefaultTypeInternal _ColumnOptions_default_instance_; +class ColumnOptions_OptionsEntry_DoNotUse; +struct ColumnOptions_OptionsEntry_DoNotUseDefaultTypeInternal; +extern ColumnOptions_OptionsEntry_DoNotUseDefaultTypeInternal _ColumnOptions_OptionsEntry_DoNotUse_default_instance_; class Decimal128; struct Decimal128DefaultTypeInternal; extern Decimal128DefaultTypeInternal _Decimal128_default_instance_; @@ -111,6 +117,8 @@ template<> ::greptime::v1::AffectedRows* Arena::CreateMaybeMessage<::greptime::v template<> ::greptime::v1::AuthHeader* Arena::CreateMaybeMessage<::greptime::v1::AuthHeader>(Arena*); template<> ::greptime::v1::Basic* Arena::CreateMaybeMessage<::greptime::v1::Basic>(Arena*); template<> ::greptime::v1::ColumnDataTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(Arena*); +template<> ::greptime::v1::ColumnOptions* Arena::CreateMaybeMessage<::greptime::v1::ColumnOptions>(Arena*); +template<> ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::Decimal128* Arena::CreateMaybeMessage<::greptime::v1::Decimal128>(Arena*); template<> ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::DecimalTypeExtension>(Arena*); template<> ::greptime::v1::ExpireAfter* Arena::CreateMaybeMessage<::greptime::v1::ExpireAfter>(Arena*); @@ -3031,6 +3039,197 @@ class DecimalTypeExtension final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; }; +// ------------------------------------------------------------------- + +class ColumnOptions_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry { +public: + typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry SuperType; + ColumnOptions_OptionsEntry_DoNotUse(); + explicit PROTOBUF_CONSTEXPR ColumnOptions_OptionsEntry_DoNotUse( + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + explicit ColumnOptions_OptionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); + void MergeFrom(const ColumnOptions_OptionsEntry_DoNotUse& other); + static const ColumnOptions_OptionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast(&_ColumnOptions_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.ColumnOptions.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.ColumnOptions.OptionsEntry.value"); + } + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; + +// ------------------------------------------------------------------- + +class ColumnOptions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ColumnOptions) */ { + public: + inline ColumnOptions() : ColumnOptions(nullptr) {} + ~ColumnOptions() override; + explicit PROTOBUF_CONSTEXPR ColumnOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ColumnOptions(const ColumnOptions& from); + ColumnOptions(ColumnOptions&& from) noexcept + : ColumnOptions() { + *this = ::std::move(from); + } + + inline ColumnOptions& operator=(const ColumnOptions& from) { + CopyFrom(from); + return *this; + } + inline ColumnOptions& operator=(ColumnOptions&& 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 ColumnOptions& default_instance() { + return *internal_default_instance(); + } + static inline const ColumnOptions* internal_default_instance() { + return reinterpret_cast( + &_ColumnOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 19; + + friend void swap(ColumnOptions& a, ColumnOptions& b) { + a.Swap(&b); + } + inline void Swap(ColumnOptions* 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(ColumnOptions* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ColumnOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ColumnOptions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ColumnOptions& from) { + ColumnOptions::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(ColumnOptions* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ColumnOptions"; + } + protected: + explicit ColumnOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + private: + static void ArenaDtor(void* object); + 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 { + kOptionsFieldNumber = 1, + }; + // map options = 1; + 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(); + + // @@protoc_insertion_point(class_scope:greptime.v1.ColumnOptions) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::MapField< + ColumnOptions_OptionsEntry_DoNotUse, + std::string, std::string, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> options_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; // =================================================================== @@ -4714,6 +4913,41 @@ inline void DecimalTypeExtension::set_scale(int32_t value) { // @@protoc_insertion_point(field_set:greptime.v1.DecimalTypeExtension.scale) } +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ColumnOptions + +// map options = 1; +inline int ColumnOptions::_internal_options_size() const { + return _impl_.options_.size(); +} +inline int ColumnOptions::options_size() const { + return _internal_options_size(); +} +inline void ColumnOptions::clear_options() { + _impl_.options_.Clear(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ColumnOptions::_internal_options() const { + return _impl_.options_.GetMap(); +} +inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >& +ColumnOptions::options() const { + // @@protoc_insertion_point(field_map:greptime.v1.ColumnOptions.options) + return _internal_options(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ColumnOptions::_internal_mutable_options() { + return _impl_.options_.MutableMap(); +} +inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >* +ColumnOptions::mutable_options() { + // @@protoc_insertion_point(field_mutable_map:greptime.v1.ColumnOptions.options) + return _internal_mutable_options(); +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -4751,6 +4985,10 @@ inline void DecimalTypeExtension::set_scale(int32_t value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 537cd584..483ac081 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -373,6 +373,7 @@ PROTOBUF_CONSTEXPR ColumnDef::ColumnDef( , /*decltype(_impl_.default_constraint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.datatype_extension_)*/nullptr + , /*decltype(_impl_.options_)*/nullptr , /*decltype(_impl_.data_type_)*/0 , /*decltype(_impl_.is_nullable_)*/false , /*decltype(_impl_.semantic_type_)*/0 @@ -653,6 +654,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.semantic_type_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.comment_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.datatype_extension_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _internal_metadata_), ~0u, // no _extensions_ @@ -687,7 +689,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 219, -1, -1, sizeof(::greptime::v1::TableId)}, { 226, -1, -1, sizeof(::greptime::v1::FlowId)}, { 233, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 246, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 247, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -800,26 +802,27 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "type_extension\030\003 \001(\0132$.greptime.v1.Colum" "nDataTypeExtension\"\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\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\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.ColumnD" "ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_" "constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162" "\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 " "\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti" - "me.v1.ColumnDataTypeExtension\"\230\001\n\021AddCol" - "umnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gre" - "ptime.v1.AddColumnLocation.LocationType\022" - "\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTy" - "pe\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime." - "v1B\003DdlZ5github.com/GreptimeTeam/greptim" - "e-proto/go/greptime/v1b\006proto3" + "me.v1.ColumnDataTypeExtension\022+\n\007options" + "\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021A" + "ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162" + "+.greptime.v1.AddColumnLocation.Location" + "Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat" + "ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grep" + "time.v1B\003DdlZ5github.com/GreptimeTeam/gr" + "eptime-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, 3750, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 3795, 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, 25, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -7803,18 +7806,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const { class ColumnDef::_Internal { public: static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnDef* msg); + static const ::greptime::v1::ColumnOptions& options(const ColumnDef* msg); }; const ::greptime::v1::ColumnDataTypeExtension& ColumnDef::_Internal::datatype_extension(const ColumnDef* msg) { return *msg->_impl_.datatype_extension_; } +const ::greptime::v1::ColumnOptions& +ColumnDef::_Internal::options(const ColumnDef* msg) { + return *msg->_impl_.options_; +} void ColumnDef::clear_datatype_extension() { if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { delete _impl_.datatype_extension_; } _impl_.datatype_extension_ = nullptr; } +void ColumnDef::clear_options() { + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; +} ColumnDef::ColumnDef(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -7829,6 +7843,7 @@ ColumnDef::ColumnDef(const ColumnDef& from) , decltype(_impl_.default_constraint_){} , decltype(_impl_.comment_){} , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.options_){nullptr} , decltype(_impl_.data_type_){} , decltype(_impl_.is_nullable_){} , decltype(_impl_.semantic_type_){} @@ -7862,6 +7877,9 @@ ColumnDef::ColumnDef(const ColumnDef& from) if (from._internal_has_datatype_extension()) { _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); } + if (from._internal_has_options()) { + _this->_impl_.options_ = new ::greptime::v1::ColumnOptions(*from._impl_.options_); + } ::memcpy(&_impl_.data_type_, &from._impl_.data_type_, static_cast(reinterpret_cast(&_impl_.semantic_type_) - reinterpret_cast(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_)); @@ -7877,6 +7895,7 @@ inline void ColumnDef::SharedCtor( , decltype(_impl_.default_constraint_){} , decltype(_impl_.comment_){} , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.options_){nullptr} , decltype(_impl_.data_type_){0} , decltype(_impl_.is_nullable_){false} , decltype(_impl_.semantic_type_){0} @@ -7911,6 +7930,7 @@ inline void ColumnDef::SharedDtor() { _impl_.default_constraint_.Destroy(); _impl_.comment_.Destroy(); if (this != internal_default_instance()) delete _impl_.datatype_extension_; + if (this != internal_default_instance()) delete _impl_.options_; } void ColumnDef::SetCachedSize(int size) const { @@ -7930,6 +7950,10 @@ void ColumnDef::Clear() { delete _impl_.datatype_extension_; } _impl_.datatype_extension_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; ::memset(&_impl_.data_type_, 0, static_cast( reinterpret_cast(&_impl_.semantic_type_) - reinterpret_cast(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_)); @@ -8005,6 +8029,14 @@ const char* ColumnDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; + // .greptime.v1.ColumnOptions options = 8; + case 8: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -8087,6 +8119,13 @@ uint8_t* ColumnDef::_InternalSerialize( _Internal::datatype_extension(this).GetCachedSize(), target, stream); } + // .greptime.v1.ColumnOptions options = 8; + if (this->_internal_has_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(8, _Internal::options(this), + _Internal::options(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -8131,6 +8170,13 @@ size_t ColumnDef::ByteSizeLong() const { *_impl_.datatype_extension_); } + // .greptime.v1.ColumnOptions options = 8; + if (this->_internal_has_options()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.options_); + } + // .greptime.v1.ColumnDataType data_type = 2; if (this->_internal_data_type() != 0) { total_size += 1 + @@ -8179,6 +8225,10 @@ void ColumnDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT _this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( from._internal_datatype_extension()); } + if (from._internal_has_options()) { + _this->_internal_mutable_options()->::greptime::v1::ColumnOptions::MergeFrom( + from._internal_options()); + } if (from._internal_data_type() != 0) { _this->_internal_set_data_type(from._internal_data_type()); } diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index ff64e468..575018c5 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -4577,6 +4577,7 @@ class ColumnDef final : kDefaultConstraintFieldNumber = 4, kCommentFieldNumber = 6, kDatatypeExtensionFieldNumber = 7, + kOptionsFieldNumber = 8, kDataTypeFieldNumber = 2, kIsNullableFieldNumber = 3, kSemanticTypeFieldNumber = 5, @@ -4641,6 +4642,24 @@ class ColumnDef final : ::greptime::v1::ColumnDataTypeExtension* datatype_extension); ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension(); + // .greptime.v1.ColumnOptions options = 8; + bool has_options() const; + private: + bool _internal_has_options() const; + public: + void clear_options(); + const ::greptime::v1::ColumnOptions& options() const; + PROTOBUF_NODISCARD ::greptime::v1::ColumnOptions* release_options(); + ::greptime::v1::ColumnOptions* mutable_options(); + void set_allocated_options(::greptime::v1::ColumnOptions* options); + private: + const ::greptime::v1::ColumnOptions& _internal_options() const; + ::greptime::v1::ColumnOptions* _internal_mutable_options(); + public: + void unsafe_arena_set_allocated_options( + ::greptime::v1::ColumnOptions* options); + ::greptime::v1::ColumnOptions* unsafe_arena_release_options(); + // .greptime.v1.ColumnDataType data_type = 2; void clear_data_type(); ::greptime::v1::ColumnDataType data_type() const; @@ -4680,6 +4699,7 @@ class ColumnDef final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_constraint_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; ::greptime::v1::ColumnDataTypeExtension* datatype_extension_; + ::greptime::v1::ColumnOptions* options_; int data_type_; bool is_nullable_; int semantic_type_; @@ -9545,6 +9565,91 @@ inline void ColumnDef::set_allocated_datatype_extension(::greptime::v1::ColumnDa // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDef.datatype_extension) } +// .greptime.v1.ColumnOptions options = 8; +inline bool ColumnDef::_internal_has_options() const { + return this != internal_default_instance() && _impl_.options_ != nullptr; +} +inline bool ColumnDef::has_options() const { + return _internal_has_options(); +} +inline const ::greptime::v1::ColumnOptions& ColumnDef::_internal_options() const { + const ::greptime::v1::ColumnOptions* p = _impl_.options_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_ColumnOptions_default_instance_); +} +inline const ::greptime::v1::ColumnOptions& ColumnDef::options() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnDef.options) + return _internal_options(); +} +inline void ColumnDef::unsafe_arena_set_allocated_options( + ::greptime::v1::ColumnOptions* 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.ColumnDef.options) +} +inline ::greptime::v1::ColumnOptions* ColumnDef::release_options() { + + ::greptime::v1::ColumnOptions* 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::ColumnOptions* ColumnDef::unsafe_arena_release_options() { + // @@protoc_insertion_point(field_release:greptime.v1.ColumnDef.options) + + ::greptime::v1::ColumnOptions* temp = _impl_.options_; + _impl_.options_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnOptions* ColumnDef::_internal_mutable_options() { + + if (_impl_.options_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::ColumnOptions>(GetArenaForAllocation()); + _impl_.options_ = p; + } + return _impl_.options_; +} +inline ::greptime::v1::ColumnOptions* ColumnDef::mutable_options() { + ::greptime::v1::ColumnOptions* _msg = _internal_mutable_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDef.options) + return _msg; +} +inline void ColumnDef::set_allocated_options(::greptime::v1::ColumnOptions* options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_); + } + if (options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(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.ColumnDef.options) +} + // ------------------------------------------------------------------- // AddColumnLocation diff --git a/c++/greptime/v1/row.pb.cc b/c++/greptime/v1/row.pb.cc index 3e8c0942..c596e1dd 100644 --- a/c++/greptime/v1/row.pb.cc +++ b/c++/greptime/v1/row.pb.cc @@ -40,6 +40,7 @@ PROTOBUF_CONSTEXPR ColumnSchema::ColumnSchema( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.datatype_extension_)*/nullptr + , /*decltype(_impl_.options_)*/nullptr , /*decltype(_impl_.datatype_)*/0 , /*decltype(_impl_.semantic_type_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} @@ -104,6 +105,7 @@ const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.datatype_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.semantic_type_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.datatype_extension_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.options_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::Row, _internal_metadata_), ~0u, // no _extensions_ @@ -149,8 +151,8 @@ const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTI static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::Rows)}, { 8, -1, -1, sizeof(::greptime::v1::ColumnSchema)}, - { 18, -1, -1, sizeof(::greptime::v1::Row)}, - { 25, -1, -1, sizeof(::greptime::v1::Value)}, + { 19, -1, -1, sizeof(::greptime::v1::Row)}, + { 26, -1, -1, sizeof(::greptime::v1::Value)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -164,43 +166,44 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT "\n\025greptime/v1/row.proto\022\013greptime.v1\032\030gr" "eptime/v1/common.proto\"Q\n\004Rows\022)\n\006schema" "\030\001 \003(\0132\031.greptime.v1.ColumnSchema\022\036\n\004row" - "s\030\002 \003(\0132\020.greptime.v1.Row\"\306\001\n\014ColumnSche" + "s\030\002 \003(\0132\020.greptime.v1.Row\"\363\001\n\014ColumnSche" "ma\022\023\n\013column_name\030\001 \001(\t\022-\n\010datatype\030\002 \001(" "\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant" "ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" "\022@\n\022datatype_extension\030\004 \001(\0132$.greptime." - "v1.ColumnDataTypeExtension\")\n\003Row\022\"\n\006val" - "ues\030\001 \003(\0132\022.greptime.v1.Value\"\274\006\n\005Value\022" - "\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 \001(\005H\000" - "\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030\004 \001(\003" - "H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value\030\006 \001(" - "\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023\n\tu64_value\030\010 " - "\001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000\022\023\n\tf64_value\030" - "\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(\010H\000\022\026\n\014binary_" - "value\030\014 \001(\014H\000\022\026\n\014string_value\030\r \001(\tH\000\022\024\n" - "\ndate_value\030\016 \001(\005H\000\022\030\n\016datetime_value\030\017 " - "\001(\003H\000\022 \n\026timestamp_second_value\030\020 \001(\003H\000\022" - "%\n\033timestamp_millisecond_value\030\021 \001(\003H\000\022%" - "\n\033timestamp_microsecond_value\030\022 \001(\003H\000\022$\n" - "\032timestamp_nanosecond_value\030\023 \001(\003H\000\022\033\n\021t" - "ime_second_value\030\024 \001(\003H\000\022 \n\026time_millise" - "cond_value\030\025 \001(\003H\000\022 \n\026time_microsecond_v" - "alue\030\026 \001(\003H\000\022\037\n\025time_nanosecond_value\030\027 " - "\001(\003H\000\022#\n\031interval_year_month_value\030\030 \001(\005" - "H\000\022!\n\027interval_day_time_value\030\031 \001(\003H\000\022J\n" - "\035interval_month_day_nano_value\030\032 \001(\0132!.g" - "reptime.v1.IntervalMonthDayNanoH\000\0223\n\020dec" - "imal128_value\030\037 \001(\0132\027.greptime.v1.Decima" - "l128H\000B\014\n\nvalue_dataBP\n\016io.greptime.v1B\007" - "RowDataZ5github.com/GreptimeTeam/greptim" - "e-proto/go/greptime/v1b\006proto3" + "v1.ColumnDataTypeExtension\022+\n\007options\030\005 " + "\001(\0132\032.greptime.v1.ColumnOptions\")\n\003Row\022\"" + "\n\006values\030\001 \003(\0132\022.greptime.v1.Value\"\274\006\n\005V" + "alue\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 " + "\001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030" + "\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value" + "\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023\n\tu64_val" + "ue\030\010 \001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000\022\023\n\tf64_v" + "alue\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(\010H\000\022\026\n\014bi" + "nary_value\030\014 \001(\014H\000\022\026\n\014string_value\030\r \001(\t" + "H\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016datetime_val" + "ue\030\017 \001(\003H\000\022 \n\026timestamp_second_value\030\020 \001" + "(\003H\000\022%\n\033timestamp_millisecond_value\030\021 \001(" + "\003H\000\022%\n\033timestamp_microsecond_value\030\022 \001(\003" + "H\000\022$\n\032timestamp_nanosecond_value\030\023 \001(\003H\000" + "\022\033\n\021time_second_value\030\024 \001(\003H\000\022 \n\026time_mi" + "llisecond_value\030\025 \001(\003H\000\022 \n\026time_microsec" + "ond_value\030\026 \001(\003H\000\022\037\n\025time_nanosecond_val" + "ue\030\027 \001(\003H\000\022#\n\031interval_year_month_value\030" + "\030 \001(\005H\000\022!\n\027interval_day_time_value\030\031 \001(\003" + "H\000\022J\n\035interval_month_day_nano_value\030\032 \001(" + "\0132!.greptime.v1.IntervalMonthDayNanoH\000\0223" + "\n\020decimal128_value\030\037 \001(\0132\027.greptime.v1.D" + "ecimal128H\000B\014\n\nvalue_dataBP\n\016io.greptime" + ".v1B\007RowDataZ5github.com/GreptimeTeam/gr" + "eptime-proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2frow_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2frow_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2frow_2eproto = { - false, false, 1310, descriptor_table_protodef_greptime_2fv1_2frow_2eproto, + false, false, 1355, descriptor_table_protodef_greptime_2fv1_2frow_2eproto, "greptime/v1/row.proto", &descriptor_table_greptime_2fv1_2frow_2eproto_once, descriptor_table_greptime_2fv1_2frow_2eproto_deps, 1, 4, schemas, file_default_instances, TableStruct_greptime_2fv1_2frow_2eproto::offsets, @@ -440,18 +443,29 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Rows::GetMetadata() const { class ColumnSchema::_Internal { public: static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnSchema* msg); + static const ::greptime::v1::ColumnOptions& options(const ColumnSchema* msg); }; const ::greptime::v1::ColumnDataTypeExtension& ColumnSchema::_Internal::datatype_extension(const ColumnSchema* msg) { return *msg->_impl_.datatype_extension_; } +const ::greptime::v1::ColumnOptions& +ColumnSchema::_Internal::options(const ColumnSchema* msg) { + return *msg->_impl_.options_; +} void ColumnSchema::clear_datatype_extension() { if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { delete _impl_.datatype_extension_; } _impl_.datatype_extension_ = nullptr; } +void ColumnSchema::clear_options() { + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; +} ColumnSchema::ColumnSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -464,6 +478,7 @@ ColumnSchema::ColumnSchema(const ColumnSchema& from) new (&_impl_) Impl_{ decltype(_impl_.column_name_){} , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.options_){nullptr} , decltype(_impl_.datatype_){} , decltype(_impl_.semantic_type_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -480,6 +495,9 @@ ColumnSchema::ColumnSchema(const ColumnSchema& from) if (from._internal_has_datatype_extension()) { _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); } + if (from._internal_has_options()) { + _this->_impl_.options_ = new ::greptime::v1::ColumnOptions(*from._impl_.options_); + } ::memcpy(&_impl_.datatype_, &from._impl_.datatype_, static_cast(reinterpret_cast(&_impl_.semantic_type_) - reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.semantic_type_)); @@ -493,6 +511,7 @@ inline void ColumnSchema::SharedCtor( new (&_impl_) Impl_{ decltype(_impl_.column_name_){} , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.options_){nullptr} , decltype(_impl_.datatype_){0} , decltype(_impl_.semantic_type_){0} , /*decltype(_impl_._cached_size_)*/{} @@ -516,6 +535,7 @@ inline void ColumnSchema::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.column_name_.Destroy(); if (this != internal_default_instance()) delete _impl_.datatype_extension_; + if (this != internal_default_instance()) delete _impl_.options_; } void ColumnSchema::SetCachedSize(int size) const { @@ -533,6 +553,10 @@ void ColumnSchema::Clear() { delete _impl_.datatype_extension_; } _impl_.datatype_extension_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.options_ != nullptr) { + delete _impl_.options_; + } + _impl_.options_ = nullptr; ::memset(&_impl_.datatype_, 0, static_cast( reinterpret_cast(&_impl_.semantic_type_) - reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.semantic_type_)); @@ -581,6 +605,14 @@ const char* ColumnSchema::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.ColumnOptions options = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -641,6 +673,13 @@ uint8_t* ColumnSchema::_InternalSerialize( _Internal::datatype_extension(this).GetCachedSize(), target, stream); } + // .greptime.v1.ColumnOptions options = 5; + if (this->_internal_has_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::options(this), + _Internal::options(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -671,6 +710,13 @@ size_t ColumnSchema::ByteSizeLong() const { *_impl_.datatype_extension_); } + // .greptime.v1.ColumnOptions options = 5; + if (this->_internal_has_options()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.options_); + } + // .greptime.v1.ColumnDataType datatype = 2; if (this->_internal_datatype() != 0) { total_size += 1 + @@ -708,6 +754,10 @@ void ColumnSchema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P _this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( from._internal_datatype_extension()); } + if (from._internal_has_options()) { + _this->_internal_mutable_options()->::greptime::v1::ColumnOptions::MergeFrom( + from._internal_options()); + } if (from._internal_datatype() != 0) { _this->_internal_set_datatype(from._internal_datatype()); } diff --git a/c++/greptime/v1/row.pb.h b/c++/greptime/v1/row.pb.h index 8c26c24a..62a9f94f 100644 --- a/c++/greptime/v1/row.pb.h +++ b/c++/greptime/v1/row.pb.h @@ -372,6 +372,7 @@ class ColumnSchema final : enum : int { kColumnNameFieldNumber = 1, kDatatypeExtensionFieldNumber = 4, + kOptionsFieldNumber = 5, kDatatypeFieldNumber = 2, kSemanticTypeFieldNumber = 3, }; @@ -407,6 +408,24 @@ class ColumnSchema final : ::greptime::v1::ColumnDataTypeExtension* datatype_extension); ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension(); + // .greptime.v1.ColumnOptions options = 5; + bool has_options() const; + private: + bool _internal_has_options() const; + public: + void clear_options(); + const ::greptime::v1::ColumnOptions& options() const; + PROTOBUF_NODISCARD ::greptime::v1::ColumnOptions* release_options(); + ::greptime::v1::ColumnOptions* mutable_options(); + void set_allocated_options(::greptime::v1::ColumnOptions* options); + private: + const ::greptime::v1::ColumnOptions& _internal_options() const; + ::greptime::v1::ColumnOptions* _internal_mutable_options(); + public: + void unsafe_arena_set_allocated_options( + ::greptime::v1::ColumnOptions* options); + ::greptime::v1::ColumnOptions* unsafe_arena_release_options(); + // .greptime.v1.ColumnDataType datatype = 2; void clear_datatype(); ::greptime::v1::ColumnDataType datatype() const; @@ -435,6 +454,7 @@ class ColumnSchema final : struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; ::greptime::v1::ColumnDataTypeExtension* datatype_extension_; + ::greptime::v1::ColumnOptions* options_; int datatype_; int semantic_type_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -1500,6 +1520,91 @@ inline void ColumnSchema::set_allocated_datatype_extension(::greptime::v1::Colum // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnSchema.datatype_extension) } +// .greptime.v1.ColumnOptions options = 5; +inline bool ColumnSchema::_internal_has_options() const { + return this != internal_default_instance() && _impl_.options_ != nullptr; +} +inline bool ColumnSchema::has_options() const { + return _internal_has_options(); +} +inline const ::greptime::v1::ColumnOptions& ColumnSchema::_internal_options() const { + const ::greptime::v1::ColumnOptions* p = _impl_.options_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_ColumnOptions_default_instance_); +} +inline const ::greptime::v1::ColumnOptions& ColumnSchema::options() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnSchema.options) + return _internal_options(); +} +inline void ColumnSchema::unsafe_arena_set_allocated_options( + ::greptime::v1::ColumnOptions* 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.ColumnSchema.options) +} +inline ::greptime::v1::ColumnOptions* ColumnSchema::release_options() { + + ::greptime::v1::ColumnOptions* 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::ColumnOptions* ColumnSchema::unsafe_arena_release_options() { + // @@protoc_insertion_point(field_release:greptime.v1.ColumnSchema.options) + + ::greptime::v1::ColumnOptions* temp = _impl_.options_; + _impl_.options_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnOptions* ColumnSchema::_internal_mutable_options() { + + if (_impl_.options_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::ColumnOptions>(GetArenaForAllocation()); + _impl_.options_ = p; + } + return _impl_.options_; +} +inline ::greptime::v1::ColumnOptions* ColumnSchema::mutable_options() { + ::greptime::v1::ColumnOptions* _msg = _internal_mutable_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ColumnSchema.options) + return _msg; +} +inline void ColumnSchema::set_allocated_options(::greptime::v1::ColumnOptions* options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.options_); + } + if (options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(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.ColumnSchema.options) +} + // ------------------------------------------------------------------- // Row diff --git a/go/greptime/v1/column.pb.go b/go/greptime/v1/column.pb.go index fca8adbc..f3e8da07 100644 --- a/go/greptime/v1/column.pb.go +++ b/go/greptime/v1/column.pb.go @@ -60,6 +60,8 @@ type Column struct { Datatype ColumnDataType `protobuf:"varint,5,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"` // Extension for ColumnDataType. DatatypeExtension *ColumnDataTypeExtension `protobuf:"bytes,6,opt,name=datatype_extension,json=datatypeExtension,proto3" json:"datatype_extension,omitempty"` + // Additional column options. + Options *ColumnOptions `protobuf:"bytes,7,opt,name=options,proto3" json:"options,omitempty"` } func (x *Column) Reset() { @@ -136,6 +138,13 @@ func (x *Column) GetDatatypeExtension() *ColumnDataTypeExtension { return nil } +func (x *Column) GetOptions() *ColumnOptions { + if x != nil { + return x.Options + } + return nil +} + type Column_Values struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -398,7 +407,7 @@ var file_greptime_v1_column_proto_rawDesc = []byte{ 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x22, 0xad, 0x0c, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, + 0x6f, 0x22, 0xe3, 0x0c, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 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, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, @@ -418,91 +427,95 @@ var file_greptime_v1_column_proto_rawDesc = []byte{ 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, 0x1a, 0xe2, 0x09, 0x0a, - 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x38, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x69, 0x38, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x69, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x69, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, - 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x75, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, - 0x0a, 0x0a, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x0d, 0x52, 0x09, 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, - 0x0a, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x0d, 0x52, 0x09, 0x75, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, - 0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x04, - 0x52, 0x09, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, - 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x02, 0x52, - 0x09, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x36, - 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x01, 0x52, 0x09, - 0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, - 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a, - 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, - 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, - 0x0c, 0x52, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, - 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, - 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e, - 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, - 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x03, 0x52, - 0x15, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x74, 0x69, - 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x03, 0x52, - 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x69, - 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x14, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, - 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, - 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, - 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, - 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, - 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3b, - 0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, - 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x03, - 0x28, 0x05, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, - 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x69, - 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x12, 0x65, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, - 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x52, - 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, - 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x11, 0x64, - 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x52, - 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x42, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 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, + 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 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, 0x1a, 0xe2, 0x09, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, + 0x09, 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, + 0x52, 0x08, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x31, + 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, + 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x33, 0x32, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x69, + 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x36, 0x34, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x69, 0x36, + 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x38, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x75, 0x38, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x08, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x09, 0x20, 0x03, 0x28, 0x02, 0x52, 0x09, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0a, + 0x20, 0x03, 0x28, 0x01, 0x52, 0x09, 0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, + 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0b, + 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x61, + 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x05, 0x52, + 0x0a, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x64, + 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0f, + 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, + 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x10, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, + 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, + 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x40, + 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x63, 0x72, + 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x12, + 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, + 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x12, 0x3e, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x61, + 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x13, 0x20, 0x03, 0x28, 0x03, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, + 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, + 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, + 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x03, 0x52, + 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, + 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, + 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, + 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, + 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, + 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x05, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, + 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, 0x20, + 0x03, 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, + 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x65, 0x0a, 0x1e, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, + 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, + 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, + 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x44, 0x0a, 0x11, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, + 0x61, 0x6c, 0x31, 0x32, 0x38, 0x52, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, + 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x73, 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 ( @@ -524,21 +537,23 @@ var file_greptime_v1_column_proto_goTypes = []interface{}{ (SemanticType)(0), // 2: greptime.v1.SemanticType (ColumnDataType)(0), // 3: greptime.v1.ColumnDataType (*ColumnDataTypeExtension)(nil), // 4: greptime.v1.ColumnDataTypeExtension - (*IntervalMonthDayNano)(nil), // 5: greptime.v1.IntervalMonthDayNano - (*Decimal128)(nil), // 6: greptime.v1.Decimal128 + (*ColumnOptions)(nil), // 5: greptime.v1.ColumnOptions + (*IntervalMonthDayNano)(nil), // 6: greptime.v1.IntervalMonthDayNano + (*Decimal128)(nil), // 7: greptime.v1.Decimal128 } var file_greptime_v1_column_proto_depIdxs = []int32{ 2, // 0: greptime.v1.Column.semantic_type:type_name -> greptime.v1.SemanticType 1, // 1: greptime.v1.Column.values:type_name -> greptime.v1.Column.Values 3, // 2: greptime.v1.Column.datatype:type_name -> greptime.v1.ColumnDataType 4, // 3: greptime.v1.Column.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 5, // 4: greptime.v1.Column.Values.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano - 6, // 5: greptime.v1.Column.Values.decimal128_values:type_name -> greptime.v1.Decimal128 - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 5, // 4: greptime.v1.Column.options:type_name -> greptime.v1.ColumnOptions + 6, // 5: greptime.v1.Column.Values.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano + 7, // 6: greptime.v1.Column.Values.decimal128_values:type_name -> greptime.v1.Decimal128 + 7, // [7:7] is the sub-list for method output_type + 7, // [7:7] is the sub-list for method input_type + 7, // [7:7] is the sub-list for extension type_name + 7, // [7:7] is the sub-list for extension extendee + 0, // [0:7] is the sub-list for field type_name } func init() { file_greptime_v1_column_proto_init() } diff --git a/go/greptime/v1/common.pb.go b/go/greptime/v1/common.pb.go index 8a34f275..b84af0b9 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -1156,6 +1156,74 @@ func (x *DecimalTypeExtension) GetScale() int32 { return 0 } +// Additional options for the column. +type ColumnOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Supported keys: + // + // "fulltext": + // A JSON encoded string containing full-text search options for the column. + // + // The fulltext options JSON structure: + // { + // "enable": bool, // Indicates whether full-text search is + // // enabled for the column. + // + // "analyzer": string, // The language-specific text analyzer to + // // use for indexing and searching text. + // // Supported values: ["English" (Default), "Chinese"]. + // + // "case-sensitive": bool // Indicates whether the text should be treated + // // as case-sensitive during full-text search. + // } + // + // Example: + // "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}" + Options map[string]string `protobuf:"bytes,1,rep,name=options,proto3" json:"options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *ColumnOptions) Reset() { + *x = ColumnOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ColumnOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ColumnOptions) ProtoMessage() {} + +func (x *ColumnOptions) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[16] + 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 ColumnOptions.ProtoReflect.Descriptor instead. +func (*ColumnOptions) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{16} +} + +func (x *ColumnOptions) GetOptions() map[string]string { + if x != nil { + return x.Options + } + return nil +} + var File_greptime_v1_common_proto protoreflect.FileDescriptor var file_greptime_v1_common_proto_rawDesc = []byte{ @@ -1263,45 +1331,55 @@ var file_greptime_v1_common_proto_rawDesc = []byte{ 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2a, 0x31, 0x0a, 0x0c, 0x53, - 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, - 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, - 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xd6, - 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, - 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, - 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, - 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, - 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, - 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, - 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, - 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, - 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, - 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, - 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, - 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, - 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, - 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, - 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, - 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, - 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, - 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, - 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, - 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, - 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, - 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, - 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, - 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, - 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, - 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, - 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x59, - 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x43, 0x49, 0x4d, - 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, - 0x6e, 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, + 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22, 0x8e, 0x01, 0x0a, 0x0d, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, + 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, + 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, 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, 0x2a, 0x31, 0x0a, 0x0c, + 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, + 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, + 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, + 0xd6, 0x03, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, + 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, + 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, + 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, + 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, + 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, + 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, + 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, + 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, + 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, + 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, + 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, + 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, + 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, + 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, + 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, + 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, + 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, + 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, + 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, + 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, + 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, + 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, + 0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, + 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, + 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, + 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x43, 0x49, + 0x4d, 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, + 0x6f, 0x6e, 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 ( @@ -1317,7 +1395,7 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte { } var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 18) +var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_greptime_v1_common_proto_goTypes = []interface{}{ (SemanticType)(0), // 0: greptime.v1.SemanticType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType @@ -1337,24 +1415,27 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{ (*Decimal128)(nil), // 15: greptime.v1.Decimal128 (*ColumnDataTypeExtension)(nil), // 16: greptime.v1.ColumnDataTypeExtension (*DecimalTypeExtension)(nil), // 17: greptime.v1.DecimalTypeExtension - nil, // 18: greptime.v1.QueryContext.ExtensionsEntry - nil, // 19: greptime.v1.RequestHeader.TracingContextEntry + (*ColumnOptions)(nil), // 18: greptime.v1.ColumnOptions + nil, // 19: greptime.v1.QueryContext.ExtensionsEntry + nil, // 20: greptime.v1.RequestHeader.TracingContextEntry + nil, // 21: greptime.v1.ColumnOptions.OptionsEntry } var file_greptime_v1_common_proto_depIdxs = []int32{ - 18, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry + 19, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry 6, // 1: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader - 19, // 2: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry + 20, // 2: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry 5, // 3: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status 7, // 4: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic 8, // 5: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token 10, // 6: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows 11, // 7: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics 17, // 8: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 21, // 9: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry + 10, // [10:10] is the sub-list for method output_type + 10, // [10:10] is the sub-list for method input_type + 10, // [10:10] is the sub-list for extension type_name + 10, // [10:10] is the sub-list for extension extendee + 0, // [0:10] is the sub-list for field type_name } func init() { file_greptime_v1_common_proto_init() } @@ -1555,6 +1636,18 @@ func file_greptime_v1_common_proto_init() { return nil } } + file_greptime_v1_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColumnOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_greptime_v1_common_proto_msgTypes[4].OneofWrappers = []interface{}{ (*AuthHeader_Basic)(nil), @@ -1569,7 +1662,7 @@ func file_greptime_v1_common_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_common_proto_rawDesc, NumEnums: 2, - NumMessages: 18, + NumMessages: 20, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 82546331..34d03258 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -1636,6 +1636,8 @@ type ColumnDef struct { Comment string `protobuf:"bytes,6,opt,name=comment,proto3" json:"comment,omitempty"` // Extension for ColumnDataType. DatatypeExtension *ColumnDataTypeExtension `protobuf:"bytes,7,opt,name=datatype_extension,json=datatypeExtension,proto3" json:"datatype_extension,omitempty"` + // Additional column options. + Options *ColumnOptions `protobuf:"bytes,8,opt,name=options,proto3" json:"options,omitempty"` } func (x *ColumnDef) Reset() { @@ -1719,6 +1721,13 @@ func (x *ColumnDef) GetDatatypeExtension() *ColumnDataTypeExtension { return nil } +func (x *ColumnDef) GetOptions() *ColumnOptions { + if x != nil { + return x.Options + } + return nil +} + type AddColumnLocation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2043,7 +2052,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 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, 0xd8, 0x02, 0x0a, + 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, @@ -2065,24 +2074,27 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 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, 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, + 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 ( @@ -2131,6 +2143,7 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (ColumnDataType)(0), // 28: greptime.v1.ColumnDataType (*ColumnDataTypeExtension)(nil), // 29: greptime.v1.ColumnDataTypeExtension (SemanticType)(0), // 30: greptime.v1.SemanticType + (*ColumnOptions)(nil), // 31: greptime.v1.ColumnOptions } var file_greptime_v1_ddl_proto_depIdxs = []int32{ 9, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr @@ -2169,12 +2182,13 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 28, // 33: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType 30, // 34: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType 29, // 35: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 0, // 36: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 37, // [37:37] is the sub-list for method output_type - 37, // [37:37] is the sub-list for method input_type - 37, // [37:37] is the sub-list for extension type_name - 37, // [37:37] is the sub-list for extension extendee - 0, // [0:37] is the sub-list for field type_name + 31, // 36: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 0, // 37: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 38, // [38:38] is the sub-list for method output_type + 38, // [38:38] is the sub-list for method input_type + 38, // [38:38] is the sub-list for extension type_name + 38, // [38:38] is the sub-list for extension extendee + 0, // [0:38] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } diff --git a/go/greptime/v1/row.pb.go b/go/greptime/v1/row.pb.go index 5d647e96..4180be94 100644 --- a/go/greptime/v1/row.pb.go +++ b/go/greptime/v1/row.pb.go @@ -99,6 +99,8 @@ type ColumnSchema struct { SemanticType SemanticType `protobuf:"varint,3,opt,name=semantic_type,json=semanticType,proto3,enum=greptime.v1.SemanticType" json:"semantic_type,omitempty"` // Extension for ColumnDataType. DatatypeExtension *ColumnDataTypeExtension `protobuf:"bytes,4,opt,name=datatype_extension,json=datatypeExtension,proto3" json:"datatype_extension,omitempty"` + // Additional column options. + Options *ColumnOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` } func (x *ColumnSchema) Reset() { @@ -161,6 +163,13 @@ func (x *ColumnSchema) GetDatatypeExtension() *ColumnDataTypeExtension { return nil } +func (x *ColumnSchema) GetOptions() *ColumnOptions { + if x != nil { + return x.Options + } + return nil +} + type Row struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -652,7 +661,7 @@ var file_greptime_v1_row_proto_rawDesc = []byte{ 0x61, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x0a, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22, - 0xfd, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0xb3, 0x02, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 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, 0x37, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, @@ -667,95 +676,99 @@ var file_greptime_v1_row_proto_rawDesc = []byte{ 0x18, 0x04, 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, 0x22, - 0x31, 0x0a, 0x03, 0x52, 0x6f, 0x77, 0x12, 0x2a, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x22, 0xef, 0x09, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, - 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, - 0x52, 0x07, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x31, 0x36, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, - 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x33, 0x32, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, - 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x36, 0x34, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x36, - 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x07, 0x75, 0x38, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x08, 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x08, 0x75, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, - 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x08, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x1d, 0x0a, 0x09, 0x66, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, - 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x08, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x1d, 0x0a, 0x09, 0x66, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x01, 0x48, 0x00, 0x52, 0x08, 0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, - 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x23, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x64, 0x61, 0x74, - 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, - 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0e, 0x64, 0x61, - 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, - 0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x10, 0x20, - 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x1b, 0x74, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, - 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, - 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x12, 0x20, 0x01, - 0x28, 0x03, 0x48, 0x00, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, - 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x3e, 0x0a, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e, - 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x13, 0x20, - 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, - 0x2c, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x69, - 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, - 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, - 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, - 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x16, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, - 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, - 0x15, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x13, - 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x19, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, - 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x16, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, - 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x37, 0x0a, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x19, 0x20, 0x01, 0x28, - 0x03, 0x48, 0x00, 0x52, 0x14, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, - 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x65, 0x0a, 0x1d, 0x69, 0x6e, 0x74, - 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, - 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, - 0x61, 0x6e, 0x6f, 0x48, 0x00, 0x52, 0x19, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, - 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x12, 0x44, 0x0a, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, - 0x31, 0x32, 0x38, 0x48, 0x00, 0x52, 0x0f, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, - 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 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, + 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, 0x05, 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, 0x31, 0x0a, 0x03, 0x52, 0x6f, 0x77, 0x12, 0x2a, 0x0a, 0x06, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xef, 0x09, 0x0a, 0x05, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x07, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x1d, 0x0a, 0x09, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, + 0x0a, 0x09, 0x69, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, + 0x09, 0x69, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x08, 0x69, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, + 0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, + 0x52, 0x07, 0x75, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x31, 0x36, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x08, + 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x33, 0x32, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x08, 0x75, + 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x36, 0x34, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x08, 0x75, 0x36, + 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x66, 0x33, 0x32, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x08, 0x66, 0x33, 0x32, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x66, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x08, 0x66, 0x36, 0x34, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x62, + 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, + 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x1f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x27, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, + 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x40, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, + 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, + 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, + 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x15, 0x20, + 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, + 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, + 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, + 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x17, 0x20, 0x01, + 0x28, 0x03, 0x48, 0x00, 0x52, 0x13, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x19, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x16, + 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, + 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x69, 0x6e, 0x74, 0x65, 0x72, + 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x65, 0x0a, 0x1d, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, + 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, + 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x48, 0x00, 0x52, 0x19, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, + 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, + 0x6c, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, + 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x48, 0x00, 0x52, 0x0f, 0x64, 0x65, 0x63, + 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0c, 0x0a, 0x0a, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x52, 0x6f, + 0x77, 0x44, 0x61, 0x74, 0x61, 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 ( @@ -779,8 +792,9 @@ var file_greptime_v1_row_proto_goTypes = []interface{}{ (ColumnDataType)(0), // 4: greptime.v1.ColumnDataType (SemanticType)(0), // 5: greptime.v1.SemanticType (*ColumnDataTypeExtension)(nil), // 6: greptime.v1.ColumnDataTypeExtension - (*IntervalMonthDayNano)(nil), // 7: greptime.v1.IntervalMonthDayNano - (*Decimal128)(nil), // 8: greptime.v1.Decimal128 + (*ColumnOptions)(nil), // 7: greptime.v1.ColumnOptions + (*IntervalMonthDayNano)(nil), // 8: greptime.v1.IntervalMonthDayNano + (*Decimal128)(nil), // 9: greptime.v1.Decimal128 } var file_greptime_v1_row_proto_depIdxs = []int32{ 1, // 0: greptime.v1.Rows.schema:type_name -> greptime.v1.ColumnSchema @@ -788,14 +802,15 @@ var file_greptime_v1_row_proto_depIdxs = []int32{ 4, // 2: greptime.v1.ColumnSchema.datatype:type_name -> greptime.v1.ColumnDataType 5, // 3: greptime.v1.ColumnSchema.semantic_type:type_name -> greptime.v1.SemanticType 6, // 4: greptime.v1.ColumnSchema.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 3, // 5: greptime.v1.Row.values:type_name -> greptime.v1.Value - 7, // 6: greptime.v1.Value.interval_month_day_nano_value:type_name -> greptime.v1.IntervalMonthDayNano - 8, // 7: greptime.v1.Value.decimal128_value:type_name -> greptime.v1.Decimal128 - 8, // [8:8] is the sub-list for method output_type - 8, // [8:8] is the sub-list for method input_type - 8, // [8:8] is the sub-list for extension type_name - 8, // [8:8] is the sub-list for extension extendee - 0, // [0:8] is the sub-list for field type_name + 7, // 5: greptime.v1.ColumnSchema.options:type_name -> greptime.v1.ColumnOptions + 3, // 6: greptime.v1.Row.values:type_name -> greptime.v1.Value + 8, // 7: greptime.v1.Value.interval_month_day_nano_value:type_name -> greptime.v1.IntervalMonthDayNano + 9, // 8: greptime.v1.Value.decimal128_value:type_name -> greptime.v1.Decimal128 + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name } func init() { file_greptime_v1_row_proto_init() } diff --git a/java/src/main/java/io/greptime/v1/Columns.java b/java/src/main/java/io/greptime/v1/Columns.java index f290af33..ef49f9dd 100644 --- a/java/src/main/java/io/greptime/v1/Columns.java +++ b/java/src/main/java/io/greptime/v1/Columns.java @@ -146,6 +146,33 @@ public interface ColumnOrBuilder extends * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; */ io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder(); + + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 7; + * @return Whether the options field is set. + */ + boolean hasOptions(); + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 7; + * @return The options. + */ + io.greptime.v1.Common.ColumnOptions getOptions(); + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder(); } /** * Protobuf type {@code greptime.v1.Column} @@ -245,6 +272,19 @@ private Column( break; } + case 58: { + io.greptime.v1.Common.ColumnOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = input.readMessage(io.greptime.v1.Common.ColumnOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -6468,6 +6508,44 @@ public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensi return getDatatypeExtension(); } + public static final int OPTIONS_FIELD_NUMBER = 7; + private io.greptime.v1.Common.ColumnOptions options_; + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 7; + * @return Whether the options field is set. + */ + @java.lang.Override + public boolean hasOptions() { + return options_ != null; + } + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 7; + * @return The options. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnOptions getOptions() { + return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -6500,6 +6578,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (datatypeExtension_ != null) { output.writeMessage(6, getDatatypeExtension()); } + if (options_ != null) { + output.writeMessage(7, getOptions()); + } unknownFields.writeTo(output); } @@ -6532,6 +6613,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDatatypeExtension()); } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getOptions()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -6563,6 +6648,11 @@ public boolean equals(final java.lang.Object obj) { if (!getDatatypeExtension() .equals(other.getDatatypeExtension())) 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; } @@ -6590,6 +6680,10 @@ public int hashCode() { hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getDatatypeExtension().hashCode(); } + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -6743,6 +6837,12 @@ public Builder clear() { datatypeExtension_ = null; datatypeExtensionBuilder_ = null; } + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } return this; } @@ -6783,6 +6883,11 @@ public io.greptime.v1.Columns.Column buildPartial() { } else { result.datatypeExtension_ = datatypeExtensionBuilder_.build(); } + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } onBuilt(); return result; } @@ -6850,6 +6955,9 @@ public Builder mergeFrom(io.greptime.v1.Columns.Column other) { if (other.hasDatatypeExtension()) { mergeDatatypeExtension(other.getDatatypeExtension()); } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -7507,6 +7615,161 @@ public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensi } return datatypeExtensionBuilder_; } + + private io.greptime.v1.Common.ColumnOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> optionsBuilder_; + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + * @return The options. + */ + public io.greptime.v1.Common.ColumnOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + public Builder setOptions(io.greptime.v1.Common.ColumnOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + public Builder setOptions( + io.greptime.v1.Common.ColumnOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + public Builder mergeOptions(io.greptime.v1.Common.ColumnOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + io.greptime.v1.Common.ColumnOptions.newBuilder(options_).mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + public io.greptime.v1.Common.ColumnOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null ? + io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); + options_ = null; + } + return optionsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7580,36 +7843,37 @@ public io.greptime.v1.Columns.Column getDefaultInstanceForType() { static { java.lang.String[] descriptorData = { "\n\030greptime/v1/column.proto\022\013greptime.v1\032" + - "\030greptime/v1/common.proto\"\226\010\n\006Column\022\023\n\013" + + "\030greptime/v1/common.proto\"\303\010\n\006Column\022\023\n\013" + "column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016" + "2\031.greptime.v1.SemanticType\022*\n\006values\030\003 " + "\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_" + "mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime." + "v1.ColumnDataType\022@\n\022datatype_extension\030" + "\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens" + - "ion\032\224\006\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16" + - "_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64" + - "_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_" + - "values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_" + - "values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_" + - "values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbin" + - "ary_values\030\014 \003(\014\022\025\n\rstring_values\030\r \003(\t\022" + - "\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_values\030" + - "\017 \003(\003\022\037\n\027timestamp_second_values\030\020 \003(\003\022$" + - "\n\034timestamp_millisecond_values\030\021 \003(\003\022$\n\034" + - "timestamp_microsecond_values\030\022 \003(\003\022#\n\033ti" + - "mestamp_nanosecond_values\030\023 \003(\003\022\032\n\022time_" + - "second_values\030\024 \003(\003\022\037\n\027time_millisecond_" + - "values\030\025 \003(\003\022\037\n\027time_microsecond_values\030" + - "\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003(\003\022\"\n" + - "\032interval_year_month_values\030\030 \003(\005\022 \n\030int" + - "erval_day_time_values\030\031 \003(\003\022I\n\036interval_" + - "month_day_nano_values\030\032 \003(\0132!.greptime.v" + - "1.IntervalMonthDayNano\0222\n\021decimal128_val" + - "ues\030\037 \003(\0132\027.greptime.v1.Decimal128BP\n\016io" + - ".greptime.v1B\007ColumnsZ5github.com/Grepti" + - "meTeam/greptime-proto/go/greptime/v1b\006pr" + - "oto3" + "ion\022+\n\007options\030\007 \001(\0132\032.greptime.v1.Colum" + + "nOptions\032\224\006\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022" + + "\n\ni16_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022" + + "\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n" + + "\nu16_values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n" + + "\nu64_values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n" + + "\nf64_values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025" + + "\n\rbinary_values\030\014 \003(\014\022\025\n\rstring_values\030\r" + + " \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_va" + + "lues\030\017 \003(\003\022\037\n\027timestamp_second_values\030\020 " + + "\003(\003\022$\n\034timestamp_millisecond_values\030\021 \003(" + + "\003\022$\n\034timestamp_microsecond_values\030\022 \003(\003\022" + + "#\n\033timestamp_nanosecond_values\030\023 \003(\003\022\032\n\022" + + "time_second_values\030\024 \003(\003\022\037\n\027time_millise" + + "cond_values\030\025 \003(\003\022\037\n\027time_microsecond_va" + + "lues\030\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003" + + "(\003\022\"\n\032interval_year_month_values\030\030 \003(\005\022 " + + "\n\030interval_day_time_values\030\031 \003(\003\022I\n\036inte" + + "rval_month_day_nano_values\030\032 \003(\0132!.grept" + + "ime.v1.IntervalMonthDayNano\0222\n\021decimal12" + + "8_values\030\037 \003(\0132\027.greptime.v1.Decimal128B" + + "P\n\016io.greptime.v1B\007ColumnsZ5github.com/G" + + "reptimeTeam/greptime-proto/go/greptime/v" + + "1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -7621,7 +7885,7 @@ public io.greptime.v1.Columns.Column getDefaultInstanceForType() { internal_static_greptime_v1_Column_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Column_descriptor, - new java.lang.String[] { "ColumnName", "SemanticType", "Values", "NullMask", "Datatype", "DatatypeExtension", }); + new java.lang.String[] { "ColumnName", "SemanticType", "Values", "NullMask", "Datatype", "DatatypeExtension", "Options", }); internal_static_greptime_v1_Column_Values_descriptor = internal_static_greptime_v1_Column_descriptor.getNestedTypes().get(0); internal_static_greptime_v1_Column_Values_fieldAccessorTable = new diff --git a/java/src/main/java/io/greptime/v1/Common.java b/java/src/main/java/io/greptime/v1/Common.java index f2d8bcf6..9f2e4404 100644 --- a/java/src/main/java/io/greptime/v1/Common.java +++ b/java/src/main/java/io/greptime/v1/Common.java @@ -12676,6 +12676,1047 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { } + public interface ColumnOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ColumnOptions) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + int getOptionsCount(); + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + boolean containsOptions( + java.lang.String key); + /** + * Use {@link #getOptionsMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getOptions(); + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + java.util.Map + getOptionsMap(); + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + + /* nullable */ +java.lang.String getOptionsOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + + java.lang.String getOptionsOrThrow( + java.lang.String key); + } + /** + *
+   * Additional options for the column.
+   * 
+ * + * Protobuf type {@code greptime.v1.ColumnOptions} + */ + public static final class ColumnOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.ColumnOptions) + ColumnOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnOptions.newBuilder() to construct. + private ColumnOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ColumnOptions() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ColumnOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ColumnOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + options_ = com.google.protobuf.MapField.newMapField( + OptionsDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + options__ = input.readMessage( + OptionsDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + options_.getMutableMap().put( + options__.getKey(), options__.getValue()); + 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.Common.internal_static_greptime_v1_ColumnOptions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_ColumnOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.ColumnOptions.class, io.greptime.v1.Common.ColumnOptions.Builder.class); + } + + public static final int OPTIONS_FIELD_NUMBER = 1; + 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.Common.internal_static_greptime_v1_ColumnOptions_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(); + } + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + + @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(); + } + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); + } + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + @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; + } + /** + *
+     * Supported keys:
+     *   "fulltext":
+     *      A JSON encoded string containing full-text search options for the column.
+     *      The fulltext options JSON structure:
+     *      {
+     *        "enable": bool,          // Indicates whether full-text search is
+     *                                 // enabled for the column.
+     *        "analyzer": string,      // The language-specific text analyzer to
+     *                                 // use for indexing and searching text.
+     *                                 // Supported values: ["English" (Default), "Chinese"].
+     *        "case-sensitive": bool   // Indicates whether the text should be treated
+     *                                 // as case-sensitive during full-text search.
+     *      }
+     *      Example:
+     *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+     * 
+ * + * map<string, string> options = 1; + */ + @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); + } + + 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 { + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetOptions(), + OptionsDefaultEntryHolder.defaultEntry, + 1); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry + : internalGetOptions().getMap().entrySet()) { + com.google.protobuf.MapEntry + options__ = OptionsDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, options__); + } + 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.Common.ColumnOptions)) { + return super.equals(obj); + } + io.greptime.v1.Common.ColumnOptions other = (io.greptime.v1.Common.ColumnOptions) obj; + + if (!internalGetOptions().equals( + other.internalGetOptions())) 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(); + if (!internalGetOptions().getMap().isEmpty()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetOptions().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.ColumnOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ColumnOptions 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.Common.ColumnOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ColumnOptions 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.Common.ColumnOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ColumnOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.ColumnOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ColumnOptions 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.Common.ColumnOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ColumnOptions 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.Common.ColumnOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ColumnOptions 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.Common.ColumnOptions 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; + } + /** + *
+     * Additional options for the column.
+     * 
+ * + * Protobuf type {@code greptime.v1.ColumnOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.ColumnOptions) + io.greptime.v1.Common.ColumnOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_ColumnOptions_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 1: + return internalGetOptions(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 1: + 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.Common.internal_static_greptime_v1_ColumnOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.ColumnOptions.class, io.greptime.v1.Common.ColumnOptions.Builder.class); + } + + // Construct using io.greptime.v1.Common.ColumnOptions.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(); + internalGetMutableOptions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_ColumnOptions_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.ColumnOptions getDefaultInstanceForType() { + return io.greptime.v1.Common.ColumnOptions.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.ColumnOptions build() { + io.greptime.v1.Common.ColumnOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.ColumnOptions buildPartial() { + io.greptime.v1.Common.ColumnOptions result = new io.greptime.v1.Common.ColumnOptions(this); + int from_bitField0_ = bitField0_; + result.options_ = internalGetOptions(); + result.options_.makeImmutable(); + 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.Common.ColumnOptions) { + return mergeFrom((io.greptime.v1.Common.ColumnOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.ColumnOptions other) { + if (other == io.greptime.v1.Common.ColumnOptions.getDefaultInstance()) return this; + internalGetMutableOptions().mergeFrom( + other.internalGetOptions()); + 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.Common.ColumnOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.ColumnOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + 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(); + } + /** + *
+       * Supported keys:
+       *   "fulltext":
+       *      A JSON encoded string containing full-text search options for the column.
+       *      The fulltext options JSON structure:
+       *      {
+       *        "enable": bool,          // Indicates whether full-text search is
+       *                                 // enabled for the column.
+       *        "analyzer": string,      // The language-specific text analyzer to
+       *                                 // use for indexing and searching text.
+       *                                 // Supported values: ["English" (Default), "Chinese"].
+       *        "case-sensitive": bool   // Indicates whether the text should be treated
+       *                                 // as case-sensitive during full-text search.
+       *      }
+       *      Example:
+       *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+       * 
+ * + * map<string, string> options = 1; + */ + + @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(); + } + /** + *
+       * Supported keys:
+       *   "fulltext":
+       *      A JSON encoded string containing full-text search options for the column.
+       *      The fulltext options JSON structure:
+       *      {
+       *        "enable": bool,          // Indicates whether full-text search is
+       *                                 // enabled for the column.
+       *        "analyzer": string,      // The language-specific text analyzer to
+       *                                 // use for indexing and searching text.
+       *                                 // Supported values: ["English" (Default), "Chinese"].
+       *        "case-sensitive": bool   // Indicates whether the text should be treated
+       *                                 // as case-sensitive during full-text search.
+       *      }
+       *      Example:
+       *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+       * 
+ * + * map<string, string> options = 1; + */ + @java.lang.Override + + public java.util.Map getOptionsMap() { + return internalGetOptions().getMap(); + } + /** + *
+       * Supported keys:
+       *   "fulltext":
+       *      A JSON encoded string containing full-text search options for the column.
+       *      The fulltext options JSON structure:
+       *      {
+       *        "enable": bool,          // Indicates whether full-text search is
+       *                                 // enabled for the column.
+       *        "analyzer": string,      // The language-specific text analyzer to
+       *                                 // use for indexing and searching text.
+       *                                 // Supported values: ["English" (Default), "Chinese"].
+       *        "case-sensitive": bool   // Indicates whether the text should be treated
+       *                                 // as case-sensitive during full-text search.
+       *      }
+       *      Example:
+       *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+       * 
+ * + * map<string, string> options = 1; + */ + @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; + } + /** + *
+       * Supported keys:
+       *   "fulltext":
+       *      A JSON encoded string containing full-text search options for the column.
+       *      The fulltext options JSON structure:
+       *      {
+       *        "enable": bool,          // Indicates whether full-text search is
+       *                                 // enabled for the column.
+       *        "analyzer": string,      // The language-specific text analyzer to
+       *                                 // use for indexing and searching text.
+       *                                 // Supported values: ["English" (Default), "Chinese"].
+       *        "case-sensitive": bool   // Indicates whether the text should be treated
+       *                                 // as case-sensitive during full-text search.
+       *      }
+       *      Example:
+       *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+       * 
+ * + * map<string, string> options = 1; + */ + @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; + } + /** + *
+       * Supported keys:
+       *   "fulltext":
+       *      A JSON encoded string containing full-text search options for the column.
+       *      The fulltext options JSON structure:
+       *      {
+       *        "enable": bool,          // Indicates whether full-text search is
+       *                                 // enabled for the column.
+       *        "analyzer": string,      // The language-specific text analyzer to
+       *                                 // use for indexing and searching text.
+       *                                 // Supported values: ["English" (Default), "Chinese"].
+       *        "case-sensitive": bool   // Indicates whether the text should be treated
+       *                                 // as case-sensitive during full-text search.
+       *      }
+       *      Example:
+       *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+       * 
+ * + * map<string, string> options = 1; + */ + + 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(); + } + /** + *
+       * Supported keys:
+       *   "fulltext":
+       *      A JSON encoded string containing full-text search options for the column.
+       *      The fulltext options JSON structure:
+       *      {
+       *        "enable": bool,          // Indicates whether full-text search is
+       *                                 // enabled for the column.
+       *        "analyzer": string,      // The language-specific text analyzer to
+       *                                 // use for indexing and searching text.
+       *                                 // Supported values: ["English" (Default), "Chinese"].
+       *        "case-sensitive": bool   // Indicates whether the text should be treated
+       *                                 // as case-sensitive during full-text search.
+       *      }
+       *      Example:
+       *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+       * 
+ * + * map<string, string> options = 1; + */ + 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); + return this; + } + /** + *
+       * Supported keys:
+       *   "fulltext":
+       *      A JSON encoded string containing full-text search options for the column.
+       *      The fulltext options JSON structure:
+       *      {
+       *        "enable": bool,          // Indicates whether full-text search is
+       *                                 // enabled for the column.
+       *        "analyzer": string,      // The language-specific text analyzer to
+       *                                 // use for indexing and searching text.
+       *                                 // Supported values: ["English" (Default), "Chinese"].
+       *        "case-sensitive": bool   // Indicates whether the text should be treated
+       *                                 // as case-sensitive during full-text search.
+       *      }
+       *      Example:
+       *      "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}"
+       * 
+ * + * map<string, string> options = 1; + */ + + public Builder putAllOptions( + java.util.Map values) { + internalGetMutableOptions().getMutableMap() + .putAll(values); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.ColumnOptions) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ColumnOptions) + private static final io.greptime.v1.Common.ColumnOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.ColumnOptions(); + } + + public static io.greptime.v1.Common.ColumnOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColumnOptions(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.Common.ColumnOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_QueryContext_descriptor; private static final @@ -12766,6 +13807,16 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ColumnOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ColumnOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ColumnOptions_OptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ColumnOptions_OptionsEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -12807,23 +13858,26 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { "\n\027ColumnDataTypeExtension\0229\n\014decimal_typ" + "e\030\001 \001(\0132!.greptime.v1.DecimalTypeExtensi" + "onH\000B\n\n\010type_ext\"8\n\024DecimalTypeExtension" + - "\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005*1\n\014Se" + - "manticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMEST" + - "AMP\020\002*\326\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n" + - "\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004" + - "\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006U" + - "INT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BIN" + - "ARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020" + - "\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_MIL" + - "LISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n" + - "\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023" + - "\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECO" + - "ND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YE" + - "AR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INT" + - "ERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036BO" + - "\n\016io.greptime.v1B\006CommonZ5github.com/Gre" + - "ptimeTeam/greptime-proto/go/greptime/v1b" + - "\006proto3" + "\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"y\n\rCo" + + "lumnOptions\0228\n\007options\030\001 \003(\0132\'.greptime." + + "v1.ColumnOptions.OptionsEntry\032.\n\014Options" + + "Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001*1\n" + + "\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIM" + + "ESTAMP\020\002*\326\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000" + + "\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT6" + + "4\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n" + + "\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006" + + "BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETI" + + "ME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_" + + "MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021" + + "\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECON" + + "D\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICROS" + + "ECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL" + + "_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027" + + "INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020" + + "\036BO\n\016io.greptime.v1B\006CommonZ5github.com/" + + "GreptimeTeam/greptime-proto/go/greptime/" + + "v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -12937,6 +13991,18 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DecimalTypeExtension_descriptor, new java.lang.String[] { "Precision", "Scale", }); + internal_static_greptime_v1_ColumnOptions_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_greptime_v1_ColumnOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ColumnOptions_descriptor, + new java.lang.String[] { "Options", }); + internal_static_greptime_v1_ColumnOptions_OptionsEntry_descriptor = + internal_static_greptime_v1_ColumnOptions_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_ColumnOptions_OptionsEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ColumnOptions_OptionsEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 6ededc47..83fae760 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -23337,6 +23337,33 @@ public interface ColumnDefOrBuilder extends * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; */ io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder(); + + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 8; + * @return Whether the options field is set. + */ + boolean hasOptions(); + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 8; + * @return The options. + */ + io.greptime.v1.Common.ColumnOptions getOptions(); + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder(); } /** * Protobuf type {@code greptime.v1.ColumnDef} @@ -23435,6 +23462,19 @@ private ColumnDef( break; } + case 66: { + io.greptime.v1.Common.ColumnOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = input.readMessage(io.greptime.v1.Common.ColumnOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -23643,6 +23683,44 @@ public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensi return getDatatypeExtension(); } + public static final int OPTIONS_FIELD_NUMBER = 8; + private io.greptime.v1.Common.ColumnOptions options_; + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 8; + * @return Whether the options field is set. + */ + @java.lang.Override + public boolean hasOptions() { + return options_ != null; + } + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 8; + * @return The options. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnOptions getOptions() { + return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -23678,6 +23756,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (datatypeExtension_ != null) { output.writeMessage(7, getDatatypeExtension()); } + if (options_ != null) { + output.writeMessage(8, getOptions()); + } unknownFields.writeTo(output); } @@ -23713,6 +23794,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getDatatypeExtension()); } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getOptions()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -23743,6 +23828,11 @@ public boolean equals(final java.lang.Object obj) { if (!getDatatypeExtension() .equals(other.getDatatypeExtension())) 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; } @@ -23771,6 +23861,10 @@ public int hashCode() { hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getDatatypeExtension().hashCode(); } + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -23922,6 +24016,12 @@ public Builder clear() { datatypeExtension_ = null; datatypeExtensionBuilder_ = null; } + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } return this; } @@ -23959,6 +24059,11 @@ public io.greptime.v1.Ddl.ColumnDef buildPartial() { } else { result.datatypeExtension_ = datatypeExtensionBuilder_.build(); } + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } onBuilt(); return result; } @@ -24030,6 +24135,9 @@ public Builder mergeFrom(io.greptime.v1.Ddl.ColumnDef other) { if (other.hasDatatypeExtension()) { mergeDatatypeExtension(other.getDatatypeExtension()); } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -24538,6 +24646,161 @@ public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensi } return datatypeExtensionBuilder_; } + + private io.greptime.v1.Common.ColumnOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> optionsBuilder_; + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + * @return The options. + */ + public io.greptime.v1.Common.ColumnOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + public Builder setOptions(io.greptime.v1.Common.ColumnOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + public Builder setOptions( + io.greptime.v1.Common.ColumnOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + public Builder mergeOptions(io.greptime.v1.Common.ColumnOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + io.greptime.v1.Common.ColumnOptions.newBuilder(options_).mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + public io.greptime.v1.Common.ColumnOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null ? + io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); + options_ = null; + } + return optionsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -25591,19 +25854,20 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { "type_extension\030\003 \001(\0132$.greptime.v1.Colum" + "nDataTypeExtension\"\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\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\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.ColumnD" + "ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_" + "constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162" + "\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 " + "\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti" + - "me.v1.ColumnDataTypeExtension\"\230\001\n\021AddCol" + - "umnLocation\022B\n\rlocation_type\030\001 \001(\0162+.gre" + - "ptime.v1.AddColumnLocation.LocationType\022" + - "\031\n\021after_column_name\030\002 \001(\t\"$\n\014LocationTy" + - "pe\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime." + - "v1B\003DdlZ5github.com/GreptimeTeam/greptim" + - "e-proto/go/greptime/v1b\006proto3" + "me.v1.ColumnDataTypeExtension\022+\n\007options" + + "\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021A" + + "ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162" + + "+.greptime.v1.AddColumnLocation.Location" + + "Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat" + + "ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.grep" + + "time.v1B\003DdlZ5github.com/GreptimeTeam/gr" + + "eptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -25753,7 +26017,7 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { 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", }); + new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", "Options", }); internal_static_greptime_v1_AddColumnLocation_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new diff --git a/java/src/main/java/io/greptime/v1/RowData.java b/java/src/main/java/io/greptime/v1/RowData.java index e43c659b..00307cf2 100644 --- a/java/src/main/java/io/greptime/v1/RowData.java +++ b/java/src/main/java/io/greptime/v1/RowData.java @@ -1245,6 +1245,33 @@ public interface ColumnSchemaOrBuilder extends * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; */ io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder(); + + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 5; + * @return Whether the options field is set. + */ + boolean hasOptions(); + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 5; + * @return The options. + */ + io.greptime.v1.Common.ColumnOptions getOptions(); + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder(); } /** * Protobuf type {@code greptime.v1.ColumnSchema} @@ -1325,6 +1352,19 @@ private ColumnSchema( break; } + case 42: { + io.greptime.v1.Common.ColumnOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = input.readMessage(io.greptime.v1.Common.ColumnOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(options_); + options_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -1473,6 +1513,44 @@ public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensi return getDatatypeExtension(); } + public static final int OPTIONS_FIELD_NUMBER = 5; + private io.greptime.v1.Common.ColumnOptions options_; + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 5; + * @return Whether the options field is set. + */ + @java.lang.Override + public boolean hasOptions() { + return options_ != null; + } + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 5; + * @return The options. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnOptions getOptions() { + return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } + /** + *
+     * Additional column options.
+     * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() { + return getOptions(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1499,6 +1577,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (datatypeExtension_ != null) { output.writeMessage(4, getDatatypeExtension()); } + if (options_ != null) { + output.writeMessage(5, getOptions()); + } unknownFields.writeTo(output); } @@ -1523,6 +1604,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getDatatypeExtension()); } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getOptions()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1547,6 +1632,11 @@ public boolean equals(final java.lang.Object obj) { if (!getDatatypeExtension() .equals(other.getDatatypeExtension())) 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; } @@ -1568,6 +1658,10 @@ public int hashCode() { hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getDatatypeExtension().hashCode(); } + if (hasOptions()) { + hash = (37 * hash) + OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getOptions().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1713,6 +1807,12 @@ public Builder clear() { datatypeExtension_ = null; datatypeExtensionBuilder_ = null; } + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } return this; } @@ -1747,6 +1847,11 @@ public io.greptime.v1.RowData.ColumnSchema buildPartial() { } else { result.datatypeExtension_ = datatypeExtensionBuilder_.build(); } + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } onBuilt(); return result; } @@ -1808,6 +1913,9 @@ public Builder mergeFrom(io.greptime.v1.RowData.ColumnSchema other) { if (other.hasDatatypeExtension()) { mergeDatatypeExtension(other.getDatatypeExtension()); } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2175,6 +2283,161 @@ public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensi } return datatypeExtensionBuilder_; } + + private io.greptime.v1.Common.ColumnOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> optionsBuilder_; + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + * @return The options. + */ + public io.greptime.v1.Common.ColumnOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + public Builder setOptions(io.greptime.v1.Common.ColumnOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + public Builder setOptions( + io.greptime.v1.Common.ColumnOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + public Builder mergeOptions(io.greptime.v1.Common.ColumnOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + io.greptime.v1.Common.ColumnOptions.newBuilder(options_).mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + public io.greptime.v1.Common.ColumnOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + public io.greptime.v1.Common.ColumnOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null ? + io.greptime.v1.Common.ColumnOptions.getDefaultInstance() : options_; + } + } + /** + *
+       * Additional column options.
+       * 
+ * + * .greptime.v1.ColumnOptions options = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnOptions, io.greptime.v1.Common.ColumnOptions.Builder, io.greptime.v1.Common.ColumnOptionsOrBuilder>( + getOptions(), + getParentForChildren(), + isClean()); + options_ = null; + } + return optionsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6719,36 +6982,37 @@ public io.greptime.v1.RowData.Value getDefaultInstanceForType() { "\n\025greptime/v1/row.proto\022\013greptime.v1\032\030gr" + "eptime/v1/common.proto\"Q\n\004Rows\022)\n\006schema" + "\030\001 \003(\0132\031.greptime.v1.ColumnSchema\022\036\n\004row" + - "s\030\002 \003(\0132\020.greptime.v1.Row\"\306\001\n\014ColumnSche" + + "s\030\002 \003(\0132\020.greptime.v1.Row\"\363\001\n\014ColumnSche" + "ma\022\023\n\013column_name\030\001 \001(\t\022-\n\010datatype\030\002 \001(" + "\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant" + "ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" + "\022@\n\022datatype_extension\030\004 \001(\0132$.greptime." + - "v1.ColumnDataTypeExtension\")\n\003Row\022\"\n\006val" + - "ues\030\001 \003(\0132\022.greptime.v1.Value\"\274\006\n\005Value\022" + - "\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 \001(\005H\000" + - "\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030\004 \001(\003" + - "H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value\030\006 \001(" + - "\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023\n\tu64_value\030\010 " + - "\001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000\022\023\n\tf64_value\030" + - "\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(\010H\000\022\026\n\014binary_" + - "value\030\014 \001(\014H\000\022\026\n\014string_value\030\r \001(\tH\000\022\024\n" + - "\ndate_value\030\016 \001(\005H\000\022\030\n\016datetime_value\030\017 " + - "\001(\003H\000\022 \n\026timestamp_second_value\030\020 \001(\003H\000\022" + - "%\n\033timestamp_millisecond_value\030\021 \001(\003H\000\022%" + - "\n\033timestamp_microsecond_value\030\022 \001(\003H\000\022$\n" + - "\032timestamp_nanosecond_value\030\023 \001(\003H\000\022\033\n\021t" + - "ime_second_value\030\024 \001(\003H\000\022 \n\026time_millise" + - "cond_value\030\025 \001(\003H\000\022 \n\026time_microsecond_v" + - "alue\030\026 \001(\003H\000\022\037\n\025time_nanosecond_value\030\027 " + - "\001(\003H\000\022#\n\031interval_year_month_value\030\030 \001(\005" + - "H\000\022!\n\027interval_day_time_value\030\031 \001(\003H\000\022J\n" + - "\035interval_month_day_nano_value\030\032 \001(\0132!.g" + - "reptime.v1.IntervalMonthDayNanoH\000\0223\n\020dec" + - "imal128_value\030\037 \001(\0132\027.greptime.v1.Decima" + - "l128H\000B\014\n\nvalue_dataBP\n\016io.greptime.v1B\007" + - "RowDataZ5github.com/GreptimeTeam/greptim" + - "e-proto/go/greptime/v1b\006proto3" + "v1.ColumnDataTypeExtension\022+\n\007options\030\005 " + + "\001(\0132\032.greptime.v1.ColumnOptions\")\n\003Row\022\"" + + "\n\006values\030\001 \003(\0132\022.greptime.v1.Value\"\274\006\n\005V" + + "alue\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 " + + "\001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030" + + "\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value" + + "\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023\n\tu64_val" + + "ue\030\010 \001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000\022\023\n\tf64_v" + + "alue\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(\010H\000\022\026\n\014bi" + + "nary_value\030\014 \001(\014H\000\022\026\n\014string_value\030\r \001(\t" + + "H\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016datetime_val" + + "ue\030\017 \001(\003H\000\022 \n\026timestamp_second_value\030\020 \001" + + "(\003H\000\022%\n\033timestamp_millisecond_value\030\021 \001(" + + "\003H\000\022%\n\033timestamp_microsecond_value\030\022 \001(\003" + + "H\000\022$\n\032timestamp_nanosecond_value\030\023 \001(\003H\000" + + "\022\033\n\021time_second_value\030\024 \001(\003H\000\022 \n\026time_mi" + + "llisecond_value\030\025 \001(\003H\000\022 \n\026time_microsec" + + "ond_value\030\026 \001(\003H\000\022\037\n\025time_nanosecond_val" + + "ue\030\027 \001(\003H\000\022#\n\031interval_year_month_value\030" + + "\030 \001(\005H\000\022!\n\027interval_day_time_value\030\031 \001(\003" + + "H\000\022J\n\035interval_month_day_nano_value\030\032 \001(" + + "\0132!.greptime.v1.IntervalMonthDayNanoH\000\0223" + + "\n\020decimal128_value\030\037 \001(\0132\027.greptime.v1.D" + + "ecimal128H\000B\014\n\nvalue_dataBP\n\016io.greptime" + + ".v1B\007RowDataZ5github.com/GreptimeTeam/gr" + + "eptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -6766,7 +7030,7 @@ public io.greptime.v1.RowData.Value getDefaultInstanceForType() { internal_static_greptime_v1_ColumnSchema_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnSchema_descriptor, - new java.lang.String[] { "ColumnName", "Datatype", "SemanticType", "DatatypeExtension", }); + new java.lang.String[] { "ColumnName", "Datatype", "SemanticType", "DatatypeExtension", "Options", }); internal_static_greptime_v1_Row_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_greptime_v1_Row_fieldAccessorTable = new diff --git a/proto/greptime/v1/column.proto b/proto/greptime/v1/column.proto index 6a23ec0a..6b754ae9 100644 --- a/proto/greptime/v1/column.proto +++ b/proto/greptime/v1/column.proto @@ -80,4 +80,7 @@ message Column { // Extension for ColumnDataType. ColumnDataTypeExtension datatype_extension = 6; + + // Additional column options. + ColumnOptions options = 7; } diff --git a/proto/greptime/v1/common.proto b/proto/greptime/v1/common.proto index 5390fdbf..7b9390e3 100644 --- a/proto/greptime/v1/common.proto +++ b/proto/greptime/v1/common.proto @@ -139,3 +139,27 @@ message DecimalTypeExtension { int32 precision = 1; int32 scale = 2; } + +// Additional options for the column. +message ColumnOptions { + // Supported keys: + // "fulltext": + // A JSON encoded string containing full-text search options for the column. + // + // The fulltext options JSON structure: + // { + // "enable": bool, // Indicates whether full-text search is + // // enabled for the column. + // + // "analyzer": string, // The language-specific text analyzer to + // // use for indexing and searching text. + // // Supported values: ["English" (Default), "Chinese"]. + // + // "case-sensitive": bool // Indicates whether the text should be treated + // // as case-sensitive during full-text search. + // } + // + // Example: + // "fulltext": "{\"enable\": true, \"analyzer\": \"English\", \"case-sensitive\": false}" + map options = 1; +} diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 7fa181f1..275be74d 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -169,8 +169,12 @@ message ColumnDef { bytes default_constraint = 4; SemanticType semantic_type = 5; string comment = 6; + // Extension for ColumnDataType. ColumnDataTypeExtension datatype_extension = 7; + + // Additional column options. + ColumnOptions options = 8; } message AddColumnLocation { diff --git a/proto/greptime/v1/row.proto b/proto/greptime/v1/row.proto index f0fc5a75..d9f9b1d7 100644 --- a/proto/greptime/v1/row.proto +++ b/proto/greptime/v1/row.proto @@ -31,8 +31,12 @@ message ColumnSchema { string column_name = 1; ColumnDataType datatype = 2; SemanticType semantic_type = 3; + // Extension for ColumnDataType. ColumnDataTypeExtension datatype_extension = 4; + + // Additional column options. + ColumnOptions options = 5; } message Row { repeated Value values = 1; }