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
This commit is contained in:
+117
-35
@@ -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<uint8_t>(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<uint8_t>(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<unsigned>(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<unsigned>(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 {
|
||||
|
||||
@@ -31,6 +31,7 @@
|
||||
#include <google/protobuf/extension_set.h> // IWYU pragma: export
|
||||
#include <google/protobuf/unknown_field_set.h>
|
||||
#include "greptime/v1/common.pb.h"
|
||||
#include "greptime/v1/row.pb.h"
|
||||
// @@protoc_insertion_point(includes)
|
||||
#include <google/protobuf/port_def.inc>
|
||||
#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<int> _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
|
||||
|
||||
+954
-47
File diff suppressed because it is too large
Load Diff
+1049
-6
File diff suppressed because it is too large
Load Diff
+552
-7
@@ -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<uint8_t>(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<uint8_t>(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<uint8_t>(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<unsigned>(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<ListValue*>(&to_msg);
|
||||
auto& from = static_cast<const ListValue&>(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<uint8_t>(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<unsigned>(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<StructValue*>(&to_msg);
|
||||
auto& from = static_cast<const StructValue&>(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)
|
||||
|
||||
@@ -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<const ListValue*>(
|
||||
&_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<ListValue>(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 <typename T> 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<const StructValue*>(
|
||||
&_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<StructValue>(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 <typename T> 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user