From 62659614fa415051c1ffb72f69f70612d67ed301 Mon Sep 17 00:00:00 2001 From: QuenKar <47681251+QuenKar@users.noreply.github.com> Date: Mon, 20 Nov 2023 17:27:55 +0800 Subject: [PATCH] chore: make all --- c++/greptime/v1/column.pb.cc | 147 +- c++/greptime/v1/column.pb.h | 162 ++ c++/greptime/v1/common.pb.cc | 918 ++++++- c++/greptime/v1/common.pb.h | 750 +++++- c++/greptime/v1/ddl.pb.cc | 77 +- c++/greptime/v1/ddl.pb.h | 105 + c++/greptime/v1/row.pb.cc | 188 +- c++/greptime/v1/row.pb.h | 193 ++ go/greptime/v1/column.pb.go | 246 +- go/greptime/v1/common.pb.go | 389 ++- go/greptime/v1/ddl.pb.go | 67 +- go/greptime/v1/row.pb.go | 268 +- .../src/main/java/io/greptime/v1/Columns.java | 694 ++++- java/src/main/java/io/greptime/v1/Common.java | 2365 +++++++++++++++-- java/src/main/java/io/greptime/v1/Ddl.java | 283 +- .../src/main/java/io/greptime/v1/RowData.java | 556 +++- 16 files changed, 6742 insertions(+), 666 deletions(-) diff --git a/c++/greptime/v1/column.pb.cc b/c++/greptime/v1/column.pb.cc index bc71bccd..1e4c802a 100644 --- a/c++/greptime/v1/column.pb.cc +++ b/c++/greptime/v1/column.pb.cc @@ -78,6 +78,7 @@ PROTOBUF_CONSTEXPR Column_Values::Column_Values( , /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0} , /*decltype(_impl_.duration_nanosecond_values_)*/{} , /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0} + , /*decltype(_impl_.decimal128_values_)*/{} , /*decltype(_impl_._cached_size_)*/{}} {} struct Column_ValuesDefaultTypeInternal { PROTOBUF_CONSTEXPR Column_ValuesDefaultTypeInternal() @@ -93,6 +94,7 @@ PROTOBUF_CONSTEXPR Column::Column( /*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.null_mask_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.values_)*/nullptr + , /*decltype(_impl_.datatype_extension_)*/nullptr , /*decltype(_impl_.semantic_type_)*/0 , /*decltype(_impl_.datatype_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} @@ -148,6 +150,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_millisecond_values_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_microsecond_values_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_nanosecond_values_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.decimal128_values_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _internal_metadata_), ~0u, // no _extensions_ @@ -159,10 +162,11 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.values_), 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_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::Column_Values)}, - { 36, -1, -1, sizeof(::greptime::v1::Column)}, + { 37, -1, -1, sizeof(::greptime::v1::Column)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -172,43 +176,46 @@ 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\"\256\010\n\006Column\022\023\n\013" + "\030greptime/v1/common.proto\"\244\t\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\032\356\006\n\006Values\022\021\n\ti8_value" - "s\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(\005\022\022\n\ni32_value" - "s\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_value" - "s\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\017da" - "tetime_values\030\017 \003(\003\022\037\n\027timestamp_second_" - "values\030\020 \003(\003\022$\n\034timestamp_millisecond_va" - "lues\030\021 \003(\003\022$\n\034timestamp_microsecond_valu" - "es\030\022 \003(\003\022#\n\033timestamp_nanosecond_values\030" - "\023 \003(\003\022\032\n\022time_second_values\030\024 \003(\003\022\037\n\027tim" - "e_millisecond_values\030\025 \003(\003\022\037\n\027time_micro" - "second_values\030\026 \003(\003\022\036\n\026time_nanosecond_v" - "alues\030\027 \003(\003\022\"\n\032interval_year_month_value" - "s\030\030 \003(\005\022 \n\030interval_day_time_values\030\031 \003(" - "\003\022I\n\036interval_month_day_nano_values\030\032 \003(" - "\0132!.greptime.v1.IntervalMonthDayNano\022\036\n\026" - "duration_second_values\030\033 \003(\003\022#\n\033duration" - "_millisecond_values\030\034 \003(\003\022#\n\033duration_mi" - "crosecond_values\030\035 \003(\003\022\"\n\032duration_nanos" - "econd_values\030\036 \003(\003BP\n\016io.greptime.v1B\007Co" - "lumnsZ5github.com/GreptimeTeam/greptime-" - "proto/go/greptime/v1b\006proto3" + "v1.ColumnDataType\022@\n\022datatype_extension\030" + "\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens" + "ion\032\242\007\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\022\036\n\026duration_secon" + "d_values\030\033 \003(\003\022#\n\033duration_millisecond_v" + "alues\030\034 \003(\003\022#\n\033duration_microsecond_valu" + "es\030\035 \003(\003\022\"\n\032duration_nanosecond_values\030\036" + " \003(\003\0222\n\021decimal128_values\030\037 \003(\0132\027.grepti" + "me.v1.Decimal128BP\n\016io.greptime.v1B\007Colu" + "mnsZ5github.com/GreptimeTeam/greptime-pr" + "oto/go/greptime/v1b\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, 1228, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto, + false, false, 1346, 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, @@ -233,6 +240,9 @@ class Column_Values::_Internal { void Column_Values::clear_interval_month_day_nano_values() { _impl_.interval_month_day_nano_values_.Clear(); } +void Column_Values::clear_decimal128_values() { + _impl_.decimal128_values_.Clear(); +} Column_Values::Column_Values(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -297,6 +307,7 @@ Column_Values::Column_Values(const Column_Values& from) , /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0} , decltype(_impl_.duration_nanosecond_values_){from._impl_.duration_nanosecond_values_} , /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0} + , decltype(_impl_.decimal128_values_){from._impl_.decimal128_values_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -362,6 +373,7 @@ inline void Column_Values::SharedCtor( , /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0} , decltype(_impl_.duration_nanosecond_values_){arena} , /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0} + , decltype(_impl_.decimal128_values_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -407,6 +419,7 @@ inline void Column_Values::SharedDtor() { _impl_.duration_millisecond_values_.~RepeatedField(); _impl_.duration_microsecond_values_.~RepeatedField(); _impl_.duration_nanosecond_values_.~RepeatedField(); + _impl_.decimal128_values_.~RepeatedPtrField(); } void Column_Values::SetCachedSize(int size) const { @@ -449,6 +462,7 @@ void Column_Values::Clear() { _impl_.duration_millisecond_values_.Clear(); _impl_.duration_microsecond_values_.Clear(); _impl_.duration_nanosecond_values_.Clear(); + _impl_.decimal128_values_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -797,6 +811,19 @@ const char* Column_Values::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // repeated .greptime.v1.Decimal128 decimal128_values = 31; + case 31: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 250)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(_internal_add_decimal128_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<250>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1081,6 +1108,14 @@ uint8_t* Column_Values::_InternalSerialize( } } + // repeated .greptime.v1.Decimal128 decimal128_values = 31; + for (unsigned i = 0, + n = static_cast(this->_internal_decimal128_values_size()); i < n; i++) { + const auto& repfield = this->_internal_decimal128_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(31, repfield, repfield.GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1489,6 +1524,13 @@ size_t Column_Values::ByteSizeLong() const { total_size += data_size; } + // repeated .greptime.v1.Decimal128 decimal128_values = 31; + total_size += 2UL * this->_internal_decimal128_values_size(); + for (const auto& msg : this->_impl_.decimal128_values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -1537,6 +1579,7 @@ void Column_Values::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :: _this->_impl_.duration_millisecond_values_.MergeFrom(from._impl_.duration_millisecond_values_); _this->_impl_.duration_microsecond_values_.MergeFrom(from._impl_.duration_microsecond_values_); _this->_impl_.duration_nanosecond_values_.MergeFrom(from._impl_.duration_nanosecond_values_); + _this->_impl_.decimal128_values_.MergeFrom(from._impl_.decimal128_values_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -1584,6 +1627,7 @@ void Column_Values::InternalSwap(Column_Values* other) { _impl_.duration_millisecond_values_.InternalSwap(&other->_impl_.duration_millisecond_values_); _impl_.duration_microsecond_values_.InternalSwap(&other->_impl_.duration_microsecond_values_); _impl_.duration_nanosecond_values_.InternalSwap(&other->_impl_.duration_nanosecond_values_); + _impl_.decimal128_values_.InternalSwap(&other->_impl_.decimal128_values_); } ::PROTOBUF_NAMESPACE_ID::Metadata Column_Values::GetMetadata() const { @@ -1597,12 +1641,23 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Column_Values::GetMetadata() const { class Column::_Internal { public: static const ::greptime::v1::Column_Values& values(const Column* msg); + static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const Column* msg); }; const ::greptime::v1::Column_Values& Column::_Internal::values(const Column* msg) { return *msg->_impl_.values_; } +const ::greptime::v1::ColumnDataTypeExtension& +Column::_Internal::datatype_extension(const Column* msg) { + return *msg->_impl_.datatype_extension_; +} +void Column::clear_datatype_extension() { + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; +} Column::Column(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1616,6 +1671,7 @@ Column::Column(const Column& from) decltype(_impl_.column_name_){} , decltype(_impl_.null_mask_){} , decltype(_impl_.values_){nullptr} + , decltype(_impl_.datatype_extension_){nullptr} , decltype(_impl_.semantic_type_){} , decltype(_impl_.datatype_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -1640,6 +1696,9 @@ Column::Column(const Column& from) if (from._internal_has_values()) { _this->_impl_.values_ = new ::greptime::v1::Column_Values(*from._impl_.values_); } + if (from._internal_has_datatype_extension()) { + _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); + } ::memcpy(&_impl_.semantic_type_, &from._impl_.semantic_type_, static_cast(reinterpret_cast(&_impl_.datatype_) - reinterpret_cast(&_impl_.semantic_type_)) + sizeof(_impl_.datatype_)); @@ -1654,6 +1713,7 @@ inline void Column::SharedCtor( decltype(_impl_.column_name_){} , decltype(_impl_.null_mask_){} , decltype(_impl_.values_){nullptr} + , decltype(_impl_.datatype_extension_){nullptr} , decltype(_impl_.semantic_type_){0} , decltype(_impl_.datatype_){0} , /*decltype(_impl_._cached_size_)*/{} @@ -1682,6 +1742,7 @@ inline void Column::SharedDtor() { _impl_.column_name_.Destroy(); _impl_.null_mask_.Destroy(); if (this != internal_default_instance()) delete _impl_.values_; + if (this != internal_default_instance()) delete _impl_.datatype_extension_; } void Column::SetCachedSize(int size) const { @@ -1700,6 +1761,10 @@ void Column::Clear() { delete _impl_.values_; } _impl_.values_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; ::memset(&_impl_.semantic_type_, 0, static_cast( reinterpret_cast(&_impl_.datatype_) - reinterpret_cast(&_impl_.semantic_type_)) + sizeof(_impl_.datatype_)); @@ -1757,6 +1822,14 @@ const char* Column::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + case 6: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 50)) { + ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1823,6 +1896,13 @@ uint8_t* Column::_InternalSerialize( 5, this->_internal_datatype(), target); } + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + if (this->_internal_has_datatype_extension()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(6, _Internal::datatype_extension(this), + _Internal::datatype_extension(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -1860,6 +1940,13 @@ size_t Column::ByteSizeLong() const { *_impl_.values_); } + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + if (this->_internal_has_datatype_extension()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.datatype_extension_); + } + // .greptime.v1.SemanticType semantic_type = 2; if (this->_internal_semantic_type() != 0) { total_size += 1 + @@ -1900,6 +1987,10 @@ void Column::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU _this->_internal_mutable_values()->::greptime::v1::Column_Values::MergeFrom( from._internal_values()); } + if (from._internal_has_datatype_extension()) { + _this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( + from._internal_datatype_extension()); + } 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 cbcbca48..e165d971 100644 --- a/c++/greptime/v1/column.pb.h +++ b/c++/greptime/v1/column.pb.h @@ -215,6 +215,7 @@ class Column_Values final : kDurationMillisecondValuesFieldNumber = 28, kDurationMicrosecondValuesFieldNumber = 29, kDurationNanosecondValuesFieldNumber = 30, + kDecimal128ValuesFieldNumber = 31, }; // repeated int32 i8_values = 1; int i8_values_size() const; @@ -876,6 +877,24 @@ class Column_Values final : ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >* mutable_duration_nanosecond_values(); + // repeated .greptime.v1.Decimal128 decimal128_values = 31; + int decimal128_values_size() const; + private: + int _internal_decimal128_values_size() const; + public: + void clear_decimal128_values(); + ::greptime::v1::Decimal128* mutable_decimal128_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >* + mutable_decimal128_values(); + private: + const ::greptime::v1::Decimal128& _internal_decimal128_values(int index) const; + ::greptime::v1::Decimal128* _internal_add_decimal128_values(); + public: + const ::greptime::v1::Decimal128& decimal128_values(int index) const; + ::greptime::v1::Decimal128* add_decimal128_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >& + decimal128_values() const; + // @@protoc_insertion_point(class_scope:greptime.v1.Column.Values) private: class _Internal; @@ -938,6 +957,7 @@ class Column_Values final : mutable std::atomic _duration_microsecond_values_cached_byte_size_; ::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > duration_nanosecond_values_; mutable std::atomic _duration_nanosecond_values_cached_byte_size_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 > decimal128_values_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -1071,6 +1091,7 @@ class Column final : kColumnNameFieldNumber = 1, kNullMaskFieldNumber = 4, kValuesFieldNumber = 3, + kDatatypeExtensionFieldNumber = 6, kSemanticTypeFieldNumber = 2, kDatatypeFieldNumber = 5, }; @@ -1120,6 +1141,24 @@ class Column final : ::greptime::v1::Column_Values* values); ::greptime::v1::Column_Values* unsafe_arena_release_values(); + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + bool has_datatype_extension() const; + private: + bool _internal_has_datatype_extension() const; + public: + void clear_datatype_extension(); + const ::greptime::v1::ColumnDataTypeExtension& datatype_extension() const; + PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_datatype_extension(); + ::greptime::v1::ColumnDataTypeExtension* mutable_datatype_extension(); + void set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension); + private: + const ::greptime::v1::ColumnDataTypeExtension& _internal_datatype_extension() const; + ::greptime::v1::ColumnDataTypeExtension* _internal_mutable_datatype_extension(); + public: + void unsafe_arena_set_allocated_datatype_extension( + ::greptime::v1::ColumnDataTypeExtension* datatype_extension); + ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension(); + // .greptime.v1.SemanticType semantic_type = 2; void clear_semantic_type(); ::greptime::v1::SemanticType semantic_type() const; @@ -1149,6 +1188,7 @@ class Column final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr null_mask_; ::greptime::v1::Column_Values* values_; + ::greptime::v1::ColumnDataTypeExtension* datatype_extension_; int semantic_type_; int datatype_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -2623,6 +2663,43 @@ Column_Values::mutable_duration_nanosecond_values() { return _internal_mutable_duration_nanosecond_values(); } +// repeated .greptime.v1.Decimal128 decimal128_values = 31; +inline int Column_Values::_internal_decimal128_values_size() const { + return _impl_.decimal128_values_.size(); +} +inline int Column_Values::decimal128_values_size() const { + return _internal_decimal128_values_size(); +} +inline ::greptime::v1::Decimal128* Column_Values::mutable_decimal128_values(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.Column.Values.decimal128_values) + return _impl_.decimal128_values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >* +Column_Values::mutable_decimal128_values() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.decimal128_values) + return &_impl_.decimal128_values_; +} +inline const ::greptime::v1::Decimal128& Column_Values::_internal_decimal128_values(int index) const { + return _impl_.decimal128_values_.Get(index); +} +inline const ::greptime::v1::Decimal128& Column_Values::decimal128_values(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.Column.Values.decimal128_values) + return _internal_decimal128_values(index); +} +inline ::greptime::v1::Decimal128* Column_Values::_internal_add_decimal128_values() { + return _impl_.decimal128_values_.Add(); +} +inline ::greptime::v1::Decimal128* Column_Values::add_decimal128_values() { + ::greptime::v1::Decimal128* _add = _internal_add_decimal128_values(); + // @@protoc_insertion_point(field_add:greptime.v1.Column.Values.decimal128_values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >& +Column_Values::decimal128_values() const { + // @@protoc_insertion_point(field_list:greptime.v1.Column.Values.decimal128_values) + return _impl_.decimal128_values_; +} + // ------------------------------------------------------------------- // Column @@ -2857,6 +2934,91 @@ inline void Column::set_datatype(::greptime::v1::ColumnDataType value) { // @@protoc_insertion_point(field_set:greptime.v1.Column.datatype) } +// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; +inline bool Column::_internal_has_datatype_extension() const { + return this != internal_default_instance() && _impl_.datatype_extension_ != nullptr; +} +inline bool Column::has_datatype_extension() const { + return _internal_has_datatype_extension(); +} +inline const ::greptime::v1::ColumnDataTypeExtension& Column::_internal_datatype_extension() const { + const ::greptime::v1::ColumnDataTypeExtension* p = _impl_.datatype_extension_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_ColumnDataTypeExtension_default_instance_); +} +inline const ::greptime::v1::ColumnDataTypeExtension& Column::datatype_extension() const { + // @@protoc_insertion_point(field_get:greptime.v1.Column.datatype_extension) + return _internal_datatype_extension(); +} +inline void Column::unsafe_arena_set_allocated_datatype_extension( + ::greptime::v1::ColumnDataTypeExtension* datatype_extension) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_); + } + _impl_.datatype_extension_ = datatype_extension; + if (datatype_extension) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Column.datatype_extension) +} +inline ::greptime::v1::ColumnDataTypeExtension* Column::release_datatype_extension() { + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_; + _impl_.datatype_extension_ = 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::ColumnDataTypeExtension* Column::unsafe_arena_release_datatype_extension() { + // @@protoc_insertion_point(field_release:greptime.v1.Column.datatype_extension) + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_; + _impl_.datatype_extension_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnDataTypeExtension* Column::_internal_mutable_datatype_extension() { + + if (_impl_.datatype_extension_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation()); + _impl_.datatype_extension_ = p; + } + return _impl_.datatype_extension_; +} +inline ::greptime::v1::ColumnDataTypeExtension* Column::mutable_datatype_extension() { + ::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_datatype_extension(); + // @@protoc_insertion_point(field_mutable:greptime.v1.Column.datatype_extension) + return _msg; +} +inline void Column::set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_); + } + if (datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(datatype_extension)); + if (message_arena != submessage_arena) { + datatype_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, datatype_extension, submessage_arena); + } + + } else { + + } + _impl_.datatype_extension_ = datatype_extension; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.Column.datatype_extension) +} + #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 3f580603..367839c6 100644 --- a/c++/greptime/v1/common.pb.cc +++ b/c++/greptime/v1/common.pb.cc @@ -159,9 +159,53 @@ struct IntervalMonthDayNanoDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_; +PROTOBUF_CONSTEXPR Decimal128::Decimal128( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.hi_)*/int64_t{0} + , /*decltype(_impl_.lo_)*/int64_t{0} + , /*decltype(_impl_.precision_)*/0 + , /*decltype(_impl_.scale_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct Decimal128DefaultTypeInternal { + PROTOBUF_CONSTEXPR Decimal128DefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~Decimal128DefaultTypeInternal() {} + union { + Decimal128 _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decimal128DefaultTypeInternal _Decimal128_default_instance_; +PROTOBUF_CONSTEXPR ColumnDataTypeExtension::ColumnDataTypeExtension( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.ext_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} +struct ColumnDataTypeExtensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR ColumnDataTypeExtensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ColumnDataTypeExtensionDefaultTypeInternal() {} + union { + ColumnDataTypeExtension _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnDataTypeExtensionDefaultTypeInternal _ColumnDataTypeExtension_default_instance_; +PROTOBUF_CONSTEXPR DecimalTypeExtension::DecimalTypeExtension( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.precision_)*/0 + , /*decltype(_impl_.scale_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct DecimalTypeExtensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR DecimalTypeExtensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~DecimalTypeExtensionDefaultTypeInternal() {} + union { + DecimalTypeExtension _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]; 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; @@ -249,6 +293,32 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.months_), PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.days_), PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _impl_.hi_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _impl_.lo_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _impl_.precision_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _impl_.scale_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDataTypeExtension, _internal_metadata_), + ~0u, // no _extensions_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDataTypeExtension, _impl_._oneof_case_[0]), + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDataTypeExtension, _impl_.ext_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.precision_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.scale_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, 8, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)}, @@ -261,6 +331,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 60, -1, -1, sizeof(::greptime::v1::AffectedRows)}, { 67, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, { 74, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, + { 83, -1, -1, sizeof(::greptime::v1::Decimal128)}, + { 93, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, + { 101, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -274,6 +347,9 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_AffectedRows_default_instance_._instance, &::greptime::v1::_FlightMetadata_default_instance_._instance, &::greptime::v1::_IntervalMonthDayNano_default_instance_._instance, + &::greptime::v1::_Decimal128_default_instance_._instance, + &::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance, + &::greptime::v1::_DecimalTypeExtension_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -295,30 +371,36 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S "tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime" ".v1.AffectedRows\"I\n\024IntervalMonthDayNano" "\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanose" - "conds\030\003 \001(\003*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005" - "FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\250\004\n\016ColumnDataTyp" - "e\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005I" - "NT32\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\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n" - "\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DA" - "TE\020\r\022\014\n\010DATETIME\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_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022" - "\024\n\020TIME_MICROSECOND\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\027INTERVAL_MONTH_DAY_NANO\020\031\022" - "\023\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISE" - "COND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURA" - "TION_NANOSECOND\020\035BO\n\016io.greptime.v1B\006Com" + "conds\030\003 \001(\003\"F\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n" + "\002lo\030\002 \001(\003\022\021\n\tprecision\030\003 \001(\005\022\r\n\005scale\030\004 " + "\001(\005\"[\n\027ColumnDataTypeExtension\0229\n\014decima" + "l_type\030\001 \001(\0132!.greptime.v1.DecimalTypeEx" + "tensionH\000B\005\n\003ext\"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*\271\004\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\023\n\017DURATION_SECON" + "D\020\032\022\030\n\024DURATION_MILLISECOND\020\033\022\030\n\024DURATIO" + "N_MICROSECOND\020\034\022\027\n\023DURATION_NANOSECOND\020\035" + "\022\017\n\013DECIMAL_128\020\036BO\n\016io.greptime.v1B\006Com" "monZ5github.com/GreptimeTeam/greptime-pr" "oto/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, 1426, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, + false, false, 1666, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, "greptime/v1/common.proto", - &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 10, + &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 13, 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, @@ -382,6 +464,7 @@ bool ColumnDataType_IsValid(int value) { case 27: case 28: case 29: + case 30: return true; default: return false; @@ -2606,49 +2689,778 @@ ::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const { file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]); } -// @@protoc_insertion_point(namespace_scope) -} // namespace v1 -} // namespace greptime -PROTOBUF_NAMESPACE_OPEN -template<> PROTOBUF_NOINLINE ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse* -Arena::CreateMaybeMessage< ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse >(arena); +// =================================================================== + +class Decimal128::_Internal { + public: +}; + +Decimal128::Decimal128(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.Decimal128) } -template<> PROTOBUF_NOINLINE ::greptime::v1::RequestHeader* -Arena::CreateMaybeMessage< ::greptime::v1::RequestHeader >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::RequestHeader >(arena); +Decimal128::Decimal128(const Decimal128& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + Decimal128* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.hi_){} + , decltype(_impl_.lo_){} + , decltype(_impl_.precision_){} + , decltype(_impl_.scale_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.hi_, &from._impl_.hi_, + static_cast(reinterpret_cast(&_impl_.scale_) - + reinterpret_cast(&_impl_.hi_)) + sizeof(_impl_.scale_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.Decimal128) } -template<> PROTOBUF_NOINLINE ::greptime::v1::ResponseHeader* -Arena::CreateMaybeMessage< ::greptime::v1::ResponseHeader >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::ResponseHeader >(arena); + +inline void Decimal128::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.hi_){int64_t{0}} + , decltype(_impl_.lo_){int64_t{0}} + , decltype(_impl_.precision_){0} + , decltype(_impl_.scale_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; } -template<> PROTOBUF_NOINLINE ::greptime::v1::Status* -Arena::CreateMaybeMessage< ::greptime::v1::Status >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::Status >(arena); + +Decimal128::~Decimal128() { + // @@protoc_insertion_point(destructor:greptime.v1.Decimal128) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); } -template<> PROTOBUF_NOINLINE ::greptime::v1::AuthHeader* -Arena::CreateMaybeMessage< ::greptime::v1::AuthHeader >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::AuthHeader >(arena); + +inline void Decimal128::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); } -template<> PROTOBUF_NOINLINE ::greptime::v1::Basic* -Arena::CreateMaybeMessage< ::greptime::v1::Basic >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::Basic >(arena); + +void Decimal128::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); } -template<> PROTOBUF_NOINLINE ::greptime::v1::Token* -Arena::CreateMaybeMessage< ::greptime::v1::Token >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::Token >(arena); + +void Decimal128::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.Decimal128) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.hi_, 0, static_cast( + reinterpret_cast(&_impl_.scale_) - + reinterpret_cast(&_impl_.hi_)) + sizeof(_impl_.scale_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } -template<> PROTOBUF_NOINLINE ::greptime::v1::AffectedRows* -Arena::CreateMaybeMessage< ::greptime::v1::AffectedRows >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::AffectedRows >(arena); + +const char* Decimal128::_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) { + // int64 hi = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.hi_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int64 lo = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.lo_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 precision = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 24)) { + _impl_.precision_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 scale = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 32)) { + _impl_.scale_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ } -template<> PROTOBUF_NOINLINE ::greptime::v1::FlightMetadata* -Arena::CreateMaybeMessage< ::greptime::v1::FlightMetadata >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::FlightMetadata >(arena); + +uint8_t* Decimal128::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.Decimal128) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int64 hi = 1; + if (this->_internal_hi() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_hi(), target); + } + + // int64 lo = 2; + if (this->_internal_lo() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_lo(), target); + } + + // int32 precision = 3; + if (this->_internal_precision() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(3, this->_internal_precision(), target); + } + + // int32 scale = 4; + if (this->_internal_scale() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_scale(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.Decimal128) + return target; } -template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano* -Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena); + +size_t Decimal128::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.Decimal128) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int64 hi = 1; + if (this->_internal_hi() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_hi()); + } + + // int64 lo = 2; + if (this->_internal_lo() != 0) { + total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_lo()); + } + + // int32 precision = 3; + if (this->_internal_precision() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_precision()); + } + + // int32 scale = 4; + if (this->_internal_scale() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_scale()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decimal128::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + Decimal128::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decimal128::GetClassData() const { return &_class_data_; } + + +void Decimal128::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.Decimal128) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_hi() != 0) { + _this->_internal_set_hi(from._internal_hi()); + } + if (from._internal_lo() != 0) { + _this->_internal_set_lo(from._internal_lo()); + } + if (from._internal_precision() != 0) { + _this->_internal_set_precision(from._internal_precision()); + } + if (from._internal_scale() != 0) { + _this->_internal_set_scale(from._internal_scale()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void Decimal128::CopyFrom(const Decimal128& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.Decimal128) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool Decimal128::IsInitialized() const { + return true; +} + +void Decimal128::InternalSwap(Decimal128* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(Decimal128, _impl_.scale_) + + sizeof(Decimal128::_impl_.scale_) + - PROTOBUF_FIELD_OFFSET(Decimal128, _impl_.hi_)>( + reinterpret_cast(&_impl_.hi_), + reinterpret_cast(&other->_impl_.hi_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::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[10]); +} + +// =================================================================== + +class ColumnDataTypeExtension::_Internal { + public: + static const ::greptime::v1::DecimalTypeExtension& decimal_type(const ColumnDataTypeExtension* msg); +}; + +const ::greptime::v1::DecimalTypeExtension& +ColumnDataTypeExtension::_Internal::decimal_type(const ColumnDataTypeExtension* msg) { + return *msg->_impl_.ext_.decimal_type_; +} +void ColumnDataTypeExtension::set_allocated_decimal_type(::greptime::v1::DecimalTypeExtension* decimal_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_ext(); + if (decimal_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(decimal_type); + if (message_arena != submessage_arena) { + decimal_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, decimal_type, submessage_arena); + } + set_has_decimal_type(); + _impl_.ext_.decimal_type_ = decimal_type; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDataTypeExtension.decimal_type) +} +ColumnDataTypeExtension::ColumnDataTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.ColumnDataTypeExtension) +} +ColumnDataTypeExtension::ColumnDataTypeExtension(const ColumnDataTypeExtension& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ColumnDataTypeExtension* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.ext_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + clear_has_ext(); + switch (from.ext_case()) { + case kDecimalType: { + _this->_internal_mutable_decimal_type()->::greptime::v1::DecimalTypeExtension::MergeFrom( + from._internal_decimal_type()); + break; + } + case EXT_NOT_SET: { + break; + } + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.ColumnDataTypeExtension) +} + +inline void ColumnDataTypeExtension::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.ext_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} + }; + clear_has_ext(); +} + +ColumnDataTypeExtension::~ColumnDataTypeExtension() { + // @@protoc_insertion_point(destructor:greptime.v1.ColumnDataTypeExtension) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ColumnDataTypeExtension::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_ext()) { + clear_ext(); + } +} + +void ColumnDataTypeExtension::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ColumnDataTypeExtension::clear_ext() { +// @@protoc_insertion_point(one_of_clear_start:greptime.v1.ColumnDataTypeExtension) + switch (ext_case()) { + case kDecimalType: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.ext_.decimal_type_; + } + break; + } + case EXT_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = EXT_NOT_SET; +} + + +void ColumnDataTypeExtension::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ColumnDataTypeExtension) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + clear_ext(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ColumnDataTypeExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // .greptime.v1.DecimalTypeExtension decimal_type = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr = ctx->ParseMessage(_internal_mutable_decimal_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ColumnDataTypeExtension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ColumnDataTypeExtension) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.DecimalTypeExtension decimal_type = 1; + if (_internal_has_decimal_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, _Internal::decimal_type(this), + _Internal::decimal_type(this).GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ColumnDataTypeExtension) + return target; +} + +size_t ColumnDataTypeExtension::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ColumnDataTypeExtension) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + switch (ext_case()) { + // .greptime.v1.DecimalTypeExtension decimal_type = 1; + case kDecimalType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.ext_.decimal_type_); + break; + } + case EXT_NOT_SET: { + break; + } + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnDataTypeExtension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ColumnDataTypeExtension::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnDataTypeExtension::GetClassData() const { return &_class_data_; } + + +void ColumnDataTypeExtension::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.ColumnDataTypeExtension) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + switch (from.ext_case()) { + case kDecimalType: { + _this->_internal_mutable_decimal_type()->::greptime::v1::DecimalTypeExtension::MergeFrom( + from._internal_decimal_type()); + break; + } + case EXT_NOT_SET: { + break; + } + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ColumnDataTypeExtension::CopyFrom(const ColumnDataTypeExtension& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ColumnDataTypeExtension) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ColumnDataTypeExtension::IsInitialized() const { + return true; +} + +void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + swap(_impl_.ext_, other->_impl_.ext_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::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[11]); +} + +// =================================================================== + +class DecimalTypeExtension::_Internal { + public: +}; + +DecimalTypeExtension::DecimalTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.DecimalTypeExtension) +} +DecimalTypeExtension::DecimalTypeExtension(const DecimalTypeExtension& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + DecimalTypeExtension* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.precision_){} + , decltype(_impl_.scale_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.precision_, &from._impl_.precision_, + static_cast(reinterpret_cast(&_impl_.scale_) - + reinterpret_cast(&_impl_.precision_)) + sizeof(_impl_.scale_)); + // @@protoc_insertion_point(copy_constructor:greptime.v1.DecimalTypeExtension) +} + +inline void DecimalTypeExtension::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.precision_){0} + , decltype(_impl_.scale_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +DecimalTypeExtension::~DecimalTypeExtension() { + // @@protoc_insertion_point(destructor:greptime.v1.DecimalTypeExtension) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void DecimalTypeExtension::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); +} + +void DecimalTypeExtension::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void DecimalTypeExtension::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.DecimalTypeExtension) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + ::memset(&_impl_.precision_, 0, static_cast( + reinterpret_cast(&_impl_.scale_) - + reinterpret_cast(&_impl_.precision_)) + sizeof(_impl_.scale_)); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* DecimalTypeExtension::_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) { + // int32 precision = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + _impl_.precision_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // int32 scale = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + _impl_.scale_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* DecimalTypeExtension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DecimalTypeExtension) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // int32 precision = 1; + if (this->_internal_precision() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_precision(), target); + } + + // int32 scale = 2; + if (this->_internal_scale() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_scale(), target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DecimalTypeExtension) + return target; +} + +size_t DecimalTypeExtension::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DecimalTypeExtension) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // int32 precision = 1; + if (this->_internal_precision() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_precision()); + } + + // int32 scale = 2; + if (this->_internal_scale() != 0) { + total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_scale()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DecimalTypeExtension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + DecimalTypeExtension::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DecimalTypeExtension::GetClassData() const { return &_class_data_; } + + +void DecimalTypeExtension::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.DecimalTypeExtension) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (from._internal_precision() != 0) { + _this->_internal_set_precision(from._internal_precision()); + } + if (from._internal_scale() != 0) { + _this->_internal_set_scale(from._internal_scale()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void DecimalTypeExtension::CopyFrom(const DecimalTypeExtension& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DecimalTypeExtension) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool DecimalTypeExtension::IsInitialized() const { + return true; +} + +void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(DecimalTypeExtension, _impl_.scale_) + + sizeof(DecimalTypeExtension::_impl_.scale_) + - PROTOBUF_FIELD_OFFSET(DecimalTypeExtension, _impl_.precision_)>( + reinterpret_cast(&_impl_.precision_), + reinterpret_cast(&other->_impl_.precision_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::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[12]); +} + +// @@protoc_insertion_point(namespace_scope) +} // namespace v1 +} // namespace greptime +PROTOBUF_NAMESPACE_OPEN +template<> PROTOBUF_NOINLINE ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse* +Arena::CreateMaybeMessage< ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::RequestHeader* +Arena::CreateMaybeMessage< ::greptime::v1::RequestHeader >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::RequestHeader >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::ResponseHeader* +Arena::CreateMaybeMessage< ::greptime::v1::ResponseHeader >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ResponseHeader >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::Status* +Arena::CreateMaybeMessage< ::greptime::v1::Status >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::Status >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::AuthHeader* +Arena::CreateMaybeMessage< ::greptime::v1::AuthHeader >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::AuthHeader >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::Basic* +Arena::CreateMaybeMessage< ::greptime::v1::Basic >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::Basic >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::Token* +Arena::CreateMaybeMessage< ::greptime::v1::Token >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::Token >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::AffectedRows* +Arena::CreateMaybeMessage< ::greptime::v1::AffectedRows >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::AffectedRows >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::FlightMetadata* +Arena::CreateMaybeMessage< ::greptime::v1::FlightMetadata >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::FlightMetadata >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano* +Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::Decimal128* +Arena::CreateMaybeMessage< ::greptime::v1::Decimal128 >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::Decimal128 >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnDataTypeExtension* +Arena::CreateMaybeMessage< ::greptime::v1::ColumnDataTypeExtension >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ColumnDataTypeExtension >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::DecimalTypeExtension* +Arena::CreateMaybeMessage< ::greptime::v1::DecimalTypeExtension >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::DecimalTypeExtension >(arena); } PROTOBUF_NAMESPACE_CLOSE diff --git a/c++/greptime/v1/common.pb.h b/c++/greptime/v1/common.pb.h index 8d139d47..80a9f7aa 100644 --- a/c++/greptime/v1/common.pb.h +++ b/c++/greptime/v1/common.pb.h @@ -59,6 +59,15 @@ extern AuthHeaderDefaultTypeInternal _AuthHeader_default_instance_; class Basic; struct BasicDefaultTypeInternal; extern BasicDefaultTypeInternal _Basic_default_instance_; +class ColumnDataTypeExtension; +struct ColumnDataTypeExtensionDefaultTypeInternal; +extern ColumnDataTypeExtensionDefaultTypeInternal _ColumnDataTypeExtension_default_instance_; +class Decimal128; +struct Decimal128DefaultTypeInternal; +extern Decimal128DefaultTypeInternal _Decimal128_default_instance_; +class DecimalTypeExtension; +struct DecimalTypeExtensionDefaultTypeInternal; +extern DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_; class FlightMetadata; struct FlightMetadataDefaultTypeInternal; extern FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_; @@ -86,6 +95,9 @@ PROTOBUF_NAMESPACE_OPEN template<> ::greptime::v1::AffectedRows* Arena::CreateMaybeMessage<::greptime::v1::AffectedRows>(Arena*); 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::Decimal128* Arena::CreateMaybeMessage<::greptime::v1::Decimal128>(Arena*); +template<> ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::DecimalTypeExtension>(Arena*); template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*); template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*); template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*); @@ -154,12 +166,13 @@ enum ColumnDataType : int { DURATION_MILLISECOND = 27, DURATION_MICROSECOND = 28, DURATION_NANOSECOND = 29, + DECIMAL_128 = 30, ColumnDataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), ColumnDataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::max() }; bool ColumnDataType_IsValid(int value); constexpr ColumnDataType ColumnDataType_MIN = BOOLEAN; -constexpr ColumnDataType ColumnDataType_MAX = DURATION_NANOSECOND; +constexpr ColumnDataType ColumnDataType_MAX = DECIMAL_128; constexpr int ColumnDataType_ARRAYSIZE = ColumnDataType_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ColumnDataType_descriptor(); @@ -1749,6 +1762,520 @@ class IntervalMonthDayNano final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; }; +// ------------------------------------------------------------------- + +class Decimal128 final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Decimal128) */ { + public: + inline Decimal128() : Decimal128(nullptr) {} + ~Decimal128() override; + explicit PROTOBUF_CONSTEXPR Decimal128(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + Decimal128(const Decimal128& from); + Decimal128(Decimal128&& from) noexcept + : Decimal128() { + *this = ::std::move(from); + } + + inline Decimal128& operator=(const Decimal128& from) { + CopyFrom(from); + return *this; + } + inline Decimal128& operator=(Decimal128&& 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 Decimal128& default_instance() { + return *internal_default_instance(); + } + static inline const Decimal128* internal_default_instance() { + return reinterpret_cast( + &_Decimal128_default_instance_); + } + static constexpr int kIndexInFileMessages = + 10; + + friend void swap(Decimal128& a, Decimal128& b) { + a.Swap(&b); + } + inline void Swap(Decimal128* 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(Decimal128* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + Decimal128* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const Decimal128& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const Decimal128& from) { + Decimal128::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(Decimal128* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.Decimal128"; + } + protected: + explicit Decimal128(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kHiFieldNumber = 1, + kLoFieldNumber = 2, + kPrecisionFieldNumber = 3, + kScaleFieldNumber = 4, + }; + // int64 hi = 1; + void clear_hi(); + int64_t hi() const; + void set_hi(int64_t value); + private: + int64_t _internal_hi() const; + void _internal_set_hi(int64_t value); + public: + + // int64 lo = 2; + void clear_lo(); + int64_t lo() const; + void set_lo(int64_t value); + private: + int64_t _internal_lo() const; + void _internal_set_lo(int64_t value); + public: + + // int32 precision = 3; + void clear_precision(); + int32_t precision() const; + void set_precision(int32_t value); + private: + int32_t _internal_precision() const; + void _internal_set_precision(int32_t value); + public: + + // int32 scale = 4; + void clear_scale(); + int32_t scale() const; + void set_scale(int32_t value); + private: + int32_t _internal_scale() const; + void _internal_set_scale(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.Decimal128) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int64_t hi_; + int64_t lo_; + int32_t precision_; + int32_t scale_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class ColumnDataTypeExtension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ColumnDataTypeExtension) */ { + public: + inline ColumnDataTypeExtension() : ColumnDataTypeExtension(nullptr) {} + ~ColumnDataTypeExtension() override; + explicit PROTOBUF_CONSTEXPR ColumnDataTypeExtension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ColumnDataTypeExtension(const ColumnDataTypeExtension& from); + ColumnDataTypeExtension(ColumnDataTypeExtension&& from) noexcept + : ColumnDataTypeExtension() { + *this = ::std::move(from); + } + + inline ColumnDataTypeExtension& operator=(const ColumnDataTypeExtension& from) { + CopyFrom(from); + return *this; + } + inline ColumnDataTypeExtension& operator=(ColumnDataTypeExtension&& 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 ColumnDataTypeExtension& default_instance() { + return *internal_default_instance(); + } + enum ExtCase { + kDecimalType = 1, + EXT_NOT_SET = 0, + }; + + static inline const ColumnDataTypeExtension* internal_default_instance() { + return reinterpret_cast( + &_ColumnDataTypeExtension_default_instance_); + } + static constexpr int kIndexInFileMessages = + 11; + + friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) { + a.Swap(&b); + } + inline void Swap(ColumnDataTypeExtension* 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(ColumnDataTypeExtension* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ColumnDataTypeExtension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ColumnDataTypeExtension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ColumnDataTypeExtension& from) { + ColumnDataTypeExtension::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(ColumnDataTypeExtension* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ColumnDataTypeExtension"; + } + protected: + explicit ColumnDataTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kDecimalTypeFieldNumber = 1, + }; + // .greptime.v1.DecimalTypeExtension decimal_type = 1; + bool has_decimal_type() const; + private: + bool _internal_has_decimal_type() const; + public: + void clear_decimal_type(); + const ::greptime::v1::DecimalTypeExtension& decimal_type() const; + PROTOBUF_NODISCARD ::greptime::v1::DecimalTypeExtension* release_decimal_type(); + ::greptime::v1::DecimalTypeExtension* mutable_decimal_type(); + void set_allocated_decimal_type(::greptime::v1::DecimalTypeExtension* decimal_type); + private: + const ::greptime::v1::DecimalTypeExtension& _internal_decimal_type() const; + ::greptime::v1::DecimalTypeExtension* _internal_mutable_decimal_type(); + public: + void unsafe_arena_set_allocated_decimal_type( + ::greptime::v1::DecimalTypeExtension* decimal_type); + ::greptime::v1::DecimalTypeExtension* unsafe_arena_release_decimal_type(); + + void clear_ext(); + ExtCase ext_case() const; + // @@protoc_insertion_point(class_scope:greptime.v1.ColumnDataTypeExtension) + private: + class _Internal; + void set_has_decimal_type(); + + inline bool has_ext() const; + inline void clear_has_ext(); + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + union ExtUnion { + constexpr ExtUnion() : _constinit_{} {} + ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; + ::greptime::v1::DecimalTypeExtension* decimal_type_; + } ext_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + uint32_t _oneof_case_[1]; + + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class DecimalTypeExtension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DecimalTypeExtension) */ { + public: + inline DecimalTypeExtension() : DecimalTypeExtension(nullptr) {} + ~DecimalTypeExtension() override; + explicit PROTOBUF_CONSTEXPR DecimalTypeExtension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + DecimalTypeExtension(const DecimalTypeExtension& from); + DecimalTypeExtension(DecimalTypeExtension&& from) noexcept + : DecimalTypeExtension() { + *this = ::std::move(from); + } + + inline DecimalTypeExtension& operator=(const DecimalTypeExtension& from) { + CopyFrom(from); + return *this; + } + inline DecimalTypeExtension& operator=(DecimalTypeExtension&& 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 DecimalTypeExtension& default_instance() { + return *internal_default_instance(); + } + static inline const DecimalTypeExtension* internal_default_instance() { + return reinterpret_cast( + &_DecimalTypeExtension_default_instance_); + } + static constexpr int kIndexInFileMessages = + 12; + + friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) { + a.Swap(&b); + } + inline void Swap(DecimalTypeExtension* 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(DecimalTypeExtension* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + DecimalTypeExtension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const DecimalTypeExtension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const DecimalTypeExtension& from) { + DecimalTypeExtension::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(DecimalTypeExtension* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.DecimalTypeExtension"; + } + protected: + explicit DecimalTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned = false); + public: + + static const ClassData _class_data_; + const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; + + ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; + + // nested types ---------------------------------------------------- + + // accessors ------------------------------------------------------- + + enum : int { + kPrecisionFieldNumber = 1, + kScaleFieldNumber = 2, + }; + // int32 precision = 1; + void clear_precision(); + int32_t precision() const; + void set_precision(int32_t value); + private: + int32_t _internal_precision() const; + void _internal_set_precision(int32_t value); + public: + + // int32 scale = 2; + void clear_scale(); + int32_t scale() const; + void set_scale(int32_t value); + private: + int32_t _internal_scale() const; + void _internal_set_scale(int32_t value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.DecimalTypeExtension) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + int32_t precision_; + int32_t scale_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; // =================================================================== @@ -2700,6 +3227,221 @@ inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.IntervalMonthDayNano.nanoseconds) } +// ------------------------------------------------------------------- + +// Decimal128 + +// int64 hi = 1; +inline void Decimal128::clear_hi() { + _impl_.hi_ = int64_t{0}; +} +inline int64_t Decimal128::_internal_hi() const { + return _impl_.hi_; +} +inline int64_t Decimal128::hi() const { + // @@protoc_insertion_point(field_get:greptime.v1.Decimal128.hi) + return _internal_hi(); +} +inline void Decimal128::_internal_set_hi(int64_t value) { + + _impl_.hi_ = value; +} +inline void Decimal128::set_hi(int64_t value) { + _internal_set_hi(value); + // @@protoc_insertion_point(field_set:greptime.v1.Decimal128.hi) +} + +// int64 lo = 2; +inline void Decimal128::clear_lo() { + _impl_.lo_ = int64_t{0}; +} +inline int64_t Decimal128::_internal_lo() const { + return _impl_.lo_; +} +inline int64_t Decimal128::lo() const { + // @@protoc_insertion_point(field_get:greptime.v1.Decimal128.lo) + return _internal_lo(); +} +inline void Decimal128::_internal_set_lo(int64_t value) { + + _impl_.lo_ = value; +} +inline void Decimal128::set_lo(int64_t value) { + _internal_set_lo(value); + // @@protoc_insertion_point(field_set:greptime.v1.Decimal128.lo) +} + +// int32 precision = 3; +inline void Decimal128::clear_precision() { + _impl_.precision_ = 0; +} +inline int32_t Decimal128::_internal_precision() const { + return _impl_.precision_; +} +inline int32_t Decimal128::precision() const { + // @@protoc_insertion_point(field_get:greptime.v1.Decimal128.precision) + return _internal_precision(); +} +inline void Decimal128::_internal_set_precision(int32_t value) { + + _impl_.precision_ = value; +} +inline void Decimal128::set_precision(int32_t value) { + _internal_set_precision(value); + // @@protoc_insertion_point(field_set:greptime.v1.Decimal128.precision) +} + +// int32 scale = 4; +inline void Decimal128::clear_scale() { + _impl_.scale_ = 0; +} +inline int32_t Decimal128::_internal_scale() const { + return _impl_.scale_; +} +inline int32_t Decimal128::scale() const { + // @@protoc_insertion_point(field_get:greptime.v1.Decimal128.scale) + return _internal_scale(); +} +inline void Decimal128::_internal_set_scale(int32_t value) { + + _impl_.scale_ = value; +} +inline void Decimal128::set_scale(int32_t value) { + _internal_set_scale(value); + // @@protoc_insertion_point(field_set:greptime.v1.Decimal128.scale) +} + +// ------------------------------------------------------------------- + +// ColumnDataTypeExtension + +// .greptime.v1.DecimalTypeExtension decimal_type = 1; +inline bool ColumnDataTypeExtension::_internal_has_decimal_type() const { + return ext_case() == kDecimalType; +} +inline bool ColumnDataTypeExtension::has_decimal_type() const { + return _internal_has_decimal_type(); +} +inline void ColumnDataTypeExtension::set_has_decimal_type() { + _impl_._oneof_case_[0] = kDecimalType; +} +inline void ColumnDataTypeExtension::clear_decimal_type() { + if (_internal_has_decimal_type()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.ext_.decimal_type_; + } + clear_has_ext(); + } +} +inline ::greptime::v1::DecimalTypeExtension* ColumnDataTypeExtension::release_decimal_type() { + // @@protoc_insertion_point(field_release:greptime.v1.ColumnDataTypeExtension.decimal_type) + if (_internal_has_decimal_type()) { + clear_has_ext(); + ::greptime::v1::DecimalTypeExtension* temp = _impl_.ext_.decimal_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.ext_.decimal_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::DecimalTypeExtension& ColumnDataTypeExtension::_internal_decimal_type() const { + return _internal_has_decimal_type() + ? *_impl_.ext_.decimal_type_ + : reinterpret_cast< ::greptime::v1::DecimalTypeExtension&>(::greptime::v1::_DecimalTypeExtension_default_instance_); +} +inline const ::greptime::v1::DecimalTypeExtension& ColumnDataTypeExtension::decimal_type() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnDataTypeExtension.decimal_type) + return _internal_decimal_type(); +} +inline ::greptime::v1::DecimalTypeExtension* ColumnDataTypeExtension::unsafe_arena_release_decimal_type() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.ColumnDataTypeExtension.decimal_type) + if (_internal_has_decimal_type()) { + clear_has_ext(); + ::greptime::v1::DecimalTypeExtension* temp = _impl_.ext_.decimal_type_; + _impl_.ext_.decimal_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ColumnDataTypeExtension::unsafe_arena_set_allocated_decimal_type(::greptime::v1::DecimalTypeExtension* decimal_type) { + clear_ext(); + if (decimal_type) { + set_has_decimal_type(); + _impl_.ext_.decimal_type_ = decimal_type; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ColumnDataTypeExtension.decimal_type) +} +inline ::greptime::v1::DecimalTypeExtension* ColumnDataTypeExtension::_internal_mutable_decimal_type() { + if (!_internal_has_decimal_type()) { + clear_ext(); + set_has_decimal_type(); + _impl_.ext_.decimal_type_ = CreateMaybeMessage< ::greptime::v1::DecimalTypeExtension >(GetArenaForAllocation()); + } + return _impl_.ext_.decimal_type_; +} +inline ::greptime::v1::DecimalTypeExtension* ColumnDataTypeExtension::mutable_decimal_type() { + ::greptime::v1::DecimalTypeExtension* _msg = _internal_mutable_decimal_type(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDataTypeExtension.decimal_type) + return _msg; +} + +inline bool ColumnDataTypeExtension::has_ext() const { + return ext_case() != EXT_NOT_SET; +} +inline void ColumnDataTypeExtension::clear_has_ext() { + _impl_._oneof_case_[0] = EXT_NOT_SET; +} +inline ColumnDataTypeExtension::ExtCase ColumnDataTypeExtension::ext_case() const { + return ColumnDataTypeExtension::ExtCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// DecimalTypeExtension + +// int32 precision = 1; +inline void DecimalTypeExtension::clear_precision() { + _impl_.precision_ = 0; +} +inline int32_t DecimalTypeExtension::_internal_precision() const { + return _impl_.precision_; +} +inline int32_t DecimalTypeExtension::precision() const { + // @@protoc_insertion_point(field_get:greptime.v1.DecimalTypeExtension.precision) + return _internal_precision(); +} +inline void DecimalTypeExtension::_internal_set_precision(int32_t value) { + + _impl_.precision_ = value; +} +inline void DecimalTypeExtension::set_precision(int32_t value) { + _internal_set_precision(value); + // @@protoc_insertion_point(field_set:greptime.v1.DecimalTypeExtension.precision) +} + +// int32 scale = 2; +inline void DecimalTypeExtension::clear_scale() { + _impl_.scale_ = 0; +} +inline int32_t DecimalTypeExtension::_internal_scale() const { + return _impl_.scale_; +} +inline int32_t DecimalTypeExtension::scale() const { + // @@protoc_insertion_point(field_get:greptime.v1.DecimalTypeExtension.scale) + return _internal_scale(); +} +inline void DecimalTypeExtension::_internal_set_scale(int32_t value) { + + _impl_.scale_ = value; +} +inline void DecimalTypeExtension::set_scale(int32_t value) { + _internal_set_scale(value); + // @@protoc_insertion_point(field_set:greptime.v1.DecimalTypeExtension.scale) +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -2721,6 +3463,12 @@ inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 7d9c7504..4e60b390 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -229,6 +229,7 @@ PROTOBUF_CONSTEXPR ColumnDef::ColumnDef( /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*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_.data_type_)*/0 , /*decltype(_impl_.is_nullable_)*/false , /*decltype(_impl_.semantic_type_)*/0 @@ -409,6 +410,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.default_constraint_), 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_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _internal_metadata_), ~0u, // no _extensions_ @@ -434,7 +436,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 120, -1, -1, sizeof(::greptime::v1::DropColumn)}, { 127, -1, -1, sizeof(::greptime::v1::TableId)}, { 134, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 146, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 147, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -500,24 +502,26 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001(" "\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDro" "pColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001" - " \001(\r\"\275\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" + " \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" "_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" "\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra" "int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" - "ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\"\230\001\n" - "\021AddColumnLocation\022B\n\rlocation_type\030\001 \001(" - "\0162+.greptime.v1.AddColumnLocation.Locati" - "onType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Loc" - "ationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.gr" - "eptime.v1B\003DdlZ5github.com/GreptimeTeam/" - "greptime-proto/go/greptime/v1b\006proto3" + "ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" + "datatype_extension\030\007 \001(\0132$.greptime.v1.C" + "olumnDataTypeExtension\"\230\001\n\021AddColumnLoca" + "tion\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v" + "1.AddColumnLocation.LocationType\022\031\n\021afte" + "r_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005F" + "IRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003Ddl" + "Z5github.com/GreptimeTeam/greptime-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, 2157, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 2223, 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, 16, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -4428,8 +4432,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const { class ColumnDef::_Internal { public: + static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnDef* msg); }; +const ::greptime::v1::ColumnDataTypeExtension& +ColumnDef::_Internal::datatype_extension(const ColumnDef* msg) { + return *msg->_impl_.datatype_extension_; +} +void ColumnDef::clear_datatype_extension() { + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; +} ColumnDef::ColumnDef(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -4443,6 +4458,7 @@ ColumnDef::ColumnDef(const ColumnDef& from) decltype(_impl_.name_){} , decltype(_impl_.default_constraint_){} , decltype(_impl_.comment_){} + , decltype(_impl_.datatype_extension_){nullptr} , decltype(_impl_.data_type_){} , decltype(_impl_.is_nullable_){} , decltype(_impl_.semantic_type_){} @@ -4473,6 +4489,9 @@ ColumnDef::ColumnDef(const ColumnDef& from) _this->_impl_.comment_.Set(from._internal_comment(), _this->GetArenaForAllocation()); } + if (from._internal_has_datatype_extension()) { + _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); + } ::memcpy(&_impl_.data_type_, &from._impl_.data_type_, static_cast(reinterpret_cast(&_impl_.semantic_type_) - reinterpret_cast(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_)); @@ -4487,6 +4506,7 @@ inline void ColumnDef::SharedCtor( decltype(_impl_.name_){} , decltype(_impl_.default_constraint_){} , decltype(_impl_.comment_){} + , decltype(_impl_.datatype_extension_){nullptr} , decltype(_impl_.data_type_){0} , decltype(_impl_.is_nullable_){false} , decltype(_impl_.semantic_type_){0} @@ -4520,6 +4540,7 @@ inline void ColumnDef::SharedDtor() { _impl_.name_.Destroy(); _impl_.default_constraint_.Destroy(); _impl_.comment_.Destroy(); + if (this != internal_default_instance()) delete _impl_.datatype_extension_; } void ColumnDef::SetCachedSize(int size) const { @@ -4535,6 +4556,10 @@ void ColumnDef::Clear() { _impl_.name_.ClearToEmpty(); _impl_.default_constraint_.ClearToEmpty(); _impl_.comment_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; ::memset(&_impl_.data_type_, 0, static_cast( reinterpret_cast(&_impl_.semantic_type_) - reinterpret_cast(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_)); @@ -4602,6 +4627,14 @@ const char* ColumnDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx } else goto handle_unusual; continue; + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + case 7: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 58)) { + ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -4677,6 +4710,13 @@ uint8_t* ColumnDef::_InternalSerialize( 6, this->_internal_comment(), target); } + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + if (this->_internal_has_datatype_extension()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(7, _Internal::datatype_extension(this), + _Internal::datatype_extension(this).GetCachedSize(), target, stream); + } + 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); @@ -4714,6 +4754,13 @@ size_t ColumnDef::ByteSizeLong() const { this->_internal_comment()); } + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + if (this->_internal_has_datatype_extension()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.datatype_extension_); + } + // .greptime.v1.ColumnDataType data_type = 2; if (this->_internal_data_type() != 0) { total_size += 1 + @@ -4758,6 +4805,10 @@ void ColumnDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT if (!from._internal_comment().empty()) { _this->_internal_set_comment(from._internal_comment()); } + if (from._internal_has_datatype_extension()) { + _this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( + from._internal_datatype_extension()); + } if (from._internal_data_type() != 0) { _this->_internal_set_data_type(from._internal_data_type()); } @@ -4801,9 +4852,9 @@ void ColumnDef::InternalSwap(ColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.semantic_type_) + sizeof(ColumnDef::_impl_.semantic_type_) - - PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.data_type_)>( - reinterpret_cast(&_impl_.data_type_), - reinterpret_cast(&other->_impl_.data_type_)); + - PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.datatype_extension_)>( + reinterpret_cast(&_impl_.datatype_extension_), + reinterpret_cast(&other->_impl_.datatype_extension_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const { diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 218be5f1..8a44b63f 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -2738,6 +2738,7 @@ class ColumnDef final : kNameFieldNumber = 1, kDefaultConstraintFieldNumber = 4, kCommentFieldNumber = 6, + kDatatypeExtensionFieldNumber = 7, kDataTypeFieldNumber = 2, kIsNullableFieldNumber = 3, kSemanticTypeFieldNumber = 5, @@ -2784,6 +2785,24 @@ class ColumnDef final : std::string* _internal_mutable_comment(); public: + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + bool has_datatype_extension() const; + private: + bool _internal_has_datatype_extension() const; + public: + void clear_datatype_extension(); + const ::greptime::v1::ColumnDataTypeExtension& datatype_extension() const; + PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_datatype_extension(); + ::greptime::v1::ColumnDataTypeExtension* mutable_datatype_extension(); + void set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension); + private: + const ::greptime::v1::ColumnDataTypeExtension& _internal_datatype_extension() const; + ::greptime::v1::ColumnDataTypeExtension* _internal_mutable_datatype_extension(); + public: + void unsafe_arena_set_allocated_datatype_extension( + ::greptime::v1::ColumnDataTypeExtension* datatype_extension); + ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension(); + // .greptime.v1.ColumnDataType data_type = 2; void clear_data_type(); ::greptime::v1::ColumnDataType data_type() const; @@ -2822,6 +2841,7 @@ class ColumnDef final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_constraint_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; + ::greptime::v1::ColumnDataTypeExtension* datatype_extension_; int data_type_; bool is_nullable_; int semantic_type_; @@ -5570,6 +5590,91 @@ inline void ColumnDef::set_allocated_comment(std::string* comment) { // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDef.comment) } +// .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; +inline bool ColumnDef::_internal_has_datatype_extension() const { + return this != internal_default_instance() && _impl_.datatype_extension_ != nullptr; +} +inline bool ColumnDef::has_datatype_extension() const { + return _internal_has_datatype_extension(); +} +inline const ::greptime::v1::ColumnDataTypeExtension& ColumnDef::_internal_datatype_extension() const { + const ::greptime::v1::ColumnDataTypeExtension* p = _impl_.datatype_extension_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_ColumnDataTypeExtension_default_instance_); +} +inline const ::greptime::v1::ColumnDataTypeExtension& ColumnDef::datatype_extension() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnDef.datatype_extension) + return _internal_datatype_extension(); +} +inline void ColumnDef::unsafe_arena_set_allocated_datatype_extension( + ::greptime::v1::ColumnDataTypeExtension* datatype_extension) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_); + } + _impl_.datatype_extension_ = datatype_extension; + if (datatype_extension) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ColumnDef.datatype_extension) +} +inline ::greptime::v1::ColumnDataTypeExtension* ColumnDef::release_datatype_extension() { + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_; + _impl_.datatype_extension_ = 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::ColumnDataTypeExtension* ColumnDef::unsafe_arena_release_datatype_extension() { + // @@protoc_insertion_point(field_release:greptime.v1.ColumnDef.datatype_extension) + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_; + _impl_.datatype_extension_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnDataTypeExtension* ColumnDef::_internal_mutable_datatype_extension() { + + if (_impl_.datatype_extension_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation()); + _impl_.datatype_extension_ = p; + } + return _impl_.datatype_extension_; +} +inline ::greptime::v1::ColumnDataTypeExtension* ColumnDef::mutable_datatype_extension() { + ::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_datatype_extension(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDef.datatype_extension) + return _msg; +} +inline void ColumnDef::set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_); + } + if (datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(datatype_extension)); + if (message_arena != submessage_arena) { + datatype_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, datatype_extension, submessage_arena); + } + + } else { + + } + _impl_.datatype_extension_ = datatype_extension; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDef.datatype_extension) +} + // ------------------------------------------------------------------- // AddColumnLocation diff --git a/c++/greptime/v1/row.pb.cc b/c++/greptime/v1/row.pb.cc index d3befeab..c47ef461 100644 --- a/c++/greptime/v1/row.pb.cc +++ b/c++/greptime/v1/row.pb.cc @@ -39,6 +39,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT 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_.datatype_)*/0 , /*decltype(_impl_.semantic_type_)*/0 , /*decltype(_impl_._cached_size_)*/{}} {} @@ -102,6 +103,7 @@ const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.column_name_), 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_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::Row, _internal_metadata_), ~0u, // no _extensions_ @@ -145,13 +147,14 @@ const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTI ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::Value, _impl_.value_data_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::Rows)}, { 8, -1, -1, sizeof(::greptime::v1::ColumnSchema)}, - { 17, -1, -1, sizeof(::greptime::v1::Row)}, - { 24, -1, -1, sizeof(::greptime::v1::Value)}, + { 18, -1, -1, sizeof(::greptime::v1::Row)}, + { 25, -1, -1, sizeof(::greptime::v1::Value)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -165,44 +168,47 @@ 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\"\204\001\n\014ColumnSche" + "s\030\002 \003(\0132\020.greptime.v1.Row\"\306\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" - "\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va" - "lue\"\234\007\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\ti" - "64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t" - "u16_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_va" - "lue\030\r \001(\tH\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016dat" - "etime_value\030\017 \001(\003H\000\022 \n\026timestamp_second_" - "value\030\020 \001(\003H\000\022%\n\033timestamp_millisecond_v" - "alue\030\021 \001(\003H\000\022%\n\033timestamp_microsecond_va" - "lue\030\022 \001(\003H\000\022$\n\032timestamp_nanosecond_valu" - "e\030\023 \001(\003H\000\022\033\n\021time_second_value\030\024 \001(\003H\000\022 " - "\n\026time_millisecond_value\030\025 \001(\003H\000\022 \n\026time" - "_microsecond_value\030\026 \001(\003H\000\022\037\n\025time_nanos" - "econd_value\030\027 \001(\003H\000\022$\n\032interval_year_mon" - "th_values\030\030 \001(\005H\000\022\"\n\030interval_day_time_v" - "alues\030\031 \001(\003H\000\022K\n\036interval_month_day_nano" - "_values\030\032 \001(\0132!.greptime.v1.IntervalMont" - "hDayNanoH\000\022\037\n\025duration_second_value\030\033 \001(" - "\003H\000\022$\n\032duration_millisecond_value\030\034 \001(\003H" - "\000\022$\n\032duration_microsecond_value\030\035 \001(\003H\000\022" - "#\n\031duration_nanosecond_value\030\036 \001(\003H\000B\014\n\n" - "value_dataBP\n\016io.greptime.v1B\007RowDataZ5g" - "ithub.com/GreptimeTeam/greptime-proto/go" - "/greptime/v1b\006proto3" + "\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\"\321\007\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\032interval_year_month_values\030\030 \001(" + "\005H\000\022\"\n\030interval_day_time_values\030\031 \001(\003H\000\022" + "K\n\036interval_month_day_nano_values\030\032 \001(\0132" + "!.greptime.v1.IntervalMonthDayNanoH\000\022\037\n\025" + "duration_second_value\030\033 \001(\003H\000\022$\n\032duratio" + "n_millisecond_value\030\034 \001(\003H\000\022$\n\032duration_" + "microsecond_value\030\035 \001(\003H\000\022#\n\031duration_na" + "nosecond_value\030\036 \001(\003H\000\0223\n\020decimal128_val" + "ue\030\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nv" + "alue_dataBP\n\016io.greptime.v1B\007RowDataZ5gi" + "thub.com/GreptimeTeam/greptime-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, 1340, descriptor_table_protodef_greptime_2fv1_2frow_2eproto, + false, false, 1459, 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, @@ -441,8 +447,19 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Rows::GetMetadata() const { class ColumnSchema::_Internal { public: + static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnSchema* msg); }; +const ::greptime::v1::ColumnDataTypeExtension& +ColumnSchema::_Internal::datatype_extension(const ColumnSchema* msg) { + return *msg->_impl_.datatype_extension_; +} +void ColumnSchema::clear_datatype_extension() { + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; +} ColumnSchema::ColumnSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -454,6 +471,7 @@ ColumnSchema::ColumnSchema(const ColumnSchema& from) ColumnSchema* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.column_name_){} + , decltype(_impl_.datatype_extension_){nullptr} , decltype(_impl_.datatype_){} , decltype(_impl_.semantic_type_){} , /*decltype(_impl_._cached_size_)*/{}}; @@ -467,6 +485,9 @@ ColumnSchema::ColumnSchema(const ColumnSchema& from) _this->_impl_.column_name_.Set(from._internal_column_name(), _this->GetArenaForAllocation()); } + if (from._internal_has_datatype_extension()) { + _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); + } ::memcpy(&_impl_.datatype_, &from._impl_.datatype_, static_cast(reinterpret_cast(&_impl_.semantic_type_) - reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.semantic_type_)); @@ -479,6 +500,7 @@ inline void ColumnSchema::SharedCtor( (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.column_name_){} + , decltype(_impl_.datatype_extension_){nullptr} , decltype(_impl_.datatype_){0} , decltype(_impl_.semantic_type_){0} , /*decltype(_impl_._cached_size_)*/{} @@ -501,6 +523,7 @@ ColumnSchema::~ColumnSchema() { inline void ColumnSchema::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); _impl_.column_name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.datatype_extension_; } void ColumnSchema::SetCachedSize(int size) const { @@ -514,6 +537,10 @@ void ColumnSchema::Clear() { (void) cached_has_bits; _impl_.column_name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; ::memset(&_impl_.datatype_, 0, static_cast( reinterpret_cast(&_impl_.semantic_type_) - reinterpret_cast(&_impl_.datatype_)) + sizeof(_impl_.semantic_type_)); @@ -554,6 +581,14 @@ const char* ColumnSchema::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -607,6 +642,13 @@ uint8_t* ColumnSchema::_InternalSerialize( 3, this->_internal_semantic_type(), target); } + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + if (this->_internal_has_datatype_extension()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::datatype_extension(this), + _Internal::datatype_extension(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -630,6 +672,13 @@ size_t ColumnSchema::ByteSizeLong() const { this->_internal_column_name()); } + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + if (this->_internal_has_datatype_extension()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.datatype_extension_); + } + // .greptime.v1.ColumnDataType datatype = 2; if (this->_internal_datatype() != 0) { total_size += 1 + @@ -663,6 +712,10 @@ void ColumnSchema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P if (!from._internal_column_name().empty()) { _this->_internal_set_column_name(from._internal_column_name()); } + if (from._internal_has_datatype_extension()) { + _this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom( + from._internal_datatype_extension()); + } if (from._internal_datatype() != 0) { _this->_internal_set_datatype(from._internal_datatype()); } @@ -695,9 +748,9 @@ void ColumnSchema::InternalSwap(ColumnSchema* other) { ::PROTOBUF_NAMESPACE_ID::internal::memswap< PROTOBUF_FIELD_OFFSET(ColumnSchema, _impl_.semantic_type_) + sizeof(ColumnSchema::_impl_.semantic_type_) - - PROTOBUF_FIELD_OFFSET(ColumnSchema, _impl_.datatype_)>( - reinterpret_cast(&_impl_.datatype_), - reinterpret_cast(&other->_impl_.datatype_)); + - PROTOBUF_FIELD_OFFSET(ColumnSchema, _impl_.datatype_extension_)>( + reinterpret_cast(&_impl_.datatype_extension_), + reinterpret_cast(&other->_impl_.datatype_extension_)); } ::PROTOBUF_NAMESPACE_ID::Metadata ColumnSchema::GetMetadata() const { @@ -896,12 +949,17 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Row::GetMetadata() const { class Value::_Internal { public: static const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_values(const Value* msg); + static const ::greptime::v1::Decimal128& decimal128_value(const Value* msg); }; const ::greptime::v1::IntervalMonthDayNano& Value::_Internal::interval_month_day_nano_values(const Value* msg) { return *msg->_impl_.value_data_.interval_month_day_nano_values_; } +const ::greptime::v1::Decimal128& +Value::_Internal::decimal128_value(const Value* msg) { + return *msg->_impl_.value_data_.decimal128_value_; +} void Value::set_allocated_interval_month_day_nano_values(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value_data(); @@ -926,6 +984,30 @@ void Value::clear_interval_month_day_nano_values() { clear_has_value_data(); } } +void Value::set_allocated_decimal128_value(::greptime::v1::Decimal128* decimal128_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value_data(); + if (decimal128_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(decimal128_value)); + if (message_arena != submessage_arena) { + decimal128_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, decimal128_value, submessage_arena); + } + set_has_decimal128_value(); + _impl_.value_data_.decimal128_value_ = decimal128_value; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.decimal128_value) +} +void Value::clear_decimal128_value() { + if (_internal_has_decimal128_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.value_data_.decimal128_value_; + } + clear_has_value_data(); + } +} Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1064,6 +1146,11 @@ Value::Value(const Value& from) _this->_internal_set_duration_nanosecond_value(from._internal_duration_nanosecond_value()); break; } + case kDecimal128Value: { + _this->_internal_mutable_decimal128_value()->::greptime::v1::Decimal128::MergeFrom( + from._internal_decimal128_value()); + break; + } case VALUE_DATA_NOT_SET: { break; } @@ -1228,6 +1315,12 @@ void Value::clear_value_data() { // No need to clear break; } + case kDecimal128Value: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.value_data_.decimal128_value_; + } + break; + } case VALUE_DATA_NOT_SET: { break; } @@ -1495,6 +1588,14 @@ const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; + // .greptime.v1.Decimal128 decimal128_value = 31; + case 31: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 250)) { + ptr = ctx->ParseMessage(_internal_mutable_decimal128_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1709,6 +1810,13 @@ uint8_t* Value::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteInt64ToArray(30, this->_internal_duration_nanosecond_value(), target); } + // .greptime.v1.Decimal128 decimal128_value = 31; + if (_internal_has_decimal128_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(31, _Internal::decimal128_value(this), + _Internal::decimal128_value(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); @@ -1910,6 +2018,13 @@ size_t Value::ByteSizeLong() const { this->_internal_duration_nanosecond_value()); break; } + // .greptime.v1.Decimal128 decimal128_value = 31; + case kDecimal128Value: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_data_.decimal128_value_); + break; + } case VALUE_DATA_NOT_SET: { break; } @@ -2054,6 +2169,11 @@ void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF _this->_internal_set_duration_nanosecond_value(from._internal_duration_nanosecond_value()); break; } + case kDecimal128Value: { + _this->_internal_mutable_decimal128_value()->::greptime::v1::Decimal128::MergeFrom( + from._internal_decimal128_value()); + break; + } case VALUE_DATA_NOT_SET: { break; } diff --git a/c++/greptime/v1/row.pb.h b/c++/greptime/v1/row.pb.h index cc637332..e6addffc 100644 --- a/c++/greptime/v1/row.pb.h +++ b/c++/greptime/v1/row.pb.h @@ -371,6 +371,7 @@ class ColumnSchema final : enum : int { kColumnNameFieldNumber = 1, + kDatatypeExtensionFieldNumber = 4, kDatatypeFieldNumber = 2, kSemanticTypeFieldNumber = 3, }; @@ -388,6 +389,24 @@ class ColumnSchema final : std::string* _internal_mutable_column_name(); public: + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + bool has_datatype_extension() const; + private: + bool _internal_has_datatype_extension() const; + public: + void clear_datatype_extension(); + const ::greptime::v1::ColumnDataTypeExtension& datatype_extension() const; + PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_datatype_extension(); + ::greptime::v1::ColumnDataTypeExtension* mutable_datatype_extension(); + void set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension); + private: + const ::greptime::v1::ColumnDataTypeExtension& _internal_datatype_extension() const; + ::greptime::v1::ColumnDataTypeExtension* _internal_mutable_datatype_extension(); + public: + void unsafe_arena_set_allocated_datatype_extension( + ::greptime::v1::ColumnDataTypeExtension* datatype_extension); + ::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension(); + // .greptime.v1.ColumnDataType datatype = 2; void clear_datatype(); ::greptime::v1::ColumnDataType datatype() const; @@ -415,6 +434,7 @@ class ColumnSchema final : typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_; + ::greptime::v1::ColumnDataTypeExtension* datatype_extension_; int datatype_; int semantic_type_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -655,6 +675,7 @@ class Value final : kDurationMillisecondValue = 28, kDurationMicrosecondValue = 29, kDurationNanosecondValue = 30, + kDecimal128Value = 31, VALUE_DATA_NOT_SET = 0, }; @@ -766,6 +787,7 @@ class Value final : kDurationMillisecondValueFieldNumber = 28, kDurationMicrosecondValueFieldNumber = 29, kDurationNanosecondValueFieldNumber = 30, + kDecimal128ValueFieldNumber = 31, }; // int32 i8_value = 1; bool has_i8_value() const; @@ -1172,6 +1194,24 @@ class Value final : void _internal_set_duration_nanosecond_value(int64_t value); public: + // .greptime.v1.Decimal128 decimal128_value = 31; + bool has_decimal128_value() const; + private: + bool _internal_has_decimal128_value() const; + public: + void clear_decimal128_value(); + const ::greptime::v1::Decimal128& decimal128_value() const; + PROTOBUF_NODISCARD ::greptime::v1::Decimal128* release_decimal128_value(); + ::greptime::v1::Decimal128* mutable_decimal128_value(); + void set_allocated_decimal128_value(::greptime::v1::Decimal128* decimal128_value); + private: + const ::greptime::v1::Decimal128& _internal_decimal128_value() const; + ::greptime::v1::Decimal128* _internal_mutable_decimal128_value(); + public: + void unsafe_arena_set_allocated_decimal128_value( + ::greptime::v1::Decimal128* decimal128_value); + ::greptime::v1::Decimal128* unsafe_arena_release_decimal128_value(); + void clear_value_data(); ValueDataCase value_data_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.Value) @@ -1207,6 +1247,7 @@ class Value final : void set_has_duration_millisecond_value(); void set_has_duration_microsecond_value(); void set_has_duration_nanosecond_value(); + void set_has_decimal128_value(); inline bool has_value_data() const; inline void clear_has_value_data(); @@ -1248,6 +1289,7 @@ class Value final : int64_t duration_millisecond_value_; int64_t duration_microsecond_value_; int64_t duration_nanosecond_value_; + ::greptime::v1::Decimal128* decimal128_value_; } value_data_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -1441,6 +1483,91 @@ inline void ColumnSchema::set_semantic_type(::greptime::v1::SemanticType value) // @@protoc_insertion_point(field_set:greptime.v1.ColumnSchema.semantic_type) } +// .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; +inline bool ColumnSchema::_internal_has_datatype_extension() const { + return this != internal_default_instance() && _impl_.datatype_extension_ != nullptr; +} +inline bool ColumnSchema::has_datatype_extension() const { + return _internal_has_datatype_extension(); +} +inline const ::greptime::v1::ColumnDataTypeExtension& ColumnSchema::_internal_datatype_extension() const { + const ::greptime::v1::ColumnDataTypeExtension* p = _impl_.datatype_extension_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_ColumnDataTypeExtension_default_instance_); +} +inline const ::greptime::v1::ColumnDataTypeExtension& ColumnSchema::datatype_extension() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnSchema.datatype_extension) + return _internal_datatype_extension(); +} +inline void ColumnSchema::unsafe_arena_set_allocated_datatype_extension( + ::greptime::v1::ColumnDataTypeExtension* datatype_extension) { + if (GetArenaForAllocation() == nullptr) { + delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_); + } + _impl_.datatype_extension_ = datatype_extension; + if (datatype_extension) { + + } else { + + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ColumnSchema.datatype_extension) +} +inline ::greptime::v1::ColumnDataTypeExtension* ColumnSchema::release_datatype_extension() { + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_; + _impl_.datatype_extension_ = 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::ColumnDataTypeExtension* ColumnSchema::unsafe_arena_release_datatype_extension() { + // @@protoc_insertion_point(field_release:greptime.v1.ColumnSchema.datatype_extension) + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_; + _impl_.datatype_extension_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnDataTypeExtension* ColumnSchema::_internal_mutable_datatype_extension() { + + if (_impl_.datatype_extension_ == nullptr) { + auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation()); + _impl_.datatype_extension_ = p; + } + return _impl_.datatype_extension_; +} +inline ::greptime::v1::ColumnDataTypeExtension* ColumnSchema::mutable_datatype_extension() { + ::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_datatype_extension(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ColumnSchema.datatype_extension) + return _msg; +} +inline void ColumnSchema::set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_); + } + if (datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(datatype_extension)); + if (message_arena != submessage_arena) { + datatype_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, datatype_extension, submessage_arena); + } + + } else { + + } + _impl_.datatype_extension_ = datatype_extension; + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnSchema.datatype_extension) +} + // ------------------------------------------------------------------- // Row @@ -2735,6 +2862,72 @@ inline void Value::set_duration_nanosecond_value(int64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.Value.duration_nanosecond_value) } +// .greptime.v1.Decimal128 decimal128_value = 31; +inline bool Value::_internal_has_decimal128_value() const { + return value_data_case() == kDecimal128Value; +} +inline bool Value::has_decimal128_value() const { + return _internal_has_decimal128_value(); +} +inline void Value::set_has_decimal128_value() { + _impl_._oneof_case_[0] = kDecimal128Value; +} +inline ::greptime::v1::Decimal128* Value::release_decimal128_value() { + // @@protoc_insertion_point(field_release:greptime.v1.Value.decimal128_value) + if (_internal_has_decimal128_value()) { + clear_has_value_data(); + ::greptime::v1::Decimal128* temp = _impl_.value_data_.decimal128_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.value_data_.decimal128_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::Decimal128& Value::_internal_decimal128_value() const { + return _internal_has_decimal128_value() + ? *_impl_.value_data_.decimal128_value_ + : reinterpret_cast< ::greptime::v1::Decimal128&>(::greptime::v1::_Decimal128_default_instance_); +} +inline const ::greptime::v1::Decimal128& Value::decimal128_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.decimal128_value) + return _internal_decimal128_value(); +} +inline ::greptime::v1::Decimal128* Value::unsafe_arena_release_decimal128_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.Value.decimal128_value) + if (_internal_has_decimal128_value()) { + clear_has_value_data(); + ::greptime::v1::Decimal128* temp = _impl_.value_data_.decimal128_value_; + _impl_.value_data_.decimal128_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_decimal128_value(::greptime::v1::Decimal128* decimal128_value) { + clear_value_data(); + if (decimal128_value) { + set_has_decimal128_value(); + _impl_.value_data_.decimal128_value_ = decimal128_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.decimal128_value) +} +inline ::greptime::v1::Decimal128* Value::_internal_mutable_decimal128_value() { + if (!_internal_has_decimal128_value()) { + clear_value_data(); + set_has_decimal128_value(); + _impl_.value_data_.decimal128_value_ = CreateMaybeMessage< ::greptime::v1::Decimal128 >(GetArenaForAllocation()); + } + return _impl_.value_data_.decimal128_value_; +} +inline ::greptime::v1::Decimal128* Value::mutable_decimal128_value() { + ::greptime::v1::Decimal128* _msg = _internal_mutable_decimal128_value(); + // @@protoc_insertion_point(field_mutable:greptime.v1.Value.decimal128_value) + return _msg; +} + inline bool Value::has_value_data() const { return value_data_case() != VALUE_DATA_NOT_SET; } diff --git a/go/greptime/v1/column.pb.go b/go/greptime/v1/column.pb.go index 617cd767..3d66354f 100644 --- a/go/greptime/v1/column.pb.go +++ b/go/greptime/v1/column.pb.go @@ -58,6 +58,8 @@ type Column struct { NullMask []byte `protobuf:"bytes,4,opt,name=null_mask,json=nullMask,proto3" json:"null_mask,omitempty"` // Helpful in creating vector from column. 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"` } func (x *Column) Reset() { @@ -127,6 +129,13 @@ func (x *Column) GetDatatype() ColumnDataType { return ColumnDataType_BOOLEAN } +func (x *Column) GetDatatypeExtension() *ColumnDataTypeExtension { + if x != nil { + return x.DatatypeExtension + } + return nil +} + type Column_Values struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -162,6 +171,7 @@ type Column_Values struct { DurationMillisecondValues []int64 `protobuf:"varint,28,rep,packed,name=duration_millisecond_values,json=durationMillisecondValues,proto3" json:"duration_millisecond_values,omitempty"` DurationMicrosecondValues []int64 `protobuf:"varint,29,rep,packed,name=duration_microsecond_values,json=durationMicrosecondValues,proto3" json:"duration_microsecond_values,omitempty"` DurationNanosecondValues []int64 `protobuf:"varint,30,rep,packed,name=duration_nanosecond_values,json=durationNanosecondValues,proto3" json:"duration_nanosecond_values,omitempty"` + Decimal128Values []*Decimal128 `protobuf:"bytes,31,rep,name=decimal128_values,json=decimal128Values,proto3" json:"decimal128_values,omitempty"` } func (x *Column_Values) Reset() { @@ -406,6 +416,13 @@ func (x *Column_Values) GetDurationNanosecondValues() []int64 { return nil } +func (x *Column_Values) GetDecimal128Values() []*Decimal128 { + if x != nil { + return x.Decimal128Values + } + return nil +} + var File_greptime_v1_column_proto protoreflect.FileDescriptor var file_greptime_v1_column_proto_rawDesc = []byte{ @@ -413,7 +430,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, 0x86, 0x0d, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, + 0x6f, 0x22, 0xa1, 0x0e, 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, @@ -428,102 +445,111 @@ var file_greptime_v1_column_proto_rawDesc = []byte{ 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, - 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x90, 0x0b, 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, 0x34, 0x0a, 0x16, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x1b, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1c, 0x20, 0x03, 0x28, - 0x03, 0x52, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6c, 0x6c, 0x69, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1d, 0x20, 0x03, 0x28, - 0x03, 0x52, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x63, 0x72, 0x6f, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x1a, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1e, 0x20, 0x03, 0x28, 0x03, - 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 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, + 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 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, 0x1a, 0xd6, 0x0b, 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, 0x34, 0x0a, 0x16, 0x64, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, + 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x1c, 0x20, 0x03, 0x28, 0x03, 0x52, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, + 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x1d, 0x20, 0x03, 0x28, 0x03, 0x52, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, + 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, + 0x1e, 0x20, 0x03, 0x28, 0x03, 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, + 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 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 ( @@ -540,22 +566,26 @@ func file_greptime_v1_column_proto_rawDescGZIP() []byte { var file_greptime_v1_column_proto_msgTypes = make([]protoimpl.MessageInfo, 2) var file_greptime_v1_column_proto_goTypes = []interface{}{ - (*Column)(nil), // 0: greptime.v1.Column - (*Column_Values)(nil), // 1: greptime.v1.Column.Values - (SemanticType)(0), // 2: greptime.v1.SemanticType - (ColumnDataType)(0), // 3: greptime.v1.ColumnDataType - (*IntervalMonthDayNano)(nil), // 4: greptime.v1.IntervalMonthDayNano + (*Column)(nil), // 0: greptime.v1.Column + (*Column_Values)(nil), // 1: greptime.v1.Column.Values + (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 } 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.Values.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name + 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 } 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 fd0fda68..7a222522 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -116,6 +116,7 @@ const ( ColumnDataType_DURATION_MILLISECOND ColumnDataType = 27 ColumnDataType_DURATION_MICROSECOND ColumnDataType = 28 ColumnDataType_DURATION_NANOSECOND ColumnDataType = 29 + ColumnDataType_DECIMAL_128 ColumnDataType = 30 ) // Enum value maps for ColumnDataType. @@ -151,6 +152,7 @@ var ( 27: "DURATION_MILLISECOND", 28: "DURATION_MICROSECOND", 29: "DURATION_NANOSECOND", + 30: "DECIMAL_128", } ColumnDataType_value = map[string]int32{ "BOOLEAN": 0, @@ -183,6 +185,7 @@ var ( "DURATION_MILLISECOND": 27, "DURATION_MICROSECOND": 28, "DURATION_NANOSECOND": 29, + "DECIMAL_128": 30, } ) @@ -741,6 +744,202 @@ func (x *IntervalMonthDayNano) GetNanoseconds() int64 { return 0 } +// (hi: high 64 bits, lo: low 64 bits, precision, scale) are used to +// construct the decimal128 value. +type Decimal128 struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Hi int64 `protobuf:"varint,1,opt,name=hi,proto3" json:"hi,omitempty"` + Lo int64 `protobuf:"varint,2,opt,name=lo,proto3" json:"lo,omitempty"` + Precision int32 `protobuf:"varint,3,opt,name=precision,proto3" json:"precision,omitempty"` + Scale int32 `protobuf:"varint,4,opt,name=scale,proto3" json:"scale,omitempty"` +} + +func (x *Decimal128) Reset() { + *x = Decimal128{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Decimal128) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Decimal128) ProtoMessage() {} + +func (x *Decimal128) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[9] + 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 Decimal128.ProtoReflect.Descriptor instead. +func (*Decimal128) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{9} +} + +func (x *Decimal128) GetHi() int64 { + if x != nil { + return x.Hi + } + return 0 +} + +func (x *Decimal128) GetLo() int64 { + if x != nil { + return x.Lo + } + return 0 +} + +func (x *Decimal128) GetPrecision() int32 { + if x != nil { + return x.Precision + } + return 0 +} + +func (x *Decimal128) GetScale() int32 { + if x != nil { + return x.Scale + } + return 0 +} + +// Type extension for some complex types +type ColumnDataTypeExtension struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Ext: + // + // *ColumnDataTypeExtension_DecimalType + Ext isColumnDataTypeExtension_Ext `protobuf_oneof:"ext"` +} + +func (x *ColumnDataTypeExtension) Reset() { + *x = ColumnDataTypeExtension{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ColumnDataTypeExtension) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ColumnDataTypeExtension) ProtoMessage() {} + +func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[10] + 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 ColumnDataTypeExtension.ProtoReflect.Descriptor instead. +func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{10} +} + +func (m *ColumnDataTypeExtension) GetExt() isColumnDataTypeExtension_Ext { + if m != nil { + return m.Ext + } + return nil +} + +func (x *ColumnDataTypeExtension) GetDecimalType() *DecimalTypeExtension { + if x, ok := x.GetExt().(*ColumnDataTypeExtension_DecimalType); ok { + return x.DecimalType + } + return nil +} + +type isColumnDataTypeExtension_Ext interface { + isColumnDataTypeExtension_Ext() +} + +type ColumnDataTypeExtension_DecimalType struct { + DecimalType *DecimalTypeExtension `protobuf:"bytes,1,opt,name=decimal_type,json=decimalType,proto3,oneof"` +} + +func (*ColumnDataTypeExtension_DecimalType) isColumnDataTypeExtension_Ext() {} + +type DecimalTypeExtension struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Precision int32 `protobuf:"varint,1,opt,name=precision,proto3" json:"precision,omitempty"` + Scale int32 `protobuf:"varint,2,opt,name=scale,proto3" json:"scale,omitempty"` +} + +func (x *DecimalTypeExtension) Reset() { + *x = DecimalTypeExtension{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DecimalTypeExtension) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DecimalTypeExtension) ProtoMessage() {} + +func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[11] + 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 DecimalTypeExtension.ProtoReflect.Descriptor instead. +func (*DecimalTypeExtension) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{11} +} + +func (x *DecimalTypeExtension) GetPrecision() int32 { + if x != nil { + return x.Precision + } + return 0 +} + +func (x *DecimalTypeExtension) GetScale() int32 { + if x != nil { + return x.Scale + } + return 0 +} + var File_greptime_v1_common_proto protoreflect.FileDescriptor var file_greptime_v1_common_proto_rawDesc = []byte{ @@ -801,50 +1000,69 @@ var file_greptime_v1_common_proto_rawDesc = []byte{ 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x73, 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, 0xa8, 0x04, 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, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x43, - 0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1b, 0x12, - 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x43, 0x52, - 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x55, 0x52, - 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, - 0x10, 0x1d, 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, + 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x60, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, + 0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, + 0x68, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, + 0x6c, 0x6f, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, + 0x03, 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, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22, 0x68, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x46, 0x0a, 0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, + 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, + 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x42, 0x05, 0x0a, 0x03, 0x65, 0x78, 0x74, + 0x22, 0x4a, 0x0a, 0x14, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, + 0x78, 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, + 0xb9, 0x04, 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, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52, 0x41, + 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18, 0x0a, + 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, + 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, + 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, + 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x41, + 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1d, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x45, + 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x5f, 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 ( @@ -860,33 +1078,37 @@ 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, 10) +var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 13) var file_greptime_v1_common_proto_goTypes = []interface{}{ - (SemanticType)(0), // 0: greptime.v1.SemanticType - (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType - (*RequestHeader)(nil), // 2: greptime.v1.RequestHeader - (*ResponseHeader)(nil), // 3: greptime.v1.ResponseHeader - (*Status)(nil), // 4: greptime.v1.Status - (*AuthHeader)(nil), // 5: greptime.v1.AuthHeader - (*Basic)(nil), // 6: greptime.v1.Basic - (*Token)(nil), // 7: greptime.v1.Token - (*AffectedRows)(nil), // 8: greptime.v1.AffectedRows - (*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata - (*IntervalMonthDayNano)(nil), // 10: greptime.v1.IntervalMonthDayNano - nil, // 11: greptime.v1.RequestHeader.TracingContextEntry + (SemanticType)(0), // 0: greptime.v1.SemanticType + (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType + (*RequestHeader)(nil), // 2: greptime.v1.RequestHeader + (*ResponseHeader)(nil), // 3: greptime.v1.ResponseHeader + (*Status)(nil), // 4: greptime.v1.Status + (*AuthHeader)(nil), // 5: greptime.v1.AuthHeader + (*Basic)(nil), // 6: greptime.v1.Basic + (*Token)(nil), // 7: greptime.v1.Token + (*AffectedRows)(nil), // 8: greptime.v1.AffectedRows + (*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata + (*IntervalMonthDayNano)(nil), // 10: greptime.v1.IntervalMonthDayNano + (*Decimal128)(nil), // 11: greptime.v1.Decimal128 + (*ColumnDataTypeExtension)(nil), // 12: greptime.v1.ColumnDataTypeExtension + (*DecimalTypeExtension)(nil), // 13: greptime.v1.DecimalTypeExtension + nil, // 14: greptime.v1.RequestHeader.TracingContextEntry } var file_greptime_v1_common_proto_depIdxs = []int32{ 5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader - 11, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry + 14, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry 4, // 2: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status 6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic 7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token 8, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows - 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 + 13, // 6: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension + 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_common_proto_init() } @@ -1003,18 +1225,57 @@ func file_greptime_v1_common_proto_init() { return nil } } + file_greptime_v1_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Decimal128); 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[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColumnDataTypeExtension); 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[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DecimalTypeExtension); 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[3].OneofWrappers = []interface{}{ (*AuthHeader_Basic)(nil), (*AuthHeader_Token)(nil), } + file_greptime_v1_common_proto_msgTypes[10].OneofWrappers = []interface{}{ + (*ColumnDataTypeExtension_DecimalType)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_common_proto_rawDesc, NumEnums: 2, - NumMessages: 10, + NumMessages: 13, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index f2db12a2..0fcb4908 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -959,6 +959,8 @@ type ColumnDef struct { DefaultConstraint []byte `protobuf:"bytes,4,opt,name=default_constraint,json=defaultConstraint,proto3" json:"default_constraint,omitempty"` SemanticType SemanticType `protobuf:"varint,5,opt,name=semantic_type,json=semanticType,proto3,enum=greptime.v1.SemanticType" json:"semantic_type,omitempty"` 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"` } func (x *ColumnDef) Reset() { @@ -1035,6 +1037,13 @@ func (x *ColumnDef) GetComment() string { return "" } +func (x *ColumnDef) GetDatatypeExtension() *ColumnDataTypeExtension { + if x != nil { + return x.DatatypeExtension + } + return nil +} + type AddColumnLocation struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1231,7 +1240,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x83, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, @@ -1247,24 +1256,30 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 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, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, + 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, + 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 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 ( @@ -1301,6 +1316,7 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ nil, // 16: greptime.v1.CreateDatabaseExpr.OptionsEntry (ColumnDataType)(0), // 17: greptime.v1.ColumnDataType (SemanticType)(0), // 18: greptime.v1.SemanticType + (*ColumnDataTypeExtension)(nil), // 19: greptime.v1.ColumnDataTypeExtension } var file_greptime_v1_ddl_proto_depIdxs = []int32{ 5, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr @@ -1323,12 +1339,13 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 14, // 17: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation 17, // 18: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType 18, // 19: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 0, // 20: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 21, // [21:21] is the sub-list for method output_type - 21, // [21:21] is the sub-list for method input_type - 21, // [21:21] is the sub-list for extension type_name - 21, // [21:21] is the sub-list for extension extendee - 0, // [0:21] is the sub-list for field type_name + 19, // 20: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 0, // 21: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 22, // [22:22] is the sub-list for method output_type + 22, // [22:22] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] 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 feec1275..17a8efa5 100644 --- a/go/greptime/v1/row.pb.go +++ b/go/greptime/v1/row.pb.go @@ -97,6 +97,8 @@ type ColumnSchema struct { ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"` Datatype ColumnDataType `protobuf:"varint,2,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"` 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"` } func (x *ColumnSchema) Reset() { @@ -152,6 +154,13 @@ func (x *ColumnSchema) GetSemanticType() SemanticType { return SemanticType_TAG } +func (x *ColumnSchema) GetDatatypeExtension() *ColumnDataTypeExtension { + if x != nil { + return x.DatatypeExtension + } + return nil +} + type Row struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -236,6 +245,7 @@ type Value struct { // *Value_DurationMillisecondValue // *Value_DurationMicrosecondValue // *Value_DurationNanosecondValue + // *Value_Decimal128Value ValueData isValue_ValueData `protobuf_oneof:"value_data"` } @@ -488,6 +498,13 @@ func (x *Value) GetDurationNanosecondValue() int64 { return 0 } +func (x *Value) GetDecimal128Value() *Decimal128 { + if x, ok := x.GetValueData().(*Value_Decimal128Value); ok { + return x.Decimal128Value + } + return nil +} + type isValue_ValueData interface { isValue_ValueData() } @@ -612,6 +629,10 @@ type Value_DurationNanosecondValue struct { DurationNanosecondValue int64 `protobuf:"varint,30,opt,name=duration_nanosecond_value,json=durationNanosecondValue,proto3,oneof"` } +type Value_Decimal128Value struct { + Decimal128Value *Decimal128 `protobuf:"bytes,31,opt,name=decimal128_value,json=decimal128Value,proto3,oneof"` +} + func (*Value_I8Value) isValue_ValueData() {} func (*Value_I16Value) isValue_ValueData() {} @@ -672,6 +693,8 @@ func (*Value_DurationMicrosecondValue) isValue_ValueData() {} func (*Value_DurationNanosecondValue) isValue_ValueData() {} +func (*Value_Decimal128Value) isValue_ValueData() {} + var File_greptime_v1_row_proto protoreflect.FileDescriptor var file_greptime_v1_row_proto_rawDesc = []byte{ @@ -685,7 +708,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, - 0xa8, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0xfd, 0x01, 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, @@ -695,106 +718,116 @@ var file_greptime_v1_row_proto_rawDesc = []byte{ 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, - 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 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, 0xa3, 0x0b, - 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, 0x3d, - 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, 0x01, - 0x28, 0x05, 0x48, 0x00, 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, 0x39, 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, 0x01, 0x28, 0x03, 0x48, - 0x00, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, - 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x67, 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, 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, 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, 0x34, 0x0a, 0x15, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x64, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x64, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x17, 0x64, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 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, + 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, + 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 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, 0xe9, 0x0b, 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, 0x3d, 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, 0x01, 0x28, 0x05, 0x48, 0x00, 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, 0x39, 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, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, + 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x67, 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, 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, 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, 0x34, 0x0a, 0x15, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x1b, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6c, 0x6c, + 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, + 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x03, + 0x48, 0x00, 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x63, 0x72, + 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x19, + 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x03, 0x48, + 0x00, 0x52, 0x17, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 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 ( @@ -811,26 +844,30 @@ func file_greptime_v1_row_proto_rawDescGZIP() []byte { var file_greptime_v1_row_proto_msgTypes = make([]protoimpl.MessageInfo, 4) var file_greptime_v1_row_proto_goTypes = []interface{}{ - (*Rows)(nil), // 0: greptime.v1.Rows - (*ColumnSchema)(nil), // 1: greptime.v1.ColumnSchema - (*Row)(nil), // 2: greptime.v1.Row - (*Value)(nil), // 3: greptime.v1.Value - (ColumnDataType)(0), // 4: greptime.v1.ColumnDataType - (SemanticType)(0), // 5: greptime.v1.SemanticType - (*IntervalMonthDayNano)(nil), // 6: greptime.v1.IntervalMonthDayNano + (*Rows)(nil), // 0: greptime.v1.Rows + (*ColumnSchema)(nil), // 1: greptime.v1.ColumnSchema + (*Row)(nil), // 2: greptime.v1.Row + (*Value)(nil), // 3: greptime.v1.Value + (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 } var file_greptime_v1_row_proto_depIdxs = []int32{ 1, // 0: greptime.v1.Rows.schema:type_name -> greptime.v1.ColumnSchema 2, // 1: greptime.v1.Rows.rows:type_name -> greptime.v1.Row 4, // 2: greptime.v1.ColumnSchema.datatype:type_name -> greptime.v1.ColumnDataType 5, // 3: greptime.v1.ColumnSchema.semantic_type:type_name -> greptime.v1.SemanticType - 3, // 4: greptime.v1.Row.values:type_name -> greptime.v1.Value - 6, // 5: greptime.v1.Value.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano - 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 + 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_values: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 } func init() { file_greptime_v1_row_proto_init() } @@ -920,6 +957,7 @@ func file_greptime_v1_row_proto_init() { (*Value_DurationMillisecondValue)(nil), (*Value_DurationMicrosecondValue)(nil), (*Value_DurationNanosecondValue)(nil), + (*Value_Decimal128Value)(nil), } type x struct{} out := protoimpl.TypeBuilder{ diff --git a/java/src/main/java/io/greptime/v1/Columns.java b/java/src/main/java/io/greptime/v1/Columns.java index 6a13d93a..d52dbc4f 100644 --- a/java/src/main/java/io/greptime/v1/Columns.java +++ b/java/src/main/java/io/greptime/v1/Columns.java @@ -119,6 +119,33 @@ public interface ColumnOrBuilder extends * @return The datatype. */ io.greptime.v1.Common.ColumnDataType getDatatype(); + + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + * @return Whether the datatypeExtension field is set. + */ + boolean hasDatatypeExtension(); + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + * @return The datatypeExtension. + */ + io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension(); + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder(); } /** * Protobuf type {@code greptime.v1.Column} @@ -205,6 +232,19 @@ private Column( datatype_ = rawValue; break; } + case 50: { + io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null; + if (datatypeExtension_ != null) { + subBuilder = datatypeExtension_.toBuilder(); + } + datatypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datatypeExtension_); + datatypeExtension_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -767,6 +807,30 @@ io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValue * @return The durationNanosecondValues at the given index. */ long getDurationNanosecondValues(int index); + + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + java.util.List + getDecimal128ValuesList(); + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + io.greptime.v1.Common.Decimal128 getDecimal128Values(int index); + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + int getDecimal128ValuesCount(); + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + java.util.List + getDecimal128ValuesOrBuilderList(); + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValuesOrBuilder( + int index); } /** * Protobuf type {@code greptime.v1.Column.Values} @@ -811,6 +875,7 @@ private Values() { durationMillisecondValues_ = emptyLongList(); durationMicrosecondValues_ = emptyLongList(); durationNanosecondValues_ = emptyLongList(); + decimal128Values_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1437,6 +1502,15 @@ private Values( input.popLimit(limit); break; } + case 250: { + if (!((mutable_bitField0_ & 0x40000000) != 0)) { + decimal128Values_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x40000000; + } + decimal128Values_.add( + input.readMessage(io.greptime.v1.Common.Decimal128.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -1544,6 +1618,9 @@ private Values( if (((mutable_bitField0_ & 0x20000000) != 0)) { durationNanosecondValues_.makeImmutable(); // C } + if (((mutable_bitField0_ & 0x40000000) != 0)) { + decimal128Values_ = java.util.Collections.unmodifiableList(decimal128Values_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -2419,6 +2496,46 @@ public long getDurationNanosecondValues(int index) { } private int durationNanosecondValuesMemoizedSerializedSize = -1; + public static final int DECIMAL128_VALUES_FIELD_NUMBER = 31; + private java.util.List decimal128Values_; + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + @java.lang.Override + public java.util.List getDecimal128ValuesList() { + return decimal128Values_; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + @java.lang.Override + public java.util.List + getDecimal128ValuesOrBuilderList() { + return decimal128Values_; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + @java.lang.Override + public int getDecimal128ValuesCount() { + return decimal128Values_.size(); + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + @java.lang.Override + public io.greptime.v1.Common.Decimal128 getDecimal128Values(int index) { + return decimal128Values_.get(index); + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + @java.lang.Override + public io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValuesOrBuilder( + int index) { + return decimal128Values_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2632,6 +2749,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < durationNanosecondValues_.size(); i++) { output.writeInt64NoTag(durationNanosecondValues_.getLong(i)); } + for (int i = 0; i < decimal128Values_.size(); i++) { + output.writeMessage(31, decimal128Values_.get(i)); + } unknownFields.writeTo(output); } @@ -3031,6 +3151,10 @@ public int getSerializedSize() { } durationNanosecondValuesMemoizedSerializedSize = dataSize; } + for (int i = 0; i < decimal128Values_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, decimal128Values_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -3106,6 +3230,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getDurationMicrosecondValuesList())) return false; if (!getDurationNanosecondValuesList() .equals(other.getDurationNanosecondValuesList())) return false; + if (!getDecimal128ValuesList() + .equals(other.getDecimal128ValuesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3237,6 +3363,10 @@ public int hashCode() { hash = (37 * hash) + DURATION_NANOSECOND_VALUES_FIELD_NUMBER; hash = (53 * hash) + getDurationNanosecondValuesList().hashCode(); } + if (getDecimal128ValuesCount() > 0) { + hash = (37 * hash) + DECIMAL128_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getDecimal128ValuesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3366,6 +3496,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getIntervalMonthDayNanoValuesFieldBuilder(); + getDecimal128ValuesFieldBuilder(); } } @java.lang.Override @@ -3435,6 +3566,12 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x10000000); durationNanosecondValues_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x20000000); + if (decimal128ValuesBuilder_ == null) { + decimal128Values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x40000000); + } else { + decimal128ValuesBuilder_.clear(); + } return this; } @@ -3616,6 +3753,15 @@ public io.greptime.v1.Columns.Column.Values buildPartial() { bitField0_ = (bitField0_ & ~0x20000000); } result.durationNanosecondValues_ = durationNanosecondValues_; + if (decimal128ValuesBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0)) { + decimal128Values_ = java.util.Collections.unmodifiableList(decimal128Values_); + bitField0_ = (bitField0_ & ~0x40000000); + } + result.decimal128Values_ = decimal128Values_; + } else { + result.decimal128Values_ = decimal128ValuesBuilder_.build(); + } onBuilt(); return result; } @@ -3980,6 +4126,32 @@ public Builder mergeFrom(io.greptime.v1.Columns.Column.Values other) { } onChanged(); } + if (decimal128ValuesBuilder_ == null) { + if (!other.decimal128Values_.isEmpty()) { + if (decimal128Values_.isEmpty()) { + decimal128Values_ = other.decimal128Values_; + bitField0_ = (bitField0_ & ~0x40000000); + } else { + ensureDecimal128ValuesIsMutable(); + decimal128Values_.addAll(other.decimal128Values_); + } + onChanged(); + } + } else { + if (!other.decimal128Values_.isEmpty()) { + if (decimal128ValuesBuilder_.isEmpty()) { + decimal128ValuesBuilder_.dispose(); + decimal128ValuesBuilder_ = null; + decimal128Values_ = other.decimal128Values_; + bitField0_ = (bitField0_ & ~0x40000000); + decimal128ValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDecimal128ValuesFieldBuilder() : null; + } else { + decimal128ValuesBuilder_.addAllMessages(other.decimal128Values_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -6577,6 +6749,246 @@ public Builder clearDurationNanosecondValues() { onChanged(); return this; } + + private java.util.List decimal128Values_ = + java.util.Collections.emptyList(); + private void ensureDecimal128ValuesIsMutable() { + if (!((bitField0_ & 0x40000000) != 0)) { + decimal128Values_ = new java.util.ArrayList(decimal128Values_); + bitField0_ |= 0x40000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder> decimal128ValuesBuilder_; + + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public java.util.List getDecimal128ValuesList() { + if (decimal128ValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(decimal128Values_); + } else { + return decimal128ValuesBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public int getDecimal128ValuesCount() { + if (decimal128ValuesBuilder_ == null) { + return decimal128Values_.size(); + } else { + return decimal128ValuesBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public io.greptime.v1.Common.Decimal128 getDecimal128Values(int index) { + if (decimal128ValuesBuilder_ == null) { + return decimal128Values_.get(index); + } else { + return decimal128ValuesBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder setDecimal128Values( + int index, io.greptime.v1.Common.Decimal128 value) { + if (decimal128ValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecimal128ValuesIsMutable(); + decimal128Values_.set(index, value); + onChanged(); + } else { + decimal128ValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder setDecimal128Values( + int index, io.greptime.v1.Common.Decimal128.Builder builderForValue) { + if (decimal128ValuesBuilder_ == null) { + ensureDecimal128ValuesIsMutable(); + decimal128Values_.set(index, builderForValue.build()); + onChanged(); + } else { + decimal128ValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder addDecimal128Values(io.greptime.v1.Common.Decimal128 value) { + if (decimal128ValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecimal128ValuesIsMutable(); + decimal128Values_.add(value); + onChanged(); + } else { + decimal128ValuesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder addDecimal128Values( + int index, io.greptime.v1.Common.Decimal128 value) { + if (decimal128ValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDecimal128ValuesIsMutable(); + decimal128Values_.add(index, value); + onChanged(); + } else { + decimal128ValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder addDecimal128Values( + io.greptime.v1.Common.Decimal128.Builder builderForValue) { + if (decimal128ValuesBuilder_ == null) { + ensureDecimal128ValuesIsMutable(); + decimal128Values_.add(builderForValue.build()); + onChanged(); + } else { + decimal128ValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder addDecimal128Values( + int index, io.greptime.v1.Common.Decimal128.Builder builderForValue) { + if (decimal128ValuesBuilder_ == null) { + ensureDecimal128ValuesIsMutable(); + decimal128Values_.add(index, builderForValue.build()); + onChanged(); + } else { + decimal128ValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder addAllDecimal128Values( + java.lang.Iterable values) { + if (decimal128ValuesBuilder_ == null) { + ensureDecimal128ValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, decimal128Values_); + onChanged(); + } else { + decimal128ValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder clearDecimal128Values() { + if (decimal128ValuesBuilder_ == null) { + decimal128Values_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x40000000); + onChanged(); + } else { + decimal128ValuesBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public Builder removeDecimal128Values(int index) { + if (decimal128ValuesBuilder_ == null) { + ensureDecimal128ValuesIsMutable(); + decimal128Values_.remove(index); + onChanged(); + } else { + decimal128ValuesBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public io.greptime.v1.Common.Decimal128.Builder getDecimal128ValuesBuilder( + int index) { + return getDecimal128ValuesFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValuesOrBuilder( + int index) { + if (decimal128ValuesBuilder_ == null) { + return decimal128Values_.get(index); } else { + return decimal128ValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public java.util.List + getDecimal128ValuesOrBuilderList() { + if (decimal128ValuesBuilder_ != null) { + return decimal128ValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(decimal128Values_); + } + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public io.greptime.v1.Common.Decimal128.Builder addDecimal128ValuesBuilder() { + return getDecimal128ValuesFieldBuilder().addBuilder( + io.greptime.v1.Common.Decimal128.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public io.greptime.v1.Common.Decimal128.Builder addDecimal128ValuesBuilder( + int index) { + return getDecimal128ValuesFieldBuilder().addBuilder( + index, io.greptime.v1.Common.Decimal128.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Decimal128 decimal128_values = 31; + */ + public java.util.List + getDecimal128ValuesBuilderList() { + return getDecimal128ValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder> + getDecimal128ValuesFieldBuilder() { + if (decimal128ValuesBuilder_ == null) { + decimal128ValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder>( + decimal128Values_, + ((bitField0_ & 0x40000000) != 0), + getParentForChildren(), + isClean()); + decimal128Values_ = null; + } + return decimal128ValuesBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6790,6 +7202,44 @@ public com.google.protobuf.ByteString getNullMask() { return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; } + public static final int DATATYPE_EXTENSION_FIELD_NUMBER = 6; + private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_; + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + * @return Whether the datatypeExtension field is set. + */ + @java.lang.Override + public boolean hasDatatypeExtension() { + return datatypeExtension_ != null; + } + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + * @return The datatypeExtension. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() { + return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + return getDatatypeExtension(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -6819,6 +7269,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { output.writeEnum(5, datatype_); } + if (datatypeExtension_ != null) { + output.writeMessage(6, getDatatypeExtension()); + } unknownFields.writeTo(output); } @@ -6847,6 +7300,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, datatype_); } + if (datatypeExtension_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getDatatypeExtension()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -6873,6 +7330,11 @@ public boolean equals(final java.lang.Object obj) { if (!getNullMask() .equals(other.getNullMask())) return false; if (datatype_ != other.datatype_) return false; + if (hasDatatypeExtension() != other.hasDatatypeExtension()) return false; + if (hasDatatypeExtension()) { + if (!getDatatypeExtension() + .equals(other.getDatatypeExtension())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -6896,6 +7358,10 @@ public int hashCode() { hash = (53 * hash) + getNullMask().hashCode(); hash = (37 * hash) + DATATYPE_FIELD_NUMBER; hash = (53 * hash) + datatype_; + if (hasDatatypeExtension()) { + hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getDatatypeExtension().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -7043,6 +7509,12 @@ public Builder clear() { datatype_ = 0; + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } return this; } @@ -7078,6 +7550,11 @@ public io.greptime.v1.Columns.Column buildPartial() { } result.nullMask_ = nullMask_; result.datatype_ = datatype_; + if (datatypeExtensionBuilder_ == null) { + result.datatypeExtension_ = datatypeExtension_; + } else { + result.datatypeExtension_ = datatypeExtensionBuilder_.build(); + } onBuilt(); return result; } @@ -7142,6 +7619,9 @@ public Builder mergeFrom(io.greptime.v1.Columns.Column other) { if (other.datatype_ != 0) { setDatatypeValue(other.getDatatypeValue()); } + if (other.hasDatatypeExtension()) { + mergeDatatypeExtension(other.getDatatypeExtension()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -7644,6 +8124,161 @@ public Builder clearDatatype() { onChanged(); return this; } + + private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> datatypeExtensionBuilder_; + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + * @return Whether the datatypeExtension field is set. + */ + public boolean hasDatatypeExtension() { + return datatypeExtensionBuilder_ != null || datatypeExtension_ != null; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + * @return The datatypeExtension. + */ + public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() { + if (datatypeExtensionBuilder_ == null) { + return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } else { + return datatypeExtensionBuilder_.getMessage(); + } + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + public Builder setDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (datatypeExtensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datatypeExtension_ = value; + onChanged(); + } else { + datatypeExtensionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + public Builder setDatatypeExtension( + io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = builderForValue.build(); + onChanged(); + } else { + datatypeExtensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + public Builder mergeDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (datatypeExtensionBuilder_ == null) { + if (datatypeExtension_ != null) { + datatypeExtension_ = + io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(datatypeExtension_).mergeFrom(value).buildPartial(); + } else { + datatypeExtension_ = value; + } + onChanged(); + } else { + datatypeExtensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + public Builder clearDatatypeExtension() { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + onChanged(); + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getDatatypeExtensionBuilder() { + + onChanged(); + return getDatatypeExtensionFieldBuilder().getBuilder(); + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + if (datatypeExtensionBuilder_ != null) { + return datatypeExtensionBuilder_.getMessageOrBuilder(); + } else { + return datatypeExtension_ == null ? + io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> + getDatatypeExtensionFieldBuilder() { + if (datatypeExtensionBuilder_ == null) { + datatypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>( + getDatatypeExtension(), + getParentForChildren(), + isClean()); + datatypeExtension_ = null; + } + return datatypeExtensionBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7717,36 +8352,39 @@ 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\"\256\010\n\006Column\022\023\n\013" + + "\030greptime/v1/common.proto\"\244\t\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\032\356\006\n\006Values\022\021\n\ti8_value" + - "s\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(\005\022\022\n\ni32_value" + - "s\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_value" + - "s\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\017da" + - "tetime_values\030\017 \003(\003\022\037\n\027timestamp_second_" + - "values\030\020 \003(\003\022$\n\034timestamp_millisecond_va" + - "lues\030\021 \003(\003\022$\n\034timestamp_microsecond_valu" + - "es\030\022 \003(\003\022#\n\033timestamp_nanosecond_values\030" + - "\023 \003(\003\022\032\n\022time_second_values\030\024 \003(\003\022\037\n\027tim" + - "e_millisecond_values\030\025 \003(\003\022\037\n\027time_micro" + - "second_values\030\026 \003(\003\022\036\n\026time_nanosecond_v" + - "alues\030\027 \003(\003\022\"\n\032interval_year_month_value" + - "s\030\030 \003(\005\022 \n\030interval_day_time_values\030\031 \003(" + - "\003\022I\n\036interval_month_day_nano_values\030\032 \003(" + - "\0132!.greptime.v1.IntervalMonthDayNano\022\036\n\026" + - "duration_second_values\030\033 \003(\003\022#\n\033duration" + - "_millisecond_values\030\034 \003(\003\022#\n\033duration_mi" + - "crosecond_values\030\035 \003(\003\022\"\n\032duration_nanos" + - "econd_values\030\036 \003(\003BP\n\016io.greptime.v1B\007Co" + - "lumnsZ5github.com/GreptimeTeam/greptime-" + - "proto/go/greptime/v1b\006proto3" + "v1.ColumnDataType\022@\n\022datatype_extension\030" + + "\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens" + + "ion\032\242\007\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\022\036\n\026duration_secon" + + "d_values\030\033 \003(\003\022#\n\033duration_millisecond_v" + + "alues\030\034 \003(\003\022#\n\033duration_microsecond_valu" + + "es\030\035 \003(\003\022\"\n\032duration_nanosecond_values\030\036" + + " \003(\003\0222\n\021decimal128_values\030\037 \003(\0132\027.grepti" + + "me.v1.Decimal128BP\n\016io.greptime.v1B\007Colu" + + "mnsZ5github.com/GreptimeTeam/greptime-pr" + + "oto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -7758,13 +8396,13 @@ 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", }); + new java.lang.String[] { "ColumnName", "SemanticType", "Values", "NullMask", "Datatype", "DatatypeExtension", }); internal_static_greptime_v1_Column_Values_descriptor = internal_static_greptime_v1_Column_descriptor.getNestedTypes().get(0); internal_static_greptime_v1_Column_Values_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Column_Values_descriptor, - new java.lang.String[] { "I8Values", "I16Values", "I32Values", "I64Values", "U8Values", "U16Values", "U32Values", "U64Values", "F32Values", "F64Values", "BoolValues", "BinaryValues", "StringValues", "DateValues", "DatetimeValues", "TimestampSecondValues", "TimestampMillisecondValues", "TimestampMicrosecondValues", "TimestampNanosecondValues", "TimeSecondValues", "TimeMillisecondValues", "TimeMicrosecondValues", "TimeNanosecondValues", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValues", "DurationMillisecondValues", "DurationMicrosecondValues", "DurationNanosecondValues", }); + new java.lang.String[] { "I8Values", "I16Values", "I32Values", "I64Values", "U8Values", "U16Values", "U32Values", "U64Values", "F32Values", "F64Values", "BoolValues", "BinaryValues", "StringValues", "DateValues", "DatetimeValues", "TimestampSecondValues", "TimestampMillisecondValues", "TimestampMicrosecondValues", "TimestampNanosecondValues", "TimeSecondValues", "TimeMillisecondValues", "TimeMicrosecondValues", "TimeNanosecondValues", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValues", "DurationMillisecondValues", "DurationMicrosecondValues", "DurationNanosecondValues", "Decimal128Values", }); io.greptime.v1.Common.getDescriptor(); } diff --git a/java/src/main/java/io/greptime/v1/Common.java b/java/src/main/java/io/greptime/v1/Common.java index 8a588a48..eabc8462 100644 --- a/java/src/main/java/io/greptime/v1/Common.java +++ b/java/src/main/java/io/greptime/v1/Common.java @@ -256,6 +256,10 @@ public enum ColumnDataType * DURATION_NANOSECOND = 29; */ DURATION_NANOSECOND(29), + /** + * DECIMAL_128 = 30; + */ + DECIMAL_128(30), UNRECOGNIZED(-1), ; @@ -379,6 +383,10 @@ public enum ColumnDataType * DURATION_NANOSECOND = 29; */ public static final int DURATION_NANOSECOND_VALUE = 29; + /** + * DECIMAL_128 = 30; + */ + public static final int DECIMAL_128_VALUE = 30; public final int getNumber() { @@ -435,6 +443,7 @@ public static ColumnDataType forNumber(int value) { case 27: return DURATION_MILLISECOND; case 28: return DURATION_MICROSECOND; case 29: return DURATION_NANOSECOND; + case 30: return DECIMAL_128; default: return null; } } @@ -7405,166 +7414,2206 @@ public io.greptime.v1.Common.IntervalMonthDayNano getDefaultInstanceForType() { } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_RequestHeader_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_RequestHeader_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_RequestHeader_TracingContextEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_ResponseHeader_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_ResponseHeader_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_Status_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_Status_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AuthHeader_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AuthHeader_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_Basic_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_Basic_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_Token_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_Token_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AffectedRows_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AffectedRows_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_FlightMetadata_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_FlightMetadata_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_IntervalMonthDayNano_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable; + public interface Decimal128OrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.Decimal128) + com.google.protobuf.MessageOrBuilder { - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; + /** + * int64 hi = 1; + * @return The hi. + */ + long getHi(); + + /** + * int64 lo = 2; + * @return The lo. + */ + long getLo(); + + /** + * int32 precision = 3; + * @return The precision. + */ + int getPrecision(); + + /** + * int32 scale = 4; + * @return The scale. + */ + int getScale(); } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\030greptime/v1/common.proto\022\013greptime.v1\"" + - "\360\001\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc" + - "hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep" + - "time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022G\n\017tr" + - "acing_context\030\005 \003(\0132..greptime.v1.Reques" + - "tHeader.TracingContextEntry\0325\n\023TracingCo" + - "ntextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + - "8\001\"5\n\016ResponseHeader\022#\n\006status\030\001 \001(\0132\023.g" + - "reptime.v1.Status\".\n\006Status\022\023\n\013status_co" + - "de\030\001 \001(\r\022\017\n\007err_msg\030\002 \001(\t\"e\n\nAuthHeader\022" + - "#\n\005basic\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005" + - "token\030\002 \001(\0132\022.greptime.v1.TokenH\000B\r\n\013aut" + - "h_scheme\"+\n\005Basic\022\020\n\010username\030\001 \001(\t\022\020\n\010p" + - "assword\030\002 \001(\t\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n" + - "\014AffectedRows\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMe" + - "tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime" + - ".v1.AffectedRows\"I\n\024IntervalMonthDayNano" + - "\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanose" + - "conds\030\003 \001(\003*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005" + - "FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\250\004\n\016ColumnDataTyp" + - "e\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005I" + - "NT32\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\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n" + - "\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DA" + - "TE\020\r\022\014\n\010DATETIME\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_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022" + - "\024\n\020TIME_MICROSECOND\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\027INTERVAL_MONTH_DAY_NANO\020\031\022" + - "\023\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISE" + - "COND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURA" + - "TION_NANOSECOND\020\035BO\n\016io.greptime.v1B\006Com" + - "monZ5github.com/GreptimeTeam/greptime-pr" + - "oto/go/greptime/v1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_greptime_v1_RequestHeader_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_greptime_v1_RequestHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_RequestHeader_descriptor, - new java.lang.String[] { "Catalog", "Schema", "Authorization", "Dbname", "TracingContext", }); - internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor = - internal_static_greptime_v1_RequestHeader_descriptor.getNestedTypes().get(0); - internal_static_greptime_v1_RequestHeader_TracingContextEntry_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor, - new java.lang.String[] { "Key", "Value", }); - internal_static_greptime_v1_ResponseHeader_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_greptime_v1_ResponseHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_ResponseHeader_descriptor, - new java.lang.String[] { "Status", }); - internal_static_greptime_v1_Status_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_greptime_v1_Status_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_Status_descriptor, - new java.lang.String[] { "StatusCode", "ErrMsg", }); - internal_static_greptime_v1_AuthHeader_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_greptime_v1_AuthHeader_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_AuthHeader_descriptor, - new java.lang.String[] { "Basic", "Token", "AuthScheme", }); - internal_static_greptime_v1_Basic_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_greptime_v1_Basic_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_Basic_descriptor, - new java.lang.String[] { "Username", "Password", }); - internal_static_greptime_v1_Token_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_greptime_v1_Token_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_Token_descriptor, - new java.lang.String[] { "Token", }); - internal_static_greptime_v1_AffectedRows_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_greptime_v1_AffectedRows_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_AffectedRows_descriptor, - new java.lang.String[] { "Value", }); - internal_static_greptime_v1_FlightMetadata_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_greptime_v1_FlightMetadata_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_FlightMetadata_descriptor, - new java.lang.String[] { "AffectedRows", }); - internal_static_greptime_v1_IntervalMonthDayNano_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_IntervalMonthDayNano_descriptor, - new java.lang.String[] { "Months", "Days", "Nanoseconds", }); + /** + *
+   * (hi: high 64 bits, lo: low 64 bits, precision, scale) are used to
+   * construct the decimal128 value.
+   * 
+ * + * Protobuf type {@code greptime.v1.Decimal128} + */ + public static final class Decimal128 extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.Decimal128) + Decimal128OrBuilder { + private static final long serialVersionUID = 0L; + // Use Decimal128.newBuilder() to construct. + private Decimal128(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Decimal128() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Decimal128(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Decimal128( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + hi_ = input.readInt64(); + break; + } + case 16: { + + lo_ = input.readInt64(); + break; + } + case 24: { + + precision_ = input.readInt32(); + break; + } + case 32: { + + scale_ = input.readInt32(); + 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_Decimal128_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_Decimal128_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.Decimal128.class, io.greptime.v1.Common.Decimal128.Builder.class); + } + + public static final int HI_FIELD_NUMBER = 1; + private long hi_; + /** + * int64 hi = 1; + * @return The hi. + */ + @java.lang.Override + public long getHi() { + return hi_; + } + + public static final int LO_FIELD_NUMBER = 2; + private long lo_; + /** + * int64 lo = 2; + * @return The lo. + */ + @java.lang.Override + public long getLo() { + return lo_; + } + + public static final int PRECISION_FIELD_NUMBER = 3; + private int precision_; + /** + * int32 precision = 3; + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + + public static final int SCALE_FIELD_NUMBER = 4; + private int scale_; + /** + * int32 scale = 4; + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (hi_ != 0L) { + output.writeInt64(1, hi_); + } + if (lo_ != 0L) { + output.writeInt64(2, lo_); + } + if (precision_ != 0) { + output.writeInt32(3, precision_); + } + if (scale_ != 0) { + output.writeInt32(4, scale_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (hi_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, hi_); + } + if (lo_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, lo_); + } + if (precision_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, precision_); + } + if (scale_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, scale_); + } + 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.Decimal128)) { + return super.equals(obj); + } + io.greptime.v1.Common.Decimal128 other = (io.greptime.v1.Common.Decimal128) obj; + + if (getHi() + != other.getHi()) return false; + if (getLo() + != other.getLo()) return false; + if (getPrecision() + != other.getPrecision()) return false; + if (getScale() + != other.getScale()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + HI_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getHi()); + hash = (37 * hash) + LO_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getLo()); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getPrecision(); + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.Decimal128 parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.Decimal128 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.Decimal128 parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.Decimal128 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.Decimal128 parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.Decimal128 parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.Decimal128 parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.Decimal128 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.Decimal128 parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.Decimal128 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.Decimal128 parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.Decimal128 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.Decimal128 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; + } + /** + *
+     * (hi: high 64 bits, lo: low 64 bits, precision, scale) are used to
+     * construct the decimal128 value.
+     * 
+ * + * Protobuf type {@code greptime.v1.Decimal128} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.Decimal128) + io.greptime.v1.Common.Decimal128OrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_Decimal128_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_Decimal128_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.Decimal128.class, io.greptime.v1.Common.Decimal128.Builder.class); + } + + // Construct using io.greptime.v1.Common.Decimal128.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(); + hi_ = 0L; + + lo_ = 0L; + + precision_ = 0; + + scale_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_Decimal128_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.Decimal128 getDefaultInstanceForType() { + return io.greptime.v1.Common.Decimal128.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.Decimal128 build() { + io.greptime.v1.Common.Decimal128 result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.Decimal128 buildPartial() { + io.greptime.v1.Common.Decimal128 result = new io.greptime.v1.Common.Decimal128(this); + result.hi_ = hi_; + result.lo_ = lo_; + result.precision_ = precision_; + result.scale_ = scale_; + 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.Decimal128) { + return mergeFrom((io.greptime.v1.Common.Decimal128)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.Decimal128 other) { + if (other == io.greptime.v1.Common.Decimal128.getDefaultInstance()) return this; + if (other.getHi() != 0L) { + setHi(other.getHi()); + } + if (other.getLo() != 0L) { + setLo(other.getLo()); + } + if (other.getPrecision() != 0) { + setPrecision(other.getPrecision()); + } + if (other.getScale() != 0) { + setScale(other.getScale()); + } + 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.Decimal128 parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.Decimal128) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long hi_ ; + /** + * int64 hi = 1; + * @return The hi. + */ + @java.lang.Override + public long getHi() { + return hi_; + } + /** + * int64 hi = 1; + * @param value The hi to set. + * @return This builder for chaining. + */ + public Builder setHi(long value) { + + hi_ = value; + onChanged(); + return this; + } + /** + * int64 hi = 1; + * @return This builder for chaining. + */ + public Builder clearHi() { + + hi_ = 0L; + onChanged(); + return this; + } + + private long lo_ ; + /** + * int64 lo = 2; + * @return The lo. + */ + @java.lang.Override + public long getLo() { + return lo_; + } + /** + * int64 lo = 2; + * @param value The lo to set. + * @return This builder for chaining. + */ + public Builder setLo(long value) { + + lo_ = value; + onChanged(); + return this; + } + /** + * int64 lo = 2; + * @return This builder for chaining. + */ + public Builder clearLo() { + + lo_ = 0L; + onChanged(); + return this; + } + + private int precision_ ; + /** + * int32 precision = 3; + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + /** + * int32 precision = 3; + * @param value The precision to set. + * @return This builder for chaining. + */ + public Builder setPrecision(int value) { + + precision_ = value; + onChanged(); + return this; + } + /** + * int32 precision = 3; + * @return This builder for chaining. + */ + public Builder clearPrecision() { + + precision_ = 0; + onChanged(); + return this; + } + + private int scale_ ; + /** + * int32 scale = 4; + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + /** + * int32 scale = 4; + * @param value The scale to set. + * @return This builder for chaining. + */ + public Builder setScale(int value) { + + scale_ = value; + onChanged(); + return this; + } + /** + * int32 scale = 4; + * @return This builder for chaining. + */ + public Builder clearScale() { + + scale_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.Decimal128) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.Decimal128) + private static final io.greptime.v1.Common.Decimal128 DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.Decimal128(); + } + + public static io.greptime.v1.Common.Decimal128 getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Decimal128 parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Decimal128(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.Decimal128 getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface ColumnDataTypeExtensionOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ColumnDataTypeExtension) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + * @return Whether the decimalType field is set. + */ + boolean hasDecimalType(); + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + * @return The decimalType. + */ + io.greptime.v1.Common.DecimalTypeExtension getDecimalType(); + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + io.greptime.v1.Common.DecimalTypeExtensionOrBuilder getDecimalTypeOrBuilder(); + + public io.greptime.v1.Common.ColumnDataTypeExtension.ExtCase getExtCase(); + } + /** + *
+   * Type extension for some complex types
+   * 
+ * + * Protobuf type {@code greptime.v1.ColumnDataTypeExtension} + */ + public static final class ColumnDataTypeExtension extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.ColumnDataTypeExtension) + ColumnDataTypeExtensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ColumnDataTypeExtension.newBuilder() to construct. + private ColumnDataTypeExtension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ColumnDataTypeExtension() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ColumnDataTypeExtension(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ColumnDataTypeExtension( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + io.greptime.v1.Common.DecimalTypeExtension.Builder subBuilder = null; + if (extCase_ == 1) { + subBuilder = ((io.greptime.v1.Common.DecimalTypeExtension) ext_).toBuilder(); + } + ext_ = + input.readMessage(io.greptime.v1.Common.DecimalTypeExtension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Common.DecimalTypeExtension) ext_); + ext_ = subBuilder.buildPartial(); + } + extCase_ = 1; + 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_ColumnDataTypeExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.ColumnDataTypeExtension.class, io.greptime.v1.Common.ColumnDataTypeExtension.Builder.class); + } + + private int extCase_ = 0; + private java.lang.Object ext_; + public enum ExtCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DECIMAL_TYPE(1), + EXT_NOT_SET(0); + private final int value; + private ExtCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExtCase valueOf(int value) { + return forNumber(value); + } + + public static ExtCase forNumber(int value) { + switch (value) { + case 1: return DECIMAL_TYPE; + case 0: return EXT_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public ExtCase + getExtCase() { + return ExtCase.forNumber( + extCase_); + } + + public static final int DECIMAL_TYPE_FIELD_NUMBER = 1; + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + * @return Whether the decimalType field is set. + */ + @java.lang.Override + public boolean hasDecimalType() { + return extCase_ == 1; + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + * @return The decimalType. + */ + @java.lang.Override + public io.greptime.v1.Common.DecimalTypeExtension getDecimalType() { + if (extCase_ == 1) { + return (io.greptime.v1.Common.DecimalTypeExtension) ext_; + } + return io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance(); + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + @java.lang.Override + public io.greptime.v1.Common.DecimalTypeExtensionOrBuilder getDecimalTypeOrBuilder() { + if (extCase_ == 1) { + return (io.greptime.v1.Common.DecimalTypeExtension) ext_; + } + return io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (extCase_ == 1) { + output.writeMessage(1, (io.greptime.v1.Common.DecimalTypeExtension) ext_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (extCase_ == 1) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, (io.greptime.v1.Common.DecimalTypeExtension) ext_); + } + 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.ColumnDataTypeExtension)) { + return super.equals(obj); + } + io.greptime.v1.Common.ColumnDataTypeExtension other = (io.greptime.v1.Common.ColumnDataTypeExtension) obj; + + if (!getExtCase().equals(other.getExtCase())) return false; + switch (extCase_) { + case 1: + if (!getDecimalType() + .equals(other.getDecimalType())) return false; + break; + case 0: + default: + } + 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(); + switch (extCase_) { + case 1: + hash = (37 * hash) + DECIMAL_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getDecimalType().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.ColumnDataTypeExtension parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ColumnDataTypeExtension 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.ColumnDataTypeExtension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ColumnDataTypeExtension 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.ColumnDataTypeExtension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ColumnDataTypeExtension parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.ColumnDataTypeExtension parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ColumnDataTypeExtension 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.ColumnDataTypeExtension parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ColumnDataTypeExtension 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.ColumnDataTypeExtension parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ColumnDataTypeExtension 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.ColumnDataTypeExtension 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; + } + /** + *
+     * Type extension for some complex types
+     * 
+ * + * Protobuf type {@code greptime.v1.ColumnDataTypeExtension} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.ColumnDataTypeExtension) + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDataTypeExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.ColumnDataTypeExtension.class, io.greptime.v1.Common.ColumnDataTypeExtension.Builder.class); + } + + // Construct using io.greptime.v1.Common.ColumnDataTypeExtension.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(); + extCase_ = 0; + ext_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_ColumnDataTypeExtension_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtension getDefaultInstanceForType() { + return io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtension build() { + io.greptime.v1.Common.ColumnDataTypeExtension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtension buildPartial() { + io.greptime.v1.Common.ColumnDataTypeExtension result = new io.greptime.v1.Common.ColumnDataTypeExtension(this); + if (extCase_ == 1) { + if (decimalTypeBuilder_ == null) { + result.ext_ = ext_; + } else { + result.ext_ = decimalTypeBuilder_.build(); + } + } + result.extCase_ = extCase_; + 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.ColumnDataTypeExtension) { + return mergeFrom((io.greptime.v1.Common.ColumnDataTypeExtension)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.ColumnDataTypeExtension other) { + if (other == io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance()) return this; + switch (other.getExtCase()) { + case DECIMAL_TYPE: { + mergeDecimalType(other.getDecimalType()); + break; + } + case EXT_NOT_SET: { + break; + } + } + 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.ColumnDataTypeExtension parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.ColumnDataTypeExtension) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int extCase_ = 0; + private java.lang.Object ext_; + public ExtCase + getExtCase() { + return ExtCase.forNumber( + extCase_); + } + + public Builder clearExt() { + extCase_ = 0; + ext_ = null; + onChanged(); + return this; + } + + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.DecimalTypeExtension, io.greptime.v1.Common.DecimalTypeExtension.Builder, io.greptime.v1.Common.DecimalTypeExtensionOrBuilder> decimalTypeBuilder_; + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + * @return Whether the decimalType field is set. + */ + @java.lang.Override + public boolean hasDecimalType() { + return extCase_ == 1; + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + * @return The decimalType. + */ + @java.lang.Override + public io.greptime.v1.Common.DecimalTypeExtension getDecimalType() { + if (decimalTypeBuilder_ == null) { + if (extCase_ == 1) { + return (io.greptime.v1.Common.DecimalTypeExtension) ext_; + } + return io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance(); + } else { + if (extCase_ == 1) { + return decimalTypeBuilder_.getMessage(); + } + return io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance(); + } + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + public Builder setDecimalType(io.greptime.v1.Common.DecimalTypeExtension value) { + if (decimalTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ext_ = value; + onChanged(); + } else { + decimalTypeBuilder_.setMessage(value); + } + extCase_ = 1; + return this; + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + public Builder setDecimalType( + io.greptime.v1.Common.DecimalTypeExtension.Builder builderForValue) { + if (decimalTypeBuilder_ == null) { + ext_ = builderForValue.build(); + onChanged(); + } else { + decimalTypeBuilder_.setMessage(builderForValue.build()); + } + extCase_ = 1; + return this; + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + public Builder mergeDecimalType(io.greptime.v1.Common.DecimalTypeExtension value) { + if (decimalTypeBuilder_ == null) { + if (extCase_ == 1 && + ext_ != io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance()) { + ext_ = io.greptime.v1.Common.DecimalTypeExtension.newBuilder((io.greptime.v1.Common.DecimalTypeExtension) ext_) + .mergeFrom(value).buildPartial(); + } else { + ext_ = value; + } + onChanged(); + } else { + if (extCase_ == 1) { + decimalTypeBuilder_.mergeFrom(value); + } else { + decimalTypeBuilder_.setMessage(value); + } + } + extCase_ = 1; + return this; + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + public Builder clearDecimalType() { + if (decimalTypeBuilder_ == null) { + if (extCase_ == 1) { + extCase_ = 0; + ext_ = null; + onChanged(); + } + } else { + if (extCase_ == 1) { + extCase_ = 0; + ext_ = null; + } + decimalTypeBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + public io.greptime.v1.Common.DecimalTypeExtension.Builder getDecimalTypeBuilder() { + return getDecimalTypeFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + @java.lang.Override + public io.greptime.v1.Common.DecimalTypeExtensionOrBuilder getDecimalTypeOrBuilder() { + if ((extCase_ == 1) && (decimalTypeBuilder_ != null)) { + return decimalTypeBuilder_.getMessageOrBuilder(); + } else { + if (extCase_ == 1) { + return (io.greptime.v1.Common.DecimalTypeExtension) ext_; + } + return io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance(); + } + } + /** + * .greptime.v1.DecimalTypeExtension decimal_type = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.DecimalTypeExtension, io.greptime.v1.Common.DecimalTypeExtension.Builder, io.greptime.v1.Common.DecimalTypeExtensionOrBuilder> + getDecimalTypeFieldBuilder() { + if (decimalTypeBuilder_ == null) { + if (!(extCase_ == 1)) { + ext_ = io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance(); + } + decimalTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.DecimalTypeExtension, io.greptime.v1.Common.DecimalTypeExtension.Builder, io.greptime.v1.Common.DecimalTypeExtensionOrBuilder>( + (io.greptime.v1.Common.DecimalTypeExtension) ext_, + getParentForChildren(), + isClean()); + ext_ = null; + } + extCase_ = 1; + onChanged();; + return decimalTypeBuilder_; + } + @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.ColumnDataTypeExtension) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ColumnDataTypeExtension) + private static final io.greptime.v1.Common.ColumnDataTypeExtension DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.ColumnDataTypeExtension(); + } + + public static io.greptime.v1.Common.ColumnDataTypeExtension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ColumnDataTypeExtension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ColumnDataTypeExtension(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.ColumnDataTypeExtension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DecimalTypeExtensionOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.DecimalTypeExtension) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 precision = 1; + * @return The precision. + */ + int getPrecision(); + + /** + * int32 scale = 2; + * @return The scale. + */ + int getScale(); + } + /** + * Protobuf type {@code greptime.v1.DecimalTypeExtension} + */ + public static final class DecimalTypeExtension extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.DecimalTypeExtension) + DecimalTypeExtensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use DecimalTypeExtension.newBuilder() to construct. + private DecimalTypeExtension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DecimalTypeExtension() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DecimalTypeExtension(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private DecimalTypeExtension( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + precision_ = input.readInt32(); + break; + } + case 16: { + + scale_ = input.readInt32(); + 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_DecimalTypeExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.DecimalTypeExtension.class, io.greptime.v1.Common.DecimalTypeExtension.Builder.class); + } + + public static final int PRECISION_FIELD_NUMBER = 1; + private int precision_; + /** + * int32 precision = 1; + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + + public static final int SCALE_FIELD_NUMBER = 2; + private int scale_; + /** + * int32 scale = 2; + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (precision_ != 0) { + output.writeInt32(1, precision_); + } + if (scale_ != 0) { + output.writeInt32(2, scale_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (precision_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, precision_); + } + if (scale_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, scale_); + } + 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.DecimalTypeExtension)) { + return super.equals(obj); + } + io.greptime.v1.Common.DecimalTypeExtension other = (io.greptime.v1.Common.DecimalTypeExtension) obj; + + if (getPrecision() + != other.getPrecision()) return false; + if (getScale() + != other.getScale()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PRECISION_FIELD_NUMBER; + hash = (53 * hash) + getPrecision(); + hash = (37 * hash) + SCALE_FIELD_NUMBER; + hash = (53 * hash) + getScale(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.DecimalTypeExtension parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.DecimalTypeExtension 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.DecimalTypeExtension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.DecimalTypeExtension 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.DecimalTypeExtension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.DecimalTypeExtension parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.DecimalTypeExtension parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.DecimalTypeExtension 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.DecimalTypeExtension parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.DecimalTypeExtension 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.DecimalTypeExtension parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.DecimalTypeExtension 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.DecimalTypeExtension prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.DecimalTypeExtension} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.DecimalTypeExtension) + io.greptime.v1.Common.DecimalTypeExtensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_DecimalTypeExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.DecimalTypeExtension.class, io.greptime.v1.Common.DecimalTypeExtension.Builder.class); + } + + // Construct using io.greptime.v1.Common.DecimalTypeExtension.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(); + precision_ = 0; + + scale_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_DecimalTypeExtension_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { + return io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.DecimalTypeExtension build() { + io.greptime.v1.Common.DecimalTypeExtension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.DecimalTypeExtension buildPartial() { + io.greptime.v1.Common.DecimalTypeExtension result = new io.greptime.v1.Common.DecimalTypeExtension(this); + result.precision_ = precision_; + result.scale_ = scale_; + 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.DecimalTypeExtension) { + return mergeFrom((io.greptime.v1.Common.DecimalTypeExtension)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.DecimalTypeExtension other) { + if (other == io.greptime.v1.Common.DecimalTypeExtension.getDefaultInstance()) return this; + if (other.getPrecision() != 0) { + setPrecision(other.getPrecision()); + } + if (other.getScale() != 0) { + setScale(other.getScale()); + } + 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.DecimalTypeExtension parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.DecimalTypeExtension) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int precision_ ; + /** + * int32 precision = 1; + * @return The precision. + */ + @java.lang.Override + public int getPrecision() { + return precision_; + } + /** + * int32 precision = 1; + * @param value The precision to set. + * @return This builder for chaining. + */ + public Builder setPrecision(int value) { + + precision_ = value; + onChanged(); + return this; + } + /** + * int32 precision = 1; + * @return This builder for chaining. + */ + public Builder clearPrecision() { + + precision_ = 0; + onChanged(); + return this; + } + + private int scale_ ; + /** + * int32 scale = 2; + * @return The scale. + */ + @java.lang.Override + public int getScale() { + return scale_; + } + /** + * int32 scale = 2; + * @param value The scale to set. + * @return This builder for chaining. + */ + public Builder setScale(int value) { + + scale_ = value; + onChanged(); + return this; + } + /** + * int32 scale = 2; + * @return This builder for chaining. + */ + public Builder clearScale() { + + scale_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.DecimalTypeExtension) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.DecimalTypeExtension) + private static final io.greptime.v1.Common.DecimalTypeExtension DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.DecimalTypeExtension(); + } + + public static io.greptime.v1.Common.DecimalTypeExtension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DecimalTypeExtension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DecimalTypeExtension(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.DecimalTypeExtension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_RequestHeader_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_RequestHeader_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_RequestHeader_TracingContextEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ResponseHeader_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ResponseHeader_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_Status_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_Status_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AuthHeader_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AuthHeader_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_Basic_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_Basic_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_Token_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_Token_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AffectedRows_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AffectedRows_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_FlightMetadata_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_FlightMetadata_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_IntervalMonthDayNano_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_Decimal128_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_Decimal128_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ColumnDataTypeExtension_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DecimalTypeExtension_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\030greptime/v1/common.proto\022\013greptime.v1\"" + + "\360\001\n\rRequestHeader\022\017\n\007catalog\030\001 \001(\t\022\016\n\006sc" + + "hema\030\002 \001(\t\022.\n\rauthorization\030\003 \001(\0132\027.grep" + + "time.v1.AuthHeader\022\016\n\006dbname\030\004 \001(\t\022G\n\017tr" + + "acing_context\030\005 \003(\0132..greptime.v1.Reques" + + "tHeader.TracingContextEntry\0325\n\023TracingCo" + + "ntextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\002" + + "8\001\"5\n\016ResponseHeader\022#\n\006status\030\001 \001(\0132\023.g" + + "reptime.v1.Status\".\n\006Status\022\023\n\013status_co" + + "de\030\001 \001(\r\022\017\n\007err_msg\030\002 \001(\t\"e\n\nAuthHeader\022" + + "#\n\005basic\030\001 \001(\0132\022.greptime.v1.BasicH\000\022#\n\005" + + "token\030\002 \001(\0132\022.greptime.v1.TokenH\000B\r\n\013aut" + + "h_scheme\"+\n\005Basic\022\020\n\010username\030\001 \001(\t\022\020\n\010p" + + "assword\030\002 \001(\t\"\026\n\005Token\022\r\n\005token\030\001 \001(\t\"\035\n" + + "\014AffectedRows\022\r\n\005value\030\001 \001(\r\"B\n\016FlightMe" + + "tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime" + + ".v1.AffectedRows\"I\n\024IntervalMonthDayNano" + + "\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanose" + + "conds\030\003 \001(\003\"F\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n" + + "\002lo\030\002 \001(\003\022\021\n\tprecision\030\003 \001(\005\022\r\n\005scale\030\004 " + + "\001(\005\"[\n\027ColumnDataTypeExtension\0229\n\014decima" + + "l_type\030\001 \001(\0132!.greptime.v1.DecimalTypeEx" + + "tensionH\000B\005\n\003ext\"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*\271\004\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\023\n\017DURATION_SECON" + + "D\020\032\022\030\n\024DURATION_MILLISECOND\020\033\022\030\n\024DURATIO" + + "N_MICROSECOND\020\034\022\027\n\023DURATION_NANOSECOND\020\035" + + "\022\017\n\013DECIMAL_128\020\036BO\n\016io.greptime.v1B\006Com" + + "monZ5github.com/GreptimeTeam/greptime-pr" + + "oto/go/greptime/v1b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }); + internal_static_greptime_v1_RequestHeader_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_greptime_v1_RequestHeader_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_RequestHeader_descriptor, + new java.lang.String[] { "Catalog", "Schema", "Authorization", "Dbname", "TracingContext", }); + internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor = + internal_static_greptime_v1_RequestHeader_descriptor.getNestedTypes().get(0); + internal_static_greptime_v1_RequestHeader_TracingContextEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_RequestHeader_TracingContextEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_greptime_v1_ResponseHeader_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_greptime_v1_ResponseHeader_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ResponseHeader_descriptor, + new java.lang.String[] { "Status", }); + internal_static_greptime_v1_Status_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_greptime_v1_Status_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_Status_descriptor, + new java.lang.String[] { "StatusCode", "ErrMsg", }); + internal_static_greptime_v1_AuthHeader_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_greptime_v1_AuthHeader_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_AuthHeader_descriptor, + new java.lang.String[] { "Basic", "Token", "AuthScheme", }); + internal_static_greptime_v1_Basic_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_greptime_v1_Basic_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_Basic_descriptor, + new java.lang.String[] { "Username", "Password", }); + internal_static_greptime_v1_Token_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_greptime_v1_Token_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_Token_descriptor, + new java.lang.String[] { "Token", }); + internal_static_greptime_v1_AffectedRows_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_greptime_v1_AffectedRows_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_AffectedRows_descriptor, + new java.lang.String[] { "Value", }); + internal_static_greptime_v1_FlightMetadata_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_greptime_v1_FlightMetadata_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_FlightMetadata_descriptor, + new java.lang.String[] { "AffectedRows", }); + internal_static_greptime_v1_IntervalMonthDayNano_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_IntervalMonthDayNano_descriptor, + new java.lang.String[] { "Months", "Days", "Nanoseconds", }); + internal_static_greptime_v1_Decimal128_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_greptime_v1_Decimal128_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_Decimal128_descriptor, + new java.lang.String[] { "Hi", "Lo", "Precision", "Scale", }); + internal_static_greptime_v1_ColumnDataTypeExtension_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ColumnDataTypeExtension_descriptor, + new java.lang.String[] { "DecimalType", "Ext", }); + internal_static_greptime_v1_DecimalTypeExtension_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_DecimalTypeExtension_descriptor, + new java.lang.String[] { "Precision", "Scale", }); } // @@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 b12fa145..e5bcc802 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -13027,6 +13027,33 @@ public interface ColumnDefOrBuilder extends */ com.google.protobuf.ByteString getCommentBytes(); + + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + * @return Whether the datatypeExtension field is set. + */ + boolean hasDatatypeExtension(); + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + * @return The datatypeExtension. + */ + io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension(); + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder(); } /** * Protobuf type {@code greptime.v1.ColumnDef} @@ -13112,6 +13139,19 @@ private ColumnDef( comment_ = s; break; } + case 58: { + io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null; + if (datatypeExtension_ != null) { + subBuilder = datatypeExtension_.toBuilder(); + } + datatypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datatypeExtension_); + datatypeExtension_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -13282,6 +13322,44 @@ public java.lang.String getComment() { } } + public static final int DATATYPE_EXTENSION_FIELD_NUMBER = 7; + private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_; + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + * @return Whether the datatypeExtension field is set. + */ + @java.lang.Override + public boolean hasDatatypeExtension() { + return datatypeExtension_ != null; + } + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + * @return The datatypeExtension. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() { + return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + return getDatatypeExtension(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -13314,6 +13392,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, comment_); } + if (datatypeExtension_ != null) { + output.writeMessage(7, getDatatypeExtension()); + } unknownFields.writeTo(output); } @@ -13345,6 +13426,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, comment_); } + if (datatypeExtension_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getDatatypeExtension()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -13370,6 +13455,11 @@ public boolean equals(final java.lang.Object obj) { if (semanticType_ != other.semanticType_) return false; if (!getComment() .equals(other.getComment())) return false; + if (hasDatatypeExtension() != other.hasDatatypeExtension()) return false; + if (hasDatatypeExtension()) { + if (!getDatatypeExtension() + .equals(other.getDatatypeExtension())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -13394,6 +13484,10 @@ public int hashCode() { hash = (53 * hash) + semanticType_; hash = (37 * hash) + COMMENT_FIELD_NUMBER; hash = (53 * hash) + getComment().hashCode(); + if (hasDatatypeExtension()) { + hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getDatatypeExtension().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -13539,6 +13633,12 @@ public Builder clear() { comment_ = ""; + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } return this; } @@ -13571,6 +13671,11 @@ public io.greptime.v1.Ddl.ColumnDef buildPartial() { result.defaultConstraint_ = defaultConstraint_; result.semanticType_ = semanticType_; result.comment_ = comment_; + if (datatypeExtensionBuilder_ == null) { + result.datatypeExtension_ = datatypeExtension_; + } else { + result.datatypeExtension_ = datatypeExtensionBuilder_.build(); + } onBuilt(); return result; } @@ -13639,6 +13744,9 @@ public Builder mergeFrom(io.greptime.v1.Ddl.ColumnDef other) { comment_ = other.comment_; onChanged(); } + if (other.hasDatatypeExtension()) { + mergeDatatypeExtension(other.getDatatypeExtension()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -13992,6 +14100,161 @@ public Builder setCommentBytes( onChanged(); return this; } + + private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> datatypeExtensionBuilder_; + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + * @return Whether the datatypeExtension field is set. + */ + public boolean hasDatatypeExtension() { + return datatypeExtensionBuilder_ != null || datatypeExtension_ != null; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + * @return The datatypeExtension. + */ + public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() { + if (datatypeExtensionBuilder_ == null) { + return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } else { + return datatypeExtensionBuilder_.getMessage(); + } + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + public Builder setDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (datatypeExtensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datatypeExtension_ = value; + onChanged(); + } else { + datatypeExtensionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + public Builder setDatatypeExtension( + io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = builderForValue.build(); + onChanged(); + } else { + datatypeExtensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + public Builder mergeDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (datatypeExtensionBuilder_ == null) { + if (datatypeExtension_ != null) { + datatypeExtension_ = + io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(datatypeExtension_).mergeFrom(value).buildPartial(); + } else { + datatypeExtension_ = value; + } + onChanged(); + } else { + datatypeExtensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + public Builder clearDatatypeExtension() { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + onChanged(); + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getDatatypeExtensionBuilder() { + + onChanged(); + return getDatatypeExtensionFieldBuilder().getBuilder(); + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + if (datatypeExtensionBuilder_ != null) { + return datatypeExtensionBuilder_.getMessageOrBuilder(); + } else { + return datatypeExtension_ == null ? + io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> + getDatatypeExtensionFieldBuilder() { + if (datatypeExtensionBuilder_ == null) { + datatypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>( + getDatatypeExtension(), + getParentForChildren(), + isClean()); + datatypeExtension_ = null; + } + return datatypeExtensionBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -14962,17 +15225,19 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { "\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001(" + "\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDro" + "pColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001" + - " \001(\r\"\275\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" + + " \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" + "_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" + "\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra" + "int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" + - "ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\"\230\001\n" + - "\021AddColumnLocation\022B\n\rlocation_type\030\001 \001(" + - "\0162+.greptime.v1.AddColumnLocation.Locati" + - "onType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Loc" + - "ationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.gr" + - "eptime.v1B\003DdlZ5github.com/GreptimeTeam/" + - "greptime-proto/go/greptime/v1b\006proto3" + "ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" + + "datatype_extension\030\007 \001(\0132$.greptime.v1.C" + + "olumnDataTypeExtension\"\230\001\n\021AddColumnLoca" + + "tion\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v" + + "1.AddColumnLocation.LocationType\022\031\n\021afte" + + "r_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005F" + + "IRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003Ddl" + + "Z5github.com/GreptimeTeam/greptime-proto" + + "/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -15068,7 +15333,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", }); + new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", }); internal_static_greptime_v1_AddColumnLocation_descriptor = getDescriptor().getMessageTypes().get(13); 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 1bb4a7df..40687fc2 100644 --- a/java/src/main/java/io/greptime/v1/RowData.java +++ b/java/src/main/java/io/greptime/v1/RowData.java @@ -1218,6 +1218,33 @@ public interface ColumnSchemaOrBuilder extends * @return The semanticType. */ io.greptime.v1.Common.SemanticType getSemanticType(); + + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + * @return Whether the datatypeExtension field is set. + */ + boolean hasDatatypeExtension(); + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + * @return The datatypeExtension. + */ + io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension(); + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder(); } /** * Protobuf type {@code greptime.v1.ColumnSchema} @@ -1285,6 +1312,19 @@ private ColumnSchema( semanticType_ = rawValue; break; } + case 34: { + io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null; + if (datatypeExtension_ != null) { + subBuilder = datatypeExtension_.toBuilder(); + } + datatypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(datatypeExtension_); + datatypeExtension_ = subBuilder.buildPartial(); + } + + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -1395,6 +1435,44 @@ public java.lang.String getColumnName() { return result == null ? io.greptime.v1.Common.SemanticType.UNRECOGNIZED : result; } + public static final int DATATYPE_EXTENSION_FIELD_NUMBER = 4; + private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_; + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + * @return Whether the datatypeExtension field is set. + */ + @java.lang.Override + public boolean hasDatatypeExtension() { + return datatypeExtension_ != null; + } + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + * @return The datatypeExtension. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() { + return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + /** + *
+     * Extension for ColumnDataType.
+     * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + return getDatatypeExtension(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -1418,6 +1496,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (semanticType_ != io.greptime.v1.Common.SemanticType.TAG.getNumber()) { output.writeEnum(3, semanticType_); } + if (datatypeExtension_ != null) { + output.writeMessage(4, getDatatypeExtension()); + } unknownFields.writeTo(output); } @@ -1438,6 +1519,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, semanticType_); } + if (datatypeExtension_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getDatatypeExtension()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1457,6 +1542,11 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getColumnName())) return false; if (datatype_ != other.datatype_) return false; if (semanticType_ != other.semanticType_) return false; + if (hasDatatypeExtension() != other.hasDatatypeExtension()) return false; + if (hasDatatypeExtension()) { + if (!getDatatypeExtension() + .equals(other.getDatatypeExtension())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -1474,6 +1564,10 @@ public int hashCode() { hash = (53 * hash) + datatype_; hash = (37 * hash) + SEMANTIC_TYPE_FIELD_NUMBER; hash = (53 * hash) + semanticType_; + if (hasDatatypeExtension()) { + hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER; + hash = (53 * hash) + getDatatypeExtension().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -1613,6 +1707,12 @@ public Builder clear() { semanticType_ = 0; + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } return this; } @@ -1642,6 +1742,11 @@ public io.greptime.v1.RowData.ColumnSchema buildPartial() { result.columnName_ = columnName_; result.datatype_ = datatype_; result.semanticType_ = semanticType_; + if (datatypeExtensionBuilder_ == null) { + result.datatypeExtension_ = datatypeExtension_; + } else { + result.datatypeExtension_ = datatypeExtensionBuilder_.build(); + } onBuilt(); return result; } @@ -1700,6 +1805,9 @@ public Builder mergeFrom(io.greptime.v1.RowData.ColumnSchema other) { if (other.semanticType_ != 0) { setSemanticTypeValue(other.getSemanticTypeValue()); } + if (other.hasDatatypeExtension()) { + mergeDatatypeExtension(other.getDatatypeExtension()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1912,6 +2020,161 @@ public Builder clearSemanticType() { onChanged(); return this; } + + private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_; + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> datatypeExtensionBuilder_; + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + * @return Whether the datatypeExtension field is set. + */ + public boolean hasDatatypeExtension() { + return datatypeExtensionBuilder_ != null || datatypeExtension_ != null; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + * @return The datatypeExtension. + */ + public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() { + if (datatypeExtensionBuilder_ == null) { + return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } else { + return datatypeExtensionBuilder_.getMessage(); + } + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + public Builder setDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (datatypeExtensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + datatypeExtension_ = value; + onChanged(); + } else { + datatypeExtensionBuilder_.setMessage(value); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + public Builder setDatatypeExtension( + io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = builderForValue.build(); + onChanged(); + } else { + datatypeExtensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + public Builder mergeDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) { + if (datatypeExtensionBuilder_ == null) { + if (datatypeExtension_ != null) { + datatypeExtension_ = + io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(datatypeExtension_).mergeFrom(value).buildPartial(); + } else { + datatypeExtension_ = value; + } + onChanged(); + } else { + datatypeExtensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + public Builder clearDatatypeExtension() { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + onChanged(); + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } + + return this; + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getDatatypeExtensionBuilder() { + + onChanged(); + return getDatatypeExtensionFieldBuilder().getBuilder(); + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + if (datatypeExtensionBuilder_ != null) { + return datatypeExtensionBuilder_.getMessageOrBuilder(); + } else { + return datatypeExtension_ == null ? + io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + } + /** + *
+       * Extension for ColumnDataType.
+       * 
+ * + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> + getDatatypeExtensionFieldBuilder() { + if (datatypeExtensionBuilder_ == null) { + datatypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>( + getDatatypeExtension(), + getParentForChildren(), + isClean()); + datatypeExtension_ = null; + } + return datatypeExtensionBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -3104,6 +3367,21 @@ public interface ValueOrBuilder extends */ long getDurationNanosecondValue(); + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + * @return Whether the decimal128Value field is set. + */ + boolean hasDecimal128Value(); + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + * @return The decimal128Value. + */ + io.greptime.v1.Common.Decimal128 getDecimal128Value(); + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValueOrBuilder(); + public io.greptime.v1.RowData.Value.ValueDataCase getValueDataCase(); } /** @@ -3311,6 +3589,20 @@ private Value( valueDataCase_ = 30; break; } + case 250: { + io.greptime.v1.Common.Decimal128.Builder subBuilder = null; + if (valueDataCase_ == 31) { + subBuilder = ((io.greptime.v1.Common.Decimal128) valueData_).toBuilder(); + } + valueData_ = + input.readMessage(io.greptime.v1.Common.Decimal128.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Common.Decimal128) valueData_); + valueData_ = subBuilder.buildPartial(); + } + valueDataCase_ = 31; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -3380,6 +3672,7 @@ public enum ValueDataCase DURATION_MILLISECOND_VALUE(28), DURATION_MICROSECOND_VALUE(29), DURATION_NANOSECOND_VALUE(30), + DECIMAL128_VALUE(31), VALUEDATA_NOT_SET(0); private final int value; private ValueDataCase(int value) { @@ -3427,6 +3720,7 @@ public static ValueDataCase forNumber(int value) { case 28: return DURATION_MILLISECOND_VALUE; case 29: return DURATION_MICROSECOND_VALUE; case 30: return DURATION_NANOSECOND_VALUE; + case 31: return DECIMAL128_VALUE; case 0: return VALUEDATA_NOT_SET; default: return null; } @@ -4113,6 +4407,37 @@ public long getDurationNanosecondValue() { return 0L; } + public static final int DECIMAL128_VALUE_FIELD_NUMBER = 31; + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + * @return Whether the decimal128Value field is set. + */ + @java.lang.Override + public boolean hasDecimal128Value() { + return valueDataCase_ == 31; + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + * @return The decimal128Value. + */ + @java.lang.Override + public io.greptime.v1.Common.Decimal128 getDecimal128Value() { + if (valueDataCase_ == 31) { + return (io.greptime.v1.Common.Decimal128) valueData_; + } + return io.greptime.v1.Common.Decimal128.getDefaultInstance(); + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + @java.lang.Override + public io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValueOrBuilder() { + if (valueDataCase_ == 31) { + return (io.greptime.v1.Common.Decimal128) valueData_; + } + return io.greptime.v1.Common.Decimal128.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -4245,6 +4570,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeInt64( 30, (long)((java.lang.Long) valueData_)); } + if (valueDataCase_ == 31) { + output.writeMessage(31, (io.greptime.v1.Common.Decimal128) valueData_); + } unknownFields.writeTo(output); } @@ -4401,6 +4729,10 @@ public int getSerializedSize() { .computeInt64Size( 30, (long)((java.lang.Long) valueData_)); } + if (valueDataCase_ == 31) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(31, (io.greptime.v1.Common.Decimal128) valueData_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4540,6 +4872,10 @@ public boolean equals(final java.lang.Object obj) { if (getDurationNanosecondValue() != other.getDurationNanosecondValue()) return false; break; + case 31: + if (!getDecimal128Value() + .equals(other.getDecimal128Value())) return false; + break; case 0: default: } @@ -4694,6 +5030,10 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getDurationNanosecondValue()); break; + case 31: + hash = (37 * hash) + DECIMAL128_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getDecimal128Value().hashCode(); + break; case 0: default: } @@ -4952,6 +5292,13 @@ public io.greptime.v1.RowData.Value buildPartial() { if (valueDataCase_ == 30) { result.valueData_ = valueData_; } + if (valueDataCase_ == 31) { + if (decimal128ValueBuilder_ == null) { + result.valueData_ = valueData_; + } else { + result.valueData_ = decimal128ValueBuilder_.build(); + } + } result.valueDataCase_ = valueDataCase_; onBuilt(); return result; @@ -5124,6 +5471,10 @@ public Builder mergeFrom(io.greptime.v1.RowData.Value other) { setDurationNanosecondValue(other.getDurationNanosecondValue()); break; } + case DECIMAL128_VALUE: { + mergeDecimal128Value(other.getDecimal128Value()); + break; + } case VALUEDATA_NOT_SET: { break; } @@ -6561,6 +6912,148 @@ public Builder clearDurationNanosecondValue() { } return this; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder> decimal128ValueBuilder_; + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + * @return Whether the decimal128Value field is set. + */ + @java.lang.Override + public boolean hasDecimal128Value() { + return valueDataCase_ == 31; + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + * @return The decimal128Value. + */ + @java.lang.Override + public io.greptime.v1.Common.Decimal128 getDecimal128Value() { + if (decimal128ValueBuilder_ == null) { + if (valueDataCase_ == 31) { + return (io.greptime.v1.Common.Decimal128) valueData_; + } + return io.greptime.v1.Common.Decimal128.getDefaultInstance(); + } else { + if (valueDataCase_ == 31) { + return decimal128ValueBuilder_.getMessage(); + } + return io.greptime.v1.Common.Decimal128.getDefaultInstance(); + } + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + public Builder setDecimal128Value(io.greptime.v1.Common.Decimal128 value) { + if (decimal128ValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valueData_ = value; + onChanged(); + } else { + decimal128ValueBuilder_.setMessage(value); + } + valueDataCase_ = 31; + return this; + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + public Builder setDecimal128Value( + io.greptime.v1.Common.Decimal128.Builder builderForValue) { + if (decimal128ValueBuilder_ == null) { + valueData_ = builderForValue.build(); + onChanged(); + } else { + decimal128ValueBuilder_.setMessage(builderForValue.build()); + } + valueDataCase_ = 31; + return this; + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + public Builder mergeDecimal128Value(io.greptime.v1.Common.Decimal128 value) { + if (decimal128ValueBuilder_ == null) { + if (valueDataCase_ == 31 && + valueData_ != io.greptime.v1.Common.Decimal128.getDefaultInstance()) { + valueData_ = io.greptime.v1.Common.Decimal128.newBuilder((io.greptime.v1.Common.Decimal128) valueData_) + .mergeFrom(value).buildPartial(); + } else { + valueData_ = value; + } + onChanged(); + } else { + if (valueDataCase_ == 31) { + decimal128ValueBuilder_.mergeFrom(value); + } else { + decimal128ValueBuilder_.setMessage(value); + } + } + valueDataCase_ = 31; + return this; + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + public Builder clearDecimal128Value() { + if (decimal128ValueBuilder_ == null) { + if (valueDataCase_ == 31) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + } else { + if (valueDataCase_ == 31) { + valueDataCase_ = 0; + valueData_ = null; + } + decimal128ValueBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + public io.greptime.v1.Common.Decimal128.Builder getDecimal128ValueBuilder() { + return getDecimal128ValueFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + @java.lang.Override + public io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValueOrBuilder() { + if ((valueDataCase_ == 31) && (decimal128ValueBuilder_ != null)) { + return decimal128ValueBuilder_.getMessageOrBuilder(); + } else { + if (valueDataCase_ == 31) { + return (io.greptime.v1.Common.Decimal128) valueData_; + } + return io.greptime.v1.Common.Decimal128.getDefaultInstance(); + } + } + /** + * .greptime.v1.Decimal128 decimal128_value = 31; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder> + getDecimal128ValueFieldBuilder() { + if (decimal128ValueBuilder_ == null) { + if (!(valueDataCase_ == 31)) { + valueData_ = io.greptime.v1.Common.Decimal128.getDefaultInstance(); + } + decimal128ValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder>( + (io.greptime.v1.Common.Decimal128) valueData_, + getParentForChildren(), + isClean()); + valueData_ = null; + } + valueDataCase_ = 31; + onChanged();; + return decimal128ValueBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6646,37 +7139,40 @@ 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\"\204\001\n\014ColumnSche" + + "s\030\002 \003(\0132\020.greptime.v1.Row\"\306\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" + - "\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va" + - "lue\"\234\007\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\ti" + - "64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t" + - "u16_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_va" + - "lue\030\r \001(\tH\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016dat" + - "etime_value\030\017 \001(\003H\000\022 \n\026timestamp_second_" + - "value\030\020 \001(\003H\000\022%\n\033timestamp_millisecond_v" + - "alue\030\021 \001(\003H\000\022%\n\033timestamp_microsecond_va" + - "lue\030\022 \001(\003H\000\022$\n\032timestamp_nanosecond_valu" + - "e\030\023 \001(\003H\000\022\033\n\021time_second_value\030\024 \001(\003H\000\022 " + - "\n\026time_millisecond_value\030\025 \001(\003H\000\022 \n\026time" + - "_microsecond_value\030\026 \001(\003H\000\022\037\n\025time_nanos" + - "econd_value\030\027 \001(\003H\000\022$\n\032interval_year_mon" + - "th_values\030\030 \001(\005H\000\022\"\n\030interval_day_time_v" + - "alues\030\031 \001(\003H\000\022K\n\036interval_month_day_nano" + - "_values\030\032 \001(\0132!.greptime.v1.IntervalMont" + - "hDayNanoH\000\022\037\n\025duration_second_value\030\033 \001(" + - "\003H\000\022$\n\032duration_millisecond_value\030\034 \001(\003H" + - "\000\022$\n\032duration_microsecond_value\030\035 \001(\003H\000\022" + - "#\n\031duration_nanosecond_value\030\036 \001(\003H\000B\014\n\n" + - "value_dataBP\n\016io.greptime.v1B\007RowDataZ5g" + - "ithub.com/GreptimeTeam/greptime-proto/go" + - "/greptime/v1b\006proto3" + "\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\"\321\007\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\032interval_year_month_values\030\030 \001(" + + "\005H\000\022\"\n\030interval_day_time_values\030\031 \001(\003H\000\022" + + "K\n\036interval_month_day_nano_values\030\032 \001(\0132" + + "!.greptime.v1.IntervalMonthDayNanoH\000\022\037\n\025" + + "duration_second_value\030\033 \001(\003H\000\022$\n\032duratio" + + "n_millisecond_value\030\034 \001(\003H\000\022$\n\032duration_" + + "microsecond_value\030\035 \001(\003H\000\022#\n\031duration_na" + + "nosecond_value\030\036 \001(\003H\000\0223\n\020decimal128_val" + + "ue\030\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nv" + + "alue_dataBP\n\016io.greptime.v1B\007RowDataZ5gi" + + "thub.com/GreptimeTeam/greptime-proto/go/" + + "greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -6694,7 +7190,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", }); + new java.lang.String[] { "ColumnName", "Datatype", "SemanticType", "DatatypeExtension", }); internal_static_greptime_v1_Row_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_greptime_v1_Row_fieldAccessorTable = new @@ -6706,7 +7202,7 @@ public io.greptime.v1.RowData.Value getDefaultInstanceForType() { internal_static_greptime_v1_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Value_descriptor, - new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TimestampSecondValue", "TimestampMillisecondValue", "TimestampMicrosecondValue", "TimestampNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValue", "DurationMillisecondValue", "DurationMicrosecondValue", "DurationNanosecondValue", "ValueData", }); + new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TimestampSecondValue", "TimestampMillisecondValue", "TimestampMicrosecondValue", "TimestampNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValue", "DurationMillisecondValue", "DurationMicrosecondValue", "DurationNanosecondValue", "Decimal128Value", "ValueData", }); io.greptime.v1.Common.getDescriptor(); }