From d75496d5d09dedcd0edcade57ccf0a522f4393ae Mon Sep 17 00:00:00 2001 From: Ning Sun Date: Thu, 9 Oct 2025 11:07:20 +0800 Subject: [PATCH] feat: add struct and list data type (#277) * feat: add struct and list data type * type extensions * feat: extend column type * chore: rename fields * add value enum item * feat: add value * refactor: item->items * feat: use single ListValue/StructValue for Row and Column --- .gitignore | 3 + c++/greptime/v1/column.pb.cc | 152 +- c++/greptime/v1/column.pb.h | 115 + c++/greptime/v1/common.pb.cc | 1001 +++++- c++/greptime/v1/common.pb.h | 1055 +++++- c++/greptime/v1/row.pb.cc | 559 ++- c++/greptime/v1/row.pb.h | 606 ++++ go/greptime/v1/column.pb.go | 255 +- go/greptime/v1/common.pb.go | 542 ++- go/greptime/v1/row.pb.go | 230 +- .../src/main/java/io/greptime/v1/Columns.java | 813 ++++- java/src/main/java/io/greptime/v1/Common.java | 3004 ++++++++++++++++- .../src/main/java/io/greptime/v1/RowData.java | 2087 +++++++++++- proto/greptime/v1/column.proto | 5 + proto/greptime/v1/common.proto | 19 + proto/greptime/v1/row.proto | 11 + 16 files changed, 10013 insertions(+), 444 deletions(-) diff --git a/.gitignore b/.gitignore index 4d48f5a..ef5fb63 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,6 @@ Cargo.lock # ccls cache dir .ccls-cache/ + +#local nix +shell.nix diff --git a/c++/greptime/v1/column.pb.cc b/c++/greptime/v1/column.pb.cc index e7e33c8..918ff4b 100644 --- a/c++/greptime/v1/column.pb.cc +++ b/c++/greptime/v1/column.pb.cc @@ -71,6 +71,8 @@ PROTOBUF_CONSTEXPR Column_Values::Column_Values( , /*decltype(_impl_._interval_day_time_values_cached_byte_size_)*/{0} , /*decltype(_impl_.interval_month_day_nano_values_)*/{} , /*decltype(_impl_.decimal128_values_)*/{} + , /*decltype(_impl_.list_values_)*/{} + , /*decltype(_impl_.struct_values_)*/{} , /*decltype(_impl_._cached_size_)*/{}} {} struct Column_ValuesDefaultTypeInternal { PROTOBUF_CONSTEXPR Column_ValuesDefaultTypeInternal() @@ -140,6 +142,8 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.interval_day_time_values_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.interval_month_day_nano_values_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.decimal128_values_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.list_values_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.struct_values_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _internal_metadata_), ~0u, // no _extensions_ @@ -156,7 +160,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::Column_Values)}, - { 33, -1, -1, sizeof(::greptime::v1::Column)}, + { 35, -1, -1, sizeof(::greptime::v1::Column)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -166,46 +170,50 @@ 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\"\303\010\n\006Column\022\023\n\013" - "column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016" - "2\031.greptime.v1.SemanticType\022*\n\006values\030\003 " - "\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_" - "mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime." - "v1.ColumnDataType\022@\n\022datatype_extension\030" - "\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens" - "ion\022+\n\007options\030\007 \001(\0132\032.greptime.v1.Colum" - "nOptions\032\224\006\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022" - "\n\ni16_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022" - "\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n" - "\nu16_values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n" - "\nu64_values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n" - "\nf64_values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025" - "\n\rbinary_values\030\014 \003(\014\022\025\n\rstring_values\030\r" - " \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_va" - "lues\030\017 \003(\003\022\037\n\027timestamp_second_values\030\020 " - "\003(\003\022$\n\034timestamp_millisecond_values\030\021 \003(" - "\003\022$\n\034timestamp_microsecond_values\030\022 \003(\003\022" - "#\n\033timestamp_nanosecond_values\030\023 \003(\003\022\032\n\022" - "time_second_values\030\024 \003(\003\022\037\n\027time_millise" - "cond_values\030\025 \003(\003\022\037\n\027time_microsecond_va" - "lues\030\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003" - "(\003\022\"\n\032interval_year_month_values\030\030 \003(\005\022 " - "\n\030interval_day_time_values\030\031 \003(\003\022I\n\036inte" - "rval_month_day_nano_values\030\032 \003(\0132!.grept" - "ime.v1.IntervalMonthDayNano\0222\n\021decimal12" - "8_values\030\037 \003(\0132\027.greptime.v1.Decimal128B" - "P\n\016io.greptime.v1B\007ColumnsZ5github.com/G" - "reptimeTeam/greptime-proto/go/greptime/v" - "1b\006proto3" + "\030greptime/v1/common.proto\032\025greptime/v1/r" + "ow.proto\"\241\t\n\006Column\022\023\n\013column_name\030\001 \001(\t" + "\0220\n\rsemantic_type\030\002 \001(\0162\031.greptime.v1.Se" + "manticType\022*\n\006values\030\003 \001(\0132\032.greptime.v1" + ".Column.Values\022\021\n\tnull_mask\030\004 \001(\014\022-\n\010dat" + "atype\030\005 \001(\0162\033.greptime.v1.ColumnDataType" + "\022@\n\022datatype_extension\030\006 \001(\0132$.greptime." + "v1.ColumnDataTypeExtension\022+\n\007options\030\007 " + "\001(\0132\032.greptime.v1.ColumnOptions\032\362\006\n\006Valu" + "es\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(" + "\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64_values\030\004 \003(" + "\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_values\030\006 \003(\r" + "\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_values\030\010 \003(\004" + "\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_values\030\n \003(\001" + "\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbinary_values\030\014" + " \003(\014\022\025\n\rstring_values\030\r \003(\t\022\023\n\013date_valu" + "es\030\016 \003(\005\022\027\n\017datetime_values\030\017 \003(\003\022\037\n\027tim" + "estamp_second_values\030\020 \003(\003\022$\n\034timestamp_" + "millisecond_values\030\021 \003(\003\022$\n\034timestamp_mi" + "crosecond_values\030\022 \003(\003\022#\n\033timestamp_nano" + "second_values\030\023 \003(\003\022\032\n\022time_second_value" + "s\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\026tim" + "e_nanosecond_values\030\027 \003(\003\022\"\n\032interval_ye" + "ar_month_values\030\030 \003(\005\022 \n\030interval_day_ti" + "me_values\030\031 \003(\003\022I\n\036interval_month_day_na" + "no_values\030\032 \003(\0132!.greptime.v1.IntervalMo" + "nthDayNano\0222\n\021decimal128_values\030\037 \003(\0132\027." + "greptime.v1.Decimal128\022+\n\013list_values\030( " + "\003(\0132\026.greptime.v1.ListValue\022/\n\rstruct_va" + "lues\030) \003(\0132\030.greptime.v1.StructValueBP\n\016" + "io.greptime.v1B\007ColumnsZ5github.com/Grep" + "timeTeam/greptime-proto/go/greptime/v1b\006" + "proto3" ; -static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps[1] = { +static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps[2] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, + &::descriptor_table_greptime_2fv1_2frow_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcolumn_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcolumn_2eproto = { - false, false, 1249, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto, + false, false, 1366, 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, + &descriptor_table_greptime_2fv1_2fcolumn_2eproto_once, descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps, 2, 2, schemas, file_default_instances, TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets, file_level_metadata_greptime_2fv1_2fcolumn_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto, file_level_service_descriptors_greptime_2fv1_2fcolumn_2eproto, @@ -231,6 +239,12 @@ void Column_Values::clear_interval_month_day_nano_values() { void Column_Values::clear_decimal128_values() { _impl_.decimal128_values_.Clear(); } +void Column_Values::clear_list_values() { + _impl_.list_values_.Clear(); +} +void Column_Values::clear_struct_values() { + _impl_.struct_values_.Clear(); +} Column_Values::Column_Values(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -288,6 +302,8 @@ Column_Values::Column_Values(const Column_Values& from) , /*decltype(_impl_._interval_day_time_values_cached_byte_size_)*/{0} , decltype(_impl_.interval_month_day_nano_values_){from._impl_.interval_month_day_nano_values_} , decltype(_impl_.decimal128_values_){from._impl_.decimal128_values_} + , decltype(_impl_.list_values_){from._impl_.list_values_} + , decltype(_impl_.struct_values_){from._impl_.struct_values_} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -346,6 +362,8 @@ inline void Column_Values::SharedCtor( , /*decltype(_impl_._interval_day_time_values_cached_byte_size_)*/{0} , decltype(_impl_.interval_month_day_nano_values_){arena} , decltype(_impl_.decimal128_values_){arena} + , decltype(_impl_.list_values_){arena} + , decltype(_impl_.struct_values_){arena} , /*decltype(_impl_._cached_size_)*/{} }; } @@ -388,6 +406,8 @@ inline void Column_Values::SharedDtor() { _impl_.interval_day_time_values_.~RepeatedField(); _impl_.interval_month_day_nano_values_.~RepeatedPtrField(); _impl_.decimal128_values_.~RepeatedPtrField(); + _impl_.list_values_.~RepeatedPtrField(); + _impl_.struct_values_.~RepeatedPtrField(); } void Column_Values::SetCachedSize(int size) const { @@ -427,6 +447,8 @@ void Column_Values::Clear() { _impl_.interval_day_time_values_.Clear(); _impl_.interval_month_day_nano_values_.Clear(); _impl_.decimal128_values_.Clear(); + _impl_.list_values_.Clear(); + _impl_.struct_values_.Clear(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -744,6 +766,32 @@ const char* Column_Values::_InternalParse(const char* ptr, ::_pbi::ParseContext* } else goto handle_unusual; continue; + // repeated .greptime.v1.ListValue list_values = 40; + case 40: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(_internal_add_list_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<322>(ptr)); + } else + goto handle_unusual; + continue; + // repeated .greptime.v1.StructValue struct_values = 41; + case 41: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr -= 2; + do { + ptr += 2; + ptr = ctx->ParseMessage(_internal_add_struct_values(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<330>(ptr)); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1000,6 +1048,22 @@ uint8_t* Column_Values::_InternalSerialize( InternalWriteMessage(31, repfield, repfield.GetCachedSize(), target, stream); } + // repeated .greptime.v1.ListValue list_values = 40; + for (unsigned i = 0, + n = static_cast(this->_internal_list_values_size()); i < n; i++) { + const auto& repfield = this->_internal_list_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(40, repfield, repfield.GetCachedSize(), target, stream); + } + + // repeated .greptime.v1.StructValue struct_values = 41; + for (unsigned i = 0, + n = static_cast(this->_internal_struct_values_size()); i < n; i++) { + const auto& repfield = this->_internal_struct_values(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(41, 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); @@ -1359,6 +1423,20 @@ size_t Column_Values::ByteSizeLong() const { ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); } + // repeated .greptime.v1.ListValue list_values = 40; + total_size += 2UL * this->_internal_list_values_size(); + for (const auto& msg : this->_impl_.list_values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + // repeated .greptime.v1.StructValue struct_values = 41; + total_size += 2UL * this->_internal_struct_values_size(); + for (const auto& msg : this->_impl_.struct_values_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -1404,6 +1482,8 @@ void Column_Values::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :: _this->_impl_.interval_day_time_values_.MergeFrom(from._impl_.interval_day_time_values_); _this->_impl_.interval_month_day_nano_values_.MergeFrom(from._impl_.interval_month_day_nano_values_); _this->_impl_.decimal128_values_.MergeFrom(from._impl_.decimal128_values_); + _this->_impl_.list_values_.MergeFrom(from._impl_.list_values_); + _this->_impl_.struct_values_.MergeFrom(from._impl_.struct_values_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -1448,6 +1528,8 @@ void Column_Values::InternalSwap(Column_Values* other) { _impl_.interval_day_time_values_.InternalSwap(&other->_impl_.interval_day_time_values_); _impl_.interval_month_day_nano_values_.InternalSwap(&other->_impl_.interval_month_day_nano_values_); _impl_.decimal128_values_.InternalSwap(&other->_impl_.decimal128_values_); + _impl_.list_values_.InternalSwap(&other->_impl_.list_values_); + _impl_.struct_values_.InternalSwap(&other->_impl_.struct_values_); } ::PROTOBUF_NAMESPACE_ID::Metadata Column_Values::GetMetadata() const { diff --git a/c++/greptime/v1/column.pb.h b/c++/greptime/v1/column.pb.h index 1af4386..4fe0d4a 100644 --- a/c++/greptime/v1/column.pb.h +++ b/c++/greptime/v1/column.pb.h @@ -31,6 +31,7 @@ #include // IWYU pragma: export #include #include "greptime/v1/common.pb.h" +#include "greptime/v1/row.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fcolumn_2eproto @@ -212,6 +213,8 @@ class Column_Values final : kIntervalDayTimeValuesFieldNumber = 25, kIntervalMonthDayNanoValuesFieldNumber = 26, kDecimal128ValuesFieldNumber = 31, + kListValuesFieldNumber = 40, + kStructValuesFieldNumber = 41, }; // repeated int32 i8_values = 1; int i8_values_size() const; @@ -803,6 +806,42 @@ class Column_Values final : const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >& decimal128_values() const; + // repeated .greptime.v1.ListValue list_values = 40; + int list_values_size() const; + private: + int _internal_list_values_size() const; + public: + void clear_list_values(); + ::greptime::v1::ListValue* mutable_list_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ListValue >* + mutable_list_values(); + private: + const ::greptime::v1::ListValue& _internal_list_values(int index) const; + ::greptime::v1::ListValue* _internal_add_list_values(); + public: + const ::greptime::v1::ListValue& list_values(int index) const; + ::greptime::v1::ListValue* add_list_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ListValue >& + list_values() const; + + // repeated .greptime.v1.StructValue struct_values = 41; + int struct_values_size() const; + private: + int _internal_struct_values_size() const; + public: + void clear_struct_values(); + ::greptime::v1::StructValue* mutable_struct_values(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructValue >* + mutable_struct_values(); + private: + const ::greptime::v1::StructValue& _internal_struct_values(int index) const; + ::greptime::v1::StructValue* _internal_add_struct_values(); + public: + const ::greptime::v1::StructValue& struct_values(int index) const; + ::greptime::v1::StructValue* add_struct_values(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructValue >& + struct_values() const; + // @@protoc_insertion_point(class_scope:greptime.v1.Column.Values) private: class _Internal; @@ -858,6 +897,8 @@ class Column_Values final : mutable std::atomic _interval_day_time_values_cached_byte_size_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::IntervalMonthDayNano > interval_month_day_nano_values_; ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 > decimal128_values_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ListValue > list_values_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructValue > struct_values_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -2432,6 +2473,80 @@ Column_Values::decimal128_values() const { return _impl_.decimal128_values_; } +// repeated .greptime.v1.ListValue list_values = 40; +inline int Column_Values::_internal_list_values_size() const { + return _impl_.list_values_.size(); +} +inline int Column_Values::list_values_size() const { + return _internal_list_values_size(); +} +inline ::greptime::v1::ListValue* Column_Values::mutable_list_values(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.Column.Values.list_values) + return _impl_.list_values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ListValue >* +Column_Values::mutable_list_values() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.list_values) + return &_impl_.list_values_; +} +inline const ::greptime::v1::ListValue& Column_Values::_internal_list_values(int index) const { + return _impl_.list_values_.Get(index); +} +inline const ::greptime::v1::ListValue& Column_Values::list_values(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.Column.Values.list_values) + return _internal_list_values(index); +} +inline ::greptime::v1::ListValue* Column_Values::_internal_add_list_values() { + return _impl_.list_values_.Add(); +} +inline ::greptime::v1::ListValue* Column_Values::add_list_values() { + ::greptime::v1::ListValue* _add = _internal_add_list_values(); + // @@protoc_insertion_point(field_add:greptime.v1.Column.Values.list_values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::ListValue >& +Column_Values::list_values() const { + // @@protoc_insertion_point(field_list:greptime.v1.Column.Values.list_values) + return _impl_.list_values_; +} + +// repeated .greptime.v1.StructValue struct_values = 41; +inline int Column_Values::_internal_struct_values_size() const { + return _impl_.struct_values_.size(); +} +inline int Column_Values::struct_values_size() const { + return _internal_struct_values_size(); +} +inline ::greptime::v1::StructValue* Column_Values::mutable_struct_values(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.Column.Values.struct_values) + return _impl_.struct_values_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructValue >* +Column_Values::mutable_struct_values() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.struct_values) + return &_impl_.struct_values_; +} +inline const ::greptime::v1::StructValue& Column_Values::_internal_struct_values(int index) const { + return _impl_.struct_values_.Get(index); +} +inline const ::greptime::v1::StructValue& Column_Values::struct_values(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.Column.Values.struct_values) + return _internal_struct_values(index); +} +inline ::greptime::v1::StructValue* Column_Values::_internal_add_struct_values() { + return _impl_.struct_values_.Add(); +} +inline ::greptime::v1::StructValue* Column_Values::add_struct_values() { + ::greptime::v1::StructValue* _add = _internal_add_struct_values(); + // @@protoc_insertion_point(field_add:greptime.v1.Column.Values.struct_values) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructValue >& +Column_Values::struct_values() const { + // @@protoc_insertion_point(field_list:greptime.v1.Column.Values.struct_values) + return _impl_.struct_values_; +} + // ------------------------------------------------------------------- // Column diff --git a/c++/greptime/v1/common.pb.cc b/c++/greptime/v1/common.pb.cc index abe2a2c..dec4d85 100644 --- a/c++/greptime/v1/common.pb.cc +++ b/c++/greptime/v1/common.pb.cc @@ -336,6 +336,21 @@ struct Decimal128DefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decimal128DefaultTypeInternal _Decimal128_default_instance_; +PROTOBUF_CONSTEXPR StructField::StructField( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.datatype_extension_)*/nullptr + , /*decltype(_impl_.datatype_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StructFieldDefaultTypeInternal { + PROTOBUF_CONSTEXPR StructFieldDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StructFieldDefaultTypeInternal() {} + union { + StructField _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructFieldDefaultTypeInternal _StructField_default_instance_; PROTOBUF_CONSTEXPR ColumnDataTypeExtension::ColumnDataTypeExtension( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.type_ext_)*/{} @@ -377,6 +392,33 @@ struct VectorTypeExtensionDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VectorTypeExtensionDefaultTypeInternal _VectorTypeExtension_default_instance_; +PROTOBUF_CONSTEXPR ListTypeExtension::ListTypeExtension( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.datatype_extension_)*/nullptr + , /*decltype(_impl_.datatype_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ListTypeExtensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListTypeExtensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListTypeExtensionDefaultTypeInternal() {} + union { + ListTypeExtension _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListTypeExtensionDefaultTypeInternal _ListTypeExtension_default_instance_; +PROTOBUF_CONSTEXPR StructTypeExtension::StructTypeExtension( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.fields_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StructTypeExtensionDefaultTypeInternal { + PROTOBUF_CONSTEXPR StructTypeExtensionDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StructTypeExtensionDefaultTypeInternal() {} + union { + StructTypeExtension _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructTypeExtensionDefaultTypeInternal _StructTypeExtension_default_instance_; PROTOBUF_CONSTEXPR ColumnOptions_OptionsEntry_DoNotUse::ColumnOptions_OptionsEntry_DoNotUse( ::_pbi::ConstantInitialized) {} struct ColumnOptions_OptionsEntry_DoNotUseDefaultTypeInternal { @@ -418,7 +460,7 @@ struct ArrowIpcDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowIpcDefaultTypeInternal _ArrowIpc_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[29]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[32]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[4]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr; @@ -621,6 +663,15 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _impl_.hi_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _impl_.lo_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::StructField, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::StructField, _impl_.name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::StructField, _impl_.datatype_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::StructField, _impl_.datatype_extension_), + ~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]), @@ -629,6 +680,8 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDataTypeExtension, _impl_.type_ext_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _internal_metadata_), @@ -645,6 +698,21 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::VectorTypeExtension, _impl_.dim_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ListTypeExtension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ListTypeExtension, _impl_.datatype_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::ListTypeExtension, _impl_.datatype_extension_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::StructTypeExtension, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::StructTypeExtension, _impl_.fields_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse, _has_bits_), PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse, _internal_metadata_), ~0u, // no _extensions_ @@ -696,12 +764,15 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 173, -1, -1, sizeof(::greptime::v1::TimeRange)}, { 181, -1, -1, sizeof(::greptime::v1::TimeRanges)}, { 189, -1, -1, sizeof(::greptime::v1::Decimal128)}, - { 197, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, - { 207, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, - { 215, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, - { 222, 230, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, - { 232, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, - { 239, -1, -1, sizeof(::greptime::v1::ArrowIpc)}, + { 197, -1, -1, sizeof(::greptime::v1::StructField)}, + { 206, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, + { 218, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, + { 226, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, + { 233, -1, -1, sizeof(::greptime::v1::ListTypeExtension)}, + { 241, -1, -1, sizeof(::greptime::v1::StructTypeExtension)}, + { 248, 256, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, + { 258, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, + { 265, -1, -1, sizeof(::greptime::v1::ArrowIpc)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -728,9 +799,12 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_TimeRange_default_instance_._instance, &::greptime::v1::_TimeRanges_default_instance_._instance, &::greptime::v1::_Decimal128_default_instance_._instance, + &::greptime::v1::_StructField_default_instance_._instance, &::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance, &::greptime::v1::_DecimalTypeExtension_default_instance_._instance, &::greptime::v1::_VectorTypeExtension_default_instance_._instance, + &::greptime::v1::_ListTypeExtension_default_instance_._instance, + &::greptime::v1::_StructTypeExtension_default_instance_._instance, &::greptime::v1::_ColumnOptions_OptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_ColumnOptions_default_instance_._instance, &::greptime::v1::_ArrowIpc_default_instance_._instance, @@ -781,44 +855,56 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S "anges\022(\n\ttime_unit\030\001 \001(\0162\025.greptime.v1.T" "imeUnit\022+\n\013time_ranges\030\002 \003(\0132\026.greptime." "v1.TimeRange\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n" - "\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExtension\0229" - "\n\014decimal_type\030\001 \001(\0132!.greptime.v1.Decim" - "alTypeExtensionH\000\0223\n\tjson_type\030\002 \001(\0162\036.g" - "reptime.v1.JsonTypeExtensionH\000\0227\n\013vector" - "_type\030\003 \001(\0132 .greptime.v1.VectorTypeExte" - "nsionH\000B\n\n\010type_ext\"8\n\024DecimalTypeExtens" - "ion\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n" - "\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r\"y\n\rCol" - "umnOptions\0228\n\007options\030\001 \003(\0132\'.greptime.v" - "1.ColumnOptions.OptionsEntry\032.\n\014OptionsE" - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\010" - "ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_header\030" - "\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014SemanticType\022\007" - "\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\354\003\n\016Co" - "lumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005I" - "NT16\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\006UINT64\020\010\022\013\n\007F" - "LOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STR" - "ING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTA" - "MP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031" - "\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_N" - "ANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MIL" - "LISECOND\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\016\n\nDECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006" - "VECTOR\020 *H\n\010TimeUnit\022\017\n\013MILLISECOND\020\000\022\n\n" - "\006SECOND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNANOSECOND" - "\020\003*$\n\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000" - "BO\n\016io.greptime.v1B\006CommonZ5github.com/G" - "reptimeTeam/greptime-proto/go/greptime/v" - "1b\006proto3" + "\n\002lo\030\002 \001(\003\"\214\001\n\013StructField\022\014\n\004name\030\001 \001(\t" + "\022-\n\010datatype\030\002 \001(\0162\033.greptime.v1.ColumnD" + "ataType\022@\n\022datatype_extension\030\003 \001(\0132$.gr" + "eptime.v1.ColumnDataTypeExtension\"\274\002\n\027Co" + "lumnDataTypeExtension\0229\n\014decimal_type\030\001 " + "\001(\0132!.greptime.v1.DecimalTypeExtensionH\000" + "\0223\n\tjson_type\030\002 \001(\0162\036.greptime.v1.JsonTy" + "peExtensionH\000\0227\n\013vector_type\030\003 \001(\0132 .gre" + "ptime.v1.VectorTypeExtensionH\000\0223\n\tlist_t" + "ype\030\004 \001(\0132\036.greptime.v1.ListTypeExtensio" + "nH\000\0227\n\013struct_type\030\005 \001(\0132 .greptime.v1.S" + "tructTypeExtensionH\000B\n\n\010type_ext\"8\n\024Deci" + "malTypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005s" + "cale\030\002 \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim" + "\030\001 \001(\r\"\204\001\n\021ListTypeExtension\022-\n\010datatype" + "\030\001 \001(\0162\033.greptime.v1.ColumnDataType\022@\n\022d" + "atatype_extension\030\002 \001(\0132$.greptime.v1.Co" + "lumnDataTypeExtension\"\?\n\023StructTypeExten" + "sion\022(\n\006fields\030\001 \003(\0132\030.greptime.v1.Struc" + "tField\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\013" + "2\'.greptime.v1.ColumnOptions.OptionsEntr" + "y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + "\002 \001(\t:\0028\001\"@\n\010ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n" + "\013data_header\030\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014S" + "emanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMES" + "TAMP\020\002*\202\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\006" + "UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BI" + "NARY\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_MI" + "LLISECOND\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_MICROSEC" + "OND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_Y" + "EAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027IN" + "TERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022" + "\010\n\004JSON\020\037\022\n\n\006VECTOR\020 \022\010\n\004LIST\020(\022\n\n\006STRUC" + "T\020)*H\n\010TimeUnit\022\017\n\013MILLISECOND\020\000\022\n\n\006SECO" + "ND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNANOSECOND\020\003*$\n" + "\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016i" + "o.greptime.v1B\006CommonZ5github.com/Grepti" + "meTeam/greptime-proto/go/greptime/v1b\006pr" + "oto3" ; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { - false, false, 3009, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, + false, false, 3484, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, "greptime/v1/common.proto", - &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 29, + &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 32, 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, @@ -881,6 +967,8 @@ bool ColumnDataType_IsValid(int value) { case 30: case 31: case 32: + case 40: + case 41: return true; default: return false; @@ -5685,10 +5773,291 @@ void Decimal128::InternalSwap(Decimal128* other) { // =================================================================== +class StructField::_Internal { + public: + static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const StructField* msg); +}; + +const ::greptime::v1::ColumnDataTypeExtension& +StructField::_Internal::datatype_extension(const StructField* msg) { + return *msg->_impl_.datatype_extension_; +} +StructField::StructField(::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.StructField) +} +StructField::StructField(const StructField& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StructField* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.datatype_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_name().empty()) { + _this->_impl_.name_.Set(from._internal_name(), + _this->GetArenaForAllocation()); + } + if (from._internal_has_datatype_extension()) { + _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); + } + _this->_impl_.datatype_ = from._impl_.datatype_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.StructField) +} + +inline void StructField::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.name_){} + , decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.datatype_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +StructField::~StructField() { + // @@protoc_insertion_point(destructor:greptime.v1.StructField) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StructField::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.name_.Destroy(); + if (this != internal_default_instance()) delete _impl_.datatype_extension_; +} + +void StructField::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StructField::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.StructField) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.name_.ClearToEmpty(); + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; + _impl_.datatype_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StructField::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // string name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.StructField.name")); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataType datatype = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 16)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_datatype(static_cast<::greptime::v1::ColumnDataType>(val)); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), 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* StructField::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.StructField) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_name().data(), static_cast(this->_internal_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.StructField.name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_name(), target); + } + + // .greptime.v1.ColumnDataType datatype = 2; + if (this->_internal_datatype() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 2, this->_internal_datatype(), target); + } + + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + if (this->_internal_has_datatype_extension()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _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); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.StructField) + return target; +} + +size_t StructField::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.StructField) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string name = 1; + if (!this->_internal_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_name()); + } + + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + 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 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_datatype()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StructField::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StructField::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StructField::GetClassData() const { return &_class_data_; } + + +void StructField::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.StructField) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_name().empty()) { + _this->_internal_set_name(from._internal_name()); + } + if (from._internal_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()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StructField::CopyFrom(const StructField& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.StructField) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StructField::IsInitialized() const { + return true; +} + +void StructField::InternalSwap(StructField* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.name_, lhs_arena, + &other->_impl_.name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(StructField, _impl_.datatype_) + + sizeof(StructField::_impl_.datatype_) + - PROTOBUF_FIELD_OFFSET(StructField, _impl_.datatype_extension_)>( + reinterpret_cast(&_impl_.datatype_extension_), + reinterpret_cast(&other->_impl_.datatype_extension_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StructField::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[23]); +} + +// =================================================================== + class ColumnDataTypeExtension::_Internal { public: static const ::greptime::v1::DecimalTypeExtension& decimal_type(const ColumnDataTypeExtension* msg); static const ::greptime::v1::VectorTypeExtension& vector_type(const ColumnDataTypeExtension* msg); + static const ::greptime::v1::ListTypeExtension& list_type(const ColumnDataTypeExtension* msg); + static const ::greptime::v1::StructTypeExtension& struct_type(const ColumnDataTypeExtension* msg); }; const ::greptime::v1::DecimalTypeExtension& @@ -5699,6 +6068,14 @@ const ::greptime::v1::VectorTypeExtension& ColumnDataTypeExtension::_Internal::vector_type(const ColumnDataTypeExtension* msg) { return *msg->_impl_.type_ext_.vector_type_; } +const ::greptime::v1::ListTypeExtension& +ColumnDataTypeExtension::_Internal::list_type(const ColumnDataTypeExtension* msg) { + return *msg->_impl_.type_ext_.list_type_; +} +const ::greptime::v1::StructTypeExtension& +ColumnDataTypeExtension::_Internal::struct_type(const ColumnDataTypeExtension* msg) { + return *msg->_impl_.type_ext_.struct_type_; +} void ColumnDataTypeExtension::set_allocated_decimal_type(::greptime::v1::DecimalTypeExtension* decimal_type) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_type_ext(); @@ -5729,6 +6106,36 @@ void ColumnDataTypeExtension::set_allocated_vector_type(::greptime::v1::VectorTy } // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDataTypeExtension.vector_type) } +void ColumnDataTypeExtension::set_allocated_list_type(::greptime::v1::ListTypeExtension* list_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_ext(); + if (list_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_type); + if (message_arena != submessage_arena) { + list_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_type, submessage_arena); + } + set_has_list_type(); + _impl_.type_ext_.list_type_ = list_type; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDataTypeExtension.list_type) +} +void ColumnDataTypeExtension::set_allocated_struct_type(::greptime::v1::StructTypeExtension* struct_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_type_ext(); + if (struct_type) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(struct_type); + if (message_arena != submessage_arena) { + struct_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, struct_type, submessage_arena); + } + set_has_struct_type(); + _impl_.type_ext_.struct_type_ = struct_type; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDataTypeExtension.struct_type) +} ColumnDataTypeExtension::ColumnDataTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -5760,6 +6167,16 @@ ColumnDataTypeExtension::ColumnDataTypeExtension(const ColumnDataTypeExtension& from._internal_vector_type()); break; } + case kListType: { + _this->_internal_mutable_list_type()->::greptime::v1::ListTypeExtension::MergeFrom( + from._internal_list_type()); + break; + } + case kStructType: { + _this->_internal_mutable_struct_type()->::greptime::v1::StructTypeExtension::MergeFrom( + from._internal_struct_type()); + break; + } case TYPE_EXT_NOT_SET: { break; } @@ -5818,6 +6235,18 @@ void ColumnDataTypeExtension::clear_type_ext() { } break; } + case kListType: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_ext_.list_type_; + } + break; + } + case kStructType: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_ext_.struct_type_; + } + break; + } case TYPE_EXT_NOT_SET: { break; } @@ -5867,6 +6296,22 @@ const char* ColumnDataTypeExtension::_InternalParse(const char* ptr, ::_pbi::Par } else goto handle_unusual; continue; + // .greptime.v1.ListTypeExtension list_type = 4; + case 4: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { + ptr = ctx->ParseMessage(_internal_mutable_list_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.StructTypeExtension struct_type = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_struct_type(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -5917,6 +6362,20 @@ uint8_t* ColumnDataTypeExtension::_InternalSerialize( _Internal::vector_type(this).GetCachedSize(), target, stream); } + // .greptime.v1.ListTypeExtension list_type = 4; + if (_internal_has_list_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::list_type(this), + _Internal::list_type(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.StructTypeExtension struct_type = 5; + if (_internal_has_struct_type()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::struct_type(this), + _Internal::struct_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); @@ -5954,6 +6413,20 @@ size_t ColumnDataTypeExtension::ByteSizeLong() const { *_impl_.type_ext_.vector_type_); break; } + // .greptime.v1.ListTypeExtension list_type = 4; + case kListType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_ext_.list_type_); + break; + } + // .greptime.v1.StructTypeExtension struct_type = 5; + case kStructType: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.type_ext_.struct_type_); + break; + } case TYPE_EXT_NOT_SET: { break; } @@ -5991,6 +6464,16 @@ void ColumnDataTypeExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg from._internal_vector_type()); break; } + case kListType: { + _this->_internal_mutable_list_type()->::greptime::v1::ListTypeExtension::MergeFrom( + from._internal_list_type()); + break; + } + case kStructType: { + _this->_internal_mutable_struct_type()->::greptime::v1::StructTypeExtension::MergeFrom( + from._internal_struct_type()); + break; + } case TYPE_EXT_NOT_SET: { break; } @@ -6019,7 +6502,7 @@ void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) { ::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[23]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[24]); } // =================================================================== @@ -6230,7 +6713,7 @@ void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) { ::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[24]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[25]); } // =================================================================== @@ -6408,7 +6891,419 @@ void VectorTypeExtension::InternalSwap(VectorTypeExtension* other) { ::PROTOBUF_NAMESPACE_ID::Metadata VectorTypeExtension::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[25]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[26]); +} + +// =================================================================== + +class ListTypeExtension::_Internal { + public: + static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ListTypeExtension* msg); +}; + +const ::greptime::v1::ColumnDataTypeExtension& +ListTypeExtension::_Internal::datatype_extension(const ListTypeExtension* msg) { + return *msg->_impl_.datatype_extension_; +} +ListTypeExtension::ListTypeExtension(::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.ListTypeExtension) +} +ListTypeExtension::ListTypeExtension(const ListTypeExtension& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListTypeExtension* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.datatype_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + if (from._internal_has_datatype_extension()) { + _this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_); + } + _this->_impl_.datatype_ = from._impl_.datatype_; + // @@protoc_insertion_point(copy_constructor:greptime.v1.ListTypeExtension) +} + +inline void ListTypeExtension::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.datatype_extension_){nullptr} + , decltype(_impl_.datatype_){0} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ListTypeExtension::~ListTypeExtension() { + // @@protoc_insertion_point(destructor:greptime.v1.ListTypeExtension) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListTypeExtension::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (this != internal_default_instance()) delete _impl_.datatype_extension_; +} + +void ListTypeExtension::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ListTypeExtension::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ListTypeExtension) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; + _impl_.datatype_ = 0; + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListTypeExtension::_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.ColumnDataType datatype = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 8)) { + uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); + CHK_(ptr); + _internal_set_datatype(static_cast<::greptime::v1::ColumnDataType>(val)); + } else + goto handle_unusual; + continue; + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), 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* ListTypeExtension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ListTypeExtension) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // .greptime.v1.ColumnDataType datatype = 1; + if (this->_internal_datatype() != 0) { + target = stream->EnsureSpace(target); + target = ::_pbi::WireFormatLite::WriteEnumToArray( + 1, this->_internal_datatype(), target); + } + + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + if (this->_internal_has_datatype_extension()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _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); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ListTypeExtension) + return target; +} + +size_t ListTypeExtension::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ListTypeExtension) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + if (this->_internal_has_datatype_extension()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.datatype_extension_); + } + + // .greptime.v1.ColumnDataType datatype = 1; + if (this->_internal_datatype() != 0) { + total_size += 1 + + ::_pbi::WireFormatLite::EnumSize(this->_internal_datatype()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListTypeExtension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ListTypeExtension::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListTypeExtension::GetClassData() const { return &_class_data_; } + + +void ListTypeExtension::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.ListTypeExtension) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + 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()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListTypeExtension::CopyFrom(const ListTypeExtension& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ListTypeExtension) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListTypeExtension::IsInitialized() const { + return true; +} + +void ListTypeExtension::InternalSwap(ListTypeExtension* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(ListTypeExtension, _impl_.datatype_) + + sizeof(ListTypeExtension::_impl_.datatype_) + - PROTOBUF_FIELD_OFFSET(ListTypeExtension, _impl_.datatype_extension_)>( + reinterpret_cast(&_impl_.datatype_extension_), + reinterpret_cast(&other->_impl_.datatype_extension_)); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListTypeExtension::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[27]); +} + +// =================================================================== + +class StructTypeExtension::_Internal { + public: +}; + +StructTypeExtension::StructTypeExtension(::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.StructTypeExtension) +} +StructTypeExtension::StructTypeExtension(const StructTypeExtension& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StructTypeExtension* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.fields_){from._impl_.fields_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.StructTypeExtension) +} + +inline void StructTypeExtension::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.fields_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +StructTypeExtension::~StructTypeExtension() { + // @@protoc_insertion_point(destructor:greptime.v1.StructTypeExtension) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StructTypeExtension::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.fields_.~RepeatedPtrField(); +} + +void StructTypeExtension::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StructTypeExtension::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.StructTypeExtension) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.fields_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StructTypeExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .greptime.v1.StructField fields = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_fields(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* StructTypeExtension::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.StructTypeExtension) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.StructField fields = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_fields_size()); i < n; i++) { + const auto& repfield = this->_internal_fields(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.StructTypeExtension) + return target; +} + +size_t StructTypeExtension::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.StructTypeExtension) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.StructField fields = 1; + total_size += 1UL * this->_internal_fields_size(); + for (const auto& msg : this->_impl_.fields_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StructTypeExtension::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StructTypeExtension::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StructTypeExtension::GetClassData() const { return &_class_data_; } + + +void StructTypeExtension::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.StructTypeExtension) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.fields_.MergeFrom(from._impl_.fields_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StructTypeExtension::CopyFrom(const StructTypeExtension& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.StructTypeExtension) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StructTypeExtension::IsInitialized() const { + return true; +} + +void StructTypeExtension::InternalSwap(StructTypeExtension* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.fields_.InternalSwap(&other->_impl_.fields_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StructTypeExtension::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[28]); } // =================================================================== @@ -6422,7 +7317,7 @@ void ColumnOptions_OptionsEntry_DoNotUse::MergeFrom(const ColumnOptions_OptionsE ::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions_OptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[26]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[29]); } // =================================================================== @@ -6641,7 +7536,7 @@ void ColumnOptions::InternalSwap(ColumnOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[27]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[30]); } // =================================================================== @@ -6929,7 +7824,7 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ArrowIpc::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[28]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[31]); } // @@protoc_insertion_point(namespace_scope) @@ -7028,6 +7923,10 @@ 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::StructField* +Arena::CreateMaybeMessage< ::greptime::v1::StructField >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::StructField >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnDataTypeExtension* Arena::CreateMaybeMessage< ::greptime::v1::ColumnDataTypeExtension >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::ColumnDataTypeExtension >(arena); @@ -7040,6 +7939,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::VectorTypeExtension* Arena::CreateMaybeMessage< ::greptime::v1::VectorTypeExtension >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::VectorTypeExtension >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::ListTypeExtension* +Arena::CreateMaybeMessage< ::greptime::v1::ListTypeExtension >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ListTypeExtension >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::StructTypeExtension* +Arena::CreateMaybeMessage< ::greptime::v1::StructTypeExtension >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::StructTypeExtension >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse* Arena::CreateMaybeMessage< ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse >(arena); diff --git a/c++/greptime/v1/common.pb.h b/c++/greptime/v1/common.pb.h index 4618431..d3ce80c 100644 --- a/c++/greptime/v1/common.pb.h +++ b/c++/greptime/v1/common.pb.h @@ -92,6 +92,9 @@ extern FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_; class IntervalMonthDayNano; struct IntervalMonthDayNanoDefaultTypeInternal; extern IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_; +class ListTypeExtension; +struct ListTypeExtensionDefaultTypeInternal; +extern ListTypeExtensionDefaultTypeInternal _ListTypeExtension_default_instance_; class Metrics; struct MetricsDefaultTypeInternal; extern MetricsDefaultTypeInternal _Metrics_default_instance_; @@ -122,6 +125,12 @@ extern SnapshotSequences_SstMinSequencesEntry_DoNotUseDefaultTypeInternal _Snaps class Status; struct StatusDefaultTypeInternal; extern StatusDefaultTypeInternal _Status_default_instance_; +class StructField; +struct StructFieldDefaultTypeInternal; +extern StructFieldDefaultTypeInternal _StructField_default_instance_; +class StructTypeExtension; +struct StructTypeExtensionDefaultTypeInternal; +extern StructTypeExtensionDefaultTypeInternal _StructTypeExtension_default_instance_; class TableName; struct TableNameDefaultTypeInternal; extern TableNameDefaultTypeInternal _TableName_default_instance_; @@ -154,6 +163,7 @@ template<> ::greptime::v1::ExpireAfter* Arena::CreateMaybeMessage<::greptime::v1 template<> ::greptime::v1::ExplainOptions* Arena::CreateMaybeMessage<::greptime::v1::ExplainOptions>(Arena*); template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*); template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*); +template<> ::greptime::v1::ListTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::ListTypeExtension>(Arena*); template<> ::greptime::v1::Metrics* Arena::CreateMaybeMessage<::greptime::v1::Metrics>(Arena*); template<> ::greptime::v1::QueryContext* Arena::CreateMaybeMessage<::greptime::v1::QueryContext>(Arena*); template<> ::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::QueryContext_ExtensionsEntry_DoNotUse>(Arena*); @@ -164,6 +174,8 @@ template<> ::greptime::v1::SnapshotSequences* Arena::CreateMaybeMessage<::grepti template<> ::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse>(Arena*); template<> ::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse>(Arena*); template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*); +template<> ::greptime::v1::StructField* Arena::CreateMaybeMessage<::greptime::v1::StructField>(Arena*); +template<> ::greptime::v1::StructTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::StructTypeExtension>(Arena*); template<> ::greptime::v1::TableName* Arena::CreateMaybeMessage<::greptime::v1::TableName>(Arena*); template<> ::greptime::v1::TimeRange* Arena::CreateMaybeMessage<::greptime::v1::TimeRange>(Arena*); template<> ::greptime::v1::TimeRanges* Arena::CreateMaybeMessage<::greptime::v1::TimeRanges>(Arena*); @@ -229,12 +241,14 @@ enum ColumnDataType : int { DECIMAL128 = 30, JSON = 31, VECTOR = 32, + LIST = 40, + STRUCT = 41, 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 = VECTOR; +constexpr ColumnDataType ColumnDataType_MAX = STRUCT; constexpr int ColumnDataType_ARRAYSIZE = ColumnDataType_MAX + 1; const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ColumnDataType_descriptor(); @@ -3705,6 +3719,190 @@ class Decimal128 final : }; // ------------------------------------------------------------------- +class StructField final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.StructField) */ { + public: + inline StructField() : StructField(nullptr) {} + ~StructField() override; + explicit PROTOBUF_CONSTEXPR StructField(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StructField(const StructField& from); + StructField(StructField&& from) noexcept + : StructField() { + *this = ::std::move(from); + } + + inline StructField& operator=(const StructField& from) { + CopyFrom(from); + return *this; + } + inline StructField& operator=(StructField&& 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 StructField& default_instance() { + return *internal_default_instance(); + } + static inline const StructField* internal_default_instance() { + return reinterpret_cast( + &_StructField_default_instance_); + } + static constexpr int kIndexInFileMessages = + 23; + + friend void swap(StructField& a, StructField& b) { + a.Swap(&b); + } + inline void Swap(StructField* 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(StructField* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StructField* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StructField& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StructField& from) { + StructField::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(StructField* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.StructField"; + } + protected: + explicit StructField(::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 { + kNameFieldNumber = 1, + kDatatypeExtensionFieldNumber = 3, + kDatatypeFieldNumber = 2, + }; + // string name = 1; + void clear_name(); + const std::string& name() const; + template + void set_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_name(); + PROTOBUF_NODISCARD std::string* release_name(); + void set_allocated_name(std::string* name); + private: + const std::string& _internal_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); + std::string* _internal_mutable_name(); + public: + + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + 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; + void set_datatype(::greptime::v1::ColumnDataType value); + private: + ::greptime::v1::ColumnDataType _internal_datatype() const; + void _internal_set_datatype(::greptime::v1::ColumnDataType value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.StructField) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; + ::greptime::v1::ColumnDataTypeExtension* datatype_extension_; + int datatype_; + 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: @@ -3752,6 +3950,8 @@ class ColumnDataTypeExtension final : kDecimalType = 1, kJsonType = 2, kVectorType = 3, + kListType = 4, + kStructType = 5, TYPE_EXT_NOT_SET = 0, }; @@ -3760,7 +3960,7 @@ class ColumnDataTypeExtension final : &_ColumnDataTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 23; + 24; friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) { a.Swap(&b); @@ -3836,6 +4036,8 @@ class ColumnDataTypeExtension final : kDecimalTypeFieldNumber = 1, kJsonTypeFieldNumber = 2, kVectorTypeFieldNumber = 3, + kListTypeFieldNumber = 4, + kStructTypeFieldNumber = 5, }; // .greptime.v1.DecimalTypeExtension decimal_type = 1; bool has_decimal_type() const; @@ -3886,6 +4088,42 @@ class ColumnDataTypeExtension final : ::greptime::v1::VectorTypeExtension* vector_type); ::greptime::v1::VectorTypeExtension* unsafe_arena_release_vector_type(); + // .greptime.v1.ListTypeExtension list_type = 4; + bool has_list_type() const; + private: + bool _internal_has_list_type() const; + public: + void clear_list_type(); + const ::greptime::v1::ListTypeExtension& list_type() const; + PROTOBUF_NODISCARD ::greptime::v1::ListTypeExtension* release_list_type(); + ::greptime::v1::ListTypeExtension* mutable_list_type(); + void set_allocated_list_type(::greptime::v1::ListTypeExtension* list_type); + private: + const ::greptime::v1::ListTypeExtension& _internal_list_type() const; + ::greptime::v1::ListTypeExtension* _internal_mutable_list_type(); + public: + void unsafe_arena_set_allocated_list_type( + ::greptime::v1::ListTypeExtension* list_type); + ::greptime::v1::ListTypeExtension* unsafe_arena_release_list_type(); + + // .greptime.v1.StructTypeExtension struct_type = 5; + bool has_struct_type() const; + private: + bool _internal_has_struct_type() const; + public: + void clear_struct_type(); + const ::greptime::v1::StructTypeExtension& struct_type() const; + PROTOBUF_NODISCARD ::greptime::v1::StructTypeExtension* release_struct_type(); + ::greptime::v1::StructTypeExtension* mutable_struct_type(); + void set_allocated_struct_type(::greptime::v1::StructTypeExtension* struct_type); + private: + const ::greptime::v1::StructTypeExtension& _internal_struct_type() const; + ::greptime::v1::StructTypeExtension* _internal_mutable_struct_type(); + public: + void unsafe_arena_set_allocated_struct_type( + ::greptime::v1::StructTypeExtension* struct_type); + ::greptime::v1::StructTypeExtension* unsafe_arena_release_struct_type(); + void clear_type_ext(); TypeExtCase type_ext_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.ColumnDataTypeExtension) @@ -3894,6 +4132,8 @@ class ColumnDataTypeExtension final : void set_has_decimal_type(); void set_has_json_type(); void set_has_vector_type(); + void set_has_list_type(); + void set_has_struct_type(); inline bool has_type_ext() const; inline void clear_has_type_ext(); @@ -3908,6 +4148,8 @@ class ColumnDataTypeExtension final : ::greptime::v1::DecimalTypeExtension* decimal_type_; int json_type_; ::greptime::v1::VectorTypeExtension* vector_type_; + ::greptime::v1::ListTypeExtension* list_type_; + ::greptime::v1::StructTypeExtension* struct_type_; } type_ext_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -3966,7 +4208,7 @@ class DecimalTypeExtension final : &_DecimalTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 25; friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) { a.Swap(&b); @@ -4125,7 +4367,7 @@ class VectorTypeExtension final : &_VectorTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 26; friend void swap(VectorTypeExtension& a, VectorTypeExtension& b) { a.Swap(&b); @@ -4225,6 +4467,331 @@ class VectorTypeExtension final : }; // ------------------------------------------------------------------- +class ListTypeExtension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ListTypeExtension) */ { + public: + inline ListTypeExtension() : ListTypeExtension(nullptr) {} + ~ListTypeExtension() override; + explicit PROTOBUF_CONSTEXPR ListTypeExtension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListTypeExtension(const ListTypeExtension& from); + ListTypeExtension(ListTypeExtension&& from) noexcept + : ListTypeExtension() { + *this = ::std::move(from); + } + + inline ListTypeExtension& operator=(const ListTypeExtension& from) { + CopyFrom(from); + return *this; + } + inline ListTypeExtension& operator=(ListTypeExtension&& 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 ListTypeExtension& default_instance() { + return *internal_default_instance(); + } + static inline const ListTypeExtension* internal_default_instance() { + return reinterpret_cast( + &_ListTypeExtension_default_instance_); + } + static constexpr int kIndexInFileMessages = + 27; + + friend void swap(ListTypeExtension& a, ListTypeExtension& b) { + a.Swap(&b); + } + inline void Swap(ListTypeExtension* 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(ListTypeExtension* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListTypeExtension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListTypeExtension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ListTypeExtension& from) { + ListTypeExtension::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(ListTypeExtension* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ListTypeExtension"; + } + protected: + explicit ListTypeExtension(::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 { + kDatatypeExtensionFieldNumber = 2, + kDatatypeFieldNumber = 1, + }; + // .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + 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 = 1; + void clear_datatype(); + ::greptime::v1::ColumnDataType datatype() const; + void set_datatype(::greptime::v1::ColumnDataType value); + private: + ::greptime::v1::ColumnDataType _internal_datatype() const; + void _internal_set_datatype(::greptime::v1::ColumnDataType value); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.ListTypeExtension) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::greptime::v1::ColumnDataTypeExtension* datatype_extension_; + int datatype_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + +class StructTypeExtension final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.StructTypeExtension) */ { + public: + inline StructTypeExtension() : StructTypeExtension(nullptr) {} + ~StructTypeExtension() override; + explicit PROTOBUF_CONSTEXPR StructTypeExtension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StructTypeExtension(const StructTypeExtension& from); + StructTypeExtension(StructTypeExtension&& from) noexcept + : StructTypeExtension() { + *this = ::std::move(from); + } + + inline StructTypeExtension& operator=(const StructTypeExtension& from) { + CopyFrom(from); + return *this; + } + inline StructTypeExtension& operator=(StructTypeExtension&& 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 StructTypeExtension& default_instance() { + return *internal_default_instance(); + } + static inline const StructTypeExtension* internal_default_instance() { + return reinterpret_cast( + &_StructTypeExtension_default_instance_); + } + static constexpr int kIndexInFileMessages = + 28; + + friend void swap(StructTypeExtension& a, StructTypeExtension& b) { + a.Swap(&b); + } + inline void Swap(StructTypeExtension* 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(StructTypeExtension* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StructTypeExtension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StructTypeExtension& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StructTypeExtension& from) { + StructTypeExtension::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(StructTypeExtension* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.StructTypeExtension"; + } + protected: + explicit StructTypeExtension(::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 { + kFieldsFieldNumber = 1, + }; + // repeated .greptime.v1.StructField fields = 1; + int fields_size() const; + private: + int _internal_fields_size() const; + public: + void clear_fields(); + ::greptime::v1::StructField* mutable_fields(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructField >* + mutable_fields(); + private: + const ::greptime::v1::StructField& _internal_fields(int index) const; + ::greptime::v1::StructField* _internal_add_fields(); + public: + const ::greptime::v1::StructField& fields(int index) const; + ::greptime::v1::StructField* add_fields(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructField >& + fields() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.StructTypeExtension) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructField > fields_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + class ColumnOptions_OptionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry +inline PROTOBUF_ALWAYS_INLINE +void StructField::set_name(ArgT0&& arg0, ArgT... args) { + + _impl_.name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.StructField.name) +} +inline std::string* StructField::mutable_name() { + std::string* _s = _internal_mutable_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.StructField.name) + return _s; +} +inline const std::string& StructField::_internal_name() const { + return _impl_.name_.Get(); +} +inline void StructField::_internal_set_name(const std::string& value) { + + _impl_.name_.Set(value, GetArenaForAllocation()); +} +inline std::string* StructField::_internal_mutable_name() { + + return _impl_.name_.Mutable(GetArenaForAllocation()); +} +inline std::string* StructField::release_name() { + // @@protoc_insertion_point(field_release:greptime.v1.StructField.name) + return _impl_.name_.Release(); +} +inline void StructField::set_allocated_name(std::string* name) { + if (name != nullptr) { + + } else { + + } + _impl_.name_.SetAllocated(name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.name_.IsDefault()) { + _impl_.name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.StructField.name) +} + +// .greptime.v1.ColumnDataType datatype = 2; +inline void StructField::clear_datatype() { + _impl_.datatype_ = 0; +} +inline ::greptime::v1::ColumnDataType StructField::_internal_datatype() const { + return static_cast< ::greptime::v1::ColumnDataType >(_impl_.datatype_); +} +inline ::greptime::v1::ColumnDataType StructField::datatype() const { + // @@protoc_insertion_point(field_get:greptime.v1.StructField.datatype) + return _internal_datatype(); +} +inline void StructField::_internal_set_datatype(::greptime::v1::ColumnDataType value) { + + _impl_.datatype_ = value; +} +inline void StructField::set_datatype(::greptime::v1::ColumnDataType value) { + _internal_set_datatype(value); + // @@protoc_insertion_point(field_set:greptime.v1.StructField.datatype) +} + +// .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; +inline bool StructField::_internal_has_datatype_extension() const { + return this != internal_default_instance() && _impl_.datatype_extension_ != nullptr; +} +inline bool StructField::has_datatype_extension() const { + return _internal_has_datatype_extension(); +} +inline void StructField::clear_datatype_extension() { + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; +} +inline const ::greptime::v1::ColumnDataTypeExtension& StructField::_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& StructField::datatype_extension() const { + // @@protoc_insertion_point(field_get:greptime.v1.StructField.datatype_extension) + return _internal_datatype_extension(); +} +inline void StructField::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.StructField.datatype_extension) +} +inline ::greptime::v1::ColumnDataTypeExtension* StructField::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* StructField::unsafe_arena_release_datatype_extension() { + // @@protoc_insertion_point(field_release:greptime.v1.StructField.datatype_extension) + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_; + _impl_.datatype_extension_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnDataTypeExtension* StructField::_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* StructField::mutable_datatype_extension() { + ::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_datatype_extension(); + // @@protoc_insertion_point(field_mutable:greptime.v1.StructField.datatype_extension) + return _msg; +} +inline void StructField::set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.datatype_extension_; + } + if (datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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.StructField.datatype_extension) +} + +// ------------------------------------------------------------------- + // ColumnDataTypeExtension // .greptime.v1.DecimalTypeExtension decimal_type = 1; @@ -6763,6 +7494,154 @@ inline ::greptime::v1::VectorTypeExtension* ColumnDataTypeExtension::mutable_vec return _msg; } +// .greptime.v1.ListTypeExtension list_type = 4; +inline bool ColumnDataTypeExtension::_internal_has_list_type() const { + return type_ext_case() == kListType; +} +inline bool ColumnDataTypeExtension::has_list_type() const { + return _internal_has_list_type(); +} +inline void ColumnDataTypeExtension::set_has_list_type() { + _impl_._oneof_case_[0] = kListType; +} +inline void ColumnDataTypeExtension::clear_list_type() { + if (_internal_has_list_type()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_ext_.list_type_; + } + clear_has_type_ext(); + } +} +inline ::greptime::v1::ListTypeExtension* ColumnDataTypeExtension::release_list_type() { + // @@protoc_insertion_point(field_release:greptime.v1.ColumnDataTypeExtension.list_type) + if (_internal_has_list_type()) { + clear_has_type_ext(); + ::greptime::v1::ListTypeExtension* temp = _impl_.type_ext_.list_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_ext_.list_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::ListTypeExtension& ColumnDataTypeExtension::_internal_list_type() const { + return _internal_has_list_type() + ? *_impl_.type_ext_.list_type_ + : reinterpret_cast< ::greptime::v1::ListTypeExtension&>(::greptime::v1::_ListTypeExtension_default_instance_); +} +inline const ::greptime::v1::ListTypeExtension& ColumnDataTypeExtension::list_type() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnDataTypeExtension.list_type) + return _internal_list_type(); +} +inline ::greptime::v1::ListTypeExtension* ColumnDataTypeExtension::unsafe_arena_release_list_type() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.ColumnDataTypeExtension.list_type) + if (_internal_has_list_type()) { + clear_has_type_ext(); + ::greptime::v1::ListTypeExtension* temp = _impl_.type_ext_.list_type_; + _impl_.type_ext_.list_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ColumnDataTypeExtension::unsafe_arena_set_allocated_list_type(::greptime::v1::ListTypeExtension* list_type) { + clear_type_ext(); + if (list_type) { + set_has_list_type(); + _impl_.type_ext_.list_type_ = list_type; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ColumnDataTypeExtension.list_type) +} +inline ::greptime::v1::ListTypeExtension* ColumnDataTypeExtension::_internal_mutable_list_type() { + if (!_internal_has_list_type()) { + clear_type_ext(); + set_has_list_type(); + _impl_.type_ext_.list_type_ = CreateMaybeMessage< ::greptime::v1::ListTypeExtension >(GetArenaForAllocation()); + } + return _impl_.type_ext_.list_type_; +} +inline ::greptime::v1::ListTypeExtension* ColumnDataTypeExtension::mutable_list_type() { + ::greptime::v1::ListTypeExtension* _msg = _internal_mutable_list_type(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDataTypeExtension.list_type) + return _msg; +} + +// .greptime.v1.StructTypeExtension struct_type = 5; +inline bool ColumnDataTypeExtension::_internal_has_struct_type() const { + return type_ext_case() == kStructType; +} +inline bool ColumnDataTypeExtension::has_struct_type() const { + return _internal_has_struct_type(); +} +inline void ColumnDataTypeExtension::set_has_struct_type() { + _impl_._oneof_case_[0] = kStructType; +} +inline void ColumnDataTypeExtension::clear_struct_type() { + if (_internal_has_struct_type()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.type_ext_.struct_type_; + } + clear_has_type_ext(); + } +} +inline ::greptime::v1::StructTypeExtension* ColumnDataTypeExtension::release_struct_type() { + // @@protoc_insertion_point(field_release:greptime.v1.ColumnDataTypeExtension.struct_type) + if (_internal_has_struct_type()) { + clear_has_type_ext(); + ::greptime::v1::StructTypeExtension* temp = _impl_.type_ext_.struct_type_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.type_ext_.struct_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::StructTypeExtension& ColumnDataTypeExtension::_internal_struct_type() const { + return _internal_has_struct_type() + ? *_impl_.type_ext_.struct_type_ + : reinterpret_cast< ::greptime::v1::StructTypeExtension&>(::greptime::v1::_StructTypeExtension_default_instance_); +} +inline const ::greptime::v1::StructTypeExtension& ColumnDataTypeExtension::struct_type() const { + // @@protoc_insertion_point(field_get:greptime.v1.ColumnDataTypeExtension.struct_type) + return _internal_struct_type(); +} +inline ::greptime::v1::StructTypeExtension* ColumnDataTypeExtension::unsafe_arena_release_struct_type() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.ColumnDataTypeExtension.struct_type) + if (_internal_has_struct_type()) { + clear_has_type_ext(); + ::greptime::v1::StructTypeExtension* temp = _impl_.type_ext_.struct_type_; + _impl_.type_ext_.struct_type_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void ColumnDataTypeExtension::unsafe_arena_set_allocated_struct_type(::greptime::v1::StructTypeExtension* struct_type) { + clear_type_ext(); + if (struct_type) { + set_has_struct_type(); + _impl_.type_ext_.struct_type_ = struct_type; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ColumnDataTypeExtension.struct_type) +} +inline ::greptime::v1::StructTypeExtension* ColumnDataTypeExtension::_internal_mutable_struct_type() { + if (!_internal_has_struct_type()) { + clear_type_ext(); + set_has_struct_type(); + _impl_.type_ext_.struct_type_ = CreateMaybeMessage< ::greptime::v1::StructTypeExtension >(GetArenaForAllocation()); + } + return _impl_.type_ext_.struct_type_; +} +inline ::greptime::v1::StructTypeExtension* ColumnDataTypeExtension::mutable_struct_type() { + ::greptime::v1::StructTypeExtension* _msg = _internal_mutable_struct_type(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDataTypeExtension.struct_type) + return _msg; +} + inline bool ColumnDataTypeExtension::has_type_ext() const { return type_ext_case() != TYPE_EXT_NOT_SET; } @@ -6842,6 +7721,164 @@ inline void VectorTypeExtension::set_dim(uint32_t value) { // ------------------------------------------------------------------- +// ListTypeExtension + +// .greptime.v1.ColumnDataType datatype = 1; +inline void ListTypeExtension::clear_datatype() { + _impl_.datatype_ = 0; +} +inline ::greptime::v1::ColumnDataType ListTypeExtension::_internal_datatype() const { + return static_cast< ::greptime::v1::ColumnDataType >(_impl_.datatype_); +} +inline ::greptime::v1::ColumnDataType ListTypeExtension::datatype() const { + // @@protoc_insertion_point(field_get:greptime.v1.ListTypeExtension.datatype) + return _internal_datatype(); +} +inline void ListTypeExtension::_internal_set_datatype(::greptime::v1::ColumnDataType value) { + + _impl_.datatype_ = value; +} +inline void ListTypeExtension::set_datatype(::greptime::v1::ColumnDataType value) { + _internal_set_datatype(value); + // @@protoc_insertion_point(field_set:greptime.v1.ListTypeExtension.datatype) +} + +// .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; +inline bool ListTypeExtension::_internal_has_datatype_extension() const { + return this != internal_default_instance() && _impl_.datatype_extension_ != nullptr; +} +inline bool ListTypeExtension::has_datatype_extension() const { + return _internal_has_datatype_extension(); +} +inline void ListTypeExtension::clear_datatype_extension() { + if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) { + delete _impl_.datatype_extension_; + } + _impl_.datatype_extension_ = nullptr; +} +inline const ::greptime::v1::ColumnDataTypeExtension& ListTypeExtension::_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& ListTypeExtension::datatype_extension() const { + // @@protoc_insertion_point(field_get:greptime.v1.ListTypeExtension.datatype_extension) + return _internal_datatype_extension(); +} +inline void ListTypeExtension::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.ListTypeExtension.datatype_extension) +} +inline ::greptime::v1::ColumnDataTypeExtension* ListTypeExtension::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* ListTypeExtension::unsafe_arena_release_datatype_extension() { + // @@protoc_insertion_point(field_release:greptime.v1.ListTypeExtension.datatype_extension) + + ::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_; + _impl_.datatype_extension_ = nullptr; + return temp; +} +inline ::greptime::v1::ColumnDataTypeExtension* ListTypeExtension::_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* ListTypeExtension::mutable_datatype_extension() { + ::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_datatype_extension(); + // @@protoc_insertion_point(field_mutable:greptime.v1.ListTypeExtension.datatype_extension) + return _msg; +} +inline void ListTypeExtension::set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + if (message_arena == nullptr) { + delete _impl_.datatype_extension_; + } + if (datatype_extension) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(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.ListTypeExtension.datatype_extension) +} + +// ------------------------------------------------------------------- + +// StructTypeExtension + +// repeated .greptime.v1.StructField fields = 1; +inline int StructTypeExtension::_internal_fields_size() const { + return _impl_.fields_.size(); +} +inline int StructTypeExtension::fields_size() const { + return _internal_fields_size(); +} +inline void StructTypeExtension::clear_fields() { + _impl_.fields_.Clear(); +} +inline ::greptime::v1::StructField* StructTypeExtension::mutable_fields(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.StructTypeExtension.fields) + return _impl_.fields_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructField >* +StructTypeExtension::mutable_fields() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.StructTypeExtension.fields) + return &_impl_.fields_; +} +inline const ::greptime::v1::StructField& StructTypeExtension::_internal_fields(int index) const { + return _impl_.fields_.Get(index); +} +inline const ::greptime::v1::StructField& StructTypeExtension::fields(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.StructTypeExtension.fields) + return _internal_fields(index); +} +inline ::greptime::v1::StructField* StructTypeExtension::_internal_add_fields() { + return _impl_.fields_.Add(); +} +inline ::greptime::v1::StructField* StructTypeExtension::add_fields() { + ::greptime::v1::StructField* _add = _internal_add_fields(); + // @@protoc_insertion_point(field_add:greptime.v1.StructTypeExtension.fields) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::StructField >& +StructTypeExtension::fields() const { + // @@protoc_insertion_point(field_list:greptime.v1.StructTypeExtension.fields) + return _impl_.fields_; +} + +// ------------------------------------------------------------------- + // ------------------------------------------------------------------- // ColumnOptions @@ -7088,6 +8125,12 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/row.pb.cc b/c++/greptime/v1/row.pb.cc index c596e1d..2994432 100644 --- a/c++/greptime/v1/row.pb.cc +++ b/c++/greptime/v1/row.pb.cc @@ -80,9 +80,35 @@ struct ValueDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ValueDefaultTypeInternal _Value_default_instance_; +PROTOBUF_CONSTEXPR ListValue::ListValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.items_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct ListValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR ListValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~ListValueDefaultTypeInternal() {} + union { + ListValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ListValueDefaultTypeInternal _ListValue_default_instance_; +PROTOBUF_CONSTEXPR StructValue::StructValue( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.items_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct StructValueDefaultTypeInternal { + PROTOBUF_CONSTEXPR StructValueDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~StructValueDefaultTypeInternal() {} + union { + StructValue _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 StructValueDefaultTypeInternal _StructValue_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2frow_2eproto[4]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2frow_2eproto[6]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2frow_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2frow_2eproto = nullptr; @@ -146,13 +172,31 @@ const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTI ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::Value, _impl_.value_data_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ListValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::ListValue, _impl_.items_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::StructValue, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::StructValue, _impl_.items_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::Rows)}, { 8, -1, -1, sizeof(::greptime::v1::ColumnSchema)}, { 19, -1, -1, sizeof(::greptime::v1::Row)}, { 26, -1, -1, sizeof(::greptime::v1::Value)}, + { 62, -1, -1, sizeof(::greptime::v1::ListValue)}, + { 69, -1, -1, sizeof(::greptime::v1::StructValue)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -160,6 +204,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_ColumnSchema_default_instance_._instance, &::greptime::v1::_Row_default_instance_._instance, &::greptime::v1::_Value_default_instance_._instance, + &::greptime::v1::_ListValue_default_instance_._instance, + &::greptime::v1::_StructValue_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -173,7 +219,7 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT "\022@\n\022datatype_extension\030\004 \001(\0132$.greptime." "v1.ColumnDataTypeExtension\022+\n\007options\030\005 " "\001(\0132\032.greptime.v1.ColumnOptions\")\n\003Row\022\"" - "\n\006values\030\001 \003(\0132\022.greptime.v1.Value\"\274\006\n\005V" + "\n\006values\030\001 \003(\0132\022.greptime.v1.Value\"\234\007\n\005V" "alue\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 " "\001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030" "\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value" @@ -194,18 +240,23 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT "H\000\022J\n\035interval_month_day_nano_value\030\032 \001(" "\0132!.greptime.v1.IntervalMonthDayNanoH\000\0223" "\n\020decimal128_value\030\037 \001(\0132\027.greptime.v1.D" - "ecimal128H\000B\014\n\nvalue_dataBP\n\016io.greptime" - ".v1B\007RowDataZ5github.com/GreptimeTeam/gr" - "eptime-proto/go/greptime/v1b\006proto3" + "ecimal128H\000\022,\n\nlist_value\030( \001(\0132\026.grepti" + "me.v1.ListValueH\000\0220\n\014struct_value\030) \001(\0132" + "\030.greptime.v1.StructValueH\000B\014\n\nvalue_dat" + "a\".\n\tListValue\022!\n\005items\030\001 \003(\0132\022.greptime" + ".v1.Value\"0\n\013StructValue\022!\n\005items\030\002 \003(\0132" + "\022.greptime.v1.ValueBP\n\016io.greptime.v1B\007R" + "owDataZ5github.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, 1355, descriptor_table_protodef_greptime_2fv1_2frow_2eproto, + false, false, 1549, 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, + &descriptor_table_greptime_2fv1_2frow_2eproto_once, descriptor_table_greptime_2fv1_2frow_2eproto_deps, 1, 6, schemas, file_default_instances, TableStruct_greptime_2fv1_2frow_2eproto::offsets, file_level_metadata_greptime_2fv1_2frow_2eproto, file_level_enum_descriptors_greptime_2fv1_2frow_2eproto, file_level_service_descriptors_greptime_2fv1_2frow_2eproto, @@ -992,6 +1043,8 @@ class Value::_Internal { public: static const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_value(const Value* msg); static const ::greptime::v1::Decimal128& decimal128_value(const Value* msg); + static const ::greptime::v1::ListValue& list_value(const Value* msg); + static const ::greptime::v1::StructValue& struct_value(const Value* msg); }; const ::greptime::v1::IntervalMonthDayNano& @@ -1002,6 +1055,14 @@ const ::greptime::v1::Decimal128& Value::_Internal::decimal128_value(const Value* msg) { return *msg->_impl_.value_data_.decimal128_value_; } +const ::greptime::v1::ListValue& +Value::_Internal::list_value(const Value* msg) { + return *msg->_impl_.value_data_.list_value_; +} +const ::greptime::v1::StructValue& +Value::_Internal::struct_value(const Value* msg) { + return *msg->_impl_.value_data_.struct_value_; +} void Value::set_allocated_interval_month_day_nano_value(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_value_data(); @@ -1050,6 +1111,36 @@ void Value::clear_decimal128_value() { clear_has_value_data(); } } +void Value::set_allocated_list_value(::greptime::v1::ListValue* list_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value_data(); + if (list_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(list_value); + if (message_arena != submessage_arena) { + list_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, list_value, submessage_arena); + } + set_has_list_value(); + _impl_.value_data_.list_value_ = list_value; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.list_value) +} +void Value::set_allocated_struct_value(::greptime::v1::StructValue* struct_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_value_data(); + if (struct_value) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(struct_value); + if (message_arena != submessage_arena) { + struct_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, struct_value, submessage_arena); + } + set_has_struct_value(); + _impl_.value_data_.struct_value_ = struct_value; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.struct_value) +} Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1177,6 +1268,16 @@ Value::Value(const Value& from) from._internal_decimal128_value()); break; } + case kListValue: { + _this->_internal_mutable_list_value()->::greptime::v1::ListValue::MergeFrom( + from._internal_list_value()); + break; + } + case kStructValue: { + _this->_internal_mutable_struct_value()->::greptime::v1::StructValue::MergeFrom( + from._internal_struct_value()); + break; + } case VALUE_DATA_NOT_SET: { break; } @@ -1331,6 +1432,18 @@ void Value::clear_value_data() { } break; } + case kListValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.value_data_.list_value_; + } + break; + } + case kStructValue: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.value_data_.struct_value_; + } + break; + } case VALUE_DATA_NOT_SET: { break; } @@ -1574,6 +1687,22 @@ const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; + // .greptime.v1.ListValue list_value = 40; + case 40: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 66)) { + ptr = ctx->ParseMessage(_internal_mutable_list_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.StructValue struct_value = 41; + case 41: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 74)) { + ptr = ctx->ParseMessage(_internal_mutable_struct_value(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -1771,6 +1900,20 @@ uint8_t* Value::_InternalSerialize( _Internal::decimal128_value(this).GetCachedSize(), target, stream); } + // .greptime.v1.ListValue list_value = 40; + if (_internal_has_list_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(40, _Internal::list_value(this), + _Internal::list_value(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.StructValue struct_value = 41; + if (_internal_has_struct_value()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(41, _Internal::struct_value(this), + _Internal::struct_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); @@ -1951,6 +2094,20 @@ size_t Value::ByteSizeLong() const { *_impl_.value_data_.decimal128_value_); break; } + // .greptime.v1.ListValue list_value = 40; + case kListValue: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_data_.list_value_); + break; + } + // .greptime.v1.StructValue struct_value = 41; + case kStructValue: { + total_size += 2 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.value_data_.struct_value_); + break; + } case VALUE_DATA_NOT_SET: { break; } @@ -2084,6 +2241,16 @@ void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF from._internal_decimal128_value()); break; } + case kListValue: { + _this->_internal_mutable_list_value()->::greptime::v1::ListValue::MergeFrom( + from._internal_list_value()); + break; + } + case kStructValue: { + _this->_internal_mutable_struct_value()->::greptime::v1::StructValue::MergeFrom( + from._internal_struct_value()); + break; + } case VALUE_DATA_NOT_SET: { break; } @@ -2115,6 +2282,376 @@ void Value::InternalSwap(Value* other) { file_level_metadata_greptime_2fv1_2frow_2eproto[3]); } +// =================================================================== + +class ListValue::_Internal { + public: +}; + +ListValue::ListValue(::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.ListValue) +} +ListValue::ListValue(const ListValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + ListValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.items_){from._impl_.items_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.ListValue) +} + +inline void ListValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.items_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +ListValue::~ListValue() { + // @@protoc_insertion_point(destructor:greptime.v1.ListValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void ListValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.items_.~RepeatedPtrField(); +} + +void ListValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void ListValue::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.ListValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.items_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* ListValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .greptime.v1.Value items = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_items(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* ListValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ListValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.Value items = 1; + for (unsigned i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + const auto& repfield = this->_internal_items(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ListValue) + return target; +} + +size_t ListValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ListValue) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.Value items = 1; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->_impl_.items_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ListValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + ListValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ListValue::GetClassData() const { return &_class_data_; } + + +void ListValue::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.ListValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.items_.MergeFrom(from._impl_.items_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void ListValue::CopyFrom(const ListValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ListValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool ListValue::IsInitialized() const { + return true; +} + +void ListValue::InternalSwap(ListValue* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.items_.InternalSwap(&other->_impl_.items_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata ListValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2frow_2eproto_getter, &descriptor_table_greptime_2fv1_2frow_2eproto_once, + file_level_metadata_greptime_2fv1_2frow_2eproto[4]); +} + +// =================================================================== + +class StructValue::_Internal { + public: +}; + +StructValue::StructValue(::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.StructValue) +} +StructValue::StructValue(const StructValue& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + StructValue* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.items_){from._impl_.items_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.StructValue) +} + +inline void StructValue::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.items_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +StructValue::~StructValue() { + // @@protoc_insertion_point(destructor:greptime.v1.StructValue) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void StructValue::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.items_.~RepeatedPtrField(); +} + +void StructValue::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void StructValue::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.StructValue) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.items_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* StructValue::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated .greptime.v1.Value items = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + ptr -= 1; + do { + ptr += 1; + ptr = ctx->ParseMessage(_internal_add_items(), ptr); + CHK_(ptr); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(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* StructValue::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.StructValue) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated .greptime.v1.Value items = 2; + for (unsigned i = 0, + n = static_cast(this->_internal_items_size()); i < n; i++) { + const auto& repfield = this->_internal_items(i); + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.StructValue) + return target; +} + +size_t StructValue::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.StructValue) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated .greptime.v1.Value items = 2; + total_size += 1UL * this->_internal_items_size(); + for (const auto& msg : this->_impl_.items_) { + total_size += + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData StructValue::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + StructValue::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*StructValue::GetClassData() const { return &_class_data_; } + + +void StructValue::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.StructValue) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.items_.MergeFrom(from._impl_.items_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void StructValue::CopyFrom(const StructValue& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.StructValue) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool StructValue::IsInitialized() const { + return true; +} + +void StructValue::InternalSwap(StructValue* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.items_.InternalSwap(&other->_impl_.items_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata StructValue::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2frow_2eproto_getter, &descriptor_table_greptime_2fv1_2frow_2eproto_once, + file_level_metadata_greptime_2fv1_2frow_2eproto[5]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace greptime @@ -2135,6 +2672,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::Value* Arena::CreateMaybeMessage< ::greptime::v1::Value >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::Value >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::ListValue* +Arena::CreateMaybeMessage< ::greptime::v1::ListValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::ListValue >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::StructValue* +Arena::CreateMaybeMessage< ::greptime::v1::StructValue >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::StructValue >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/c++/greptime/v1/row.pb.h b/c++/greptime/v1/row.pb.h index 62a9f94..2a49477 100644 --- a/c++/greptime/v1/row.pb.h +++ b/c++/greptime/v1/row.pb.h @@ -50,12 +50,18 @@ namespace v1 { class ColumnSchema; struct ColumnSchemaDefaultTypeInternal; extern ColumnSchemaDefaultTypeInternal _ColumnSchema_default_instance_; +class ListValue; +struct ListValueDefaultTypeInternal; +extern ListValueDefaultTypeInternal _ListValue_default_instance_; class Row; struct RowDefaultTypeInternal; extern RowDefaultTypeInternal _Row_default_instance_; class Rows; struct RowsDefaultTypeInternal; extern RowsDefaultTypeInternal _Rows_default_instance_; +class StructValue; +struct StructValueDefaultTypeInternal; +extern StructValueDefaultTypeInternal _StructValue_default_instance_; class Value; struct ValueDefaultTypeInternal; extern ValueDefaultTypeInternal _Value_default_instance_; @@ -63,8 +69,10 @@ extern ValueDefaultTypeInternal _Value_default_instance_; } // namespace greptime PROTOBUF_NAMESPACE_OPEN template<> ::greptime::v1::ColumnSchema* Arena::CreateMaybeMessage<::greptime::v1::ColumnSchema>(Arena*); +template<> ::greptime::v1::ListValue* Arena::CreateMaybeMessage<::greptime::v1::ListValue>(Arena*); template<> ::greptime::v1::Row* Arena::CreateMaybeMessage<::greptime::v1::Row>(Arena*); template<> ::greptime::v1::Rows* Arena::CreateMaybeMessage<::greptime::v1::Rows>(Arena*); +template<> ::greptime::v1::StructValue* Arena::CreateMaybeMessage<::greptime::v1::StructValue>(Arena*); template<> ::greptime::v1::Value* Arena::CreateMaybeMessage<::greptime::v1::Value>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { @@ -692,6 +700,8 @@ class Value final : kIntervalDayTimeValue = 25, kIntervalMonthDayNanoValue = 26, kDecimal128Value = 31, + kListValue = 40, + kStructValue = 41, VALUE_DATA_NOT_SET = 0, }; @@ -800,6 +810,8 @@ class Value final : kIntervalDayTimeValueFieldNumber = 25, kIntervalMonthDayNanoValueFieldNumber = 26, kDecimal128ValueFieldNumber = 31, + kListValueFieldNumber = 40, + kStructValueFieldNumber = 41, }; // int32 i8_value = 1; bool has_i8_value() const; @@ -1172,6 +1184,42 @@ class Value final : ::greptime::v1::Decimal128* decimal128_value); ::greptime::v1::Decimal128* unsafe_arena_release_decimal128_value(); + // .greptime.v1.ListValue list_value = 40; + bool has_list_value() const; + private: + bool _internal_has_list_value() const; + public: + void clear_list_value(); + const ::greptime::v1::ListValue& list_value() const; + PROTOBUF_NODISCARD ::greptime::v1::ListValue* release_list_value(); + ::greptime::v1::ListValue* mutable_list_value(); + void set_allocated_list_value(::greptime::v1::ListValue* list_value); + private: + const ::greptime::v1::ListValue& _internal_list_value() const; + ::greptime::v1::ListValue* _internal_mutable_list_value(); + public: + void unsafe_arena_set_allocated_list_value( + ::greptime::v1::ListValue* list_value); + ::greptime::v1::ListValue* unsafe_arena_release_list_value(); + + // .greptime.v1.StructValue struct_value = 41; + bool has_struct_value() const; + private: + bool _internal_has_struct_value() const; + public: + void clear_struct_value(); + const ::greptime::v1::StructValue& struct_value() const; + PROTOBUF_NODISCARD ::greptime::v1::StructValue* release_struct_value(); + ::greptime::v1::StructValue* mutable_struct_value(); + void set_allocated_struct_value(::greptime::v1::StructValue* struct_value); + private: + const ::greptime::v1::StructValue& _internal_struct_value() const; + ::greptime::v1::StructValue* _internal_mutable_struct_value(); + public: + void unsafe_arena_set_allocated_struct_value( + ::greptime::v1::StructValue* struct_value); + ::greptime::v1::StructValue* unsafe_arena_release_struct_value(); + void clear_value_data(); ValueDataCase value_data_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.Value) @@ -1204,6 +1252,8 @@ class Value final : void set_has_interval_day_time_value(); void set_has_interval_month_day_nano_value(); void set_has_decimal128_value(); + void set_has_list_value(); + void set_has_struct_value(); inline bool has_value_data() const; inline void clear_has_value_data(); @@ -1242,6 +1292,8 @@ class Value final : int64_t interval_day_time_value_; ::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value_; ::greptime::v1::Decimal128* decimal128_value_; + ::greptime::v1::ListValue* list_value_; + ::greptime::v1::StructValue* struct_value_; } value_data_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -1250,6 +1302,320 @@ class Value final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2frow_2eproto; }; +// ------------------------------------------------------------------- + +class ListValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ListValue) */ { + public: + inline ListValue() : ListValue(nullptr) {} + ~ListValue() override; + explicit PROTOBUF_CONSTEXPR ListValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + ListValue(const ListValue& from); + ListValue(ListValue&& from) noexcept + : ListValue() { + *this = ::std::move(from); + } + + inline ListValue& operator=(const ListValue& from) { + CopyFrom(from); + return *this; + } + inline ListValue& operator=(ListValue&& 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 ListValue& default_instance() { + return *internal_default_instance(); + } + static inline const ListValue* internal_default_instance() { + return reinterpret_cast( + &_ListValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 4; + + friend void swap(ListValue& a, ListValue& b) { + a.Swap(&b); + } + inline void Swap(ListValue* 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(ListValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + ListValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const ListValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const ListValue& from) { + ListValue::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(ListValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.ListValue"; + } + protected: + explicit ListValue(::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 { + kItemsFieldNumber = 1, + }; + // repeated .greptime.v1.Value items = 1; + int items_size() const; + private: + int _internal_items_size() const; + public: + void clear_items(); + ::greptime::v1::Value* mutable_items(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >* + mutable_items(); + private: + const ::greptime::v1::Value& _internal_items(int index) const; + ::greptime::v1::Value* _internal_add_items(); + public: + const ::greptime::v1::Value& items(int index) const; + ::greptime::v1::Value* add_items(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >& + items() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.ListValue) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value > items_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2frow_2eproto; +}; +// ------------------------------------------------------------------- + +class StructValue final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.StructValue) */ { + public: + inline StructValue() : StructValue(nullptr) {} + ~StructValue() override; + explicit PROTOBUF_CONSTEXPR StructValue(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + StructValue(const StructValue& from); + StructValue(StructValue&& from) noexcept + : StructValue() { + *this = ::std::move(from); + } + + inline StructValue& operator=(const StructValue& from) { + CopyFrom(from); + return *this; + } + inline StructValue& operator=(StructValue&& 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 StructValue& default_instance() { + return *internal_default_instance(); + } + static inline const StructValue* internal_default_instance() { + return reinterpret_cast( + &_StructValue_default_instance_); + } + static constexpr int kIndexInFileMessages = + 5; + + friend void swap(StructValue& a, StructValue& b) { + a.Swap(&b); + } + inline void Swap(StructValue* 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(StructValue* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + StructValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const StructValue& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const StructValue& from) { + StructValue::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(StructValue* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.StructValue"; + } + protected: + explicit StructValue(::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 { + kItemsFieldNumber = 2, + }; + // repeated .greptime.v1.Value items = 2; + int items_size() const; + private: + int _internal_items_size() const; + public: + void clear_items(); + ::greptime::v1::Value* mutable_items(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >* + mutable_items(); + private: + const ::greptime::v1::Value& _internal_items(int index) const; + ::greptime::v1::Value* _internal_add_items(); + public: + const ::greptime::v1::Value& items(int index) const; + ::greptime::v1::Value* add_items(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >& + items() const; + + // @@protoc_insertion_point(class_scope:greptime.v1.StructValue) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value > items_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2frow_2eproto; +}; // =================================================================== @@ -2813,6 +3179,154 @@ inline ::greptime::v1::Decimal128* Value::mutable_decimal128_value() { return _msg; } +// .greptime.v1.ListValue list_value = 40; +inline bool Value::_internal_has_list_value() const { + return value_data_case() == kListValue; +} +inline bool Value::has_list_value() const { + return _internal_has_list_value(); +} +inline void Value::set_has_list_value() { + _impl_._oneof_case_[0] = kListValue; +} +inline void Value::clear_list_value() { + if (_internal_has_list_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.value_data_.list_value_; + } + clear_has_value_data(); + } +} +inline ::greptime::v1::ListValue* Value::release_list_value() { + // @@protoc_insertion_point(field_release:greptime.v1.Value.list_value) + if (_internal_has_list_value()) { + clear_has_value_data(); + ::greptime::v1::ListValue* temp = _impl_.value_data_.list_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.value_data_.list_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::ListValue& Value::_internal_list_value() const { + return _internal_has_list_value() + ? *_impl_.value_data_.list_value_ + : reinterpret_cast< ::greptime::v1::ListValue&>(::greptime::v1::_ListValue_default_instance_); +} +inline const ::greptime::v1::ListValue& Value::list_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.list_value) + return _internal_list_value(); +} +inline ::greptime::v1::ListValue* Value::unsafe_arena_release_list_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.Value.list_value) + if (_internal_has_list_value()) { + clear_has_value_data(); + ::greptime::v1::ListValue* temp = _impl_.value_data_.list_value_; + _impl_.value_data_.list_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_list_value(::greptime::v1::ListValue* list_value) { + clear_value_data(); + if (list_value) { + set_has_list_value(); + _impl_.value_data_.list_value_ = list_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.list_value) +} +inline ::greptime::v1::ListValue* Value::_internal_mutable_list_value() { + if (!_internal_has_list_value()) { + clear_value_data(); + set_has_list_value(); + _impl_.value_data_.list_value_ = CreateMaybeMessage< ::greptime::v1::ListValue >(GetArenaForAllocation()); + } + return _impl_.value_data_.list_value_; +} +inline ::greptime::v1::ListValue* Value::mutable_list_value() { + ::greptime::v1::ListValue* _msg = _internal_mutable_list_value(); + // @@protoc_insertion_point(field_mutable:greptime.v1.Value.list_value) + return _msg; +} + +// .greptime.v1.StructValue struct_value = 41; +inline bool Value::_internal_has_struct_value() const { + return value_data_case() == kStructValue; +} +inline bool Value::has_struct_value() const { + return _internal_has_struct_value(); +} +inline void Value::set_has_struct_value() { + _impl_._oneof_case_[0] = kStructValue; +} +inline void Value::clear_struct_value() { + if (_internal_has_struct_value()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.value_data_.struct_value_; + } + clear_has_value_data(); + } +} +inline ::greptime::v1::StructValue* Value::release_struct_value() { + // @@protoc_insertion_point(field_release:greptime.v1.Value.struct_value) + if (_internal_has_struct_value()) { + clear_has_value_data(); + ::greptime::v1::StructValue* temp = _impl_.value_data_.struct_value_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.value_data_.struct_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::StructValue& Value::_internal_struct_value() const { + return _internal_has_struct_value() + ? *_impl_.value_data_.struct_value_ + : reinterpret_cast< ::greptime::v1::StructValue&>(::greptime::v1::_StructValue_default_instance_); +} +inline const ::greptime::v1::StructValue& Value::struct_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.struct_value) + return _internal_struct_value(); +} +inline ::greptime::v1::StructValue* Value::unsafe_arena_release_struct_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.Value.struct_value) + if (_internal_has_struct_value()) { + clear_has_value_data(); + ::greptime::v1::StructValue* temp = _impl_.value_data_.struct_value_; + _impl_.value_data_.struct_value_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void Value::unsafe_arena_set_allocated_struct_value(::greptime::v1::StructValue* struct_value) { + clear_value_data(); + if (struct_value) { + set_has_struct_value(); + _impl_.value_data_.struct_value_ = struct_value; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.struct_value) +} +inline ::greptime::v1::StructValue* Value::_internal_mutable_struct_value() { + if (!_internal_has_struct_value()) { + clear_value_data(); + set_has_struct_value(); + _impl_.value_data_.struct_value_ = CreateMaybeMessage< ::greptime::v1::StructValue >(GetArenaForAllocation()); + } + return _impl_.value_data_.struct_value_; +} +inline ::greptime::v1::StructValue* Value::mutable_struct_value() { + ::greptime::v1::StructValue* _msg = _internal_mutable_struct_value(); + // @@protoc_insertion_point(field_mutable:greptime.v1.Value.struct_value) + return _msg; +} + inline bool Value::has_value_data() const { return value_data_case() != VALUE_DATA_NOT_SET; } @@ -2822,6 +3336,94 @@ inline void Value::clear_has_value_data() { inline Value::ValueDataCase Value::value_data_case() const { return Value::ValueDataCase(_impl_._oneof_case_[0]); } +// ------------------------------------------------------------------- + +// ListValue + +// repeated .greptime.v1.Value items = 1; +inline int ListValue::_internal_items_size() const { + return _impl_.items_.size(); +} +inline int ListValue::items_size() const { + return _internal_items_size(); +} +inline void ListValue::clear_items() { + _impl_.items_.Clear(); +} +inline ::greptime::v1::Value* ListValue::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.ListValue.items) + return _impl_.items_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >* +ListValue::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.ListValue.items) + return &_impl_.items_; +} +inline const ::greptime::v1::Value& ListValue::_internal_items(int index) const { + return _impl_.items_.Get(index); +} +inline const ::greptime::v1::Value& ListValue::items(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.ListValue.items) + return _internal_items(index); +} +inline ::greptime::v1::Value* ListValue::_internal_add_items() { + return _impl_.items_.Add(); +} +inline ::greptime::v1::Value* ListValue::add_items() { + ::greptime::v1::Value* _add = _internal_add_items(); + // @@protoc_insertion_point(field_add:greptime.v1.ListValue.items) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >& +ListValue::items() const { + // @@protoc_insertion_point(field_list:greptime.v1.ListValue.items) + return _impl_.items_; +} + +// ------------------------------------------------------------------- + +// StructValue + +// repeated .greptime.v1.Value items = 2; +inline int StructValue::_internal_items_size() const { + return _impl_.items_.size(); +} +inline int StructValue::items_size() const { + return _internal_items_size(); +} +inline void StructValue::clear_items() { + _impl_.items_.Clear(); +} +inline ::greptime::v1::Value* StructValue::mutable_items(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.StructValue.items) + return _impl_.items_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >* +StructValue::mutable_items() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.StructValue.items) + return &_impl_.items_; +} +inline const ::greptime::v1::Value& StructValue::_internal_items(int index) const { + return _impl_.items_.Get(index); +} +inline const ::greptime::v1::Value& StructValue::items(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.StructValue.items) + return _internal_items(index); +} +inline ::greptime::v1::Value* StructValue::_internal_add_items() { + return _impl_.items_.Add(); +} +inline ::greptime::v1::Value* StructValue::add_items() { + ::greptime::v1::Value* _add = _internal_add_items(); + // @@protoc_insertion_point(field_add:greptime.v1.StructValue.items) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Value >& +StructValue::items() const { + // @@protoc_insertion_point(field_list:greptime.v1.StructValue.items) + return _impl_.items_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -2831,6 +3433,10 @@ inline Value::ValueDataCase Value::value_data_case() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/column.pb.go b/go/greptime/v1/column.pb.go index f3e8da0..2f045a6 100644 --- a/go/greptime/v1/column.pb.go +++ b/go/greptime/v1/column.pb.go @@ -177,6 +177,8 @@ type Column_Values struct { IntervalDayTimeValues []int64 `protobuf:"varint,25,rep,packed,name=interval_day_time_values,json=intervalDayTimeValues,proto3" json:"interval_day_time_values,omitempty"` IntervalMonthDayNanoValues []*IntervalMonthDayNano `protobuf:"bytes,26,rep,name=interval_month_day_nano_values,json=intervalMonthDayNanoValues,proto3" json:"interval_month_day_nano_values,omitempty"` Decimal128Values []*Decimal128 `protobuf:"bytes,31,rep,name=decimal128_values,json=decimal128Values,proto3" json:"decimal128_values,omitempty"` + ListValues []*ListValue `protobuf:"bytes,40,rep,name=list_values,json=listValues,proto3" json:"list_values,omitempty"` + StructValues []*StructValue `protobuf:"bytes,41,rep,name=struct_values,json=structValues,proto3" json:"struct_values,omitempty"` } func (x *Column_Values) Reset() { @@ -400,6 +402,20 @@ func (x *Column_Values) GetDecimal128Values() []*Decimal128 { return nil } +func (x *Column_Values) GetListValues() []*ListValue { + if x != nil { + return x.ListValues + } + return nil +} + +func (x *Column_Values) GetStructValues() []*StructValue { + if x != nil { + return x.StructValues + } + return nil +} + var File_greptime_v1_column_proto protoreflect.FileDescriptor var file_greptime_v1_column_proto_rawDesc = []byte{ @@ -407,115 +423,123 @@ 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, 0xe3, 0x0c, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, - 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a, - 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, - 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x37, - 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, 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, 0x12, 0x34, 0x0a, 0x07, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x1a, 0xe2, 0x09, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, - 0x09, 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, - 0x52, 0x08, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x31, - 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, - 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x33, 0x32, - 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x69, - 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x36, 0x34, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x69, 0x36, - 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x38, 0x5f, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x75, 0x38, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x18, 0x08, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, - 0x09, 0x20, 0x03, 0x28, 0x02, 0x52, 0x09, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0a, - 0x20, 0x03, 0x28, 0x01, 0x52, 0x09, 0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, - 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0b, - 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, - 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x61, - 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x05, 0x52, - 0x0a, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x64, - 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0f, - 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, - 0x10, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, - 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, - 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, - 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x40, - 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x63, 0x72, - 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x12, - 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, - 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x3e, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x61, + 0x6f, 0x1a, 0x15, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, + 0x6f, 0x77, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdb, 0x0d, 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, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, + 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6c, 0x6c, + 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08, 0x6e, 0x75, 0x6c, + 0x6c, 0x4d, 0x61, 0x73, 0x6b, 0x12, 0x37, 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, 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, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0xda, 0x0a, 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, - 0x13, 0x20, 0x03, 0x28, 0x03, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, - 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, - 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, - 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x03, 0x52, - 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, - 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, - 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, - 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, - 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, - 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x05, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, - 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, - 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, 0x20, - 0x03, 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, - 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x65, 0x0a, 0x1e, 0x69, 0x6e, - 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, - 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, - 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, - 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x44, 0x0a, 0x11, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, - 0x61, 0x6c, 0x31, 0x32, 0x38, 0x52, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, - 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x73, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x17, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, + 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x69, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, + 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x05, 0x52, + 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, + 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, + 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x12, 0x65, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, + 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, + 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x52, 0x1a, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, + 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x44, 0x0a, 0x11, 0x64, 0x65, 0x63, 0x69, + 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1f, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x52, 0x10, 0x64, 0x65, + 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, + 0x0a, 0x0b, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x28, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x6c, 0x69, 0x73, + 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x75, 0x63, + 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x29, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, + 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,6 +564,8 @@ var file_greptime_v1_column_proto_goTypes = []interface{}{ (*ColumnOptions)(nil), // 5: greptime.v1.ColumnOptions (*IntervalMonthDayNano)(nil), // 6: greptime.v1.IntervalMonthDayNano (*Decimal128)(nil), // 7: greptime.v1.Decimal128 + (*ListValue)(nil), // 8: greptime.v1.ListValue + (*StructValue)(nil), // 9: greptime.v1.StructValue } var file_greptime_v1_column_proto_depIdxs = []int32{ 2, // 0: greptime.v1.Column.semantic_type:type_name -> greptime.v1.SemanticType @@ -549,11 +575,13 @@ var file_greptime_v1_column_proto_depIdxs = []int32{ 5, // 4: greptime.v1.Column.options:type_name -> greptime.v1.ColumnOptions 6, // 5: greptime.v1.Column.Values.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano 7, // 6: greptime.v1.Column.Values.decimal128_values:type_name -> greptime.v1.Decimal128 - 7, // [7:7] is the sub-list for method output_type - 7, // [7:7] is the sub-list for method input_type - 7, // [7:7] is the sub-list for extension type_name - 7, // [7:7] is the sub-list for extension extendee - 0, // [0:7] is the sub-list for field type_name + 8, // 7: greptime.v1.Column.Values.list_values:type_name -> greptime.v1.ListValue + 9, // 8: greptime.v1.Column.Values.struct_values:type_name -> greptime.v1.StructValue + 9, // [9:9] is the sub-list for method output_type + 9, // [9:9] is the sub-list for method input_type + 9, // [9:9] is the sub-list for extension type_name + 9, // [9:9] is the sub-list for extension extendee + 0, // [0:9] is the sub-list for field type_name } func init() { file_greptime_v1_column_proto_init() } @@ -562,6 +590,7 @@ func file_greptime_v1_column_proto_init() { return } file_greptime_v1_common_proto_init() + file_greptime_v1_row_proto_init() if !protoimpl.UnsafeEnabled { file_greptime_v1_column_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Column); i { diff --git a/go/greptime/v1/common.pb.go b/go/greptime/v1/common.pb.go index bf4d384..1bb8ba9 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -115,6 +115,8 @@ const ( ColumnDataType_DECIMAL128 ColumnDataType = 30 ColumnDataType_JSON ColumnDataType = 31 ColumnDataType_VECTOR ColumnDataType = 32 + ColumnDataType_LIST ColumnDataType = 40 + ColumnDataType_STRUCT ColumnDataType = 41 ) // Enum value maps for ColumnDataType. @@ -149,6 +151,8 @@ var ( 30: "DECIMAL128", 31: "JSON", 32: "VECTOR", + 40: "LIST", + 41: "STRUCT", } ColumnDataType_value = map[string]int32{ "BOOLEAN": 0, @@ -180,6 +184,8 @@ var ( "DECIMAL128": 30, "JSON": 31, "VECTOR": 32, + "LIST": 40, + "STRUCT": 41, } ) @@ -1427,6 +1433,69 @@ func (x *Decimal128) GetLo() int64 { return 0 } +type StructField struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Datatype ColumnDataType `protobuf:"varint,2,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"` + DatatypeExtension *ColumnDataTypeExtension `protobuf:"bytes,3,opt,name=datatype_extension,json=datatypeExtension,proto3" json:"datatype_extension,omitempty"` +} + +func (x *StructField) Reset() { + *x = StructField{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructField) ProtoMessage() {} + +func (x *StructField) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[19] + 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 StructField.ProtoReflect.Descriptor instead. +func (*StructField) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{19} +} + +func (x *StructField) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *StructField) GetDatatype() ColumnDataType { + if x != nil { + return x.Datatype + } + return ColumnDataType_BOOLEAN +} + +func (x *StructField) GetDatatypeExtension() *ColumnDataTypeExtension { + if x != nil { + return x.DatatypeExtension + } + return nil +} + // Type extension for some complex types type ColumnDataTypeExtension struct { state protoimpl.MessageState @@ -1438,13 +1507,15 @@ type ColumnDataTypeExtension struct { // *ColumnDataTypeExtension_DecimalType // *ColumnDataTypeExtension_JsonType // *ColumnDataTypeExtension_VectorType + // *ColumnDataTypeExtension_ListType + // *ColumnDataTypeExtension_StructType TypeExt isColumnDataTypeExtension_TypeExt `protobuf_oneof:"type_ext"` } func (x *ColumnDataTypeExtension) Reset() { *x = ColumnDataTypeExtension{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[19] + mi := &file_greptime_v1_common_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1457,7 +1528,7 @@ func (x *ColumnDataTypeExtension) String() string { func (*ColumnDataTypeExtension) ProtoMessage() {} func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[19] + mi := &file_greptime_v1_common_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1470,7 +1541,7 @@ func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead. func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{19} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{20} } func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt { @@ -1501,6 +1572,20 @@ func (x *ColumnDataTypeExtension) GetVectorType() *VectorTypeExtension { return nil } +func (x *ColumnDataTypeExtension) GetListType() *ListTypeExtension { + if x, ok := x.GetTypeExt().(*ColumnDataTypeExtension_ListType); ok { + return x.ListType + } + return nil +} + +func (x *ColumnDataTypeExtension) GetStructType() *StructTypeExtension { + if x, ok := x.GetTypeExt().(*ColumnDataTypeExtension_StructType); ok { + return x.StructType + } + return nil +} + type isColumnDataTypeExtension_TypeExt interface { isColumnDataTypeExtension_TypeExt() } @@ -1518,12 +1603,24 @@ type ColumnDataTypeExtension_VectorType struct { VectorType *VectorTypeExtension `protobuf:"bytes,3,opt,name=vector_type,json=vectorType,proto3,oneof"` } +type ColumnDataTypeExtension_ListType struct { + ListType *ListTypeExtension `protobuf:"bytes,4,opt,name=list_type,json=listType,proto3,oneof"` +} + +type ColumnDataTypeExtension_StructType struct { + StructType *StructTypeExtension `protobuf:"bytes,5,opt,name=struct_type,json=structType,proto3,oneof"` +} + func (*ColumnDataTypeExtension_DecimalType) isColumnDataTypeExtension_TypeExt() {} func (*ColumnDataTypeExtension_JsonType) isColumnDataTypeExtension_TypeExt() {} func (*ColumnDataTypeExtension_VectorType) isColumnDataTypeExtension_TypeExt() {} +func (*ColumnDataTypeExtension_ListType) isColumnDataTypeExtension_TypeExt() {} + +func (*ColumnDataTypeExtension_StructType) isColumnDataTypeExtension_TypeExt() {} + type DecimalTypeExtension struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1536,7 +1633,7 @@ type DecimalTypeExtension struct { func (x *DecimalTypeExtension) Reset() { *x = DecimalTypeExtension{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[20] + mi := &file_greptime_v1_common_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1549,7 +1646,7 @@ func (x *DecimalTypeExtension) String() string { func (*DecimalTypeExtension) ProtoMessage() {} func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[20] + mi := &file_greptime_v1_common_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1562,7 +1659,7 @@ func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead. func (*DecimalTypeExtension) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{20} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{21} } func (x *DecimalTypeExtension) GetPrecision() int32 { @@ -1590,7 +1687,7 @@ type VectorTypeExtension struct { func (x *VectorTypeExtension) Reset() { *x = VectorTypeExtension{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[21] + mi := &file_greptime_v1_common_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1603,7 +1700,7 @@ func (x *VectorTypeExtension) String() string { func (*VectorTypeExtension) ProtoMessage() {} func (x *VectorTypeExtension) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[21] + mi := &file_greptime_v1_common_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1616,7 +1713,7 @@ func (x *VectorTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use VectorTypeExtension.ProtoReflect.Descriptor instead. func (*VectorTypeExtension) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{21} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{22} } func (x *VectorTypeExtension) GetDim() uint32 { @@ -1626,6 +1723,108 @@ func (x *VectorTypeExtension) GetDim() uint32 { return 0 } +type ListTypeExtension struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Datatype ColumnDataType `protobuf:"varint,1,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"` + DatatypeExtension *ColumnDataTypeExtension `protobuf:"bytes,2,opt,name=datatype_extension,json=datatypeExtension,proto3" json:"datatype_extension,omitempty"` +} + +func (x *ListTypeExtension) Reset() { + *x = ListTypeExtension{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListTypeExtension) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListTypeExtension) ProtoMessage() {} + +func (x *ListTypeExtension) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[23] + 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 ListTypeExtension.ProtoReflect.Descriptor instead. +func (*ListTypeExtension) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{23} +} + +func (x *ListTypeExtension) GetDatatype() ColumnDataType { + if x != nil { + return x.Datatype + } + return ColumnDataType_BOOLEAN +} + +func (x *ListTypeExtension) GetDatatypeExtension() *ColumnDataTypeExtension { + if x != nil { + return x.DatatypeExtension + } + return nil +} + +type StructTypeExtension struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Fields []*StructField `protobuf:"bytes,1,rep,name=fields,proto3" json:"fields,omitempty"` +} + +func (x *StructTypeExtension) Reset() { + *x = StructTypeExtension{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructTypeExtension) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructTypeExtension) ProtoMessage() {} + +func (x *StructTypeExtension) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[24] + 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 StructTypeExtension.ProtoReflect.Descriptor instead. +func (*StructTypeExtension) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{24} +} + +func (x *StructTypeExtension) GetFields() []*StructField { + if x != nil { + return x.Fields + } + return nil +} + // Additional options for the column. type ColumnOptions struct { state protoimpl.MessageState @@ -1658,7 +1857,7 @@ type ColumnOptions struct { func (x *ColumnOptions) Reset() { *x = ColumnOptions{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[22] + mi := &file_greptime_v1_common_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1671,7 +1870,7 @@ func (x *ColumnOptions) String() string { func (*ColumnOptions) ProtoMessage() {} func (x *ColumnOptions) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[22] + mi := &file_greptime_v1_common_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1684,7 +1883,7 @@ func (x *ColumnOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnOptions.ProtoReflect.Descriptor instead. func (*ColumnOptions) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{22} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{25} } func (x *ColumnOptions) GetOptions() map[string]string { @@ -1707,7 +1906,7 @@ type ArrowIpc struct { func (x *ArrowIpc) Reset() { *x = ArrowIpc{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[23] + mi := &file_greptime_v1_common_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1720,7 +1919,7 @@ func (x *ArrowIpc) String() string { func (*ArrowIpc) ProtoMessage() {} func (x *ArrowIpc) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[23] + mi := &file_greptime_v1_common_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1733,7 +1932,7 @@ func (x *ArrowIpc) ProtoReflect() protoreflect.Message { // Deprecated: Use ArrowIpc.ProtoReflect.Descriptor instead. func (*ArrowIpc) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{23} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{26} } func (x *ArrowIpc) GetSchema() []byte { @@ -1900,91 +2099,126 @@ var file_greptime_v1_common_proto_rawDesc = []byte{ 0x73, 0x22, 0x2c, 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, 0x22, - 0xf1, 0x01, 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, 0x12, 0x3d, 0x0a, 0x09, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x6a, 0x73, 0x6f, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x76, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, - 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, 0x22, - 0x27, 0x0a, 0x13, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x6d, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x03, 0x64, 0x69, 0x6d, 0x22, 0x8e, 0x01, 0x0a, 0x0d, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x07, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, - 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5d, 0x0a, 0x08, 0x41, 0x72, 0x72, - 0x6f, 0x77, 0x49, 0x70, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x1f, 0x0a, - 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0c, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x18, - 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, - 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 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, 0xec, 0x03, 0x0a, 0x0e, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, - 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, - 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, - 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, - 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, - 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, - 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, - 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, - 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, - 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, - 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, - 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, - 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, - 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, - 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, - 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, - 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, - 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, - 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, - 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, - 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, - 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, - 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, - 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45, 0x52, - 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x17, - 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x59, - 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45, 0x52, - 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, - 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x31, - 0x32, 0x38, 0x10, 0x1e, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x1f, 0x12, 0x0a, - 0x0a, 0x06, 0x56, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x20, 0x2a, 0x48, 0x0a, 0x08, 0x54, 0x69, - 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, - 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x43, 0x4f, 0x4e, - 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, - 0x4e, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, - 0x4e, 0x44, 0x10, 0x03, 0x2a, 0x24, 0x0a, 0x11, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x4a, 0x53, 0x4f, - 0x4e, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x00, 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, + 0xaf, 0x01, 0x0a, 0x0b, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, + 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 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, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, + 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, + 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, + 0x6e, 0x22, 0xf5, 0x02, 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, 0x12, 0x3d, 0x0a, 0x09, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, 0x6a, 0x73, 0x6f, 0x6e, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, + 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0a, 0x76, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x09, 0x6c, 0x69, 0x73, + 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x08, + 0x6c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, + 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, + 0x00, 0x52, 0x0a, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0a, 0x0a, + 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 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, 0x22, 0x27, 0x0a, 0x13, 0x56, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, + 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, + 0x64, 0x69, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x03, 0x64, 0x69, 0x6d, 0x22, 0xa1, + 0x01, 0x0a, 0x11, 0x4c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 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, 0x12, 0x53, 0x0a, + 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 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, 0x47, 0x0a, 0x13, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x30, 0x0a, 0x06, 0x66, 0x69, 0x65, + 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x0d, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x41, 0x0a, + 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5d, 0x0a, 0x08, + 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x68, 0x65, + 0x6d, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x48, 0x65, 0x61, 0x64, 0x65, + 0x72, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 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, 0x82, + 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, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x43, 0x49, 0x4d, + 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x4f, 0x4e, 0x10, + 0x1f, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x20, 0x12, 0x08, 0x0a, + 0x04, 0x4c, 0x49, 0x53, 0x54, 0x10, 0x28, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x55, 0x43, + 0x54, 0x10, 0x29, 0x2a, 0x48, 0x0a, 0x08, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, + 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x00, + 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, + 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, + 0x0a, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x03, 0x2a, 0x24, 0x0a, + 0x11, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, + 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, + 0x59, 0x10, 0x00, 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 ( @@ -2000,7 +2234,7 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte { } var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 4) -var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 29) +var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 32) var file_greptime_v1_common_proto_goTypes = []interface{}{ (SemanticType)(0), // 0: greptime.v1.SemanticType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType @@ -2025,25 +2259,28 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{ (*TimeRange)(nil), // 20: greptime.v1.TimeRange (*TimeRanges)(nil), // 21: greptime.v1.TimeRanges (*Decimal128)(nil), // 22: greptime.v1.Decimal128 - (*ColumnDataTypeExtension)(nil), // 23: greptime.v1.ColumnDataTypeExtension - (*DecimalTypeExtension)(nil), // 24: greptime.v1.DecimalTypeExtension - (*VectorTypeExtension)(nil), // 25: greptime.v1.VectorTypeExtension - (*ColumnOptions)(nil), // 26: greptime.v1.ColumnOptions - (*ArrowIpc)(nil), // 27: greptime.v1.ArrowIpc - nil, // 28: greptime.v1.QueryContext.ExtensionsEntry - nil, // 29: greptime.v1.SnapshotSequences.SstMinSequencesEntry - nil, // 30: greptime.v1.SnapshotSequences.SnapshotSeqsEntry - nil, // 31: greptime.v1.RequestHeader.TracingContextEntry - nil, // 32: greptime.v1.ColumnOptions.OptionsEntry + (*StructField)(nil), // 23: greptime.v1.StructField + (*ColumnDataTypeExtension)(nil), // 24: greptime.v1.ColumnDataTypeExtension + (*DecimalTypeExtension)(nil), // 25: greptime.v1.DecimalTypeExtension + (*VectorTypeExtension)(nil), // 26: greptime.v1.VectorTypeExtension + (*ListTypeExtension)(nil), // 27: greptime.v1.ListTypeExtension + (*StructTypeExtension)(nil), // 28: greptime.v1.StructTypeExtension + (*ColumnOptions)(nil), // 29: greptime.v1.ColumnOptions + (*ArrowIpc)(nil), // 30: greptime.v1.ArrowIpc + nil, // 31: greptime.v1.QueryContext.ExtensionsEntry + nil, // 32: greptime.v1.SnapshotSequences.SstMinSequencesEntry + nil, // 33: greptime.v1.SnapshotSequences.SnapshotSeqsEntry + nil, // 34: greptime.v1.RequestHeader.TracingContextEntry + nil, // 35: greptime.v1.ColumnOptions.OptionsEntry } var file_greptime_v1_common_proto_depIdxs = []int32{ - 28, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry + 31, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry 5, // 1: greptime.v1.QueryContext.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences 6, // 2: greptime.v1.QueryContext.explain:type_name -> greptime.v1.ExplainOptions - 29, // 3: greptime.v1.SnapshotSequences.sst_min_sequences:type_name -> greptime.v1.SnapshotSequences.SstMinSequencesEntry - 30, // 4: greptime.v1.SnapshotSequences.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences.SnapshotSeqsEntry + 32, // 3: greptime.v1.SnapshotSequences.sst_min_sequences:type_name -> greptime.v1.SnapshotSequences.SstMinSequencesEntry + 33, // 4: greptime.v1.SnapshotSequences.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences.SnapshotSeqsEntry 10, // 5: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader - 31, // 6: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry + 34, // 6: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry 9, // 7: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status 11, // 8: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic 12, // 9: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token @@ -2051,15 +2288,22 @@ var file_greptime_v1_common_proto_depIdxs = []int32{ 15, // 11: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics 2, // 12: greptime.v1.TimeRanges.time_unit:type_name -> greptime.v1.TimeUnit 20, // 13: greptime.v1.TimeRanges.time_ranges:type_name -> greptime.v1.TimeRange - 24, // 14: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension - 3, // 15: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension - 25, // 16: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension - 32, // 17: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry - 18, // [18:18] is the sub-list for method output_type - 18, // [18:18] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 1, // 14: greptime.v1.StructField.datatype:type_name -> greptime.v1.ColumnDataType + 24, // 15: greptime.v1.StructField.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 25, // 16: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension + 3, // 17: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension + 26, // 18: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension + 27, // 19: greptime.v1.ColumnDataTypeExtension.list_type:type_name -> greptime.v1.ListTypeExtension + 28, // 20: greptime.v1.ColumnDataTypeExtension.struct_type:type_name -> greptime.v1.StructTypeExtension + 1, // 21: greptime.v1.ListTypeExtension.datatype:type_name -> greptime.v1.ColumnDataType + 24, // 22: greptime.v1.ListTypeExtension.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 23, // 23: greptime.v1.StructTypeExtension.fields:type_name -> greptime.v1.StructField + 35, // 24: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry + 25, // [25:25] is the sub-list for method output_type + 25, // [25:25] is the sub-list for method input_type + 25, // [25:25] is the sub-list for extension type_name + 25, // [25:25] is the sub-list for extension extendee + 0, // [0:25] is the sub-list for field type_name } func init() { file_greptime_v1_common_proto_init() } @@ -2297,7 +2541,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDataTypeExtension); i { + switch v := v.(*StructField); i { case 0: return &v.state case 1: @@ -2309,7 +2553,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DecimalTypeExtension); i { + switch v := v.(*ColumnDataTypeExtension); i { case 0: return &v.state case 1: @@ -2321,7 +2565,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*VectorTypeExtension); i { + switch v := v.(*DecimalTypeExtension); i { case 0: return &v.state case 1: @@ -2333,7 +2577,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnOptions); i { + switch v := v.(*VectorTypeExtension); i { case 0: return &v.state case 1: @@ -2345,6 +2589,42 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListTypeExtension); 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[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StructTypeExtension); 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[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColumnOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_common_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ArrowIpc); i { case 0: return &v.state @@ -2361,10 +2641,12 @@ func file_greptime_v1_common_proto_init() { (*AuthHeader_Basic)(nil), (*AuthHeader_Token)(nil), } - file_greptime_v1_common_proto_msgTypes[19].OneofWrappers = []interface{}{ + file_greptime_v1_common_proto_msgTypes[20].OneofWrappers = []interface{}{ (*ColumnDataTypeExtension_DecimalType)(nil), (*ColumnDataTypeExtension_JsonType)(nil), (*ColumnDataTypeExtension_VectorType)(nil), + (*ColumnDataTypeExtension_ListType)(nil), + (*ColumnDataTypeExtension_StructType)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -2372,7 +2654,7 @@ func file_greptime_v1_common_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_common_proto_rawDesc, NumEnums: 4, - NumMessages: 29, + NumMessages: 32, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/row.pb.go b/go/greptime/v1/row.pb.go index 4180be9..314afce 100644 --- a/go/greptime/v1/row.pb.go +++ b/go/greptime/v1/row.pb.go @@ -251,6 +251,8 @@ type Value struct { // *Value_IntervalDayTimeValue // *Value_IntervalMonthDayNanoValue // *Value_Decimal128Value + // *Value_ListValue + // *Value_StructValue ValueData isValue_ValueData `protobuf_oneof:"value_data"` } @@ -482,6 +484,20 @@ func (x *Value) GetDecimal128Value() *Decimal128 { return nil } +func (x *Value) GetListValue() *ListValue { + if x, ok := x.GetValueData().(*Value_ListValue); ok { + return x.ListValue + } + return nil +} + +func (x *Value) GetStructValue() *StructValue { + if x, ok := x.GetValueData().(*Value_StructValue); ok { + return x.StructValue + } + return nil +} + type isValue_ValueData interface { isValue_ValueData() } @@ -594,6 +610,14 @@ type Value_Decimal128Value struct { Decimal128Value *Decimal128 `protobuf:"bytes,31,opt,name=decimal128_value,json=decimal128Value,proto3,oneof"` } +type Value_ListValue struct { + ListValue *ListValue `protobuf:"bytes,40,opt,name=list_value,json=listValue,proto3,oneof"` +} + +type Value_StructValue struct { + StructValue *StructValue `protobuf:"bytes,41,opt,name=struct_value,json=structValue,proto3,oneof"` +} + func (*Value_I8Value) isValue_ValueData() {} func (*Value_I16Value) isValue_ValueData() {} @@ -648,6 +672,104 @@ func (*Value_IntervalMonthDayNanoValue) isValue_ValueData() {} func (*Value_Decimal128Value) isValue_ValueData() {} +func (*Value_ListValue) isValue_ValueData() {} + +func (*Value_StructValue) isValue_ValueData() {} + +type ListValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Items []*Value `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` +} + +func (x *ListValue) Reset() { + *x = ListValue{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_row_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListValue) ProtoMessage() {} + +func (x *ListValue) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_row_proto_msgTypes[4] + 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 ListValue.ProtoReflect.Descriptor instead. +func (*ListValue) Descriptor() ([]byte, []int) { + return file_greptime_v1_row_proto_rawDescGZIP(), []int{4} +} + +func (x *ListValue) GetItems() []*Value { + if x != nil { + return x.Items + } + return nil +} + +type StructValue struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Items []*Value `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` +} + +func (x *StructValue) Reset() { + *x = StructValue{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_row_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StructValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StructValue) ProtoMessage() {} + +func (x *StructValue) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_row_proto_msgTypes[5] + 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 StructValue.ProtoReflect.Descriptor instead. +func (*StructValue) Descriptor() ([]byte, []int) { + return file_greptime_v1_row_proto_rawDescGZIP(), []int{5} +} + +func (x *StructValue) GetItems() []*Value { + if x != nil { + return x.Items + } + return nil +} + var File_greptime_v1_row_proto protoreflect.FileDescriptor var file_greptime_v1_row_proto_rawDesc = []byte{ @@ -683,7 +805,7 @@ var file_greptime_v1_row_proto_rawDesc = []byte{ 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x31, 0x0a, 0x03, 0x52, 0x6f, 0x77, 0x12, 0x2a, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xef, 0x09, 0x0a, 0x05, 0x56, 0x61, 0x6c, + 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xe7, 0x0a, 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, @@ -761,14 +883,28 @@ var file_greptime_v1_row_proto_rawDesc = []byte{ 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, + 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x37, 0x0a, 0x0a, + 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x28, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4c, + 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x5f, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x29, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x64, 0x61, + 0x74, 0x61, 0x22, 0x35, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x28, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 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, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x37, 0x0a, 0x0b, 0x53, 0x74, 0x72, + 0x75, 0x63, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x28, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, + 0x73, 0x18, 0x02, 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, 0x05, 0x69, 0x74, 0x65, + 0x6d, 0x73, 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 ( @@ -783,34 +919,40 @@ func file_greptime_v1_row_proto_rawDescGZIP() []byte { return file_greptime_v1_row_proto_rawDescData } -var file_greptime_v1_row_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_greptime_v1_row_proto_msgTypes = make([]protoimpl.MessageInfo, 6) 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 - (*ColumnDataTypeExtension)(nil), // 6: greptime.v1.ColumnDataTypeExtension - (*ColumnOptions)(nil), // 7: greptime.v1.ColumnOptions - (*IntervalMonthDayNano)(nil), // 8: greptime.v1.IntervalMonthDayNano - (*Decimal128)(nil), // 9: greptime.v1.Decimal128 + (*ListValue)(nil), // 4: greptime.v1.ListValue + (*StructValue)(nil), // 5: greptime.v1.StructValue + (ColumnDataType)(0), // 6: greptime.v1.ColumnDataType + (SemanticType)(0), // 7: greptime.v1.SemanticType + (*ColumnDataTypeExtension)(nil), // 8: greptime.v1.ColumnDataTypeExtension + (*ColumnOptions)(nil), // 9: greptime.v1.ColumnOptions + (*IntervalMonthDayNano)(nil), // 10: greptime.v1.IntervalMonthDayNano + (*Decimal128)(nil), // 11: 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 - 6, // 4: greptime.v1.ColumnSchema.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 7, // 5: greptime.v1.ColumnSchema.options:type_name -> greptime.v1.ColumnOptions - 3, // 6: greptime.v1.Row.values:type_name -> greptime.v1.Value - 8, // 7: greptime.v1.Value.interval_month_day_nano_value:type_name -> greptime.v1.IntervalMonthDayNano - 9, // 8: greptime.v1.Value.decimal128_value:type_name -> greptime.v1.Decimal128 - 9, // [9:9] is the sub-list for method output_type - 9, // [9:9] is the sub-list for method input_type - 9, // [9:9] is the sub-list for extension type_name - 9, // [9:9] is the sub-list for extension extendee - 0, // [0:9] is the sub-list for field type_name + 1, // 0: greptime.v1.Rows.schema:type_name -> greptime.v1.ColumnSchema + 2, // 1: greptime.v1.Rows.rows:type_name -> greptime.v1.Row + 6, // 2: greptime.v1.ColumnSchema.datatype:type_name -> greptime.v1.ColumnDataType + 7, // 3: greptime.v1.ColumnSchema.semantic_type:type_name -> greptime.v1.SemanticType + 8, // 4: greptime.v1.ColumnSchema.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 9, // 5: greptime.v1.ColumnSchema.options:type_name -> greptime.v1.ColumnOptions + 3, // 6: greptime.v1.Row.values:type_name -> greptime.v1.Value + 10, // 7: greptime.v1.Value.interval_month_day_nano_value:type_name -> greptime.v1.IntervalMonthDayNano + 11, // 8: greptime.v1.Value.decimal128_value:type_name -> greptime.v1.Decimal128 + 4, // 9: greptime.v1.Value.list_value:type_name -> greptime.v1.ListValue + 5, // 10: greptime.v1.Value.struct_value:type_name -> greptime.v1.StructValue + 3, // 11: greptime.v1.ListValue.items:type_name -> greptime.v1.Value + 3, // 12: greptime.v1.StructValue.items:type_name -> greptime.v1.Value + 13, // [13:13] is the sub-list for method output_type + 13, // [13:13] is the sub-list for method input_type + 13, // [13:13] is the sub-list for extension type_name + 13, // [13:13] is the sub-list for extension extendee + 0, // [0:13] is the sub-list for field type_name } func init() { file_greptime_v1_row_proto_init() } @@ -868,6 +1010,30 @@ func file_greptime_v1_row_proto_init() { return nil } } + file_greptime_v1_row_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_row_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StructValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_greptime_v1_row_proto_msgTypes[3].OneofWrappers = []interface{}{ (*Value_I8Value)(nil), @@ -897,6 +1063,8 @@ func file_greptime_v1_row_proto_init() { (*Value_IntervalDayTimeValue)(nil), (*Value_IntervalMonthDayNanoValue)(nil), (*Value_Decimal128Value)(nil), + (*Value_ListValue)(nil), + (*Value_StructValue)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -904,7 +1072,7 @@ func file_greptime_v1_row_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_row_proto_rawDesc, NumEnums: 0, - NumMessages: 4, + NumMessages: 6, NumExtensions: 0, NumServices: 0, }, diff --git a/java/src/main/java/io/greptime/v1/Columns.java b/java/src/main/java/io/greptime/v1/Columns.java index ef49f9d..e2cb26f 100644 --- a/java/src/main/java/io/greptime/v1/Columns.java +++ b/java/src/main/java/io/greptime/v1/Columns.java @@ -803,6 +803,54 @@ public final class Columns { */ io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValuesOrBuilder( int index); + + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + java.util.List + getListValuesList(); + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + io.greptime.v1.RowData.ListValue getListValues(int index); + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + int getListValuesCount(); + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + java.util.List + getListValuesOrBuilderList(); + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + io.greptime.v1.RowData.ListValueOrBuilder getListValuesOrBuilder( + int index); + + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + java.util.List + getStructValuesList(); + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + io.greptime.v1.RowData.StructValue getStructValues(int index); + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + int getStructValuesCount(); + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + java.util.List + getStructValuesOrBuilderList(); + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + io.greptime.v1.RowData.StructValueOrBuilder getStructValuesOrBuilder( + int index); } /** * Protobuf type {@code greptime.v1.Column.Values} @@ -844,6 +892,8 @@ public final class Columns { intervalDayTimeValues_ = emptyLongList(); intervalMonthDayNanoValues_ = java.util.Collections.emptyList(); decimal128Values_ = java.util.Collections.emptyList(); + listValues_ = java.util.Collections.emptyList(); + structValues_ = java.util.Collections.emptyList(); } @java.lang.Override @@ -1395,6 +1445,24 @@ public final class Columns { input.readMessage(io.greptime.v1.Common.Decimal128.parser(), extensionRegistry)); break; } + case 322: { + if (!((mutable_bitField0_ & 0x08000000) != 0)) { + listValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x08000000; + } + listValues_.add( + input.readMessage(io.greptime.v1.RowData.ListValue.parser(), extensionRegistry)); + break; + } + case 330: { + if (!((mutable_bitField0_ & 0x10000000) != 0)) { + structValues_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x10000000; + } + structValues_.add( + input.readMessage(io.greptime.v1.RowData.StructValue.parser(), extensionRegistry)); + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -1493,6 +1561,12 @@ public final class Columns { if (((mutable_bitField0_ & 0x04000000) != 0)) { decimal128Values_ = java.util.Collections.unmodifiableList(decimal128Values_); } + if (((mutable_bitField0_ & 0x08000000) != 0)) { + listValues_ = java.util.Collections.unmodifiableList(listValues_); + } + if (((mutable_bitField0_ & 0x10000000) != 0)) { + structValues_ = java.util.Collections.unmodifiableList(structValues_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -2296,6 +2370,86 @@ public final class Columns { return decimal128Values_.get(index); } + public static final int LIST_VALUES_FIELD_NUMBER = 40; + private java.util.List listValues_; + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + @java.lang.Override + public java.util.List getListValuesList() { + return listValues_; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + @java.lang.Override + public java.util.List + getListValuesOrBuilderList() { + return listValues_; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + @java.lang.Override + public int getListValuesCount() { + return listValues_.size(); + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + @java.lang.Override + public io.greptime.v1.RowData.ListValue getListValues(int index) { + return listValues_.get(index); + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + @java.lang.Override + public io.greptime.v1.RowData.ListValueOrBuilder getListValuesOrBuilder( + int index) { + return listValues_.get(index); + } + + public static final int STRUCT_VALUES_FIELD_NUMBER = 41; + private java.util.List structValues_; + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + @java.lang.Override + public java.util.List getStructValuesList() { + return structValues_; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + @java.lang.Override + public java.util.List + getStructValuesOrBuilderList() { + return structValues_; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + @java.lang.Override + public int getStructValuesCount() { + return structValues_.size(); + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + @java.lang.Override + public io.greptime.v1.RowData.StructValue getStructValues(int index) { + return structValues_.get(index); + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + @java.lang.Override + public io.greptime.v1.RowData.StructValueOrBuilder getStructValuesOrBuilder( + int index) { + return structValues_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -2484,6 +2638,12 @@ public final class Columns { for (int i = 0; i < decimal128Values_.size(); i++) { output.writeMessage(31, decimal128Values_.get(i)); } + for (int i = 0; i < listValues_.size(); i++) { + output.writeMessage(40, listValues_.get(i)); + } + for (int i = 0; i < structValues_.size(); i++) { + output.writeMessage(41, structValues_.get(i)); + } unknownFields.writeTo(output); } @@ -2831,6 +2991,14 @@ public final class Columns { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, decimal128Values_.get(i)); } + for (int i = 0; i < listValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, listValues_.get(i)); + } + for (int i = 0; i < structValues_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, structValues_.get(i)); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -2900,6 +3068,10 @@ public final class Columns { .equals(other.getIntervalMonthDayNanoValuesList())) return false; if (!getDecimal128ValuesList() .equals(other.getDecimal128ValuesList())) return false; + if (!getListValuesList() + .equals(other.getListValuesList())) return false; + if (!getStructValuesList() + .equals(other.getStructValuesList())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -3019,6 +3191,14 @@ public final class Columns { hash = (37 * hash) + DECIMAL128_VALUES_FIELD_NUMBER; hash = (53 * hash) + getDecimal128ValuesList().hashCode(); } + if (getListValuesCount() > 0) { + hash = (37 * hash) + LIST_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getListValuesList().hashCode(); + } + if (getStructValuesCount() > 0) { + hash = (37 * hash) + STRUCT_VALUES_FIELD_NUMBER; + hash = (53 * hash) + getStructValuesList().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -3149,6 +3329,8 @@ public final class Columns { .alwaysUseFieldBuilders) { getIntervalMonthDayNanoValuesFieldBuilder(); getDecimal128ValuesFieldBuilder(); + getListValuesFieldBuilder(); + getStructValuesFieldBuilder(); } } @java.lang.Override @@ -3216,6 +3398,18 @@ public final class Columns { } else { decimal128ValuesBuilder_.clear(); } + if (listValuesBuilder_ == null) { + listValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x08000000); + } else { + listValuesBuilder_.clear(); + } + if (structValuesBuilder_ == null) { + structValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x10000000); + } else { + structValuesBuilder_.clear(); + } return this; } @@ -3386,6 +3580,24 @@ public final class Columns { } else { result.decimal128Values_ = decimal128ValuesBuilder_.build(); } + if (listValuesBuilder_ == null) { + if (((bitField0_ & 0x08000000) != 0)) { + listValues_ = java.util.Collections.unmodifiableList(listValues_); + bitField0_ = (bitField0_ & ~0x08000000); + } + result.listValues_ = listValues_; + } else { + result.listValues_ = listValuesBuilder_.build(); + } + if (structValuesBuilder_ == null) { + if (((bitField0_ & 0x10000000) != 0)) { + structValues_ = java.util.Collections.unmodifiableList(structValues_); + bitField0_ = (bitField0_ & ~0x10000000); + } + result.structValues_ = structValues_; + } else { + result.structValues_ = structValuesBuilder_.build(); + } onBuilt(); return result; } @@ -3736,6 +3948,58 @@ public final class Columns { } } } + if (listValuesBuilder_ == null) { + if (!other.listValues_.isEmpty()) { + if (listValues_.isEmpty()) { + listValues_ = other.listValues_; + bitField0_ = (bitField0_ & ~0x08000000); + } else { + ensureListValuesIsMutable(); + listValues_.addAll(other.listValues_); + } + onChanged(); + } + } else { + if (!other.listValues_.isEmpty()) { + if (listValuesBuilder_.isEmpty()) { + listValuesBuilder_.dispose(); + listValuesBuilder_ = null; + listValues_ = other.listValues_; + bitField0_ = (bitField0_ & ~0x08000000); + listValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getListValuesFieldBuilder() : null; + } else { + listValuesBuilder_.addAllMessages(other.listValues_); + } + } + } + if (structValuesBuilder_ == null) { + if (!other.structValues_.isEmpty()) { + if (structValues_.isEmpty()) { + structValues_ = other.structValues_; + bitField0_ = (bitField0_ & ~0x10000000); + } else { + ensureStructValuesIsMutable(); + structValues_.addAll(other.structValues_); + } + onChanged(); + } + } else { + if (!other.structValues_.isEmpty()) { + if (structValuesBuilder_.isEmpty()) { + structValuesBuilder_.dispose(); + structValuesBuilder_ = null; + structValues_ = other.structValues_; + bitField0_ = (bitField0_ & ~0x10000000); + structValuesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStructValuesFieldBuilder() : null; + } else { + structValuesBuilder_.addAllMessages(other.structValues_); + } + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -6257,6 +6521,486 @@ public final class Columns { } return decimal128ValuesBuilder_; } + + private java.util.List listValues_ = + java.util.Collections.emptyList(); + private void ensureListValuesIsMutable() { + if (!((bitField0_ & 0x08000000) != 0)) { + listValues_ = new java.util.ArrayList(listValues_); + bitField0_ |= 0x08000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder> listValuesBuilder_; + + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public java.util.List getListValuesList() { + if (listValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(listValues_); + } else { + return listValuesBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public int getListValuesCount() { + if (listValuesBuilder_ == null) { + return listValues_.size(); + } else { + return listValuesBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public io.greptime.v1.RowData.ListValue getListValues(int index) { + if (listValuesBuilder_ == null) { + return listValues_.get(index); + } else { + return listValuesBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder setListValues( + int index, io.greptime.v1.RowData.ListValue value) { + if (listValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListValuesIsMutable(); + listValues_.set(index, value); + onChanged(); + } else { + listValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder setListValues( + int index, io.greptime.v1.RowData.ListValue.Builder builderForValue) { + if (listValuesBuilder_ == null) { + ensureListValuesIsMutable(); + listValues_.set(index, builderForValue.build()); + onChanged(); + } else { + listValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder addListValues(io.greptime.v1.RowData.ListValue value) { + if (listValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListValuesIsMutable(); + listValues_.add(value); + onChanged(); + } else { + listValuesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder addListValues( + int index, io.greptime.v1.RowData.ListValue value) { + if (listValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureListValuesIsMutable(); + listValues_.add(index, value); + onChanged(); + } else { + listValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder addListValues( + io.greptime.v1.RowData.ListValue.Builder builderForValue) { + if (listValuesBuilder_ == null) { + ensureListValuesIsMutable(); + listValues_.add(builderForValue.build()); + onChanged(); + } else { + listValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder addListValues( + int index, io.greptime.v1.RowData.ListValue.Builder builderForValue) { + if (listValuesBuilder_ == null) { + ensureListValuesIsMutable(); + listValues_.add(index, builderForValue.build()); + onChanged(); + } else { + listValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder addAllListValues( + java.lang.Iterable values) { + if (listValuesBuilder_ == null) { + ensureListValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, listValues_); + onChanged(); + } else { + listValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder clearListValues() { + if (listValuesBuilder_ == null) { + listValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x08000000); + onChanged(); + } else { + listValuesBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public Builder removeListValues(int index) { + if (listValuesBuilder_ == null) { + ensureListValuesIsMutable(); + listValues_.remove(index); + onChanged(); + } else { + listValuesBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public io.greptime.v1.RowData.ListValue.Builder getListValuesBuilder( + int index) { + return getListValuesFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public io.greptime.v1.RowData.ListValueOrBuilder getListValuesOrBuilder( + int index) { + if (listValuesBuilder_ == null) { + return listValues_.get(index); } else { + return listValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public java.util.List + getListValuesOrBuilderList() { + if (listValuesBuilder_ != null) { + return listValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(listValues_); + } + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public io.greptime.v1.RowData.ListValue.Builder addListValuesBuilder() { + return getListValuesFieldBuilder().addBuilder( + io.greptime.v1.RowData.ListValue.getDefaultInstance()); + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public io.greptime.v1.RowData.ListValue.Builder addListValuesBuilder( + int index) { + return getListValuesFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.ListValue.getDefaultInstance()); + } + /** + * repeated .greptime.v1.ListValue list_values = 40; + */ + public java.util.List + getListValuesBuilderList() { + return getListValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder> + getListValuesFieldBuilder() { + if (listValuesBuilder_ == null) { + listValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder>( + listValues_, + ((bitField0_ & 0x08000000) != 0), + getParentForChildren(), + isClean()); + listValues_ = null; + } + return listValuesBuilder_; + } + + private java.util.List structValues_ = + java.util.Collections.emptyList(); + private void ensureStructValuesIsMutable() { + if (!((bitField0_ & 0x10000000) != 0)) { + structValues_ = new java.util.ArrayList(structValues_); + bitField0_ |= 0x10000000; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder> structValuesBuilder_; + + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public java.util.List getStructValuesList() { + if (structValuesBuilder_ == null) { + return java.util.Collections.unmodifiableList(structValues_); + } else { + return structValuesBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public int getStructValuesCount() { + if (structValuesBuilder_ == null) { + return structValues_.size(); + } else { + return structValuesBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public io.greptime.v1.RowData.StructValue getStructValues(int index) { + if (structValuesBuilder_ == null) { + return structValues_.get(index); + } else { + return structValuesBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder setStructValues( + int index, io.greptime.v1.RowData.StructValue value) { + if (structValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStructValuesIsMutable(); + structValues_.set(index, value); + onChanged(); + } else { + structValuesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder setStructValues( + int index, io.greptime.v1.RowData.StructValue.Builder builderForValue) { + if (structValuesBuilder_ == null) { + ensureStructValuesIsMutable(); + structValues_.set(index, builderForValue.build()); + onChanged(); + } else { + structValuesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder addStructValues(io.greptime.v1.RowData.StructValue value) { + if (structValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStructValuesIsMutable(); + structValues_.add(value); + onChanged(); + } else { + structValuesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder addStructValues( + int index, io.greptime.v1.RowData.StructValue value) { + if (structValuesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStructValuesIsMutable(); + structValues_.add(index, value); + onChanged(); + } else { + structValuesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder addStructValues( + io.greptime.v1.RowData.StructValue.Builder builderForValue) { + if (structValuesBuilder_ == null) { + ensureStructValuesIsMutable(); + structValues_.add(builderForValue.build()); + onChanged(); + } else { + structValuesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder addStructValues( + int index, io.greptime.v1.RowData.StructValue.Builder builderForValue) { + if (structValuesBuilder_ == null) { + ensureStructValuesIsMutable(); + structValues_.add(index, builderForValue.build()); + onChanged(); + } else { + structValuesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder addAllStructValues( + java.lang.Iterable values) { + if (structValuesBuilder_ == null) { + ensureStructValuesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, structValues_); + onChanged(); + } else { + structValuesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder clearStructValues() { + if (structValuesBuilder_ == null) { + structValues_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x10000000); + onChanged(); + } else { + structValuesBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public Builder removeStructValues(int index) { + if (structValuesBuilder_ == null) { + ensureStructValuesIsMutable(); + structValues_.remove(index); + onChanged(); + } else { + structValuesBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public io.greptime.v1.RowData.StructValue.Builder getStructValuesBuilder( + int index) { + return getStructValuesFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public io.greptime.v1.RowData.StructValueOrBuilder getStructValuesOrBuilder( + int index) { + if (structValuesBuilder_ == null) { + return structValues_.get(index); } else { + return structValuesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public java.util.List + getStructValuesOrBuilderList() { + if (structValuesBuilder_ != null) { + return structValuesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(structValues_); + } + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public io.greptime.v1.RowData.StructValue.Builder addStructValuesBuilder() { + return getStructValuesFieldBuilder().addBuilder( + io.greptime.v1.RowData.StructValue.getDefaultInstance()); + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public io.greptime.v1.RowData.StructValue.Builder addStructValuesBuilder( + int index) { + return getStructValuesFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.StructValue.getDefaultInstance()); + } + /** + * repeated .greptime.v1.StructValue struct_values = 41; + */ + public java.util.List + getStructValuesBuilderList() { + return getStructValuesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder> + getStructValuesFieldBuilder() { + if (structValuesBuilder_ == null) { + structValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder>( + structValues_, + ((bitField0_ & 0x10000000) != 0), + getParentForChildren(), + isClean()); + structValues_ = null; + } + return structValuesBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -7843,42 +8587,46 @@ public final class Columns { static { java.lang.String[] descriptorData = { "\n\030greptime/v1/column.proto\022\013greptime.v1\032" + - "\030greptime/v1/common.proto\"\303\010\n\006Column\022\023\n\013" + - "column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016" + - "2\031.greptime.v1.SemanticType\022*\n\006values\030\003 " + - "\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_" + - "mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime." + - "v1.ColumnDataType\022@\n\022datatype_extension\030" + - "\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens" + - "ion\022+\n\007options\030\007 \001(\0132\032.greptime.v1.Colum" + - "nOptions\032\224\006\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022" + - "\n\ni16_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022" + - "\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n" + - "\nu16_values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n" + - "\nu64_values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n" + - "\nf64_values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025" + - "\n\rbinary_values\030\014 \003(\014\022\025\n\rstring_values\030\r" + - " \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_va" + - "lues\030\017 \003(\003\022\037\n\027timestamp_second_values\030\020 " + - "\003(\003\022$\n\034timestamp_millisecond_values\030\021 \003(" + - "\003\022$\n\034timestamp_microsecond_values\030\022 \003(\003\022" + - "#\n\033timestamp_nanosecond_values\030\023 \003(\003\022\032\n\022" + - "time_second_values\030\024 \003(\003\022\037\n\027time_millise" + - "cond_values\030\025 \003(\003\022\037\n\027time_microsecond_va" + - "lues\030\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003" + - "(\003\022\"\n\032interval_year_month_values\030\030 \003(\005\022 " + - "\n\030interval_day_time_values\030\031 \003(\003\022I\n\036inte" + - "rval_month_day_nano_values\030\032 \003(\0132!.grept" + - "ime.v1.IntervalMonthDayNano\0222\n\021decimal12" + - "8_values\030\037 \003(\0132\027.greptime.v1.Decimal128B" + - "P\n\016io.greptime.v1B\007ColumnsZ5github.com/G" + - "reptimeTeam/greptime-proto/go/greptime/v" + - "1b\006proto3" + "\030greptime/v1/common.proto\032\025greptime/v1/r" + + "ow.proto\"\241\t\n\006Column\022\023\n\013column_name\030\001 \001(\t" + + "\0220\n\rsemantic_type\030\002 \001(\0162\031.greptime.v1.Se" + + "manticType\022*\n\006values\030\003 \001(\0132\032.greptime.v1" + + ".Column.Values\022\021\n\tnull_mask\030\004 \001(\014\022-\n\010dat" + + "atype\030\005 \001(\0162\033.greptime.v1.ColumnDataType" + + "\022@\n\022datatype_extension\030\006 \001(\0132$.greptime." + + "v1.ColumnDataTypeExtension\022+\n\007options\030\007 " + + "\001(\0132\032.greptime.v1.ColumnOptions\032\362\006\n\006Valu" + + "es\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(" + + "\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64_values\030\004 \003(" + + "\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_values\030\006 \003(\r" + + "\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_values\030\010 \003(\004" + + "\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_values\030\n \003(\001" + + "\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbinary_values\030\014" + + " \003(\014\022\025\n\rstring_values\030\r \003(\t\022\023\n\013date_valu" + + "es\030\016 \003(\005\022\027\n\017datetime_values\030\017 \003(\003\022\037\n\027tim" + + "estamp_second_values\030\020 \003(\003\022$\n\034timestamp_" + + "millisecond_values\030\021 \003(\003\022$\n\034timestamp_mi" + + "crosecond_values\030\022 \003(\003\022#\n\033timestamp_nano" + + "second_values\030\023 \003(\003\022\032\n\022time_second_value" + + "s\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\026tim" + + "e_nanosecond_values\030\027 \003(\003\022\"\n\032interval_ye" + + "ar_month_values\030\030 \003(\005\022 \n\030interval_day_ti" + + "me_values\030\031 \003(\003\022I\n\036interval_month_day_na" + + "no_values\030\032 \003(\0132!.greptime.v1.IntervalMo" + + "nthDayNano\0222\n\021decimal128_values\030\037 \003(\0132\027." + + "greptime.v1.Decimal128\022+\n\013list_values\030( " + + "\003(\0132\026.greptime.v1.ListValue\022/\n\rstruct_va" + + "lues\030) \003(\0132\030.greptime.v1.StructValueBP\n\016" + + "io.greptime.v1B\007ColumnsZ5github.com/Grep" + + "timeTeam/greptime-proto/go/greptime/v1b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { io.greptime.v1.Common.getDescriptor(), + io.greptime.v1.RowData.getDescriptor(), }); internal_static_greptime_v1_Column_descriptor = getDescriptor().getMessageTypes().get(0); @@ -7891,8 +8639,9 @@ public final class Columns { 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", "Decimal128Values", }); + 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", "Decimal128Values", "ListValues", "StructValues", }); io.greptime.v1.Common.getDescriptor(); + io.greptime.v1.RowData.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/java/src/main/java/io/greptime/v1/Common.java b/java/src/main/java/io/greptime/v1/Common.java index 4e70553..92fbf51 100644 --- a/java/src/main/java/io/greptime/v1/Common.java +++ b/java/src/main/java/io/greptime/v1/Common.java @@ -252,6 +252,14 @@ public final class Common { * VECTOR = 32; */ VECTOR(32), + /** + * LIST = 40; + */ + LIST(40), + /** + * STRUCT = 41; + */ + STRUCT(41), UNRECOGNIZED(-1), ; @@ -371,6 +379,14 @@ public final class Common { * VECTOR = 32; */ public static final int VECTOR_VALUE = 32; + /** + * LIST = 40; + */ + public static final int LIST_VALUE = 40; + /** + * STRUCT = 41; + */ + public static final int STRUCT_VALUE = 41; public final int getNumber() { @@ -426,6 +442,8 @@ public final class Common { case 30: return DECIMAL128; case 31: return JSON; case 32: return VECTOR; + case 40: return LIST; + case 41: return STRUCT; default: return null; } } @@ -15849,6 +15867,886 @@ java.lang.String defaultValue); } + public interface StructFieldOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.StructField) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The enum numeric value on the wire for datatype. + */ + int getDatatypeValue(); + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The datatype. + */ + io.greptime.v1.Common.ColumnDataType getDatatype(); + + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + * @return Whether the datatypeExtension field is set. + */ + boolean hasDatatypeExtension(); + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + * @return The datatypeExtension. + */ + io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension(); + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.StructField} + */ + public static final class StructField extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.StructField) + StructFieldOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructField.newBuilder() to construct. + private StructField(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StructField() { + name_ = ""; + datatype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StructField(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StructField( + 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: { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: { + int rawValue = input.readEnum(); + + datatype_ = rawValue; + break; + } + case 26: { + 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)) { + 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_StructField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.StructField.class, io.greptime.v1.Common.StructField.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string name = 1; + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DATATYPE_FIELD_NUMBER = 2; + private int datatype_; + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The datatype. + */ + @java.lang.Override public io.greptime.v1.Common.ColumnDataType getDatatype() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + + public static final int DATATYPE_EXTENSION_FIELD_NUMBER = 3; + private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_; + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + * @return Whether the datatypeExtension field is set. + */ + @java.lang.Override + public boolean hasDatatypeExtension() { + return datatypeExtension_ != null; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + * @return The datatypeExtension. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() { + return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + return getDatatypeExtension(); + } + + 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + output.writeEnum(2, datatype_); + } + if (datatypeExtension_ != null) { + output.writeMessage(3, getDatatypeExtension()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, datatype_); + } + if (datatypeExtension_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getDatatypeExtension()); + } + 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.StructField)) { + return super.equals(obj); + } + io.greptime.v1.Common.StructField other = (io.greptime.v1.Common.StructField) obj; + + if (!getName() + .equals(other.getName())) 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().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; + } + + public static io.greptime.v1.Common.StructField parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.StructField 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.StructField parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.StructField 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.StructField parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.StructField parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.StructField parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.StructField 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.StructField parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.StructField 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.StructField parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.StructField 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.StructField 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.StructField} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.StructField) + io.greptime.v1.Common.StructFieldOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructField_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructField_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.StructField.class, io.greptime.v1.Common.StructField.Builder.class); + } + + // Construct using io.greptime.v1.Common.StructField.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(); + name_ = ""; + + datatype_ = 0; + + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructField_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.StructField getDefaultInstanceForType() { + return io.greptime.v1.Common.StructField.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.StructField build() { + io.greptime.v1.Common.StructField result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.StructField buildPartial() { + io.greptime.v1.Common.StructField result = new io.greptime.v1.Common.StructField(this); + result.name_ = name_; + result.datatype_ = datatype_; + if (datatypeExtensionBuilder_ == null) { + result.datatypeExtension_ = datatypeExtension_; + } else { + result.datatypeExtension_ = datatypeExtensionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Common.StructField) { + return mergeFrom((io.greptime.v1.Common.StructField)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.StructField other) { + if (other == io.greptime.v1.Common.StructField.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.datatype_ != 0) { + setDatatypeValue(other.getDatatypeValue()); + } + if (other.hasDatatypeExtension()) { + mergeDatatypeExtension(other.getDatatypeExtension()); + } + 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.StructField parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.StructField) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * string name = 1; + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string name = 1; + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string name = 1; + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * string name = 1; + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int datatype_ = 0; + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @param value The enum numeric value on the wire for datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatypeValue(int value) { + + datatype_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return The datatype. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataType getDatatype() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @param value The datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatype(io.greptime.v1.Common.ColumnDataType value) { + if (value == null) { + throw new NullPointerException(); + } + + datatype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType datatype = 2; + * @return This builder for chaining. + */ + public Builder clearDatatype() { + + datatype_ = 0; + 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_; + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + * @return Whether the datatypeExtension field is set. + */ + public boolean hasDatatypeExtension() { + return datatypeExtensionBuilder_ != null || datatypeExtension_ != null; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + * @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(); + } + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + 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; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + public Builder setDatatypeExtension( + io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = builderForValue.build(); + onChanged(); + } else { + datatypeExtensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + 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; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + public Builder clearDatatypeExtension() { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + onChanged(); + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getDatatypeExtensionBuilder() { + + onChanged(); + return getDatatypeExtensionFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + if (datatypeExtensionBuilder_ != null) { + return datatypeExtensionBuilder_.getMessageOrBuilder(); + } else { + return datatypeExtension_ == null ? + io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 3; + */ + 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) { + 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.StructField) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.StructField) + private static final io.greptime.v1.Common.StructField DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.StructField(); + } + + public static io.greptime.v1.Common.StructField getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructField parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StructField(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.StructField getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface ColumnDataTypeExtensionOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.ColumnDataTypeExtension) com.google.protobuf.MessageOrBuilder { @@ -15911,6 +16809,36 @@ java.lang.String defaultValue); */ io.greptime.v1.Common.VectorTypeExtensionOrBuilder getVectorTypeOrBuilder(); + /** + * .greptime.v1.ListTypeExtension list_type = 4; + * @return Whether the listType field is set. + */ + boolean hasListType(); + /** + * .greptime.v1.ListTypeExtension list_type = 4; + * @return The listType. + */ + io.greptime.v1.Common.ListTypeExtension getListType(); + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + io.greptime.v1.Common.ListTypeExtensionOrBuilder getListTypeOrBuilder(); + + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + * @return Whether the structType field is set. + */ + boolean hasStructType(); + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + * @return The structType. + */ + io.greptime.v1.Common.StructTypeExtension getStructType(); + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + io.greptime.v1.Common.StructTypeExtensionOrBuilder getStructTypeOrBuilder(); + public io.greptime.v1.Common.ColumnDataTypeExtension.TypeExtCase getTypeExtCase(); } /** @@ -15996,6 +16924,34 @@ java.lang.String defaultValue); typeExtCase_ = 3; break; } + case 34: { + io.greptime.v1.Common.ListTypeExtension.Builder subBuilder = null; + if (typeExtCase_ == 4) { + subBuilder = ((io.greptime.v1.Common.ListTypeExtension) typeExt_).toBuilder(); + } + typeExt_ = + input.readMessage(io.greptime.v1.Common.ListTypeExtension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Common.ListTypeExtension) typeExt_); + typeExt_ = subBuilder.buildPartial(); + } + typeExtCase_ = 4; + break; + } + case 42: { + io.greptime.v1.Common.StructTypeExtension.Builder subBuilder = null; + if (typeExtCase_ == 5) { + subBuilder = ((io.greptime.v1.Common.StructTypeExtension) typeExt_).toBuilder(); + } + typeExt_ = + input.readMessage(io.greptime.v1.Common.StructTypeExtension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Common.StructTypeExtension) typeExt_); + typeExt_ = subBuilder.buildPartial(); + } + typeExtCase_ = 5; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -16038,6 +16994,8 @@ java.lang.String defaultValue); DECIMAL_TYPE(1), JSON_TYPE(2), VECTOR_TYPE(3), + LIST_TYPE(4), + STRUCT_TYPE(5), TYPEEXT_NOT_SET(0); private final int value; private TypeExtCase(int value) { @@ -16058,6 +17016,8 @@ java.lang.String defaultValue); case 1: return DECIMAL_TYPE; case 2: return JSON_TYPE; case 3: return VECTOR_TYPE; + case 4: return LIST_TYPE; + case 5: return STRUCT_TYPE; case 0: return TYPEEXT_NOT_SET; default: return null; } @@ -16179,6 +17139,68 @@ java.lang.String defaultValue); return io.greptime.v1.Common.VectorTypeExtension.getDefaultInstance(); } + public static final int LIST_TYPE_FIELD_NUMBER = 4; + /** + * .greptime.v1.ListTypeExtension list_type = 4; + * @return Whether the listType field is set. + */ + @java.lang.Override + public boolean hasListType() { + return typeExtCase_ == 4; + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + * @return The listType. + */ + @java.lang.Override + public io.greptime.v1.Common.ListTypeExtension getListType() { + if (typeExtCase_ == 4) { + return (io.greptime.v1.Common.ListTypeExtension) typeExt_; + } + return io.greptime.v1.Common.ListTypeExtension.getDefaultInstance(); + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + @java.lang.Override + public io.greptime.v1.Common.ListTypeExtensionOrBuilder getListTypeOrBuilder() { + if (typeExtCase_ == 4) { + return (io.greptime.v1.Common.ListTypeExtension) typeExt_; + } + return io.greptime.v1.Common.ListTypeExtension.getDefaultInstance(); + } + + public static final int STRUCT_TYPE_FIELD_NUMBER = 5; + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + * @return Whether the structType field is set. + */ + @java.lang.Override + public boolean hasStructType() { + return typeExtCase_ == 5; + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + * @return The structType. + */ + @java.lang.Override + public io.greptime.v1.Common.StructTypeExtension getStructType() { + if (typeExtCase_ == 5) { + return (io.greptime.v1.Common.StructTypeExtension) typeExt_; + } + return io.greptime.v1.Common.StructTypeExtension.getDefaultInstance(); + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + @java.lang.Override + public io.greptime.v1.Common.StructTypeExtensionOrBuilder getStructTypeOrBuilder() { + if (typeExtCase_ == 5) { + return (io.greptime.v1.Common.StructTypeExtension) typeExt_; + } + return io.greptime.v1.Common.StructTypeExtension.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -16202,6 +17224,12 @@ java.lang.String defaultValue); if (typeExtCase_ == 3) { output.writeMessage(3, (io.greptime.v1.Common.VectorTypeExtension) typeExt_); } + if (typeExtCase_ == 4) { + output.writeMessage(4, (io.greptime.v1.Common.ListTypeExtension) typeExt_); + } + if (typeExtCase_ == 5) { + output.writeMessage(5, (io.greptime.v1.Common.StructTypeExtension) typeExt_); + } unknownFields.writeTo(output); } @@ -16223,6 +17251,14 @@ java.lang.String defaultValue); size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (io.greptime.v1.Common.VectorTypeExtension) typeExt_); } + if (typeExtCase_ == 4) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, (io.greptime.v1.Common.ListTypeExtension) typeExt_); + } + if (typeExtCase_ == 5) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, (io.greptime.v1.Common.StructTypeExtension) typeExt_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -16252,6 +17288,14 @@ java.lang.String defaultValue); if (!getVectorType() .equals(other.getVectorType())) return false; break; + case 4: + if (!getListType() + .equals(other.getListType())) return false; + break; + case 5: + if (!getStructType() + .equals(other.getStructType())) return false; + break; case 0: default: } @@ -16279,6 +17323,14 @@ java.lang.String defaultValue); hash = (37 * hash) + VECTOR_TYPE_FIELD_NUMBER; hash = (53 * hash) + getVectorType().hashCode(); break; + case 4: + hash = (37 * hash) + LIST_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getListType().hashCode(); + break; + case 5: + hash = (37 * hash) + STRUCT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getStructType().hashCode(); + break; case 0: default: } @@ -16464,6 +17516,20 @@ java.lang.String defaultValue); result.typeExt_ = vectorTypeBuilder_.build(); } } + if (typeExtCase_ == 4) { + if (listTypeBuilder_ == null) { + result.typeExt_ = typeExt_; + } else { + result.typeExt_ = listTypeBuilder_.build(); + } + } + if (typeExtCase_ == 5) { + if (structTypeBuilder_ == null) { + result.typeExt_ = typeExt_; + } else { + result.typeExt_ = structTypeBuilder_.build(); + } + } result.typeExtCase_ = typeExtCase_; onBuilt(); return result; @@ -16526,6 +17592,14 @@ java.lang.String defaultValue); mergeVectorType(other.getVectorType()); break; } + case LIST_TYPE: { + mergeListType(other.getListType()); + break; + } + case STRUCT_TYPE: { + mergeStructType(other.getStructType()); + break; + } case TYPEEXT_NOT_SET: { break; } @@ -16952,6 +18026,290 @@ java.lang.String defaultValue); onChanged();; return vectorTypeBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ListTypeExtension, io.greptime.v1.Common.ListTypeExtension.Builder, io.greptime.v1.Common.ListTypeExtensionOrBuilder> listTypeBuilder_; + /** + * .greptime.v1.ListTypeExtension list_type = 4; + * @return Whether the listType field is set. + */ + @java.lang.Override + public boolean hasListType() { + return typeExtCase_ == 4; + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + * @return The listType. + */ + @java.lang.Override + public io.greptime.v1.Common.ListTypeExtension getListType() { + if (listTypeBuilder_ == null) { + if (typeExtCase_ == 4) { + return (io.greptime.v1.Common.ListTypeExtension) typeExt_; + } + return io.greptime.v1.Common.ListTypeExtension.getDefaultInstance(); + } else { + if (typeExtCase_ == 4) { + return listTypeBuilder_.getMessage(); + } + return io.greptime.v1.Common.ListTypeExtension.getDefaultInstance(); + } + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + public Builder setListType(io.greptime.v1.Common.ListTypeExtension value) { + if (listTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeExt_ = value; + onChanged(); + } else { + listTypeBuilder_.setMessage(value); + } + typeExtCase_ = 4; + return this; + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + public Builder setListType( + io.greptime.v1.Common.ListTypeExtension.Builder builderForValue) { + if (listTypeBuilder_ == null) { + typeExt_ = builderForValue.build(); + onChanged(); + } else { + listTypeBuilder_.setMessage(builderForValue.build()); + } + typeExtCase_ = 4; + return this; + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + public Builder mergeListType(io.greptime.v1.Common.ListTypeExtension value) { + if (listTypeBuilder_ == null) { + if (typeExtCase_ == 4 && + typeExt_ != io.greptime.v1.Common.ListTypeExtension.getDefaultInstance()) { + typeExt_ = io.greptime.v1.Common.ListTypeExtension.newBuilder((io.greptime.v1.Common.ListTypeExtension) typeExt_) + .mergeFrom(value).buildPartial(); + } else { + typeExt_ = value; + } + onChanged(); + } else { + if (typeExtCase_ == 4) { + listTypeBuilder_.mergeFrom(value); + } else { + listTypeBuilder_.setMessage(value); + } + } + typeExtCase_ = 4; + return this; + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + public Builder clearListType() { + if (listTypeBuilder_ == null) { + if (typeExtCase_ == 4) { + typeExtCase_ = 0; + typeExt_ = null; + onChanged(); + } + } else { + if (typeExtCase_ == 4) { + typeExtCase_ = 0; + typeExt_ = null; + } + listTypeBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + public io.greptime.v1.Common.ListTypeExtension.Builder getListTypeBuilder() { + return getListTypeFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + @java.lang.Override + public io.greptime.v1.Common.ListTypeExtensionOrBuilder getListTypeOrBuilder() { + if ((typeExtCase_ == 4) && (listTypeBuilder_ != null)) { + return listTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeExtCase_ == 4) { + return (io.greptime.v1.Common.ListTypeExtension) typeExt_; + } + return io.greptime.v1.Common.ListTypeExtension.getDefaultInstance(); + } + } + /** + * .greptime.v1.ListTypeExtension list_type = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ListTypeExtension, io.greptime.v1.Common.ListTypeExtension.Builder, io.greptime.v1.Common.ListTypeExtensionOrBuilder> + getListTypeFieldBuilder() { + if (listTypeBuilder_ == null) { + if (!(typeExtCase_ == 4)) { + typeExt_ = io.greptime.v1.Common.ListTypeExtension.getDefaultInstance(); + } + listTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.ListTypeExtension, io.greptime.v1.Common.ListTypeExtension.Builder, io.greptime.v1.Common.ListTypeExtensionOrBuilder>( + (io.greptime.v1.Common.ListTypeExtension) typeExt_, + getParentForChildren(), + isClean()); + typeExt_ = null; + } + typeExtCase_ = 4; + onChanged();; + return listTypeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.StructTypeExtension, io.greptime.v1.Common.StructTypeExtension.Builder, io.greptime.v1.Common.StructTypeExtensionOrBuilder> structTypeBuilder_; + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + * @return Whether the structType field is set. + */ + @java.lang.Override + public boolean hasStructType() { + return typeExtCase_ == 5; + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + * @return The structType. + */ + @java.lang.Override + public io.greptime.v1.Common.StructTypeExtension getStructType() { + if (structTypeBuilder_ == null) { + if (typeExtCase_ == 5) { + return (io.greptime.v1.Common.StructTypeExtension) typeExt_; + } + return io.greptime.v1.Common.StructTypeExtension.getDefaultInstance(); + } else { + if (typeExtCase_ == 5) { + return structTypeBuilder_.getMessage(); + } + return io.greptime.v1.Common.StructTypeExtension.getDefaultInstance(); + } + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + public Builder setStructType(io.greptime.v1.Common.StructTypeExtension value) { + if (structTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + typeExt_ = value; + onChanged(); + } else { + structTypeBuilder_.setMessage(value); + } + typeExtCase_ = 5; + return this; + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + public Builder setStructType( + io.greptime.v1.Common.StructTypeExtension.Builder builderForValue) { + if (structTypeBuilder_ == null) { + typeExt_ = builderForValue.build(); + onChanged(); + } else { + structTypeBuilder_.setMessage(builderForValue.build()); + } + typeExtCase_ = 5; + return this; + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + public Builder mergeStructType(io.greptime.v1.Common.StructTypeExtension value) { + if (structTypeBuilder_ == null) { + if (typeExtCase_ == 5 && + typeExt_ != io.greptime.v1.Common.StructTypeExtension.getDefaultInstance()) { + typeExt_ = io.greptime.v1.Common.StructTypeExtension.newBuilder((io.greptime.v1.Common.StructTypeExtension) typeExt_) + .mergeFrom(value).buildPartial(); + } else { + typeExt_ = value; + } + onChanged(); + } else { + if (typeExtCase_ == 5) { + structTypeBuilder_.mergeFrom(value); + } else { + structTypeBuilder_.setMessage(value); + } + } + typeExtCase_ = 5; + return this; + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + public Builder clearStructType() { + if (structTypeBuilder_ == null) { + if (typeExtCase_ == 5) { + typeExtCase_ = 0; + typeExt_ = null; + onChanged(); + } + } else { + if (typeExtCase_ == 5) { + typeExtCase_ = 0; + typeExt_ = null; + } + structTypeBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + public io.greptime.v1.Common.StructTypeExtension.Builder getStructTypeBuilder() { + return getStructTypeFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + @java.lang.Override + public io.greptime.v1.Common.StructTypeExtensionOrBuilder getStructTypeOrBuilder() { + if ((typeExtCase_ == 5) && (structTypeBuilder_ != null)) { + return structTypeBuilder_.getMessageOrBuilder(); + } else { + if (typeExtCase_ == 5) { + return (io.greptime.v1.Common.StructTypeExtension) typeExt_; + } + return io.greptime.v1.Common.StructTypeExtension.getDefaultInstance(); + } + } + /** + * .greptime.v1.StructTypeExtension struct_type = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.StructTypeExtension, io.greptime.v1.Common.StructTypeExtension.Builder, io.greptime.v1.Common.StructTypeExtensionOrBuilder> + getStructTypeFieldBuilder() { + if (structTypeBuilder_ == null) { + if (!(typeExtCase_ == 5)) { + typeExt_ = io.greptime.v1.Common.StructTypeExtension.getDefaultInstance(); + } + structTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.StructTypeExtension, io.greptime.v1.Common.StructTypeExtension.Builder, io.greptime.v1.Common.StructTypeExtensionOrBuilder>( + (io.greptime.v1.Common.StructTypeExtension) typeExt_, + getParentForChildren(), + isClean()); + typeExt_ = null; + } + typeExtCase_ = 5; + onChanged();; + return structTypeBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -18055,6 +19413,1531 @@ java.lang.String defaultValue); } + public interface ListTypeExtensionOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ListTypeExtension) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @return The enum numeric value on the wire for datatype. + */ + int getDatatypeValue(); + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @return The datatype. + */ + io.greptime.v1.Common.ColumnDataType getDatatype(); + + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + * @return Whether the datatypeExtension field is set. + */ + boolean hasDatatypeExtension(); + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + * @return The datatypeExtension. + */ + io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension(); + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder(); + } + /** + * Protobuf type {@code greptime.v1.ListTypeExtension} + */ + public static final class ListTypeExtension extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.ListTypeExtension) + ListTypeExtensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListTypeExtension.newBuilder() to construct. + private ListTypeExtension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListTypeExtension() { + datatype_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListTypeExtension(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListTypeExtension( + 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: { + int rawValue = input.readEnum(); + + datatype_ = rawValue; + break; + } + case 18: { + 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)) { + 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_ListTypeExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_ListTypeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.ListTypeExtension.class, io.greptime.v1.Common.ListTypeExtension.Builder.class); + } + + public static final int DATATYPE_FIELD_NUMBER = 1; + private int datatype_; + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @return The datatype. + */ + @java.lang.Override public io.greptime.v1.Common.ColumnDataType getDatatype() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + + public static final int DATATYPE_EXTENSION_FIELD_NUMBER = 2; + private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_; + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + * @return Whether the datatypeExtension field is set. + */ + @java.lang.Override + public boolean hasDatatypeExtension() { + return datatypeExtension_ != null; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + * @return The datatypeExtension. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() { + return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + return getDatatypeExtension(); + } + + 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 (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + output.writeEnum(1, datatype_); + } + if (datatypeExtension_ != null) { + output.writeMessage(2, getDatatypeExtension()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, datatype_); + } + if (datatypeExtension_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getDatatypeExtension()); + } + 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.ListTypeExtension)) { + return super.equals(obj); + } + io.greptime.v1.Common.ListTypeExtension other = (io.greptime.v1.Common.ListTypeExtension) obj; + + 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; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().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; + } + + public static io.greptime.v1.Common.ListTypeExtension parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ListTypeExtension 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.ListTypeExtension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ListTypeExtension 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.ListTypeExtension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.ListTypeExtension parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.ListTypeExtension parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ListTypeExtension 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.ListTypeExtension parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ListTypeExtension 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.ListTypeExtension parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.ListTypeExtension 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.ListTypeExtension 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.ListTypeExtension} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.ListTypeExtension) + io.greptime.v1.Common.ListTypeExtensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_ListTypeExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_ListTypeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.ListTypeExtension.class, io.greptime.v1.Common.ListTypeExtension.Builder.class); + } + + // Construct using io.greptime.v1.Common.ListTypeExtension.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(); + datatype_ = 0; + + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_ListTypeExtension_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.ListTypeExtension getDefaultInstanceForType() { + return io.greptime.v1.Common.ListTypeExtension.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.ListTypeExtension build() { + io.greptime.v1.Common.ListTypeExtension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.ListTypeExtension buildPartial() { + io.greptime.v1.Common.ListTypeExtension result = new io.greptime.v1.Common.ListTypeExtension(this); + result.datatype_ = datatype_; + if (datatypeExtensionBuilder_ == null) { + result.datatypeExtension_ = datatypeExtension_; + } else { + result.datatypeExtension_ = datatypeExtensionBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Common.ListTypeExtension) { + return mergeFrom((io.greptime.v1.Common.ListTypeExtension)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.ListTypeExtension other) { + if (other == io.greptime.v1.Common.ListTypeExtension.getDefaultInstance()) return this; + if (other.datatype_ != 0) { + setDatatypeValue(other.getDatatypeValue()); + } + if (other.hasDatatypeExtension()) { + mergeDatatypeExtension(other.getDatatypeExtension()); + } + 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.ListTypeExtension parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.ListTypeExtension) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int datatype_ = 0; + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @return The enum numeric value on the wire for datatype. + */ + @java.lang.Override public int getDatatypeValue() { + return datatype_; + } + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @param value The enum numeric value on the wire for datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatypeValue(int value) { + + datatype_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @return The datatype. + */ + @java.lang.Override + public io.greptime.v1.Common.ColumnDataType getDatatype() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.ColumnDataType result = io.greptime.v1.Common.ColumnDataType.valueOf(datatype_); + return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result; + } + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @param value The datatype to set. + * @return This builder for chaining. + */ + public Builder setDatatype(io.greptime.v1.Common.ColumnDataType value) { + if (value == null) { + throw new NullPointerException(); + } + + datatype_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.ColumnDataType datatype = 1; + * @return This builder for chaining. + */ + public Builder clearDatatype() { + + datatype_ = 0; + 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_; + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + * @return Whether the datatypeExtension field is set. + */ + public boolean hasDatatypeExtension() { + return datatypeExtensionBuilder_ != null || datatypeExtension_ != null; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + * @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(); + } + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + 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; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + public Builder setDatatypeExtension( + io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = builderForValue.build(); + onChanged(); + } else { + datatypeExtensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + 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; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + public Builder clearDatatypeExtension() { + if (datatypeExtensionBuilder_ == null) { + datatypeExtension_ = null; + onChanged(); + } else { + datatypeExtension_ = null; + datatypeExtensionBuilder_ = null; + } + + return this; + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getDatatypeExtensionBuilder() { + + onChanged(); + return getDatatypeExtensionFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() { + if (datatypeExtensionBuilder_ != null) { + return datatypeExtensionBuilder_.getMessageOrBuilder(); + } else { + return datatypeExtension_ == null ? + io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_; + } + } + /** + * .greptime.v1.ColumnDataTypeExtension datatype_extension = 2; + */ + 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) { + 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.ListTypeExtension) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ListTypeExtension) + private static final io.greptime.v1.Common.ListTypeExtension DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.ListTypeExtension(); + } + + public static io.greptime.v1.Common.ListTypeExtension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListTypeExtension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListTypeExtension(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.ListTypeExtension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StructTypeExtensionOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.StructTypeExtension) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.StructField fields = 1; + */ + java.util.List + getFieldsList(); + /** + * repeated .greptime.v1.StructField fields = 1; + */ + io.greptime.v1.Common.StructField getFields(int index); + /** + * repeated .greptime.v1.StructField fields = 1; + */ + int getFieldsCount(); + /** + * repeated .greptime.v1.StructField fields = 1; + */ + java.util.List + getFieldsOrBuilderList(); + /** + * repeated .greptime.v1.StructField fields = 1; + */ + io.greptime.v1.Common.StructFieldOrBuilder getFieldsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.StructTypeExtension} + */ + public static final class StructTypeExtension extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.StructTypeExtension) + StructTypeExtensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructTypeExtension.newBuilder() to construct. + private StructTypeExtension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StructTypeExtension() { + fields_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StructTypeExtension(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StructTypeExtension( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + fields_.add( + input.readMessage(io.greptime.v1.Common.StructField.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructTypeExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructTypeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.StructTypeExtension.class, io.greptime.v1.Common.StructTypeExtension.Builder.class); + } + + public static final int FIELDS_FIELD_NUMBER = 1; + private java.util.List fields_; + /** + * repeated .greptime.v1.StructField fields = 1; + */ + @java.lang.Override + public java.util.List getFieldsList() { + return fields_; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + @java.lang.Override + public java.util.List + getFieldsOrBuilderList() { + return fields_; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + @java.lang.Override + public int getFieldsCount() { + return fields_.size(); + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + @java.lang.Override + public io.greptime.v1.Common.StructField getFields(int index) { + return fields_.get(index); + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + @java.lang.Override + public io.greptime.v1.Common.StructFieldOrBuilder getFieldsOrBuilder( + int index) { + return fields_.get(index); + } + + 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 { + for (int i = 0; i < fields_.size(); i++) { + output.writeMessage(1, fields_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < fields_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, fields_.get(i)); + } + 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.StructTypeExtension)) { + return super.equals(obj); + } + io.greptime.v1.Common.StructTypeExtension other = (io.greptime.v1.Common.StructTypeExtension) obj; + + if (!getFieldsList() + .equals(other.getFieldsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getFieldsCount() > 0) { + hash = (37 * hash) + FIELDS_FIELD_NUMBER; + hash = (53 * hash) + getFieldsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.StructTypeExtension parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.StructTypeExtension 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.StructTypeExtension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.StructTypeExtension 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.StructTypeExtension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.StructTypeExtension parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.StructTypeExtension parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.StructTypeExtension 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.StructTypeExtension parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.StructTypeExtension 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.StructTypeExtension parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.StructTypeExtension 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.StructTypeExtension 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.StructTypeExtension} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.StructTypeExtension) + io.greptime.v1.Common.StructTypeExtensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructTypeExtension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructTypeExtension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.StructTypeExtension.class, io.greptime.v1.Common.StructTypeExtension.Builder.class); + } + + // Construct using io.greptime.v1.Common.StructTypeExtension.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFieldsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + fieldsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_StructTypeExtension_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.StructTypeExtension getDefaultInstanceForType() { + return io.greptime.v1.Common.StructTypeExtension.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.StructTypeExtension build() { + io.greptime.v1.Common.StructTypeExtension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.StructTypeExtension buildPartial() { + io.greptime.v1.Common.StructTypeExtension result = new io.greptime.v1.Common.StructTypeExtension(this); + int from_bitField0_ = bitField0_; + if (fieldsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + fields_ = java.util.Collections.unmodifiableList(fields_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.fields_ = fields_; + } else { + result.fields_ = fieldsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Common.StructTypeExtension) { + return mergeFrom((io.greptime.v1.Common.StructTypeExtension)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.StructTypeExtension other) { + if (other == io.greptime.v1.Common.StructTypeExtension.getDefaultInstance()) return this; + if (fieldsBuilder_ == null) { + if (!other.fields_.isEmpty()) { + if (fields_.isEmpty()) { + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFieldsIsMutable(); + fields_.addAll(other.fields_); + } + onChanged(); + } + } else { + if (!other.fields_.isEmpty()) { + if (fieldsBuilder_.isEmpty()) { + fieldsBuilder_.dispose(); + fieldsBuilder_ = null; + fields_ = other.fields_; + bitField0_ = (bitField0_ & ~0x00000001); + fieldsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFieldsFieldBuilder() : null; + } else { + fieldsBuilder_.addAllMessages(other.fields_); + } + } + } + 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.StructTypeExtension parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.StructTypeExtension) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List fields_ = + java.util.Collections.emptyList(); + private void ensureFieldsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + fields_ = new java.util.ArrayList(fields_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.StructField, io.greptime.v1.Common.StructField.Builder, io.greptime.v1.Common.StructFieldOrBuilder> fieldsBuilder_; + + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public java.util.List getFieldsList() { + if (fieldsBuilder_ == null) { + return java.util.Collections.unmodifiableList(fields_); + } else { + return fieldsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public int getFieldsCount() { + if (fieldsBuilder_ == null) { + return fields_.size(); + } else { + return fieldsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public io.greptime.v1.Common.StructField getFields(int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); + } else { + return fieldsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder setFields( + int index, io.greptime.v1.Common.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.set(index, value); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder setFields( + int index, io.greptime.v1.Common.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.set(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder addFields(io.greptime.v1.Common.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(value); + onChanged(); + } else { + fieldsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder addFields( + int index, io.greptime.v1.Common.StructField value) { + if (fieldsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFieldsIsMutable(); + fields_.add(index, value); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder addFields( + io.greptime.v1.Common.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder addFields( + int index, io.greptime.v1.Common.StructField.Builder builderForValue) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.add(index, builderForValue.build()); + onChanged(); + } else { + fieldsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder addAllFields( + java.lang.Iterable values) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, fields_); + onChanged(); + } else { + fieldsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder clearFields() { + if (fieldsBuilder_ == null) { + fields_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + fieldsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public Builder removeFields(int index) { + if (fieldsBuilder_ == null) { + ensureFieldsIsMutable(); + fields_.remove(index); + onChanged(); + } else { + fieldsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public io.greptime.v1.Common.StructField.Builder getFieldsBuilder( + int index) { + return getFieldsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public io.greptime.v1.Common.StructFieldOrBuilder getFieldsOrBuilder( + int index) { + if (fieldsBuilder_ == null) { + return fields_.get(index); } else { + return fieldsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public java.util.List + getFieldsOrBuilderList() { + if (fieldsBuilder_ != null) { + return fieldsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(fields_); + } + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public io.greptime.v1.Common.StructField.Builder addFieldsBuilder() { + return getFieldsFieldBuilder().addBuilder( + io.greptime.v1.Common.StructField.getDefaultInstance()); + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public io.greptime.v1.Common.StructField.Builder addFieldsBuilder( + int index) { + return getFieldsFieldBuilder().addBuilder( + index, io.greptime.v1.Common.StructField.getDefaultInstance()); + } + /** + * repeated .greptime.v1.StructField fields = 1; + */ + public java.util.List + getFieldsBuilderList() { + return getFieldsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.StructField, io.greptime.v1.Common.StructField.Builder, io.greptime.v1.Common.StructFieldOrBuilder> + getFieldsFieldBuilder() { + if (fieldsBuilder_ == null) { + fieldsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.StructField, io.greptime.v1.Common.StructField.Builder, io.greptime.v1.Common.StructFieldOrBuilder>( + fields_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + fields_ = null; + } + return fieldsBuilder_; + } + @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.StructTypeExtension) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.StructTypeExtension) + private static final io.greptime.v1.Common.StructTypeExtension DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.StructTypeExtension(); + } + + public static io.greptime.v1.Common.StructTypeExtension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructTypeExtension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StructTypeExtension(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.StructTypeExtension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface ColumnOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.ColumnOptions) com.google.protobuf.MessageOrBuilder { @@ -19853,6 +22736,11 @@ java.lang.String defaultValue); 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_StructField_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_StructField_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_ColumnDataTypeExtension_descriptor; private static final @@ -19868,6 +22756,16 @@ java.lang.String defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_VectorTypeExtension_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ListTypeExtension_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ListTypeExtension_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_StructTypeExtension_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_StructTypeExtension_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_ColumnOptions_descriptor; private static final @@ -19936,38 +22834,50 @@ java.lang.String defaultValue); "anges\022(\n\ttime_unit\030\001 \001(\0162\025.greptime.v1.T" + "imeUnit\022+\n\013time_ranges\030\002 \003(\0132\026.greptime." + "v1.TimeRange\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n" + - "\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExtension\0229" + - "\n\014decimal_type\030\001 \001(\0132!.greptime.v1.Decim" + - "alTypeExtensionH\000\0223\n\tjson_type\030\002 \001(\0162\036.g" + - "reptime.v1.JsonTypeExtensionH\000\0227\n\013vector" + - "_type\030\003 \001(\0132 .greptime.v1.VectorTypeExte" + - "nsionH\000B\n\n\010type_ext\"8\n\024DecimalTypeExtens" + - "ion\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n" + - "\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r\"y\n\rCol" + - "umnOptions\0228\n\007options\030\001 \003(\0132\'.greptime.v" + - "1.ColumnOptions.OptionsEntry\032.\n\014OptionsE" + - "ntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\010" + - "ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_header\030" + - "\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014SemanticType\022\007" + - "\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\354\003\n\016Co" + - "lumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005I" + - "NT16\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\006UINT64\020\010\022\013\n\007F" + - "LOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STR" + - "ING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTA" + - "MP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031" + - "\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIMESTAMP_N" + - "ANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MIL" + - "LISECOND\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\016\n\nDECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006" + - "VECTOR\020 *H\n\010TimeUnit\022\017\n\013MILLISECOND\020\000\022\n\n" + - "\006SECOND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNANOSECOND" + - "\020\003*$\n\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000" + - "BO\n\016io.greptime.v1B\006CommonZ5github.com/G" + - "reptimeTeam/greptime-proto/go/greptime/v" + - "1b\006proto3" + "\n\002lo\030\002 \001(\003\"\214\001\n\013StructField\022\014\n\004name\030\001 \001(\t" + + "\022-\n\010datatype\030\002 \001(\0162\033.greptime.v1.ColumnD" + + "ataType\022@\n\022datatype_extension\030\003 \001(\0132$.gr" + + "eptime.v1.ColumnDataTypeExtension\"\274\002\n\027Co" + + "lumnDataTypeExtension\0229\n\014decimal_type\030\001 " + + "\001(\0132!.greptime.v1.DecimalTypeExtensionH\000" + + "\0223\n\tjson_type\030\002 \001(\0162\036.greptime.v1.JsonTy" + + "peExtensionH\000\0227\n\013vector_type\030\003 \001(\0132 .gre" + + "ptime.v1.VectorTypeExtensionH\000\0223\n\tlist_t" + + "ype\030\004 \001(\0132\036.greptime.v1.ListTypeExtensio" + + "nH\000\0227\n\013struct_type\030\005 \001(\0132 .greptime.v1.S" + + "tructTypeExtensionH\000B\n\n\010type_ext\"8\n\024Deci" + + "malTypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005s" + + "cale\030\002 \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim" + + "\030\001 \001(\r\"\204\001\n\021ListTypeExtension\022-\n\010datatype" + + "\030\001 \001(\0162\033.greptime.v1.ColumnDataType\022@\n\022d" + + "atatype_extension\030\002 \001(\0132$.greptime.v1.Co" + + "lumnDataTypeExtension\"?\n\023StructTypeExten" + + "sion\022(\n\006fields\030\001 \003(\0132\030.greptime.v1.Struc" + + "tField\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\013" + + "2\'.greptime.v1.ColumnOptions.OptionsEntr" + + "y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030" + + "\002 \001(\t:\0028\001\"@\n\010ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n" + + "\013data_header\030\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014S" + + "emanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMES" + + "TAMP\020\002*\202\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\006" + + "UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BI" + + "NARY\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_MI" + + "LLISECOND\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_MICROSEC" + + "OND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_Y" + + "EAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027IN" + + "TERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022" + + "\010\n\004JSON\020\037\022\n\n\006VECTOR\020 \022\010\n\004LIST\020(\022\n\n\006STRUC" + + "T\020)*H\n\010TimeUnit\022\017\n\013MILLISECOND\020\000\022\n\n\006SECO" + + "ND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNANOSECOND\020\003*$\n" + + "\021JsonTypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016i" + + "o.greptime.v1B\006CommonZ5github.com/Grepti" + + "meTeam/greptime-proto/go/greptime/v1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -20111,26 +23021,44 @@ java.lang.String defaultValue); com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Decimal128_descriptor, new java.lang.String[] { "Hi", "Lo", }); - internal_static_greptime_v1_ColumnDataTypeExtension_descriptor = + internal_static_greptime_v1_StructField_descriptor = getDescriptor().getMessageTypes().get(19); + internal_static_greptime_v1_StructField_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_StructField_descriptor, + new java.lang.String[] { "Name", "Datatype", "DatatypeExtension", }); + internal_static_greptime_v1_ColumnDataTypeExtension_descriptor = + getDescriptor().getMessageTypes().get(20); internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDataTypeExtension_descriptor, - new java.lang.String[] { "DecimalType", "JsonType", "VectorType", "TypeExt", }); + new java.lang.String[] { "DecimalType", "JsonType", "VectorType", "ListType", "StructType", "TypeExt", }); internal_static_greptime_v1_DecimalTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(21); internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DecimalTypeExtension_descriptor, new java.lang.String[] { "Precision", "Scale", }); internal_static_greptime_v1_VectorTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(22); internal_static_greptime_v1_VectorTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_VectorTypeExtension_descriptor, new java.lang.String[] { "Dim", }); + internal_static_greptime_v1_ListTypeExtension_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_greptime_v1_ListTypeExtension_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ListTypeExtension_descriptor, + new java.lang.String[] { "Datatype", "DatatypeExtension", }); + internal_static_greptime_v1_StructTypeExtension_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_greptime_v1_StructTypeExtension_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_StructTypeExtension_descriptor, + new java.lang.String[] { "Fields", }); internal_static_greptime_v1_ColumnOptions_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(25); internal_static_greptime_v1_ColumnOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnOptions_descriptor, @@ -20142,7 +23070,7 @@ java.lang.String defaultValue); internal_static_greptime_v1_ColumnOptions_OptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_ArrowIpc_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(26); internal_static_greptime_v1_ArrowIpc_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ArrowIpc_descriptor, diff --git a/java/src/main/java/io/greptime/v1/RowData.java b/java/src/main/java/io/greptime/v1/RowData.java index 00307cf..77c6d3f 100644 --- a/java/src/main/java/io/greptime/v1/RowData.java +++ b/java/src/main/java/io/greptime/v1/RowData.java @@ -3601,6 +3601,36 @@ public final class RowData { */ io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValueOrBuilder(); + /** + * .greptime.v1.ListValue list_value = 40; + * @return Whether the listValue field is set. + */ + boolean hasListValue(); + /** + * .greptime.v1.ListValue list_value = 40; + * @return The listValue. + */ + io.greptime.v1.RowData.ListValue getListValue(); + /** + * .greptime.v1.ListValue list_value = 40; + */ + io.greptime.v1.RowData.ListValueOrBuilder getListValueOrBuilder(); + + /** + * .greptime.v1.StructValue struct_value = 41; + * @return Whether the structValue field is set. + */ + boolean hasStructValue(); + /** + * .greptime.v1.StructValue struct_value = 41; + * @return The structValue. + */ + io.greptime.v1.RowData.StructValue getStructValue(); + /** + * .greptime.v1.StructValue struct_value = 41; + */ + io.greptime.v1.RowData.StructValueOrBuilder getStructValueOrBuilder(); + public io.greptime.v1.RowData.Value.ValueDataCase getValueDataCase(); } /** @@ -3802,6 +3832,34 @@ public final class RowData { valueDataCase_ = 31; break; } + case 322: { + io.greptime.v1.RowData.ListValue.Builder subBuilder = null; + if (valueDataCase_ == 40) { + subBuilder = ((io.greptime.v1.RowData.ListValue) valueData_).toBuilder(); + } + valueData_ = + input.readMessage(io.greptime.v1.RowData.ListValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.RowData.ListValue) valueData_); + valueData_ = subBuilder.buildPartial(); + } + valueDataCase_ = 40; + break; + } + case 330: { + io.greptime.v1.RowData.StructValue.Builder subBuilder = null; + if (valueDataCase_ == 41) { + subBuilder = ((io.greptime.v1.RowData.StructValue) valueData_).toBuilder(); + } + valueData_ = + input.readMessage(io.greptime.v1.RowData.StructValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.RowData.StructValue) valueData_); + valueData_ = subBuilder.buildPartial(); + } + valueDataCase_ = 41; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -3868,6 +3926,8 @@ public final class RowData { INTERVAL_DAY_TIME_VALUE(25), INTERVAL_MONTH_DAY_NANO_VALUE(26), DECIMAL128_VALUE(31), + LIST_VALUE(40), + STRUCT_VALUE(41), VALUEDATA_NOT_SET(0); private final int value; private ValueDataCase(int value) { @@ -3912,6 +3972,8 @@ public final class RowData { case 25: return INTERVAL_DAY_TIME_VALUE; case 26: return INTERVAL_MONTH_DAY_NANO_VALUE; case 31: return DECIMAL128_VALUE; + case 40: return LIST_VALUE; + case 41: return STRUCT_VALUE; case 0: return VALUEDATA_NOT_SET; default: return null; } @@ -4545,6 +4607,68 @@ public final class RowData { return io.greptime.v1.Common.Decimal128.getDefaultInstance(); } + public static final int LIST_VALUE_FIELD_NUMBER = 40; + /** + * .greptime.v1.ListValue list_value = 40; + * @return Whether the listValue field is set. + */ + @java.lang.Override + public boolean hasListValue() { + return valueDataCase_ == 40; + } + /** + * .greptime.v1.ListValue list_value = 40; + * @return The listValue. + */ + @java.lang.Override + public io.greptime.v1.RowData.ListValue getListValue() { + if (valueDataCase_ == 40) { + return (io.greptime.v1.RowData.ListValue) valueData_; + } + return io.greptime.v1.RowData.ListValue.getDefaultInstance(); + } + /** + * .greptime.v1.ListValue list_value = 40; + */ + @java.lang.Override + public io.greptime.v1.RowData.ListValueOrBuilder getListValueOrBuilder() { + if (valueDataCase_ == 40) { + return (io.greptime.v1.RowData.ListValue) valueData_; + } + return io.greptime.v1.RowData.ListValue.getDefaultInstance(); + } + + public static final int STRUCT_VALUE_FIELD_NUMBER = 41; + /** + * .greptime.v1.StructValue struct_value = 41; + * @return Whether the structValue field is set. + */ + @java.lang.Override + public boolean hasStructValue() { + return valueDataCase_ == 41; + } + /** + * .greptime.v1.StructValue struct_value = 41; + * @return The structValue. + */ + @java.lang.Override + public io.greptime.v1.RowData.StructValue getStructValue() { + if (valueDataCase_ == 41) { + return (io.greptime.v1.RowData.StructValue) valueData_; + } + return io.greptime.v1.RowData.StructValue.getDefaultInstance(); + } + /** + * .greptime.v1.StructValue struct_value = 41; + */ + @java.lang.Override + public io.greptime.v1.RowData.StructValueOrBuilder getStructValueOrBuilder() { + if (valueDataCase_ == 41) { + return (io.greptime.v1.RowData.StructValue) valueData_; + } + return io.greptime.v1.RowData.StructValue.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -4664,6 +4788,12 @@ public final class RowData { if (valueDataCase_ == 31) { output.writeMessage(31, (io.greptime.v1.Common.Decimal128) valueData_); } + if (valueDataCase_ == 40) { + output.writeMessage(40, (io.greptime.v1.RowData.ListValue) valueData_); + } + if (valueDataCase_ == 41) { + output.writeMessage(41, (io.greptime.v1.RowData.StructValue) valueData_); + } unknownFields.writeTo(output); } @@ -4804,6 +4934,14 @@ public final class RowData { size += com.google.protobuf.CodedOutputStream .computeMessageSize(31, (io.greptime.v1.Common.Decimal128) valueData_); } + if (valueDataCase_ == 40) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(40, (io.greptime.v1.RowData.ListValue) valueData_); + } + if (valueDataCase_ == 41) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(41, (io.greptime.v1.RowData.StructValue) valueData_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -4931,6 +5069,14 @@ public final class RowData { if (!getDecimal128Value() .equals(other.getDecimal128Value())) return false; break; + case 40: + if (!getListValue() + .equals(other.getListValue())) return false; + break; + case 41: + if (!getStructValue() + .equals(other.getStructValue())) return false; + break; case 0: default: } @@ -5069,6 +5215,14 @@ public final class RowData { hash = (37 * hash) + DECIMAL128_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDecimal128Value().hashCode(); break; + case 40: + hash = (37 * hash) + LIST_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getListValue().hashCode(); + break; + case 41: + hash = (37 * hash) + STRUCT_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getStructValue().hashCode(); + break; case 0: default: } @@ -5322,6 +5476,20 @@ public final class RowData { result.valueData_ = decimal128ValueBuilder_.build(); } } + if (valueDataCase_ == 40) { + if (listValueBuilder_ == null) { + result.valueData_ = valueData_; + } else { + result.valueData_ = listValueBuilder_.build(); + } + } + if (valueDataCase_ == 41) { + if (structValueBuilder_ == null) { + result.valueData_ = valueData_; + } else { + result.valueData_ = structValueBuilder_.build(); + } + } result.valueDataCase_ = valueDataCase_; onBuilt(); return result; @@ -5482,6 +5650,14 @@ public final class RowData { mergeDecimal128Value(other.getDecimal128Value()); break; } + case LIST_VALUE: { + mergeListValue(other.getListValue()); + break; + } + case STRUCT_VALUE: { + mergeStructValue(other.getStructValue()); + break; + } case VALUEDATA_NOT_SET: { break; } @@ -6897,6 +7073,290 @@ public final class RowData { onChanged();; return decimal128ValueBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder> listValueBuilder_; + /** + * .greptime.v1.ListValue list_value = 40; + * @return Whether the listValue field is set. + */ + @java.lang.Override + public boolean hasListValue() { + return valueDataCase_ == 40; + } + /** + * .greptime.v1.ListValue list_value = 40; + * @return The listValue. + */ + @java.lang.Override + public io.greptime.v1.RowData.ListValue getListValue() { + if (listValueBuilder_ == null) { + if (valueDataCase_ == 40) { + return (io.greptime.v1.RowData.ListValue) valueData_; + } + return io.greptime.v1.RowData.ListValue.getDefaultInstance(); + } else { + if (valueDataCase_ == 40) { + return listValueBuilder_.getMessage(); + } + return io.greptime.v1.RowData.ListValue.getDefaultInstance(); + } + } + /** + * .greptime.v1.ListValue list_value = 40; + */ + public Builder setListValue(io.greptime.v1.RowData.ListValue value) { + if (listValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valueData_ = value; + onChanged(); + } else { + listValueBuilder_.setMessage(value); + } + valueDataCase_ = 40; + return this; + } + /** + * .greptime.v1.ListValue list_value = 40; + */ + public Builder setListValue( + io.greptime.v1.RowData.ListValue.Builder builderForValue) { + if (listValueBuilder_ == null) { + valueData_ = builderForValue.build(); + onChanged(); + } else { + listValueBuilder_.setMessage(builderForValue.build()); + } + valueDataCase_ = 40; + return this; + } + /** + * .greptime.v1.ListValue list_value = 40; + */ + public Builder mergeListValue(io.greptime.v1.RowData.ListValue value) { + if (listValueBuilder_ == null) { + if (valueDataCase_ == 40 && + valueData_ != io.greptime.v1.RowData.ListValue.getDefaultInstance()) { + valueData_ = io.greptime.v1.RowData.ListValue.newBuilder((io.greptime.v1.RowData.ListValue) valueData_) + .mergeFrom(value).buildPartial(); + } else { + valueData_ = value; + } + onChanged(); + } else { + if (valueDataCase_ == 40) { + listValueBuilder_.mergeFrom(value); + } else { + listValueBuilder_.setMessage(value); + } + } + valueDataCase_ = 40; + return this; + } + /** + * .greptime.v1.ListValue list_value = 40; + */ + public Builder clearListValue() { + if (listValueBuilder_ == null) { + if (valueDataCase_ == 40) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + } else { + if (valueDataCase_ == 40) { + valueDataCase_ = 0; + valueData_ = null; + } + listValueBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.ListValue list_value = 40; + */ + public io.greptime.v1.RowData.ListValue.Builder getListValueBuilder() { + return getListValueFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.ListValue list_value = 40; + */ + @java.lang.Override + public io.greptime.v1.RowData.ListValueOrBuilder getListValueOrBuilder() { + if ((valueDataCase_ == 40) && (listValueBuilder_ != null)) { + return listValueBuilder_.getMessageOrBuilder(); + } else { + if (valueDataCase_ == 40) { + return (io.greptime.v1.RowData.ListValue) valueData_; + } + return io.greptime.v1.RowData.ListValue.getDefaultInstance(); + } + } + /** + * .greptime.v1.ListValue list_value = 40; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder> + getListValueFieldBuilder() { + if (listValueBuilder_ == null) { + if (!(valueDataCase_ == 40)) { + valueData_ = io.greptime.v1.RowData.ListValue.getDefaultInstance(); + } + listValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.ListValue, io.greptime.v1.RowData.ListValue.Builder, io.greptime.v1.RowData.ListValueOrBuilder>( + (io.greptime.v1.RowData.ListValue) valueData_, + getParentForChildren(), + isClean()); + valueData_ = null; + } + valueDataCase_ = 40; + onChanged();; + return listValueBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder> structValueBuilder_; + /** + * .greptime.v1.StructValue struct_value = 41; + * @return Whether the structValue field is set. + */ + @java.lang.Override + public boolean hasStructValue() { + return valueDataCase_ == 41; + } + /** + * .greptime.v1.StructValue struct_value = 41; + * @return The structValue. + */ + @java.lang.Override + public io.greptime.v1.RowData.StructValue getStructValue() { + if (structValueBuilder_ == null) { + if (valueDataCase_ == 41) { + return (io.greptime.v1.RowData.StructValue) valueData_; + } + return io.greptime.v1.RowData.StructValue.getDefaultInstance(); + } else { + if (valueDataCase_ == 41) { + return structValueBuilder_.getMessage(); + } + return io.greptime.v1.RowData.StructValue.getDefaultInstance(); + } + } + /** + * .greptime.v1.StructValue struct_value = 41; + */ + public Builder setStructValue(io.greptime.v1.RowData.StructValue value) { + if (structValueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + valueData_ = value; + onChanged(); + } else { + structValueBuilder_.setMessage(value); + } + valueDataCase_ = 41; + return this; + } + /** + * .greptime.v1.StructValue struct_value = 41; + */ + public Builder setStructValue( + io.greptime.v1.RowData.StructValue.Builder builderForValue) { + if (structValueBuilder_ == null) { + valueData_ = builderForValue.build(); + onChanged(); + } else { + structValueBuilder_.setMessage(builderForValue.build()); + } + valueDataCase_ = 41; + return this; + } + /** + * .greptime.v1.StructValue struct_value = 41; + */ + public Builder mergeStructValue(io.greptime.v1.RowData.StructValue value) { + if (structValueBuilder_ == null) { + if (valueDataCase_ == 41 && + valueData_ != io.greptime.v1.RowData.StructValue.getDefaultInstance()) { + valueData_ = io.greptime.v1.RowData.StructValue.newBuilder((io.greptime.v1.RowData.StructValue) valueData_) + .mergeFrom(value).buildPartial(); + } else { + valueData_ = value; + } + onChanged(); + } else { + if (valueDataCase_ == 41) { + structValueBuilder_.mergeFrom(value); + } else { + structValueBuilder_.setMessage(value); + } + } + valueDataCase_ = 41; + return this; + } + /** + * .greptime.v1.StructValue struct_value = 41; + */ + public Builder clearStructValue() { + if (structValueBuilder_ == null) { + if (valueDataCase_ == 41) { + valueDataCase_ = 0; + valueData_ = null; + onChanged(); + } + } else { + if (valueDataCase_ == 41) { + valueDataCase_ = 0; + valueData_ = null; + } + structValueBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.StructValue struct_value = 41; + */ + public io.greptime.v1.RowData.StructValue.Builder getStructValueBuilder() { + return getStructValueFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.StructValue struct_value = 41; + */ + @java.lang.Override + public io.greptime.v1.RowData.StructValueOrBuilder getStructValueOrBuilder() { + if ((valueDataCase_ == 41) && (structValueBuilder_ != null)) { + return structValueBuilder_.getMessageOrBuilder(); + } else { + if (valueDataCase_ == 41) { + return (io.greptime.v1.RowData.StructValue) valueData_; + } + return io.greptime.v1.RowData.StructValue.getDefaultInstance(); + } + } + /** + * .greptime.v1.StructValue struct_value = 41; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder> + getStructValueFieldBuilder() { + if (structValueBuilder_ == null) { + if (!(valueDataCase_ == 41)) { + valueData_ = io.greptime.v1.RowData.StructValue.getDefaultInstance(); + } + structValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.RowData.StructValue, io.greptime.v1.RowData.StructValue.Builder, io.greptime.v1.RowData.StructValueOrBuilder>( + (io.greptime.v1.RowData.StructValue) valueData_, + getParentForChildren(), + isClean()); + valueData_ = null; + } + valueDataCase_ = 41; + onChanged();; + return structValueBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -6950,6 +7410,1596 @@ public final class RowData { } + public interface ListValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.ListValue) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.Value items = 1; + */ + java.util.List + getItemsList(); + /** + * repeated .greptime.v1.Value items = 1; + */ + io.greptime.v1.RowData.Value getItems(int index); + /** + * repeated .greptime.v1.Value items = 1; + */ + int getItemsCount(); + /** + * repeated .greptime.v1.Value items = 1; + */ + java.util.List + getItemsOrBuilderList(); + /** + * repeated .greptime.v1.Value items = 1; + */ + io.greptime.v1.RowData.ValueOrBuilder getItemsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.ListValue} + */ + public static final class ListValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.ListValue) + ListValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListValue.newBuilder() to construct. + private ListValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListValue() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private ListValue( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add( + input.readMessage(io.greptime.v1.RowData.Value.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ListValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ListValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.ListValue.class, io.greptime.v1.RowData.ListValue.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 1; + private java.util.List items_; + /** + * repeated .greptime.v1.Value items = 1; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + @java.lang.Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + /** + * repeated .greptime.v1.Value items = 1; + */ + @java.lang.Override + public io.greptime.v1.RowData.Value getItems(int index) { + return items_.get(index); + } + /** + * repeated .greptime.v1.Value items = 1; + */ + @java.lang.Override + public io.greptime.v1.RowData.ValueOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + 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 { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(1, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, items_.get(i)); + } + 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.RowData.ListValue)) { + return super.equals(obj); + } + io.greptime.v1.RowData.ListValue other = (io.greptime.v1.RowData.ListValue) obj; + + if (!getItemsList() + .equals(other.getItemsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.RowData.ListValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.ListValue 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.RowData.ListValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.ListValue 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.RowData.ListValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.ListValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.ListValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.ListValue 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.RowData.ListValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.ListValue 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.RowData.ListValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.ListValue 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.RowData.ListValue 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.ListValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.ListValue) + io.greptime.v1.RowData.ListValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ListValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ListValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.ListValue.class, io.greptime.v1.RowData.ListValue.Builder.class); + } + + // Construct using io.greptime.v1.RowData.ListValue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.RowData.internal_static_greptime_v1_ListValue_descriptor; + } + + @java.lang.Override + public io.greptime.v1.RowData.ListValue getDefaultInstanceForType() { + return io.greptime.v1.RowData.ListValue.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.RowData.ListValue build() { + io.greptime.v1.RowData.ListValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.RowData.ListValue buildPartial() { + io.greptime.v1.RowData.ListValue result = new io.greptime.v1.RowData.ListValue(this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.RowData.ListValue) { + return mergeFrom((io.greptime.v1.RowData.ListValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.RowData.ListValue other) { + if (other == io.greptime.v1.RowData.ListValue.getDefaultInstance()) return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + 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.RowData.ListValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.RowData.ListValue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder> itemsBuilder_; + + /** + * repeated .greptime.v1.Value items = 1; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public io.greptime.v1.RowData.Value getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder setItems( + int index, io.greptime.v1.RowData.Value value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder setItems( + int index, io.greptime.v1.RowData.Value.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder addItems(io.greptime.v1.RowData.Value value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder addItems( + int index, io.greptime.v1.RowData.Value value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder addItems( + io.greptime.v1.RowData.Value.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder addItems( + int index, io.greptime.v1.RowData.Value.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public io.greptime.v1.RowData.Value.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public io.greptime.v1.RowData.ValueOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public io.greptime.v1.RowData.Value.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.greptime.v1.RowData.Value.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public io.greptime.v1.RowData.Value.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.Value.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Value items = 1; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @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.ListValue) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.ListValue) + private static final io.greptime.v1.RowData.ListValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.RowData.ListValue(); + } + + public static io.greptime.v1.RowData.ListValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListValue(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.RowData.ListValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StructValueOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.StructValue) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .greptime.v1.Value items = 2; + */ + java.util.List + getItemsList(); + /** + * repeated .greptime.v1.Value items = 2; + */ + io.greptime.v1.RowData.Value getItems(int index); + /** + * repeated .greptime.v1.Value items = 2; + */ + int getItemsCount(); + /** + * repeated .greptime.v1.Value items = 2; + */ + java.util.List + getItemsOrBuilderList(); + /** + * repeated .greptime.v1.Value items = 2; + */ + io.greptime.v1.RowData.ValueOrBuilder getItemsOrBuilder( + int index); + } + /** + * Protobuf type {@code greptime.v1.StructValue} + */ + public static final class StructValue extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.StructValue) + StructValueOrBuilder { + private static final long serialVersionUID = 0L; + // Use StructValue.newBuilder() to construct. + private StructValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StructValue() { + items_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StructValue(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StructValue( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + items_.add( + input.readMessage(io.greptime.v1.RowData.Value.parser(), extensionRegistry)); + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_StructValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_StructValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.StructValue.class, io.greptime.v1.RowData.StructValue.Builder.class); + } + + public static final int ITEMS_FIELD_NUMBER = 2; + private java.util.List items_; + /** + * repeated .greptime.v1.Value items = 2; + */ + @java.lang.Override + public java.util.List getItemsList() { + return items_; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + @java.lang.Override + public java.util.List + getItemsOrBuilderList() { + return items_; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + @java.lang.Override + public int getItemsCount() { + return items_.size(); + } + /** + * repeated .greptime.v1.Value items = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.Value getItems(int index) { + return items_.get(index); + } + /** + * repeated .greptime.v1.Value items = 2; + */ + @java.lang.Override + public io.greptime.v1.RowData.ValueOrBuilder getItemsOrBuilder( + int index) { + return items_.get(index); + } + + 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 { + for (int i = 0; i < items_.size(); i++) { + output.writeMessage(2, items_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < items_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, items_.get(i)); + } + 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.RowData.StructValue)) { + return super.equals(obj); + } + io.greptime.v1.RowData.StructValue other = (io.greptime.v1.RowData.StructValue) obj; + + if (!getItemsList() + .equals(other.getItemsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getItemsCount() > 0) { + hash = (37 * hash) + ITEMS_FIELD_NUMBER; + hash = (53 * hash) + getItemsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.RowData.StructValue parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.StructValue 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.RowData.StructValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.StructValue 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.RowData.StructValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.RowData.StructValue parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.RowData.StructValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.StructValue 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.RowData.StructValue parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.StructValue 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.RowData.StructValue parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.RowData.StructValue 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.RowData.StructValue 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.StructValue} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.StructValue) + io.greptime.v1.RowData.StructValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.RowData.internal_static_greptime_v1_StructValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.RowData.internal_static_greptime_v1_StructValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.RowData.StructValue.class, io.greptime.v1.RowData.StructValue.Builder.class); + } + + // Construct using io.greptime.v1.RowData.StructValue.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getItemsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + itemsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.RowData.internal_static_greptime_v1_StructValue_descriptor; + } + + @java.lang.Override + public io.greptime.v1.RowData.StructValue getDefaultInstanceForType() { + return io.greptime.v1.RowData.StructValue.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.RowData.StructValue build() { + io.greptime.v1.RowData.StructValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.RowData.StructValue buildPartial() { + io.greptime.v1.RowData.StructValue result = new io.greptime.v1.RowData.StructValue(this); + int from_bitField0_ = bitField0_; + if (itemsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + items_ = java.util.Collections.unmodifiableList(items_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.items_ = items_; + } else { + result.items_ = itemsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.RowData.StructValue) { + return mergeFrom((io.greptime.v1.RowData.StructValue)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.RowData.StructValue other) { + if (other == io.greptime.v1.RowData.StructValue.getDefaultInstance()) return this; + if (itemsBuilder_ == null) { + if (!other.items_.isEmpty()) { + if (items_.isEmpty()) { + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureItemsIsMutable(); + items_.addAll(other.items_); + } + onChanged(); + } + } else { + if (!other.items_.isEmpty()) { + if (itemsBuilder_.isEmpty()) { + itemsBuilder_.dispose(); + itemsBuilder_ = null; + items_ = other.items_; + bitField0_ = (bitField0_ & ~0x00000001); + itemsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getItemsFieldBuilder() : null; + } else { + itemsBuilder_.addAllMessages(other.items_); + } + } + } + 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.RowData.StructValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.RowData.StructValue) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List items_ = + java.util.Collections.emptyList(); + private void ensureItemsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + items_ = new java.util.ArrayList(items_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder> itemsBuilder_; + + /** + * repeated .greptime.v1.Value items = 2; + */ + public java.util.List getItemsList() { + if (itemsBuilder_ == null) { + return java.util.Collections.unmodifiableList(items_); + } else { + return itemsBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public int getItemsCount() { + if (itemsBuilder_ == null) { + return items_.size(); + } else { + return itemsBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public io.greptime.v1.RowData.Value getItems(int index) { + if (itemsBuilder_ == null) { + return items_.get(index); + } else { + return itemsBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder setItems( + int index, io.greptime.v1.RowData.Value value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.set(index, value); + onChanged(); + } else { + itemsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder setItems( + int index, io.greptime.v1.RowData.Value.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.set(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder addItems(io.greptime.v1.RowData.Value value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(value); + onChanged(); + } else { + itemsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder addItems( + int index, io.greptime.v1.RowData.Value value) { + if (itemsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureItemsIsMutable(); + items_.add(index, value); + onChanged(); + } else { + itemsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder addItems( + io.greptime.v1.RowData.Value.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder addItems( + int index, io.greptime.v1.RowData.Value.Builder builderForValue) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.add(index, builderForValue.build()); + onChanged(); + } else { + itemsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder addAllItems( + java.lang.Iterable values) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, items_); + onChanged(); + } else { + itemsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder clearItems() { + if (itemsBuilder_ == null) { + items_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + itemsBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public Builder removeItems(int index) { + if (itemsBuilder_ == null) { + ensureItemsIsMutable(); + items_.remove(index); + onChanged(); + } else { + itemsBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public io.greptime.v1.RowData.Value.Builder getItemsBuilder( + int index) { + return getItemsFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public io.greptime.v1.RowData.ValueOrBuilder getItemsOrBuilder( + int index) { + if (itemsBuilder_ == null) { + return items_.get(index); } else { + return itemsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public java.util.List + getItemsOrBuilderList() { + if (itemsBuilder_ != null) { + return itemsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(items_); + } + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public io.greptime.v1.RowData.Value.Builder addItemsBuilder() { + return getItemsFieldBuilder().addBuilder( + io.greptime.v1.RowData.Value.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public io.greptime.v1.RowData.Value.Builder addItemsBuilder( + int index) { + return getItemsFieldBuilder().addBuilder( + index, io.greptime.v1.RowData.Value.getDefaultInstance()); + } + /** + * repeated .greptime.v1.Value items = 2; + */ + public java.util.List + getItemsBuilderList() { + return getItemsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder> + getItemsFieldBuilder() { + if (itemsBuilder_ == null) { + itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.RowData.Value, io.greptime.v1.RowData.Value.Builder, io.greptime.v1.RowData.ValueOrBuilder>( + items_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + items_ = null; + } + return itemsBuilder_; + } + @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.StructValue) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.StructValue) + private static final io.greptime.v1.RowData.StructValue DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.RowData.StructValue(); + } + + public static io.greptime.v1.RowData.StructValue getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StructValue parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StructValue(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.RowData.StructValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_Rows_descriptor; private static final @@ -6970,6 +9020,16 @@ public final class RowData { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_Value_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ListValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ListValue_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_StructValue_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_StructValue_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -6989,7 +9049,7 @@ public final class RowData { "\022@\n\022datatype_extension\030\004 \001(\0132$.greptime." + "v1.ColumnDataTypeExtension\022+\n\007options\030\005 " + "\001(\0132\032.greptime.v1.ColumnOptions\")\n\003Row\022\"" + - "\n\006values\030\001 \003(\0132\022.greptime.v1.Value\"\274\006\n\005V" + + "\n\006values\030\001 \003(\0132\022.greptime.v1.Value\"\234\007\n\005V" + "alue\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 " + "\001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030" + "\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value" + @@ -7010,9 +9070,14 @@ public final class RowData { "H\000\022J\n\035interval_month_day_nano_value\030\032 \001(" + "\0132!.greptime.v1.IntervalMonthDayNanoH\000\0223" + "\n\020decimal128_value\030\037 \001(\0132\027.greptime.v1.D" + - "ecimal128H\000B\014\n\nvalue_dataBP\n\016io.greptime" + - ".v1B\007RowDataZ5github.com/GreptimeTeam/gr" + - "eptime-proto/go/greptime/v1b\006proto3" + "ecimal128H\000\022,\n\nlist_value\030( \001(\0132\026.grepti" + + "me.v1.ListValueH\000\0220\n\014struct_value\030) \001(\0132" + + "\030.greptime.v1.StructValueH\000B\014\n\nvalue_dat" + + "a\".\n\tListValue\022!\n\005items\030\001 \003(\0132\022.greptime" + + ".v1.Value\"0\n\013StructValue\022!\n\005items\030\002 \003(\0132" + + "\022.greptime.v1.ValueBP\n\016io.greptime.v1B\007R" + + "owDataZ5github.com/GreptimeTeam/greptime" + + "-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -7042,7 +9107,19 @@ public final class RowData { 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", "IntervalYearMonthValue", "IntervalDayTimeValue", "IntervalMonthDayNanoValue", "Decimal128Value", "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", "IntervalYearMonthValue", "IntervalDayTimeValue", "IntervalMonthDayNanoValue", "Decimal128Value", "ListValue", "StructValue", "ValueData", }); + internal_static_greptime_v1_ListValue_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_greptime_v1_ListValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_ListValue_descriptor, + new java.lang.String[] { "Items", }); + internal_static_greptime_v1_StructValue_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_greptime_v1_StructValue_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_StructValue_descriptor, + new java.lang.String[] { "Items", }); io.greptime.v1.Common.getDescriptor(); } diff --git a/proto/greptime/v1/column.proto b/proto/greptime/v1/column.proto index 2968c67..e59ae25 100644 --- a/proto/greptime/v1/column.proto +++ b/proto/greptime/v1/column.proto @@ -17,6 +17,7 @@ syntax = "proto3"; package greptime.v1; import "greptime/v1/common.proto"; +import "greptime/v1/row.proto"; option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1"; option java_outer_classname = "Columns"; @@ -58,7 +59,11 @@ message Column { repeated int64 interval_day_time_values = 25; repeated IntervalMonthDayNano interval_month_day_nano_values = 26; repeated Decimal128 decimal128_values = 31; + + repeated ListValue list_values = 40; + repeated StructValue struct_values = 41; } + // The array of non-null values in this column. // // For example: suppose there is a column "foo" that contains some int32 diff --git a/proto/greptime/v1/common.proto b/proto/greptime/v1/common.proto index 4ef4803..e3b9003 100644 --- a/proto/greptime/v1/common.proto +++ b/proto/greptime/v1/common.proto @@ -151,6 +151,8 @@ enum ColumnDataType { DECIMAL128 = 30; JSON = 31; VECTOR = 32; + LIST = 40; + STRUCT = 41; } message IntervalMonthDayNano { @@ -185,6 +187,12 @@ message Decimal128 { int64 lo = 2; } +message StructField { + string name = 1; + ColumnDataType datatype = 2; + ColumnDataTypeExtension datatype_extension = 3; +} + // Type extension for some complex types message ColumnDataTypeExtension { oneof type_ext { @@ -192,6 +200,8 @@ message ColumnDataTypeExtension { // Marks the binary column in proto is actually a JSON column. JsonTypeExtension json_type = 2; VectorTypeExtension vector_type = 3; + ListTypeExtension list_type = 4; + StructTypeExtension struct_type = 5; } } @@ -208,6 +218,15 @@ message VectorTypeExtension { uint32 dim = 1; } +message ListTypeExtension { + ColumnDataType datatype = 1; + ColumnDataTypeExtension datatype_extension = 2; +} + +message StructTypeExtension { + repeated StructField fields = 1; +} + // Additional options for the column. message ColumnOptions { // Supported keys: diff --git a/proto/greptime/v1/row.proto b/proto/greptime/v1/row.proto index 3ad91c7..1519475 100644 --- a/proto/greptime/v1/row.proto +++ b/proto/greptime/v1/row.proto @@ -76,5 +76,16 @@ message Value { int64 interval_day_time_value = 25; IntervalMonthDayNano interval_month_day_nano_value = 26; Decimal128 decimal128_value = 31; + + ListValue list_value = 40; + StructValue struct_value = 41; } } + +message ListValue { + repeated Value items = 1; +} + +message StructValue { + repeated Value items = 2; +}