diff --git a/c++/greptime/v1/row.pb.cc b/c++/greptime/v1/row.pb.cc index c47ef461..e3845cb1 100644 --- a/c++/greptime/v1/row.pb.cc +++ b/c++/greptime/v1/row.pb.cc @@ -174,7 +174,7 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT "ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" "\022@\n\022datatype_extension\030\004 \001(\0132$.greptime." "v1.ColumnDataTypeExtension\")\n\003Row\022\"\n\006val" - "ues\030\001 \003(\0132\022.greptime.v1.Value\"\321\007\n\005Value\022" + "ues\030\001 \003(\0132\022.greptime.v1.Value\"\316\007\n\005Value\022" "\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 \001(\005H\000" "\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030\004 \001(\003" "H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value\030\006 \001(" @@ -190,25 +190,25 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT "ime_second_value\030\024 \001(\003H\000\022 \n\026time_millise" "cond_value\030\025 \001(\003H\000\022 \n\026time_microsecond_v" "alue\030\026 \001(\003H\000\022\037\n\025time_nanosecond_value\030\027 " - "\001(\003H\000\022$\n\032interval_year_month_values\030\030 \001(" - "\005H\000\022\"\n\030interval_day_time_values\030\031 \001(\003H\000\022" - "K\n\036interval_month_day_nano_values\030\032 \001(\0132" - "!.greptime.v1.IntervalMonthDayNanoH\000\022\037\n\025" - "duration_second_value\030\033 \001(\003H\000\022$\n\032duratio" - "n_millisecond_value\030\034 \001(\003H\000\022$\n\032duration_" - "microsecond_value\030\035 \001(\003H\000\022#\n\031duration_na" - "nosecond_value\030\036 \001(\003H\000\0223\n\020decimal128_val" - "ue\030\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nv" - "alue_dataBP\n\016io.greptime.v1B\007RowDataZ5gi" - "thub.com/GreptimeTeam/greptime-proto/go/" - "greptime/v1b\006proto3" + "\001(\003H\000\022#\n\031interval_year_month_value\030\030 \001(\005" + "H\000\022!\n\027interval_day_time_value\030\031 \001(\003H\000\022J\n" + "\035interval_month_day_nano_value\030\032 \001(\0132!.g" + "reptime.v1.IntervalMonthDayNanoH\000\022\037\n\025dur" + "ation_second_value\030\033 \001(\003H\000\022$\n\032duration_m" + "illisecond_value\030\034 \001(\003H\000\022$\n\032duration_mic" + "rosecond_value\030\035 \001(\003H\000\022#\n\031duration_nanos" + "econd_value\030\036 \001(\003H\000\0223\n\020decimal128_value\030" + "\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nvalu" + "e_dataBP\n\016io.greptime.v1B\007RowDataZ5githu" + "b.com/GreptimeTeam/greptime-proto/go/gre" + "ptime/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, 1459, descriptor_table_protodef_greptime_2fv1_2frow_2eproto, + false, false, 1456, descriptor_table_protodef_greptime_2fv1_2frow_2eproto, "greptime/v1/row.proto", &descriptor_table_greptime_2fv1_2frow_2eproto_once, descriptor_table_greptime_2fv1_2frow_2eproto_deps, 1, 4, schemas, file_default_instances, TableStruct_greptime_2fv1_2frow_2eproto::offsets, @@ -948,38 +948,38 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Row::GetMetadata() const { class Value::_Internal { public: - static const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_values(const Value* msg); + static const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_value(const Value* msg); static const ::greptime::v1::Decimal128& decimal128_value(const Value* msg); }; const ::greptime::v1::IntervalMonthDayNano& -Value::_Internal::interval_month_day_nano_values(const Value* msg) { - return *msg->_impl_.value_data_.interval_month_day_nano_values_; +Value::_Internal::interval_month_day_nano_value(const Value* msg) { + return *msg->_impl_.value_data_.interval_month_day_nano_value_; } const ::greptime::v1::Decimal128& Value::_Internal::decimal128_value(const Value* msg) { return *msg->_impl_.value_data_.decimal128_value_; } -void Value::set_allocated_interval_month_day_nano_values(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values) { +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(); - if (interval_month_day_nano_values) { + if (interval_month_day_nano_value) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( - reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interval_month_day_nano_values)); + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interval_month_day_nano_value)); if (message_arena != submessage_arena) { - interval_month_day_nano_values = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( - message_arena, interval_month_day_nano_values, submessage_arena); + interval_month_day_nano_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, interval_month_day_nano_value, submessage_arena); } - set_has_interval_month_day_nano_values(); - _impl_.value_data_.interval_month_day_nano_values_ = interval_month_day_nano_values; + set_has_interval_month_day_nano_value(); + _impl_.value_data_.interval_month_day_nano_value_ = interval_month_day_nano_value; } - // @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.interval_month_day_nano_values) + // @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.interval_month_day_nano_value) } -void Value::clear_interval_month_day_nano_values() { - if (_internal_has_interval_month_day_nano_values()) { +void Value::clear_interval_month_day_nano_value() { + if (_internal_has_interval_month_day_nano_value()) { if (GetArenaForAllocation() == nullptr) { - delete _impl_.value_data_.interval_month_day_nano_values_; + delete _impl_.value_data_.interval_month_day_nano_value_; } clear_has_value_data(); } @@ -1117,17 +1117,17 @@ Value::Value(const Value& from) _this->_internal_set_time_nanosecond_value(from._internal_time_nanosecond_value()); break; } - case kIntervalYearMonthValues: { - _this->_internal_set_interval_year_month_values(from._internal_interval_year_month_values()); + case kIntervalYearMonthValue: { + _this->_internal_set_interval_year_month_value(from._internal_interval_year_month_value()); break; } - case kIntervalDayTimeValues: { - _this->_internal_set_interval_day_time_values(from._internal_interval_day_time_values()); + case kIntervalDayTimeValue: { + _this->_internal_set_interval_day_time_value(from._internal_interval_day_time_value()); break; } - case kIntervalMonthDayNanoValues: { - _this->_internal_mutable_interval_month_day_nano_values()->::greptime::v1::IntervalMonthDayNano::MergeFrom( - from._internal_interval_month_day_nano_values()); + case kIntervalMonthDayNanoValue: { + _this->_internal_mutable_interval_month_day_nano_value()->::greptime::v1::IntervalMonthDayNano::MergeFrom( + from._internal_interval_month_day_nano_value()); break; } case kDurationSecondValue: { @@ -1285,17 +1285,17 @@ void Value::clear_value_data() { // No need to clear break; } - case kIntervalYearMonthValues: { + case kIntervalYearMonthValue: { // No need to clear break; } - case kIntervalDayTimeValues: { + case kIntervalDayTimeValue: { // No need to clear break; } - case kIntervalMonthDayNanoValues: { + case kIntervalMonthDayNanoValue: { if (GetArenaForAllocation() == nullptr) { - delete _impl_.value_data_.interval_month_day_nano_values_; + delete _impl_.value_data_.interval_month_day_nano_value_; } break; } @@ -1532,26 +1532,26 @@ const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; - // int32 interval_year_month_values = 24; + // int32 interval_year_month_value = 24; case 24: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 192)) { - _internal_set_interval_year_month_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); + _internal_set_interval_year_month_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr)); CHK_(ptr); } else goto handle_unusual; continue; - // int64 interval_day_time_values = 25; + // int64 interval_day_time_value = 25; case 25: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 200)) { - _internal_set_interval_day_time_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); + _internal_set_interval_day_time_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr)); CHK_(ptr); } else goto handle_unusual; continue; - // .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + // .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; case 26: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 210)) { - ptr = ctx->ParseMessage(_internal_mutable_interval_month_day_nano_values(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_interval_month_day_nano_value(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -1767,23 +1767,23 @@ uint8_t* Value::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteInt64ToArray(23, this->_internal_time_nanosecond_value(), target); } - // int32 interval_year_month_values = 24; - if (_internal_has_interval_year_month_values()) { + // int32 interval_year_month_value = 24; + if (_internal_has_interval_year_month_value()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt32ToArray(24, this->_internal_interval_year_month_values(), target); + target = ::_pbi::WireFormatLite::WriteInt32ToArray(24, this->_internal_interval_year_month_value(), target); } - // int64 interval_day_time_values = 25; - if (_internal_has_interval_day_time_values()) { + // int64 interval_day_time_value = 25; + if (_internal_has_interval_day_time_value()) { target = stream->EnsureSpace(target); - target = ::_pbi::WireFormatLite::WriteInt64ToArray(25, this->_internal_interval_day_time_values(), target); + target = ::_pbi::WireFormatLite::WriteInt64ToArray(25, this->_internal_interval_day_time_value(), target); } - // .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - if (_internal_has_interval_month_day_nano_values()) { + // .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + if (_internal_has_interval_month_day_nano_value()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(26, _Internal::interval_month_day_nano_values(this), - _Internal::interval_month_day_nano_values(this).GetCachedSize(), target, stream); + InternalWriteMessage(26, _Internal::interval_month_day_nano_value(this), + _Internal::interval_month_day_nano_value(this).GetCachedSize(), target, stream); } // int64 duration_second_value = 27; @@ -1969,25 +1969,25 @@ size_t Value::ByteSizeLong() const { this->_internal_time_nanosecond_value()); break; } - // int32 interval_year_month_values = 24; - case kIntervalYearMonthValues: { + // int32 interval_year_month_value = 24; + case kIntervalYearMonthValue: { total_size += 2 + ::_pbi::WireFormatLite::Int32Size( - this->_internal_interval_year_month_values()); + this->_internal_interval_year_month_value()); break; } - // int64 interval_day_time_values = 25; - case kIntervalDayTimeValues: { + // int64 interval_day_time_value = 25; + case kIntervalDayTimeValue: { total_size += 2 + ::_pbi::WireFormatLite::Int64Size( - this->_internal_interval_day_time_values()); + this->_internal_interval_day_time_value()); break; } - // .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - case kIntervalMonthDayNanoValues: { + // .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + case kIntervalMonthDayNanoValue: { total_size += 2 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( - *_impl_.value_data_.interval_month_day_nano_values_); + *_impl_.value_data_.interval_month_day_nano_value_); break; } // int64 duration_second_value = 27; @@ -2140,17 +2140,17 @@ void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF _this->_internal_set_time_nanosecond_value(from._internal_time_nanosecond_value()); break; } - case kIntervalYearMonthValues: { - _this->_internal_set_interval_year_month_values(from._internal_interval_year_month_values()); + case kIntervalYearMonthValue: { + _this->_internal_set_interval_year_month_value(from._internal_interval_year_month_value()); break; } - case kIntervalDayTimeValues: { - _this->_internal_set_interval_day_time_values(from._internal_interval_day_time_values()); + case kIntervalDayTimeValue: { + _this->_internal_set_interval_day_time_value(from._internal_interval_day_time_value()); break; } - case kIntervalMonthDayNanoValues: { - _this->_internal_mutable_interval_month_day_nano_values()->::greptime::v1::IntervalMonthDayNano::MergeFrom( - from._internal_interval_month_day_nano_values()); + case kIntervalMonthDayNanoValue: { + _this->_internal_mutable_interval_month_day_nano_value()->::greptime::v1::IntervalMonthDayNano::MergeFrom( + from._internal_interval_month_day_nano_value()); break; } case kDurationSecondValue: { diff --git a/c++/greptime/v1/row.pb.h b/c++/greptime/v1/row.pb.h index e6addffc..1a4b8b52 100644 --- a/c++/greptime/v1/row.pb.h +++ b/c++/greptime/v1/row.pb.h @@ -668,9 +668,9 @@ class Value final : kTimeMillisecondValue = 21, kTimeMicrosecondValue = 22, kTimeNanosecondValue = 23, - kIntervalYearMonthValues = 24, - kIntervalDayTimeValues = 25, - kIntervalMonthDayNanoValues = 26, + kIntervalYearMonthValue = 24, + kIntervalDayTimeValue = 25, + kIntervalMonthDayNanoValue = 26, kDurationSecondValue = 27, kDurationMillisecondValue = 28, kDurationMicrosecondValue = 29, @@ -780,9 +780,9 @@ class Value final : kTimeMillisecondValueFieldNumber = 21, kTimeMicrosecondValueFieldNumber = 22, kTimeNanosecondValueFieldNumber = 23, - kIntervalYearMonthValuesFieldNumber = 24, - kIntervalDayTimeValuesFieldNumber = 25, - kIntervalMonthDayNanoValuesFieldNumber = 26, + kIntervalYearMonthValueFieldNumber = 24, + kIntervalDayTimeValueFieldNumber = 25, + kIntervalMonthDayNanoValueFieldNumber = 26, kDurationSecondValueFieldNumber = 27, kDurationMillisecondValueFieldNumber = 28, kDurationMicrosecondValueFieldNumber = 29, @@ -1098,49 +1098,49 @@ class Value final : void _internal_set_time_nanosecond_value(int64_t value); public: - // int32 interval_year_month_values = 24; - bool has_interval_year_month_values() const; + // int32 interval_year_month_value = 24; + bool has_interval_year_month_value() const; private: - bool _internal_has_interval_year_month_values() const; + bool _internal_has_interval_year_month_value() const; public: - void clear_interval_year_month_values(); - int32_t interval_year_month_values() const; - void set_interval_year_month_values(int32_t value); + void clear_interval_year_month_value(); + int32_t interval_year_month_value() const; + void set_interval_year_month_value(int32_t value); private: - int32_t _internal_interval_year_month_values() const; - void _internal_set_interval_year_month_values(int32_t value); + int32_t _internal_interval_year_month_value() const; + void _internal_set_interval_year_month_value(int32_t value); public: - // int64 interval_day_time_values = 25; - bool has_interval_day_time_values() const; + // int64 interval_day_time_value = 25; + bool has_interval_day_time_value() const; private: - bool _internal_has_interval_day_time_values() const; + bool _internal_has_interval_day_time_value() const; public: - void clear_interval_day_time_values(); - int64_t interval_day_time_values() const; - void set_interval_day_time_values(int64_t value); + void clear_interval_day_time_value(); + int64_t interval_day_time_value() const; + void set_interval_day_time_value(int64_t value); private: - int64_t _internal_interval_day_time_values() const; - void _internal_set_interval_day_time_values(int64_t value); + int64_t _internal_interval_day_time_value() const; + void _internal_set_interval_day_time_value(int64_t value); public: - // .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - bool has_interval_month_day_nano_values() const; + // .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + bool has_interval_month_day_nano_value() const; private: - bool _internal_has_interval_month_day_nano_values() const; + bool _internal_has_interval_month_day_nano_value() const; public: - void clear_interval_month_day_nano_values(); - const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_values() const; - PROTOBUF_NODISCARD ::greptime::v1::IntervalMonthDayNano* release_interval_month_day_nano_values(); - ::greptime::v1::IntervalMonthDayNano* mutable_interval_month_day_nano_values(); - void set_allocated_interval_month_day_nano_values(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values); + void clear_interval_month_day_nano_value(); + const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_value() const; + PROTOBUF_NODISCARD ::greptime::v1::IntervalMonthDayNano* release_interval_month_day_nano_value(); + ::greptime::v1::IntervalMonthDayNano* mutable_interval_month_day_nano_value(); + void set_allocated_interval_month_day_nano_value(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value); private: - const ::greptime::v1::IntervalMonthDayNano& _internal_interval_month_day_nano_values() const; - ::greptime::v1::IntervalMonthDayNano* _internal_mutable_interval_month_day_nano_values(); + const ::greptime::v1::IntervalMonthDayNano& _internal_interval_month_day_nano_value() const; + ::greptime::v1::IntervalMonthDayNano* _internal_mutable_interval_month_day_nano_value(); public: - void unsafe_arena_set_allocated_interval_month_day_nano_values( - ::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values); - ::greptime::v1::IntervalMonthDayNano* unsafe_arena_release_interval_month_day_nano_values(); + void unsafe_arena_set_allocated_interval_month_day_nano_value( + ::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value); + ::greptime::v1::IntervalMonthDayNano* unsafe_arena_release_interval_month_day_nano_value(); // int64 duration_second_value = 27; bool has_duration_second_value() const; @@ -1240,9 +1240,9 @@ class Value final : void set_has_time_millisecond_value(); void set_has_time_microsecond_value(); void set_has_time_nanosecond_value(); - void set_has_interval_year_month_values(); - void set_has_interval_day_time_values(); - void set_has_interval_month_day_nano_values(); + void set_has_interval_year_month_value(); + void set_has_interval_day_time_value(); + void set_has_interval_month_day_nano_value(); void set_has_duration_second_value(); void set_has_duration_millisecond_value(); void set_has_duration_microsecond_value(); @@ -1282,9 +1282,9 @@ class Value final : int64_t time_millisecond_value_; int64_t time_microsecond_value_; int64_t time_nanosecond_value_; - int32_t interval_year_month_values_; - int64_t interval_day_time_values_; - ::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values_; + int32_t interval_year_month_value_; + int64_t interval_day_time_value_; + ::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value_; int64_t duration_second_value_; int64_t duration_millisecond_value_; int64_t duration_microsecond_value_; @@ -2568,145 +2568,145 @@ inline void Value::set_time_nanosecond_value(int64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.Value.time_nanosecond_value) } -// int32 interval_year_month_values = 24; -inline bool Value::_internal_has_interval_year_month_values() const { - return value_data_case() == kIntervalYearMonthValues; +// int32 interval_year_month_value = 24; +inline bool Value::_internal_has_interval_year_month_value() const { + return value_data_case() == kIntervalYearMonthValue; } -inline bool Value::has_interval_year_month_values() const { - return _internal_has_interval_year_month_values(); +inline bool Value::has_interval_year_month_value() const { + return _internal_has_interval_year_month_value(); } -inline void Value::set_has_interval_year_month_values() { - _impl_._oneof_case_[0] = kIntervalYearMonthValues; +inline void Value::set_has_interval_year_month_value() { + _impl_._oneof_case_[0] = kIntervalYearMonthValue; } -inline void Value::clear_interval_year_month_values() { - if (_internal_has_interval_year_month_values()) { - _impl_.value_data_.interval_year_month_values_ = 0; +inline void Value::clear_interval_year_month_value() { + if (_internal_has_interval_year_month_value()) { + _impl_.value_data_.interval_year_month_value_ = 0; clear_has_value_data(); } } -inline int32_t Value::_internal_interval_year_month_values() const { - if (_internal_has_interval_year_month_values()) { - return _impl_.value_data_.interval_year_month_values_; +inline int32_t Value::_internal_interval_year_month_value() const { + if (_internal_has_interval_year_month_value()) { + return _impl_.value_data_.interval_year_month_value_; } return 0; } -inline void Value::_internal_set_interval_year_month_values(int32_t value) { - if (!_internal_has_interval_year_month_values()) { +inline void Value::_internal_set_interval_year_month_value(int32_t value) { + if (!_internal_has_interval_year_month_value()) { clear_value_data(); - set_has_interval_year_month_values(); + set_has_interval_year_month_value(); } - _impl_.value_data_.interval_year_month_values_ = value; + _impl_.value_data_.interval_year_month_value_ = value; } -inline int32_t Value::interval_year_month_values() const { - // @@protoc_insertion_point(field_get:greptime.v1.Value.interval_year_month_values) - return _internal_interval_year_month_values(); +inline int32_t Value::interval_year_month_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.interval_year_month_value) + return _internal_interval_year_month_value(); } -inline void Value::set_interval_year_month_values(int32_t value) { - _internal_set_interval_year_month_values(value); - // @@protoc_insertion_point(field_set:greptime.v1.Value.interval_year_month_values) +inline void Value::set_interval_year_month_value(int32_t value) { + _internal_set_interval_year_month_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.interval_year_month_value) } -// int64 interval_day_time_values = 25; -inline bool Value::_internal_has_interval_day_time_values() const { - return value_data_case() == kIntervalDayTimeValues; +// int64 interval_day_time_value = 25; +inline bool Value::_internal_has_interval_day_time_value() const { + return value_data_case() == kIntervalDayTimeValue; } -inline bool Value::has_interval_day_time_values() const { - return _internal_has_interval_day_time_values(); +inline bool Value::has_interval_day_time_value() const { + return _internal_has_interval_day_time_value(); } -inline void Value::set_has_interval_day_time_values() { - _impl_._oneof_case_[0] = kIntervalDayTimeValues; +inline void Value::set_has_interval_day_time_value() { + _impl_._oneof_case_[0] = kIntervalDayTimeValue; } -inline void Value::clear_interval_day_time_values() { - if (_internal_has_interval_day_time_values()) { - _impl_.value_data_.interval_day_time_values_ = int64_t{0}; +inline void Value::clear_interval_day_time_value() { + if (_internal_has_interval_day_time_value()) { + _impl_.value_data_.interval_day_time_value_ = int64_t{0}; clear_has_value_data(); } } -inline int64_t Value::_internal_interval_day_time_values() const { - if (_internal_has_interval_day_time_values()) { - return _impl_.value_data_.interval_day_time_values_; +inline int64_t Value::_internal_interval_day_time_value() const { + if (_internal_has_interval_day_time_value()) { + return _impl_.value_data_.interval_day_time_value_; } return int64_t{0}; } -inline void Value::_internal_set_interval_day_time_values(int64_t value) { - if (!_internal_has_interval_day_time_values()) { +inline void Value::_internal_set_interval_day_time_value(int64_t value) { + if (!_internal_has_interval_day_time_value()) { clear_value_data(); - set_has_interval_day_time_values(); + set_has_interval_day_time_value(); } - _impl_.value_data_.interval_day_time_values_ = value; + _impl_.value_data_.interval_day_time_value_ = value; } -inline int64_t Value::interval_day_time_values() const { - // @@protoc_insertion_point(field_get:greptime.v1.Value.interval_day_time_values) - return _internal_interval_day_time_values(); +inline int64_t Value::interval_day_time_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.interval_day_time_value) + return _internal_interval_day_time_value(); } -inline void Value::set_interval_day_time_values(int64_t value) { - _internal_set_interval_day_time_values(value); - // @@protoc_insertion_point(field_set:greptime.v1.Value.interval_day_time_values) +inline void Value::set_interval_day_time_value(int64_t value) { + _internal_set_interval_day_time_value(value); + // @@protoc_insertion_point(field_set:greptime.v1.Value.interval_day_time_value) } -// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; -inline bool Value::_internal_has_interval_month_day_nano_values() const { - return value_data_case() == kIntervalMonthDayNanoValues; +// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; +inline bool Value::_internal_has_interval_month_day_nano_value() const { + return value_data_case() == kIntervalMonthDayNanoValue; } -inline bool Value::has_interval_month_day_nano_values() const { - return _internal_has_interval_month_day_nano_values(); +inline bool Value::has_interval_month_day_nano_value() const { + return _internal_has_interval_month_day_nano_value(); } -inline void Value::set_has_interval_month_day_nano_values() { - _impl_._oneof_case_[0] = kIntervalMonthDayNanoValues; +inline void Value::set_has_interval_month_day_nano_value() { + _impl_._oneof_case_[0] = kIntervalMonthDayNanoValue; } -inline ::greptime::v1::IntervalMonthDayNano* Value::release_interval_month_day_nano_values() { - // @@protoc_insertion_point(field_release:greptime.v1.Value.interval_month_day_nano_values) - if (_internal_has_interval_month_day_nano_values()) { +inline ::greptime::v1::IntervalMonthDayNano* Value::release_interval_month_day_nano_value() { + // @@protoc_insertion_point(field_release:greptime.v1.Value.interval_month_day_nano_value) + if (_internal_has_interval_month_day_nano_value()) { clear_has_value_data(); - ::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_values_; + ::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_value_; if (GetArenaForAllocation() != nullptr) { temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); } - _impl_.value_data_.interval_month_day_nano_values_ = nullptr; + _impl_.value_data_.interval_month_day_nano_value_ = nullptr; return temp; } else { return nullptr; } } -inline const ::greptime::v1::IntervalMonthDayNano& Value::_internal_interval_month_day_nano_values() const { - return _internal_has_interval_month_day_nano_values() - ? *_impl_.value_data_.interval_month_day_nano_values_ +inline const ::greptime::v1::IntervalMonthDayNano& Value::_internal_interval_month_day_nano_value() const { + return _internal_has_interval_month_day_nano_value() + ? *_impl_.value_data_.interval_month_day_nano_value_ : reinterpret_cast< ::greptime::v1::IntervalMonthDayNano&>(::greptime::v1::_IntervalMonthDayNano_default_instance_); } -inline const ::greptime::v1::IntervalMonthDayNano& Value::interval_month_day_nano_values() const { - // @@protoc_insertion_point(field_get:greptime.v1.Value.interval_month_day_nano_values) - return _internal_interval_month_day_nano_values(); +inline const ::greptime::v1::IntervalMonthDayNano& Value::interval_month_day_nano_value() const { + // @@protoc_insertion_point(field_get:greptime.v1.Value.interval_month_day_nano_value) + return _internal_interval_month_day_nano_value(); } -inline ::greptime::v1::IntervalMonthDayNano* Value::unsafe_arena_release_interval_month_day_nano_values() { - // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.Value.interval_month_day_nano_values) - if (_internal_has_interval_month_day_nano_values()) { +inline ::greptime::v1::IntervalMonthDayNano* Value::unsafe_arena_release_interval_month_day_nano_value() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.Value.interval_month_day_nano_value) + if (_internal_has_interval_month_day_nano_value()) { clear_has_value_data(); - ::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_values_; - _impl_.value_data_.interval_month_day_nano_values_ = nullptr; + ::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_value_; + _impl_.value_data_.interval_month_day_nano_value_ = nullptr; return temp; } else { return nullptr; } } -inline void Value::unsafe_arena_set_allocated_interval_month_day_nano_values(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values) { +inline void Value::unsafe_arena_set_allocated_interval_month_day_nano_value(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value) { clear_value_data(); - if (interval_month_day_nano_values) { - set_has_interval_month_day_nano_values(); - _impl_.value_data_.interval_month_day_nano_values_ = interval_month_day_nano_values; + if (interval_month_day_nano_value) { + set_has_interval_month_day_nano_value(); + _impl_.value_data_.interval_month_day_nano_value_ = interval_month_day_nano_value; } - // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.interval_month_day_nano_values) + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.interval_month_day_nano_value) } -inline ::greptime::v1::IntervalMonthDayNano* Value::_internal_mutable_interval_month_day_nano_values() { - if (!_internal_has_interval_month_day_nano_values()) { +inline ::greptime::v1::IntervalMonthDayNano* Value::_internal_mutable_interval_month_day_nano_value() { + if (!_internal_has_interval_month_day_nano_value()) { clear_value_data(); - set_has_interval_month_day_nano_values(); - _impl_.value_data_.interval_month_day_nano_values_ = CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(GetArenaForAllocation()); + set_has_interval_month_day_nano_value(); + _impl_.value_data_.interval_month_day_nano_value_ = CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(GetArenaForAllocation()); } - return _impl_.value_data_.interval_month_day_nano_values_; + return _impl_.value_data_.interval_month_day_nano_value_; } -inline ::greptime::v1::IntervalMonthDayNano* Value::mutable_interval_month_day_nano_values() { - ::greptime::v1::IntervalMonthDayNano* _msg = _internal_mutable_interval_month_day_nano_values(); - // @@protoc_insertion_point(field_mutable:greptime.v1.Value.interval_month_day_nano_values) +inline ::greptime::v1::IntervalMonthDayNano* Value::mutable_interval_month_day_nano_value() { + ::greptime::v1::IntervalMonthDayNano* _msg = _internal_mutable_interval_month_day_nano_value(); + // @@protoc_insertion_point(field_mutable:greptime.v1.Value.interval_month_day_nano_value) return _msg; } diff --git a/go/greptime/v1/row.pb.go b/go/greptime/v1/row.pb.go index 17a8efa5..4e20feb6 100644 --- a/go/greptime/v1/row.pb.go +++ b/go/greptime/v1/row.pb.go @@ -238,9 +238,9 @@ type Value struct { // *Value_TimeMillisecondValue // *Value_TimeMicrosecondValue // *Value_TimeNanosecondValue - // *Value_IntervalYearMonthValues - // *Value_IntervalDayTimeValues - // *Value_IntervalMonthDayNanoValues + // *Value_IntervalYearMonthValue + // *Value_IntervalDayTimeValue + // *Value_IntervalMonthDayNanoValue // *Value_DurationSecondValue // *Value_DurationMillisecondValue // *Value_DurationMicrosecondValue @@ -449,23 +449,23 @@ func (x *Value) GetTimeNanosecondValue() int64 { return 0 } -func (x *Value) GetIntervalYearMonthValues() int32 { - if x, ok := x.GetValueData().(*Value_IntervalYearMonthValues); ok { - return x.IntervalYearMonthValues +func (x *Value) GetIntervalYearMonthValue() int32 { + if x, ok := x.GetValueData().(*Value_IntervalYearMonthValue); ok { + return x.IntervalYearMonthValue } return 0 } -func (x *Value) GetIntervalDayTimeValues() int64 { - if x, ok := x.GetValueData().(*Value_IntervalDayTimeValues); ok { - return x.IntervalDayTimeValues +func (x *Value) GetIntervalDayTimeValue() int64 { + if x, ok := x.GetValueData().(*Value_IntervalDayTimeValue); ok { + return x.IntervalDayTimeValue } return 0 } -func (x *Value) GetIntervalMonthDayNanoValues() *IntervalMonthDayNano { - if x, ok := x.GetValueData().(*Value_IntervalMonthDayNanoValues); ok { - return x.IntervalMonthDayNanoValues +func (x *Value) GetIntervalMonthDayNanoValue() *IntervalMonthDayNano { + if x, ok := x.GetValueData().(*Value_IntervalMonthDayNanoValue); ok { + return x.IntervalMonthDayNanoValue } return nil } @@ -601,16 +601,16 @@ type Value_TimeNanosecondValue struct { TimeNanosecondValue int64 `protobuf:"varint,23,opt,name=time_nanosecond_value,json=timeNanosecondValue,proto3,oneof"` } -type Value_IntervalYearMonthValues struct { - IntervalYearMonthValues int32 `protobuf:"varint,24,opt,name=interval_year_month_values,json=intervalYearMonthValues,proto3,oneof"` +type Value_IntervalYearMonthValue struct { + IntervalYearMonthValue int32 `protobuf:"varint,24,opt,name=interval_year_month_value,json=intervalYearMonthValue,proto3,oneof"` } -type Value_IntervalDayTimeValues struct { - IntervalDayTimeValues int64 `protobuf:"varint,25,opt,name=interval_day_time_values,json=intervalDayTimeValues,proto3,oneof"` +type Value_IntervalDayTimeValue struct { + IntervalDayTimeValue int64 `protobuf:"varint,25,opt,name=interval_day_time_value,json=intervalDayTimeValue,proto3,oneof"` } -type Value_IntervalMonthDayNanoValues struct { - IntervalMonthDayNanoValues *IntervalMonthDayNano `protobuf:"bytes,26,opt,name=interval_month_day_nano_values,json=intervalMonthDayNanoValues,proto3,oneof"` +type Value_IntervalMonthDayNanoValue struct { + IntervalMonthDayNanoValue *IntervalMonthDayNano `protobuf:"bytes,26,opt,name=interval_month_day_nano_value,json=intervalMonthDayNanoValue,proto3,oneof"` } type Value_DurationSecondValue struct { @@ -679,11 +679,11 @@ func (*Value_TimeMicrosecondValue) isValue_ValueData() {} func (*Value_TimeNanosecondValue) isValue_ValueData() {} -func (*Value_IntervalYearMonthValues) isValue_ValueData() {} +func (*Value_IntervalYearMonthValue) isValue_ValueData() {} -func (*Value_IntervalDayTimeValues) isValue_ValueData() {} +func (*Value_IntervalDayTimeValue) isValue_ValueData() {} -func (*Value_IntervalMonthDayNanoValues) isValue_ValueData() {} +func (*Value_IntervalMonthDayNanoValue) isValue_ValueData() {} func (*Value_DurationSecondValue) isValue_ValueData() {} @@ -727,7 +727,7 @@ var file_greptime_v1_row_proto_rawDesc = []byte{ 0x31, 0x0a, 0x03, 0x52, 0x6f, 0x77, 0x12, 0x2a, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x22, 0xe9, 0x0b, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, + 0x65, 0x73, 0x22, 0xe3, 0x0b, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x07, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, @@ -787,47 +787,47 @@ var file_greptime_v1_row_proto_rawDesc = []byte{ 0x15, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x13, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, - 0x6c, 0x75, 0x65, 0x12, 0x3d, 0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, + 0x6c, 0x75, 0x65, 0x12, 0x3b, 0x0a, 0x19, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, - 0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, - 0x65, 0x73, 0x12, 0x39, 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, - 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, - 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, - 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x67, 0x0a, - 0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, - 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, - 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, - 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x48, 0x00, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65, - 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x15, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x1b, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6c, 0x6c, - 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, - 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x03, - 0x48, 0x00, 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x63, 0x72, - 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x19, - 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, - 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x03, 0x48, - 0x00, 0x52, 0x17, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73, - 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x10, 0x64, 0x65, - 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1f, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x48, 0x00, 0x52, - 0x0f, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x42, 0x50, - 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x42, 0x07, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, - 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, - 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x16, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, + 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x37, 0x0a, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x19, 0x20, 0x01, 0x28, + 0x03, 0x48, 0x00, 0x52, 0x14, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, + 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x65, 0x0a, 0x1d, 0x69, 0x6e, 0x74, + 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, + 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, + 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, + 0x61, 0x6e, 0x6f, 0x48, 0x00, 0x52, 0x19, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, + 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x34, 0x0a, 0x15, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, + 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x03, 0x48, + 0x00, 0x52, 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, + 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x17, 0x64, 0x75, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, + 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, + 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x48, 0x00, 0x52, 0x0f, 0x64, 0x65, 0x63, 0x69, 0x6d, + 0x61, 0x6c, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x52, 0x6f, 0x77, 0x44, + 0x61, 0x74, 0x61, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x33, } var ( @@ -861,7 +861,7 @@ var file_greptime_v1_row_proto_depIdxs = []int32{ 5, // 3: greptime.v1.ColumnSchema.semantic_type:type_name -> greptime.v1.SemanticType 6, // 4: greptime.v1.ColumnSchema.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension 3, // 5: greptime.v1.Row.values:type_name -> greptime.v1.Value - 7, // 6: greptime.v1.Value.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano + 7, // 6: greptime.v1.Value.interval_month_day_nano_value:type_name -> greptime.v1.IntervalMonthDayNano 8, // 7: greptime.v1.Value.decimal128_value:type_name -> greptime.v1.Decimal128 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type @@ -950,9 +950,9 @@ func file_greptime_v1_row_proto_init() { (*Value_TimeMillisecondValue)(nil), (*Value_TimeMicrosecondValue)(nil), (*Value_TimeNanosecondValue)(nil), - (*Value_IntervalYearMonthValues)(nil), - (*Value_IntervalDayTimeValues)(nil), - (*Value_IntervalMonthDayNanoValues)(nil), + (*Value_IntervalYearMonthValue)(nil), + (*Value_IntervalDayTimeValue)(nil), + (*Value_IntervalMonthDayNanoValue)(nil), (*Value_DurationSecondValue)(nil), (*Value_DurationMillisecondValue)(nil), (*Value_DurationMicrosecondValue)(nil), diff --git a/java/pom.xml b/java/pom.xml index 52522424..fc600f8b 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -5,7 +5,7 @@ io.greptime greptimedb-proto - 0.4.1 + 0.4.2 ${project.groupId}:${project.artifactId} GreptimeDB protobuf files for Java diff --git a/java/src/main/java/io/greptime/v1/RowData.java b/java/src/main/java/io/greptime/v1/RowData.java index 40687fc2..536a6237 100644 --- a/java/src/main/java/io/greptime/v1/RowData.java +++ b/java/src/main/java/io/greptime/v1/RowData.java @@ -3287,41 +3287,41 @@ public interface ValueOrBuilder extends long getTimeNanosecondValue(); /** - * int32 interval_year_month_values = 24; - * @return Whether the intervalYearMonthValues field is set. + * int32 interval_year_month_value = 24; + * @return Whether the intervalYearMonthValue field is set. */ - boolean hasIntervalYearMonthValues(); + boolean hasIntervalYearMonthValue(); /** - * int32 interval_year_month_values = 24; - * @return The intervalYearMonthValues. + * int32 interval_year_month_value = 24; + * @return The intervalYearMonthValue. */ - int getIntervalYearMonthValues(); + int getIntervalYearMonthValue(); /** - * int64 interval_day_time_values = 25; - * @return Whether the intervalDayTimeValues field is set. + * int64 interval_day_time_value = 25; + * @return Whether the intervalDayTimeValue field is set. */ - boolean hasIntervalDayTimeValues(); + boolean hasIntervalDayTimeValue(); /** - * int64 interval_day_time_values = 25; - * @return The intervalDayTimeValues. + * int64 interval_day_time_value = 25; + * @return The intervalDayTimeValue. */ - long getIntervalDayTimeValues(); + long getIntervalDayTimeValue(); /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - * @return Whether the intervalMonthDayNanoValues field is set. + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + * @return Whether the intervalMonthDayNanoValue field is set. */ - boolean hasIntervalMonthDayNanoValues(); + boolean hasIntervalMonthDayNanoValue(); /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - * @return The intervalMonthDayNanoValues. + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + * @return The intervalMonthDayNanoValue. */ - io.greptime.v1.Common.IntervalMonthDayNano getIntervalMonthDayNanoValues(); + io.greptime.v1.Common.IntervalMonthDayNano getIntervalMonthDayNanoValue(); /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ - io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValuesOrBuilder(); + io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValueOrBuilder(); /** * int64 duration_second_value = 27; @@ -3665,9 +3665,9 @@ public enum ValueDataCase TIME_MILLISECOND_VALUE(21), TIME_MICROSECOND_VALUE(22), TIME_NANOSECOND_VALUE(23), - INTERVAL_YEAR_MONTH_VALUES(24), - INTERVAL_DAY_TIME_VALUES(25), - INTERVAL_MONTH_DAY_NANO_VALUES(26), + INTERVAL_YEAR_MONTH_VALUE(24), + INTERVAL_DAY_TIME_VALUE(25), + INTERVAL_MONTH_DAY_NANO_VALUE(26), DURATION_SECOND_VALUE(27), DURATION_MILLISECOND_VALUE(28), DURATION_MICROSECOND_VALUE(29), @@ -3713,9 +3713,9 @@ public static ValueDataCase forNumber(int value) { case 21: return TIME_MILLISECOND_VALUE; case 22: return TIME_MICROSECOND_VALUE; case 23: return TIME_NANOSECOND_VALUE; - case 24: return INTERVAL_YEAR_MONTH_VALUES; - case 25: return INTERVAL_DAY_TIME_VALUES; - case 26: return INTERVAL_MONTH_DAY_NANO_VALUES; + case 24: return INTERVAL_YEAR_MONTH_VALUE; + case 25: return INTERVAL_DAY_TIME_VALUE; + case 26: return INTERVAL_MONTH_DAY_NANO_VALUE; case 27: return DURATION_SECOND_VALUE; case 28: return DURATION_MILLISECOND_VALUE; case 29: return DURATION_MICROSECOND_VALUE; @@ -4250,73 +4250,73 @@ public long getTimeNanosecondValue() { return 0L; } - public static final int INTERVAL_YEAR_MONTH_VALUES_FIELD_NUMBER = 24; + public static final int INTERVAL_YEAR_MONTH_VALUE_FIELD_NUMBER = 24; /** - * int32 interval_year_month_values = 24; - * @return Whether the intervalYearMonthValues field is set. + * int32 interval_year_month_value = 24; + * @return Whether the intervalYearMonthValue field is set. */ @java.lang.Override - public boolean hasIntervalYearMonthValues() { + public boolean hasIntervalYearMonthValue() { return valueDataCase_ == 24; } /** - * int32 interval_year_month_values = 24; - * @return The intervalYearMonthValues. + * int32 interval_year_month_value = 24; + * @return The intervalYearMonthValue. */ @java.lang.Override - public int getIntervalYearMonthValues() { + public int getIntervalYearMonthValue() { if (valueDataCase_ == 24) { return (java.lang.Integer) valueData_; } return 0; } - public static final int INTERVAL_DAY_TIME_VALUES_FIELD_NUMBER = 25; + public static final int INTERVAL_DAY_TIME_VALUE_FIELD_NUMBER = 25; /** - * int64 interval_day_time_values = 25; - * @return Whether the intervalDayTimeValues field is set. + * int64 interval_day_time_value = 25; + * @return Whether the intervalDayTimeValue field is set. */ @java.lang.Override - public boolean hasIntervalDayTimeValues() { + public boolean hasIntervalDayTimeValue() { return valueDataCase_ == 25; } /** - * int64 interval_day_time_values = 25; - * @return The intervalDayTimeValues. + * int64 interval_day_time_value = 25; + * @return The intervalDayTimeValue. */ @java.lang.Override - public long getIntervalDayTimeValues() { + public long getIntervalDayTimeValue() { if (valueDataCase_ == 25) { return (java.lang.Long) valueData_; } return 0L; } - public static final int INTERVAL_MONTH_DAY_NANO_VALUES_FIELD_NUMBER = 26; + public static final int INTERVAL_MONTH_DAY_NANO_VALUE_FIELD_NUMBER = 26; /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - * @return Whether the intervalMonthDayNanoValues field is set. + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + * @return Whether the intervalMonthDayNanoValue field is set. */ @java.lang.Override - public boolean hasIntervalMonthDayNanoValues() { + public boolean hasIntervalMonthDayNanoValue() { return valueDataCase_ == 26; } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - * @return The intervalMonthDayNanoValues. + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + * @return The intervalMonthDayNanoValue. */ @java.lang.Override - public io.greptime.v1.Common.IntervalMonthDayNano getIntervalMonthDayNanoValues() { + public io.greptime.v1.Common.IntervalMonthDayNano getIntervalMonthDayNanoValue() { if (valueDataCase_ == 26) { return (io.greptime.v1.Common.IntervalMonthDayNano) valueData_; } return io.greptime.v1.Common.IntervalMonthDayNano.getDefaultInstance(); } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ @java.lang.Override - public io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValuesOrBuilder() { + public io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValueOrBuilder() { if (valueDataCase_ == 26) { return (io.greptime.v1.Common.IntervalMonthDayNano) valueData_; } @@ -4845,16 +4845,16 @@ public boolean equals(final java.lang.Object obj) { != other.getTimeNanosecondValue()) return false; break; case 24: - if (getIntervalYearMonthValues() - != other.getIntervalYearMonthValues()) return false; + if (getIntervalYearMonthValue() + != other.getIntervalYearMonthValue()) return false; break; case 25: - if (getIntervalDayTimeValues() - != other.getIntervalDayTimeValues()) return false; + if (getIntervalDayTimeValue() + != other.getIntervalDayTimeValue()) return false; break; case 26: - if (!getIntervalMonthDayNanoValues() - .equals(other.getIntervalMonthDayNanoValues())) return false; + if (!getIntervalMonthDayNanoValue() + .equals(other.getIntervalMonthDayNanoValue())) return false; break; case 27: if (getDurationSecondValue() @@ -4998,17 +4998,17 @@ public int hashCode() { getTimeNanosecondValue()); break; case 24: - hash = (37 * hash) + INTERVAL_YEAR_MONTH_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getIntervalYearMonthValues(); + hash = (37 * hash) + INTERVAL_YEAR_MONTH_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getIntervalYearMonthValue(); break; case 25: - hash = (37 * hash) + INTERVAL_DAY_TIME_VALUES_FIELD_NUMBER; + hash = (37 * hash) + INTERVAL_DAY_TIME_VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( - getIntervalDayTimeValues()); + getIntervalDayTimeValue()); break; case 26: - hash = (37 * hash) + INTERVAL_MONTH_DAY_NANO_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getIntervalMonthDayNanoValues().hashCode(); + hash = (37 * hash) + INTERVAL_MONTH_DAY_NANO_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getIntervalMonthDayNanoValue().hashCode(); break; case 27: hash = (37 * hash) + DURATION_SECOND_VALUE_FIELD_NUMBER; @@ -5274,10 +5274,10 @@ public io.greptime.v1.RowData.Value buildPartial() { result.valueData_ = valueData_; } if (valueDataCase_ == 26) { - if (intervalMonthDayNanoValuesBuilder_ == null) { + if (intervalMonthDayNanoValueBuilder_ == null) { result.valueData_ = valueData_; } else { - result.valueData_ = intervalMonthDayNanoValuesBuilder_.build(); + result.valueData_ = intervalMonthDayNanoValueBuilder_.build(); } } if (valueDataCase_ == 27) { @@ -5443,16 +5443,16 @@ public Builder mergeFrom(io.greptime.v1.RowData.Value other) { setTimeNanosecondValue(other.getTimeNanosecondValue()); break; } - case INTERVAL_YEAR_MONTH_VALUES: { - setIntervalYearMonthValues(other.getIntervalYearMonthValues()); + case INTERVAL_YEAR_MONTH_VALUE: { + setIntervalYearMonthValue(other.getIntervalYearMonthValue()); break; } - case INTERVAL_DAY_TIME_VALUES: { - setIntervalDayTimeValues(other.getIntervalDayTimeValues()); + case INTERVAL_DAY_TIME_VALUE: { + setIntervalDayTimeValue(other.getIntervalDayTimeValue()); break; } - case INTERVAL_MONTH_DAY_NANO_VALUES: { - mergeIntervalMonthDayNanoValues(other.getIntervalMonthDayNanoValues()); + case INTERVAL_MONTH_DAY_NANO_VALUE: { + mergeIntervalMonthDayNanoValue(other.getIntervalMonthDayNanoValue()); break; } case DURATION_SECOND_VALUE: { @@ -6526,38 +6526,38 @@ public Builder clearTimeNanosecondValue() { } /** - * int32 interval_year_month_values = 24; - * @return Whether the intervalYearMonthValues field is set. + * int32 interval_year_month_value = 24; + * @return Whether the intervalYearMonthValue field is set. */ - public boolean hasIntervalYearMonthValues() { + public boolean hasIntervalYearMonthValue() { return valueDataCase_ == 24; } /** - * int32 interval_year_month_values = 24; - * @return The intervalYearMonthValues. + * int32 interval_year_month_value = 24; + * @return The intervalYearMonthValue. */ - public int getIntervalYearMonthValues() { + public int getIntervalYearMonthValue() { if (valueDataCase_ == 24) { return (java.lang.Integer) valueData_; } return 0; } /** - * int32 interval_year_month_values = 24; - * @param value The intervalYearMonthValues to set. + * int32 interval_year_month_value = 24; + * @param value The intervalYearMonthValue to set. * @return This builder for chaining. */ - public Builder setIntervalYearMonthValues(int value) { + public Builder setIntervalYearMonthValue(int value) { valueDataCase_ = 24; valueData_ = value; onChanged(); return this; } /** - * int32 interval_year_month_values = 24; + * int32 interval_year_month_value = 24; * @return This builder for chaining. */ - public Builder clearIntervalYearMonthValues() { + public Builder clearIntervalYearMonthValue() { if (valueDataCase_ == 24) { valueDataCase_ = 0; valueData_ = null; @@ -6567,38 +6567,38 @@ public Builder clearIntervalYearMonthValues() { } /** - * int64 interval_day_time_values = 25; - * @return Whether the intervalDayTimeValues field is set. + * int64 interval_day_time_value = 25; + * @return Whether the intervalDayTimeValue field is set. */ - public boolean hasIntervalDayTimeValues() { + public boolean hasIntervalDayTimeValue() { return valueDataCase_ == 25; } /** - * int64 interval_day_time_values = 25; - * @return The intervalDayTimeValues. + * int64 interval_day_time_value = 25; + * @return The intervalDayTimeValue. */ - public long getIntervalDayTimeValues() { + public long getIntervalDayTimeValue() { if (valueDataCase_ == 25) { return (java.lang.Long) valueData_; } return 0L; } /** - * int64 interval_day_time_values = 25; - * @param value The intervalDayTimeValues to set. + * int64 interval_day_time_value = 25; + * @param value The intervalDayTimeValue to set. * @return This builder for chaining. */ - public Builder setIntervalDayTimeValues(long value) { + public Builder setIntervalDayTimeValue(long value) { valueDataCase_ = 25; valueData_ = value; onChanged(); return this; } /** - * int64 interval_day_time_values = 25; + * int64 interval_day_time_value = 25; * @return This builder for chaining. */ - public Builder clearIntervalDayTimeValues() { + public Builder clearIntervalDayTimeValue() { if (valueDataCase_ == 25) { valueDataCase_ = 0; valueData_ = null; @@ -6608,68 +6608,68 @@ public Builder clearIntervalDayTimeValues() { } private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Common.IntervalMonthDayNano, io.greptime.v1.Common.IntervalMonthDayNano.Builder, io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder> intervalMonthDayNanoValuesBuilder_; + io.greptime.v1.Common.IntervalMonthDayNano, io.greptime.v1.Common.IntervalMonthDayNano.Builder, io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder> intervalMonthDayNanoValueBuilder_; /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - * @return Whether the intervalMonthDayNanoValues field is set. + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + * @return Whether the intervalMonthDayNanoValue field is set. */ @java.lang.Override - public boolean hasIntervalMonthDayNanoValues() { + public boolean hasIntervalMonthDayNanoValue() { return valueDataCase_ == 26; } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; - * @return The intervalMonthDayNanoValues. + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; + * @return The intervalMonthDayNanoValue. */ @java.lang.Override - public io.greptime.v1.Common.IntervalMonthDayNano getIntervalMonthDayNanoValues() { - if (intervalMonthDayNanoValuesBuilder_ == null) { + public io.greptime.v1.Common.IntervalMonthDayNano getIntervalMonthDayNanoValue() { + if (intervalMonthDayNanoValueBuilder_ == null) { if (valueDataCase_ == 26) { return (io.greptime.v1.Common.IntervalMonthDayNano) valueData_; } return io.greptime.v1.Common.IntervalMonthDayNano.getDefaultInstance(); } else { if (valueDataCase_ == 26) { - return intervalMonthDayNanoValuesBuilder_.getMessage(); + return intervalMonthDayNanoValueBuilder_.getMessage(); } return io.greptime.v1.Common.IntervalMonthDayNano.getDefaultInstance(); } } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ - public Builder setIntervalMonthDayNanoValues(io.greptime.v1.Common.IntervalMonthDayNano value) { - if (intervalMonthDayNanoValuesBuilder_ == null) { + public Builder setIntervalMonthDayNanoValue(io.greptime.v1.Common.IntervalMonthDayNano value) { + if (intervalMonthDayNanoValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } valueData_ = value; onChanged(); } else { - intervalMonthDayNanoValuesBuilder_.setMessage(value); + intervalMonthDayNanoValueBuilder_.setMessage(value); } valueDataCase_ = 26; return this; } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ - public Builder setIntervalMonthDayNanoValues( + public Builder setIntervalMonthDayNanoValue( io.greptime.v1.Common.IntervalMonthDayNano.Builder builderForValue) { - if (intervalMonthDayNanoValuesBuilder_ == null) { + if (intervalMonthDayNanoValueBuilder_ == null) { valueData_ = builderForValue.build(); onChanged(); } else { - intervalMonthDayNanoValuesBuilder_.setMessage(builderForValue.build()); + intervalMonthDayNanoValueBuilder_.setMessage(builderForValue.build()); } valueDataCase_ = 26; return this; } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ - public Builder mergeIntervalMonthDayNanoValues(io.greptime.v1.Common.IntervalMonthDayNano value) { - if (intervalMonthDayNanoValuesBuilder_ == null) { + public Builder mergeIntervalMonthDayNanoValue(io.greptime.v1.Common.IntervalMonthDayNano value) { + if (intervalMonthDayNanoValueBuilder_ == null) { if (valueDataCase_ == 26 && valueData_ != io.greptime.v1.Common.IntervalMonthDayNano.getDefaultInstance()) { valueData_ = io.greptime.v1.Common.IntervalMonthDayNano.newBuilder((io.greptime.v1.Common.IntervalMonthDayNano) valueData_) @@ -6680,19 +6680,19 @@ public Builder mergeIntervalMonthDayNanoValues(io.greptime.v1.Common.IntervalMon onChanged(); } else { if (valueDataCase_ == 26) { - intervalMonthDayNanoValuesBuilder_.mergeFrom(value); + intervalMonthDayNanoValueBuilder_.mergeFrom(value); } else { - intervalMonthDayNanoValuesBuilder_.setMessage(value); + intervalMonthDayNanoValueBuilder_.setMessage(value); } } valueDataCase_ = 26; return this; } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ - public Builder clearIntervalMonthDayNanoValues() { - if (intervalMonthDayNanoValuesBuilder_ == null) { + public Builder clearIntervalMonthDayNanoValue() { + if (intervalMonthDayNanoValueBuilder_ == null) { if (valueDataCase_ == 26) { valueDataCase_ = 0; valueData_ = null; @@ -6703,23 +6703,23 @@ public Builder clearIntervalMonthDayNanoValues() { valueDataCase_ = 0; valueData_ = null; } - intervalMonthDayNanoValuesBuilder_.clear(); + intervalMonthDayNanoValueBuilder_.clear(); } return this; } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ - public io.greptime.v1.Common.IntervalMonthDayNano.Builder getIntervalMonthDayNanoValuesBuilder() { - return getIntervalMonthDayNanoValuesFieldBuilder().getBuilder(); + public io.greptime.v1.Common.IntervalMonthDayNano.Builder getIntervalMonthDayNanoValueBuilder() { + return getIntervalMonthDayNanoValueFieldBuilder().getBuilder(); } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ @java.lang.Override - public io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValuesOrBuilder() { - if ((valueDataCase_ == 26) && (intervalMonthDayNanoValuesBuilder_ != null)) { - return intervalMonthDayNanoValuesBuilder_.getMessageOrBuilder(); + public io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNanoValueOrBuilder() { + if ((valueDataCase_ == 26) && (intervalMonthDayNanoValueBuilder_ != null)) { + return intervalMonthDayNanoValueBuilder_.getMessageOrBuilder(); } else { if (valueDataCase_ == 26) { return (io.greptime.v1.Common.IntervalMonthDayNano) valueData_; @@ -6728,16 +6728,16 @@ public io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNa } } /** - * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26; + * .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26; */ private com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.Common.IntervalMonthDayNano, io.greptime.v1.Common.IntervalMonthDayNano.Builder, io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder> - getIntervalMonthDayNanoValuesFieldBuilder() { - if (intervalMonthDayNanoValuesBuilder_ == null) { + getIntervalMonthDayNanoValueFieldBuilder() { + if (intervalMonthDayNanoValueBuilder_ == null) { if (!(valueDataCase_ == 26)) { valueData_ = io.greptime.v1.Common.IntervalMonthDayNano.getDefaultInstance(); } - intervalMonthDayNanoValuesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + intervalMonthDayNanoValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.Common.IntervalMonthDayNano, io.greptime.v1.Common.IntervalMonthDayNano.Builder, io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder>( (io.greptime.v1.Common.IntervalMonthDayNano) valueData_, getParentForChildren(), @@ -6746,7 +6746,7 @@ public io.greptime.v1.Common.IntervalMonthDayNanoOrBuilder getIntervalMonthDayNa } valueDataCase_ = 26; onChanged();; - return intervalMonthDayNanoValuesBuilder_; + return intervalMonthDayNanoValueBuilder_; } /** @@ -7145,7 +7145,7 @@ public io.greptime.v1.RowData.Value getDefaultInstanceForType() { "ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" + "\022@\n\022datatype_extension\030\004 \001(\0132$.greptime." + "v1.ColumnDataTypeExtension\")\n\003Row\022\"\n\006val" + - "ues\030\001 \003(\0132\022.greptime.v1.Value\"\321\007\n\005Value\022" + + "ues\030\001 \003(\0132\022.greptime.v1.Value\"\316\007\n\005Value\022" + "\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 \001(\005H\000" + "\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030\004 \001(\003" + "H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value\030\006 \001(" + @@ -7161,18 +7161,18 @@ public io.greptime.v1.RowData.Value getDefaultInstanceForType() { "ime_second_value\030\024 \001(\003H\000\022 \n\026time_millise" + "cond_value\030\025 \001(\003H\000\022 \n\026time_microsecond_v" + "alue\030\026 \001(\003H\000\022\037\n\025time_nanosecond_value\030\027 " + - "\001(\003H\000\022$\n\032interval_year_month_values\030\030 \001(" + - "\005H\000\022\"\n\030interval_day_time_values\030\031 \001(\003H\000\022" + - "K\n\036interval_month_day_nano_values\030\032 \001(\0132" + - "!.greptime.v1.IntervalMonthDayNanoH\000\022\037\n\025" + - "duration_second_value\030\033 \001(\003H\000\022$\n\032duratio" + - "n_millisecond_value\030\034 \001(\003H\000\022$\n\032duration_" + - "microsecond_value\030\035 \001(\003H\000\022#\n\031duration_na" + - "nosecond_value\030\036 \001(\003H\000\0223\n\020decimal128_val" + - "ue\030\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nv" + - "alue_dataBP\n\016io.greptime.v1B\007RowDataZ5gi" + - "thub.com/GreptimeTeam/greptime-proto/go/" + - "greptime/v1b\006proto3" + "\001(\003H\000\022#\n\031interval_year_month_value\030\030 \001(\005" + + "H\000\022!\n\027interval_day_time_value\030\031 \001(\003H\000\022J\n" + + "\035interval_month_day_nano_value\030\032 \001(\0132!.g" + + "reptime.v1.IntervalMonthDayNanoH\000\022\037\n\025dur" + + "ation_second_value\030\033 \001(\003H\000\022$\n\032duration_m" + + "illisecond_value\030\034 \001(\003H\000\022$\n\032duration_mic" + + "rosecond_value\030\035 \001(\003H\000\022#\n\031duration_nanos" + + "econd_value\030\036 \001(\003H\000\0223\n\020decimal128_value\030" + + "\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nvalu" + + "e_dataBP\n\016io.greptime.v1B\007RowDataZ5githu" + + "b.com/GreptimeTeam/greptime-proto/go/gre" + + "ptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -7202,7 +7202,7 @@ public io.greptime.v1.RowData.Value getDefaultInstanceForType() { internal_static_greptime_v1_Value_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Value_descriptor, - new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TimestampSecondValue", "TimestampMillisecondValue", "TimestampMicrosecondValue", "TimestampNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValue", "DurationMillisecondValue", "DurationMicrosecondValue", "DurationNanosecondValue", "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", "DurationSecondValue", "DurationMillisecondValue", "DurationMicrosecondValue", "DurationNanosecondValue", "Decimal128Value", "ValueData", }); io.greptime.v1.Common.getDescriptor(); } diff --git a/proto/greptime/v1/row.proto b/proto/greptime/v1/row.proto index ca5ee506..67b06a4a 100644 --- a/proto/greptime/v1/row.proto +++ b/proto/greptime/v1/row.proto @@ -66,9 +66,9 @@ message Value { int64 time_millisecond_value = 21; int64 time_microsecond_value = 22; int64 time_nanosecond_value = 23; - int32 interval_year_month_values = 24; - int64 interval_day_time_values = 25; - IntervalMonthDayNano interval_month_day_nano_values = 26; + int32 interval_year_month_value = 24; + int64 interval_day_time_value = 25; + IntervalMonthDayNano interval_month_day_nano_value = 26; int64 duration_second_value = 27; int64 duration_millisecond_value = 28; int64 duration_microsecond_value = 29;