feat: add type extension for column (#122)

* feat: decimal128 proto

* chore: make all

* chore: empty line

* refactor: remove precision and scale

* chore: cr comment

Co-authored-by: Yingwen <realevenyag@gmail.com>

---------

Co-authored-by: Yingwen <realevenyag@gmail.com>
This commit is contained in:
Wei
2023-11-24 10:40:50 +08:00
committed by GitHub
parent 2ffdcae9f9
commit a11efce55d
20 changed files with 6320 additions and 494 deletions
+119 -28
View File
@@ -78,6 +78,7 @@ PROTOBUF_CONSTEXPR Column_Values::Column_Values(
, /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.duration_nanosecond_values_)*/{}
, /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0}
, /*decltype(_impl_.decimal128_values_)*/{}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct Column_ValuesDefaultTypeInternal {
PROTOBUF_CONSTEXPR Column_ValuesDefaultTypeInternal()
@@ -93,6 +94,7 @@ PROTOBUF_CONSTEXPR Column::Column(
/*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.null_mask_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.values_)*/nullptr
, /*decltype(_impl_.datatype_extension_)*/nullptr
, /*decltype(_impl_.semantic_type_)*/0
, /*decltype(_impl_.datatype_)*/0
, /*decltype(_impl_._cached_size_)*/{}} {}
@@ -148,6 +150,7 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_millisecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_microsecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.duration_nanosecond_values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column_Values, _impl_.decimal128_values_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _internal_metadata_),
~0u, // no _extensions_
@@ -159,10 +162,11 @@ const uint32_t TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets[] PROTOBUF_SE
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.values_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.null_mask_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.datatype_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Column, _impl_.datatype_extension_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::Column_Values)},
{ 36, -1, -1, sizeof(::greptime::v1::Column)},
{ 37, -1, -1, sizeof(::greptime::v1::Column)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -172,43 +176,46 @@ static const ::_pb::Message* const file_default_instances[] = {
const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\030greptime/v1/column.proto\022\013greptime.v1\032"
"\030greptime/v1/common.proto\"\256\010\n\006Column\022\023\n\013"
"\030greptime/v1/common.proto\"\244\t\n\006Column\022\023\n\013"
"column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016"
"2\031.greptime.v1.SemanticType\022*\n\006values\030\003 "
"\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_"
"mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime."
"v1.ColumnDataType\032\356\006\n\006Values\022\021\n\ti8_value"
"s\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(\005\022\022\n\ni32_value"
"s\030\003 \003(\005\022\022\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values"
"\030\005 \003(\r\022\022\n\nu16_values\030\006 \003(\r\022\022\n\nu32_values"
"\030\007 \003(\r\022\022\n\nu64_values\030\010 \003(\004\022\022\n\nf32_values"
"\030\t \003(\002\022\022\n\nf64_values\030\n \003(\001\022\023\n\013bool_value"
"s\030\013 \003(\010\022\025\n\rbinary_values\030\014 \003(\014\022\025\n\rstring"
"_values\030\r \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017da"
"tetime_values\030\017 \003(\003\022\037\n\027timestamp_second_"
"values\030\020 \003(\003\022$\n\034timestamp_millisecond_va"
"lues\030\021 \003(\003\022$\n\034timestamp_microsecond_valu"
"es\030\022 \003(\003\022#\n\033timestamp_nanosecond_values\030"
"\023 \003(\003\022\032\n\022time_second_values\030\024 \003(\003\022\037\n\027tim"
"e_millisecond_values\030\025 \003(\003\022\037\n\027time_micro"
"second_values\030\026 \003(\003\022\036\n\026time_nanosecond_v"
"alues\030\027 \003(\003\022\"\n\032interval_year_month_value"
"s\030\030 \003(\005\022 \n\030interval_day_time_values\030\031 \003("
"\003\022I\n\036interval_month_day_nano_values\030\032 \003("
"\0132!.greptime.v1.IntervalMonthDayNano\022\036\n\026"
"duration_second_values\030\033 \003(\003\022#\n\033duration"
"_millisecond_values\030\034 \003(\003\022#\n\033duration_mi"
"crosecond_values\030\035 \003(\003\022\"\n\032duration_nanos"
"econd_values\030\036 \003(\003BP\n\016io.greptime.v1B\007Co"
"lumnsZ5github.com/GreptimeTeam/greptime-"
"proto/go/greptime/v1b\006proto3"
"v1.ColumnDataType\022@\n\022datatype_extension\030"
"\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens"
"ion\032\242\007\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16"
"_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64"
"_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_"
"values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_"
"values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_"
"values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbin"
"ary_values\030\014 \003(\014\022\025\n\rstring_values\030\r \003(\t\022"
"\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_values\030"
"\017 \003(\003\022\037\n\027timestamp_second_values\030\020 \003(\003\022$"
"\n\034timestamp_millisecond_values\030\021 \003(\003\022$\n\034"
"timestamp_microsecond_values\030\022 \003(\003\022#\n\033ti"
"mestamp_nanosecond_values\030\023 \003(\003\022\032\n\022time_"
"second_values\030\024 \003(\003\022\037\n\027time_millisecond_"
"values\030\025 \003(\003\022\037\n\027time_microsecond_values\030"
"\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003(\003\022\"\n"
"\032interval_year_month_values\030\030 \003(\005\022 \n\030int"
"erval_day_time_values\030\031 \003(\003\022I\n\036interval_"
"month_day_nano_values\030\032 \003(\0132!.greptime.v"
"1.IntervalMonthDayNano\022\036\n\026duration_secon"
"d_values\030\033 \003(\003\022#\n\033duration_millisecond_v"
"alues\030\034 \003(\003\022#\n\033duration_microsecond_valu"
"es\030\035 \003(\003\022\"\n\032duration_nanosecond_values\030\036"
" \003(\003\0222\n\021decimal128_values\030\037 \003(\0132\027.grepti"
"me.v1.Decimal128BP\n\016io.greptime.v1B\007Colu"
"mnsZ5github.com/GreptimeTeam/greptime-pr"
"oto/go/greptime/v1b\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcolumn_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcolumn_2eproto = {
false, false, 1228, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
false, false, 1346, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
"greptime/v1/column.proto",
&descriptor_table_greptime_2fv1_2fcolumn_2eproto_once, descriptor_table_greptime_2fv1_2fcolumn_2eproto_deps, 1, 2,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcolumn_2eproto::offsets,
@@ -233,6 +240,9 @@ class Column_Values::_Internal {
void Column_Values::clear_interval_month_day_nano_values() {
_impl_.interval_month_day_nano_values_.Clear();
}
void Column_Values::clear_decimal128_values() {
_impl_.decimal128_values_.Clear();
}
Column_Values::Column_Values(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -297,6 +307,7 @@ Column_Values::Column_Values(const Column_Values& from)
, /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.duration_nanosecond_values_){from._impl_.duration_nanosecond_values_}
, /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.decimal128_values_){from._impl_.decimal128_values_}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@@ -362,6 +373,7 @@ inline void Column_Values::SharedCtor(
, /*decltype(_impl_._duration_microsecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.duration_nanosecond_values_){arena}
, /*decltype(_impl_._duration_nanosecond_values_cached_byte_size_)*/{0}
, decltype(_impl_.decimal128_values_){arena}
, /*decltype(_impl_._cached_size_)*/{}
};
}
@@ -407,6 +419,7 @@ inline void Column_Values::SharedDtor() {
_impl_.duration_millisecond_values_.~RepeatedField();
_impl_.duration_microsecond_values_.~RepeatedField();
_impl_.duration_nanosecond_values_.~RepeatedField();
_impl_.decimal128_values_.~RepeatedPtrField();
}
void Column_Values::SetCachedSize(int size) const {
@@ -449,6 +462,7 @@ void Column_Values::Clear() {
_impl_.duration_millisecond_values_.Clear();
_impl_.duration_microsecond_values_.Clear();
_impl_.duration_nanosecond_values_.Clear();
_impl_.decimal128_values_.Clear();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -797,6 +811,19 @@ const char* Column_Values::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// repeated .greptime.v1.Decimal128 decimal128_values = 31;
case 31:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 250)) {
ptr -= 2;
do {
ptr += 2;
ptr = ctx->ParseMessage(_internal_add_decimal128_values(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<250>(ptr));
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -1081,6 +1108,14 @@ uint8_t* Column_Values::_InternalSerialize(
}
}
// repeated .greptime.v1.Decimal128 decimal128_values = 31;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_decimal128_values_size()); i < n; i++) {
const auto& repfield = this->_internal_decimal128_values(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(31, repfield, repfield.GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -1489,6 +1524,13 @@ size_t Column_Values::ByteSizeLong() const {
total_size += data_size;
}
// repeated .greptime.v1.Decimal128 decimal128_values = 31;
total_size += 2UL * this->_internal_decimal128_values_size();
for (const auto& msg : this->_impl_.decimal128_values_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -1537,6 +1579,7 @@ void Column_Values::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
_this->_impl_.duration_millisecond_values_.MergeFrom(from._impl_.duration_millisecond_values_);
_this->_impl_.duration_microsecond_values_.MergeFrom(from._impl_.duration_microsecond_values_);
_this->_impl_.duration_nanosecond_values_.MergeFrom(from._impl_.duration_nanosecond_values_);
_this->_impl_.decimal128_values_.MergeFrom(from._impl_.decimal128_values_);
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
@@ -1584,6 +1627,7 @@ void Column_Values::InternalSwap(Column_Values* other) {
_impl_.duration_millisecond_values_.InternalSwap(&other->_impl_.duration_millisecond_values_);
_impl_.duration_microsecond_values_.InternalSwap(&other->_impl_.duration_microsecond_values_);
_impl_.duration_nanosecond_values_.InternalSwap(&other->_impl_.duration_nanosecond_values_);
_impl_.decimal128_values_.InternalSwap(&other->_impl_.decimal128_values_);
}
::PROTOBUF_NAMESPACE_ID::Metadata Column_Values::GetMetadata() const {
@@ -1597,12 +1641,23 @@ void Column_Values::InternalSwap(Column_Values* other) {
class Column::_Internal {
public:
static const ::greptime::v1::Column_Values& values(const Column* msg);
static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const Column* msg);
};
const ::greptime::v1::Column_Values&
Column::_Internal::values(const Column* msg) {
return *msg->_impl_.values_;
}
const ::greptime::v1::ColumnDataTypeExtension&
Column::_Internal::datatype_extension(const Column* msg) {
return *msg->_impl_.datatype_extension_;
}
void Column::clear_datatype_extension() {
if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) {
delete _impl_.datatype_extension_;
}
_impl_.datatype_extension_ = nullptr;
}
Column::Column(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1616,6 +1671,7 @@ Column::Column(const Column& from)
decltype(_impl_.column_name_){}
, decltype(_impl_.null_mask_){}
, decltype(_impl_.values_){nullptr}
, decltype(_impl_.datatype_extension_){nullptr}
, decltype(_impl_.semantic_type_){}
, decltype(_impl_.datatype_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -1640,6 +1696,9 @@ Column::Column(const Column& from)
if (from._internal_has_values()) {
_this->_impl_.values_ = new ::greptime::v1::Column_Values(*from._impl_.values_);
}
if (from._internal_has_datatype_extension()) {
_this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_);
}
::memcpy(&_impl_.semantic_type_, &from._impl_.semantic_type_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.datatype_) -
reinterpret_cast<char*>(&_impl_.semantic_type_)) + sizeof(_impl_.datatype_));
@@ -1654,6 +1713,7 @@ inline void Column::SharedCtor(
decltype(_impl_.column_name_){}
, decltype(_impl_.null_mask_){}
, decltype(_impl_.values_){nullptr}
, decltype(_impl_.datatype_extension_){nullptr}
, decltype(_impl_.semantic_type_){0}
, decltype(_impl_.datatype_){0}
, /*decltype(_impl_._cached_size_)*/{}
@@ -1682,6 +1742,7 @@ inline void Column::SharedDtor() {
_impl_.column_name_.Destroy();
_impl_.null_mask_.Destroy();
if (this != internal_default_instance()) delete _impl_.values_;
if (this != internal_default_instance()) delete _impl_.datatype_extension_;
}
void Column::SetCachedSize(int size) const {
@@ -1700,6 +1761,10 @@ void Column::Clear() {
delete _impl_.values_;
}
_impl_.values_ = nullptr;
if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) {
delete _impl_.datatype_extension_;
}
_impl_.datatype_extension_ = nullptr;
::memset(&_impl_.semantic_type_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.datatype_) -
reinterpret_cast<char*>(&_impl_.semantic_type_)) + sizeof(_impl_.datatype_));
@@ -1757,6 +1822,14 @@ const char* Column::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
} else
goto handle_unusual;
continue;
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6;
case 6:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -1823,6 +1896,13 @@ uint8_t* Column::_InternalSerialize(
5, this->_internal_datatype(), target);
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6;
if (this->_internal_has_datatype_extension()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(6, _Internal::datatype_extension(this),
_Internal::datatype_extension(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -1860,6 +1940,13 @@ size_t Column::ByteSizeLong() const {
*_impl_.values_);
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6;
if (this->_internal_has_datatype_extension()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.datatype_extension_);
}
// .greptime.v1.SemanticType semantic_type = 2;
if (this->_internal_semantic_type() != 0) {
total_size += 1 +
@@ -1900,6 +1987,10 @@ void Column::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBU
_this->_internal_mutable_values()->::greptime::v1::Column_Values::MergeFrom(
from._internal_values());
}
if (from._internal_has_datatype_extension()) {
_this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom(
from._internal_datatype_extension());
}
if (from._internal_semantic_type() != 0) {
_this->_internal_set_semantic_type(from._internal_semantic_type());
}
+162
View File
@@ -215,6 +215,7 @@ class Column_Values final :
kDurationMillisecondValuesFieldNumber = 28,
kDurationMicrosecondValuesFieldNumber = 29,
kDurationNanosecondValuesFieldNumber = 30,
kDecimal128ValuesFieldNumber = 31,
};
// repeated int32 i8_values = 1;
int i8_values_size() const;
@@ -876,6 +877,24 @@ class Column_Values final :
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t >*
mutable_duration_nanosecond_values();
// repeated .greptime.v1.Decimal128 decimal128_values = 31;
int decimal128_values_size() const;
private:
int _internal_decimal128_values_size() const;
public:
void clear_decimal128_values();
::greptime::v1::Decimal128* mutable_decimal128_values(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >*
mutable_decimal128_values();
private:
const ::greptime::v1::Decimal128& _internal_decimal128_values(int index) const;
::greptime::v1::Decimal128* _internal_add_decimal128_values();
public:
const ::greptime::v1::Decimal128& decimal128_values(int index) const;
::greptime::v1::Decimal128* add_decimal128_values();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >&
decimal128_values() const;
// @@protoc_insertion_point(class_scope:greptime.v1.Column.Values)
private:
class _Internal;
@@ -938,6 +957,7 @@ class Column_Values final :
mutable std::atomic<int> _duration_microsecond_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedField< int64_t > duration_nanosecond_values_;
mutable std::atomic<int> _duration_nanosecond_values_cached_byte_size_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 > decimal128_values_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -1071,6 +1091,7 @@ class Column final :
kColumnNameFieldNumber = 1,
kNullMaskFieldNumber = 4,
kValuesFieldNumber = 3,
kDatatypeExtensionFieldNumber = 6,
kSemanticTypeFieldNumber = 2,
kDatatypeFieldNumber = 5,
};
@@ -1120,6 +1141,24 @@ class Column final :
::greptime::v1::Column_Values* values);
::greptime::v1::Column_Values* unsafe_arena_release_values();
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6;
bool has_datatype_extension() const;
private:
bool _internal_has_datatype_extension() const;
public:
void clear_datatype_extension();
const ::greptime::v1::ColumnDataTypeExtension& datatype_extension() const;
PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_datatype_extension();
::greptime::v1::ColumnDataTypeExtension* mutable_datatype_extension();
void set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension);
private:
const ::greptime::v1::ColumnDataTypeExtension& _internal_datatype_extension() const;
::greptime::v1::ColumnDataTypeExtension* _internal_mutable_datatype_extension();
public:
void unsafe_arena_set_allocated_datatype_extension(
::greptime::v1::ColumnDataTypeExtension* datatype_extension);
::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension();
// .greptime.v1.SemanticType semantic_type = 2;
void clear_semantic_type();
::greptime::v1::SemanticType semantic_type() const;
@@ -1149,6 +1188,7 @@ class Column final :
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr null_mask_;
::greptime::v1::Column_Values* values_;
::greptime::v1::ColumnDataTypeExtension* datatype_extension_;
int semantic_type_;
int datatype_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -2623,6 +2663,43 @@ Column_Values::mutable_duration_nanosecond_values() {
return _internal_mutable_duration_nanosecond_values();
}
// repeated .greptime.v1.Decimal128 decimal128_values = 31;
inline int Column_Values::_internal_decimal128_values_size() const {
return _impl_.decimal128_values_.size();
}
inline int Column_Values::decimal128_values_size() const {
return _internal_decimal128_values_size();
}
inline ::greptime::v1::Decimal128* Column_Values::mutable_decimal128_values(int index) {
// @@protoc_insertion_point(field_mutable:greptime.v1.Column.Values.decimal128_values)
return _impl_.decimal128_values_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >*
Column_Values::mutable_decimal128_values() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.Column.Values.decimal128_values)
return &_impl_.decimal128_values_;
}
inline const ::greptime::v1::Decimal128& Column_Values::_internal_decimal128_values(int index) const {
return _impl_.decimal128_values_.Get(index);
}
inline const ::greptime::v1::Decimal128& Column_Values::decimal128_values(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.Values.decimal128_values)
return _internal_decimal128_values(index);
}
inline ::greptime::v1::Decimal128* Column_Values::_internal_add_decimal128_values() {
return _impl_.decimal128_values_.Add();
}
inline ::greptime::v1::Decimal128* Column_Values::add_decimal128_values() {
::greptime::v1::Decimal128* _add = _internal_add_decimal128_values();
// @@protoc_insertion_point(field_add:greptime.v1.Column.Values.decimal128_values)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::Decimal128 >&
Column_Values::decimal128_values() const {
// @@protoc_insertion_point(field_list:greptime.v1.Column.Values.decimal128_values)
return _impl_.decimal128_values_;
}
// -------------------------------------------------------------------
// Column
@@ -2857,6 +2934,91 @@ inline void Column::set_datatype(::greptime::v1::ColumnDataType value) {
// @@protoc_insertion_point(field_set:greptime.v1.Column.datatype)
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 6;
inline bool Column::_internal_has_datatype_extension() const {
return this != internal_default_instance() && _impl_.datatype_extension_ != nullptr;
}
inline bool Column::has_datatype_extension() const {
return _internal_has_datatype_extension();
}
inline const ::greptime::v1::ColumnDataTypeExtension& Column::_internal_datatype_extension() const {
const ::greptime::v1::ColumnDataTypeExtension* p = _impl_.datatype_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::ColumnDataTypeExtension&>(
::greptime::v1::_ColumnDataTypeExtension_default_instance_);
}
inline const ::greptime::v1::ColumnDataTypeExtension& Column::datatype_extension() const {
// @@protoc_insertion_point(field_get:greptime.v1.Column.datatype_extension)
return _internal_datatype_extension();
}
inline void Column::unsafe_arena_set_allocated_datatype_extension(
::greptime::v1::ColumnDataTypeExtension* datatype_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_);
}
_impl_.datatype_extension_ = datatype_extension;
if (datatype_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Column.datatype_extension)
}
inline ::greptime::v1::ColumnDataTypeExtension* Column::release_datatype_extension() {
::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_;
_impl_.datatype_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::ColumnDataTypeExtension* Column::unsafe_arena_release_datatype_extension() {
// @@protoc_insertion_point(field_release:greptime.v1.Column.datatype_extension)
::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_;
_impl_.datatype_extension_ = nullptr;
return temp;
}
inline ::greptime::v1::ColumnDataTypeExtension* Column::_internal_mutable_datatype_extension() {
if (_impl_.datatype_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation());
_impl_.datatype_extension_ = p;
}
return _impl_.datatype_extension_;
}
inline ::greptime::v1::ColumnDataTypeExtension* Column::mutable_datatype_extension() {
::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_datatype_extension();
// @@protoc_insertion_point(field_mutable:greptime.v1.Column.datatype_extension)
return _msg;
}
inline void Column::set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_);
}
if (datatype_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(datatype_extension));
if (message_arena != submessage_arena) {
datatype_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, datatype_extension, submessage_arena);
}
} else {
}
_impl_.datatype_extension_ = datatype_extension;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.Column.datatype_extension)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
+780 -21
View File
@@ -159,9 +159,51 @@ struct IntervalMonthDayNanoDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
PROTOBUF_CONSTEXPR Decimal128::Decimal128(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.hi_)*/int64_t{0}
, /*decltype(_impl_.lo_)*/int64_t{0}
, /*decltype(_impl_._cached_size_)*/{}} {}
struct Decimal128DefaultTypeInternal {
PROTOBUF_CONSTEXPR Decimal128DefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~Decimal128DefaultTypeInternal() {}
union {
Decimal128 _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Decimal128DefaultTypeInternal _Decimal128_default_instance_;
PROTOBUF_CONSTEXPR ColumnDataTypeExtension::ColumnDataTypeExtension(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.type_ext_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}} {}
struct ColumnDataTypeExtensionDefaultTypeInternal {
PROTOBUF_CONSTEXPR ColumnDataTypeExtensionDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~ColumnDataTypeExtensionDefaultTypeInternal() {}
union {
ColumnDataTypeExtension _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnDataTypeExtensionDefaultTypeInternal _ColumnDataTypeExtension_default_instance_;
PROTOBUF_CONSTEXPR DecimalTypeExtension::DecimalTypeExtension(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.precision_)*/0
, /*decltype(_impl_.scale_)*/0
, /*decltype(_impl_._cached_size_)*/{}} {}
struct DecimalTypeExtensionDefaultTypeInternal {
PROTOBUF_CONSTEXPR DecimalTypeExtensionDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~DecimalTypeExtensionDefaultTypeInternal() {}
union {
DecimalTypeExtension _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[10];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[13];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
@@ -249,6 +291,30 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.months_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.days_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _impl_.hi_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _impl_.lo_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDataTypeExtension, _internal_metadata_),
~0u, // no _extensions_
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDataTypeExtension, _impl_._oneof_case_[0]),
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDataTypeExtension, _impl_.type_ext_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.precision_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::DecimalTypeExtension, _impl_.scale_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 8, -1, sizeof(::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse)},
@@ -261,6 +327,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 60, -1, -1, sizeof(::greptime::v1::AffectedRows)},
{ 67, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 74, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 83, -1, -1, sizeof(::greptime::v1::Decimal128)},
{ 91, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
{ 99, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -274,6 +343,9 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_AffectedRows_default_instance_._instance,
&::greptime::v1::_FlightMetadata_default_instance_._instance,
&::greptime::v1::_IntervalMonthDayNano_default_instance_._instance,
&::greptime::v1::_Decimal128_default_instance_._instance,
&::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance,
&::greptime::v1::_DecimalTypeExtension_default_instance_._instance,
};
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
@@ -295,30 +367,35 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
"tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime"
".v1.AffectedRows\"I\n\024IntervalMonthDayNano"
"\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanose"
"conds\030\003 \001(\003*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005"
"FIELD\020\001\022\r\n\tTIMESTAMP\020\002*\250\004\n\016ColumnDataTyp"
"e\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005I"
"NT32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006"
"\022\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n"
"\007FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DA"
"TE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017"
"\022\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP"
"_MICROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022"
"\022\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022"
"\024\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND"
"\020\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_"
"DAY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022"
"\023\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISE"
"COND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURA"
"TION_NANOSECOND\020\035BO\n\016io.greptime.v1B\006Com"
"monZ5github.com/GreptimeTeam/greptime-pr"
"oto/go/greptime/v1b\006proto3"
"conds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n"
"\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n\014"
"decimal_type\030\001 \001(\0132!.greptime.v1.Decimal"
"TypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTy"
"peExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030"
"\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020"
"\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType\022\013\n\007B"
"OOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003"
"\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UI"
"NT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT"
"64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014"
"\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TI"
"MESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICRO"
"SECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TI"
"ME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIM"
"E_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023"
"INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TI"
"ME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DUR"
"ATION_SECOND\020\032\022\030\n\024DURATION_MILLISECOND\020\033"
"\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURATION_N"
"ANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.grepti"
"me.v1B\006CommonZ5github.com/GreptimeTeam/g"
"reptime-proto/go/greptime/v1b\006proto3"
;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
false, false, 1426, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
false, false, 1636, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
"greptime/v1/common.proto",
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 10,
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 13,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto,
@@ -382,6 +459,7 @@ bool ColumnDataType_IsValid(int value) {
case 27:
case 28:
case 29:
case 30:
return true;
default:
return false;
@@ -2606,6 +2684,675 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]);
}
// ===================================================================
class Decimal128::_Internal {
public:
};
Decimal128::Decimal128(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.Decimal128)
}
Decimal128::Decimal128(const Decimal128& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
Decimal128* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.hi_){}
, decltype(_impl_.lo_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&_impl_.hi_, &from._impl_.hi_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.lo_) -
reinterpret_cast<char*>(&_impl_.hi_)) + sizeof(_impl_.lo_));
// @@protoc_insertion_point(copy_constructor:greptime.v1.Decimal128)
}
inline void Decimal128::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.hi_){int64_t{0}}
, decltype(_impl_.lo_){int64_t{0}}
, /*decltype(_impl_._cached_size_)*/{}
};
}
Decimal128::~Decimal128() {
// @@protoc_insertion_point(destructor:greptime.v1.Decimal128)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void Decimal128::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void Decimal128::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void Decimal128::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.Decimal128)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.hi_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.lo_) -
reinterpret_cast<char*>(&_impl_.hi_)) + sizeof(_impl_.lo_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* Decimal128::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// int64 hi = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.hi_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 lo = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.lo_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* Decimal128::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.Decimal128)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// int64 hi = 1;
if (this->_internal_hi() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_hi(), target);
}
// int64 lo = 2;
if (this->_internal_lo() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_lo(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.Decimal128)
return target;
}
size_t Decimal128::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.Decimal128)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int64 hi = 1;
if (this->_internal_hi() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_hi());
}
// int64 lo = 2;
if (this->_internal_lo() != 0) {
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_lo());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Decimal128::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
Decimal128::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Decimal128::GetClassData() const { return &_class_data_; }
void Decimal128::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<Decimal128*>(&to_msg);
auto& from = static_cast<const Decimal128&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.Decimal128)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_hi() != 0) {
_this->_internal_set_hi(from._internal_hi());
}
if (from._internal_lo() != 0) {
_this->_internal_set_lo(from._internal_lo());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void Decimal128::CopyFrom(const Decimal128& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.Decimal128)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Decimal128::IsInitialized() const {
return true;
}
void Decimal128::InternalSwap(Decimal128* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(Decimal128, _impl_.lo_)
+ sizeof(Decimal128::_impl_.lo_)
- PROTOBUF_FIELD_OFFSET(Decimal128, _impl_.hi_)>(
reinterpret_cast<char*>(&_impl_.hi_),
reinterpret_cast<char*>(&other->_impl_.hi_));
}
::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]);
}
// ===================================================================
class ColumnDataTypeExtension::_Internal {
public:
static const ::greptime::v1::DecimalTypeExtension& decimal_type(const ColumnDataTypeExtension* msg);
};
const ::greptime::v1::DecimalTypeExtension&
ColumnDataTypeExtension::_Internal::decimal_type(const ColumnDataTypeExtension* msg) {
return *msg->_impl_.type_ext_.decimal_type_;
}
void ColumnDataTypeExtension::set_allocated_decimal_type(::greptime::v1::DecimalTypeExtension* decimal_type) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_type_ext();
if (decimal_type) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(decimal_type);
if (message_arena != submessage_arena) {
decimal_type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, decimal_type, submessage_arena);
}
set_has_decimal_type();
_impl_.type_ext_.decimal_type_ = decimal_type;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDataTypeExtension.decimal_type)
}
ColumnDataTypeExtension::ColumnDataTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.ColumnDataTypeExtension)
}
ColumnDataTypeExtension::ColumnDataTypeExtension(const ColumnDataTypeExtension& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
ColumnDataTypeExtension* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.type_ext_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
clear_has_type_ext();
switch (from.type_ext_case()) {
case kDecimalType: {
_this->_internal_mutable_decimal_type()->::greptime::v1::DecimalTypeExtension::MergeFrom(
from._internal_decimal_type());
break;
}
case TYPE_EXT_NOT_SET: {
break;
}
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.ColumnDataTypeExtension)
}
inline void ColumnDataTypeExtension::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.type_ext_){}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}
};
clear_has_type_ext();
}
ColumnDataTypeExtension::~ColumnDataTypeExtension() {
// @@protoc_insertion_point(destructor:greptime.v1.ColumnDataTypeExtension)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void ColumnDataTypeExtension::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (has_type_ext()) {
clear_type_ext();
}
}
void ColumnDataTypeExtension::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void ColumnDataTypeExtension::clear_type_ext() {
// @@protoc_insertion_point(one_of_clear_start:greptime.v1.ColumnDataTypeExtension)
switch (type_ext_case()) {
case kDecimalType: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.type_ext_.decimal_type_;
}
break;
}
case TYPE_EXT_NOT_SET: {
break;
}
}
_impl_._oneof_case_[0] = TYPE_EXT_NOT_SET;
}
void ColumnDataTypeExtension::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.ColumnDataTypeExtension)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
clear_type_ext();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* ColumnDataTypeExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// .greptime.v1.DecimalTypeExtension decimal_type = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_decimal_type(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* ColumnDataTypeExtension::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ColumnDataTypeExtension)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// .greptime.v1.DecimalTypeExtension decimal_type = 1;
if (_internal_has_decimal_type()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::decimal_type(this),
_Internal::decimal_type(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.ColumnDataTypeExtension)
return target;
}
size_t ColumnDataTypeExtension::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ColumnDataTypeExtension)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
switch (type_ext_case()) {
// .greptime.v1.DecimalTypeExtension decimal_type = 1;
case kDecimalType: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.type_ext_.decimal_type_);
break;
}
case TYPE_EXT_NOT_SET: {
break;
}
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ColumnDataTypeExtension::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
ColumnDataTypeExtension::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ColumnDataTypeExtension::GetClassData() const { return &_class_data_; }
void ColumnDataTypeExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<ColumnDataTypeExtension*>(&to_msg);
auto& from = static_cast<const ColumnDataTypeExtension&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ColumnDataTypeExtension)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
switch (from.type_ext_case()) {
case kDecimalType: {
_this->_internal_mutable_decimal_type()->::greptime::v1::DecimalTypeExtension::MergeFrom(
from._internal_decimal_type());
break;
}
case TYPE_EXT_NOT_SET: {
break;
}
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void ColumnDataTypeExtension::CopyFrom(const ColumnDataTypeExtension& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ColumnDataTypeExtension)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ColumnDataTypeExtension::IsInitialized() const {
return true;
}
void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.type_ext_, other->_impl_.type_ext_);
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[11]);
}
// ===================================================================
class DecimalTypeExtension::_Internal {
public:
};
DecimalTypeExtension::DecimalTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
SharedCtor(arena, is_message_owned);
// @@protoc_insertion_point(arena_constructor:greptime.v1.DecimalTypeExtension)
}
DecimalTypeExtension::DecimalTypeExtension(const DecimalTypeExtension& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
DecimalTypeExtension* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.precision_){}
, decltype(_impl_.scale_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
::memcpy(&_impl_.precision_, &from._impl_.precision_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.scale_) -
reinterpret_cast<char*>(&_impl_.precision_)) + sizeof(_impl_.scale_));
// @@protoc_insertion_point(copy_constructor:greptime.v1.DecimalTypeExtension)
}
inline void DecimalTypeExtension::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.precision_){0}
, decltype(_impl_.scale_){0}
, /*decltype(_impl_._cached_size_)*/{}
};
}
DecimalTypeExtension::~DecimalTypeExtension() {
// @@protoc_insertion_point(destructor:greptime.v1.DecimalTypeExtension)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void DecimalTypeExtension::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void DecimalTypeExtension::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void DecimalTypeExtension::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.DecimalTypeExtension)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
::memset(&_impl_.precision_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.scale_) -
reinterpret_cast<char*>(&_impl_.precision_)) + sizeof(_impl_.scale_));
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* DecimalTypeExtension::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// int32 precision = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.precision_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int32 scale = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
_impl_.scale_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* DecimalTypeExtension::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DecimalTypeExtension)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// int32 precision = 1;
if (this->_internal_precision() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_precision(), target);
}
// int32 scale = 2;
if (this->_internal_scale() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_scale(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.DecimalTypeExtension)
return target;
}
size_t DecimalTypeExtension::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DecimalTypeExtension)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// int32 precision = 1;
if (this->_internal_precision() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_precision());
}
// int32 scale = 2;
if (this->_internal_scale() != 0) {
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_scale());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DecimalTypeExtension::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
DecimalTypeExtension::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DecimalTypeExtension::GetClassData() const { return &_class_data_; }
void DecimalTypeExtension::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<DecimalTypeExtension*>(&to_msg);
auto& from = static_cast<const DecimalTypeExtension&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.DecimalTypeExtension)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_precision() != 0) {
_this->_internal_set_precision(from._internal_precision());
}
if (from._internal_scale() != 0) {
_this->_internal_set_scale(from._internal_scale());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void DecimalTypeExtension::CopyFrom(const DecimalTypeExtension& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DecimalTypeExtension)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool DecimalTypeExtension::IsInitialized() const {
return true;
}
void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(DecimalTypeExtension, _impl_.scale_)
+ sizeof(DecimalTypeExtension::_impl_.scale_)
- PROTOBUF_FIELD_OFFSET(DecimalTypeExtension, _impl_.precision_)>(
reinterpret_cast<char*>(&_impl_.precision_),
reinterpret_cast<char*>(&other->_impl_.precision_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fcommon_2eproto[12]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace v1
} // namespace greptime
@@ -2650,6 +3397,18 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano*
Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::Decimal128*
Arena::CreateMaybeMessage< ::greptime::v1::Decimal128 >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::Decimal128 >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnDataTypeExtension*
Arena::CreateMaybeMessage< ::greptime::v1::ColumnDataTypeExtension >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::ColumnDataTypeExtension >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::DecimalTypeExtension*
Arena::CreateMaybeMessage< ::greptime::v1::DecimalTypeExtension >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::DecimalTypeExtension >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
+687 -1
View File
@@ -59,6 +59,15 @@ extern AuthHeaderDefaultTypeInternal _AuthHeader_default_instance_;
class Basic;
struct BasicDefaultTypeInternal;
extern BasicDefaultTypeInternal _Basic_default_instance_;
class ColumnDataTypeExtension;
struct ColumnDataTypeExtensionDefaultTypeInternal;
extern ColumnDataTypeExtensionDefaultTypeInternal _ColumnDataTypeExtension_default_instance_;
class Decimal128;
struct Decimal128DefaultTypeInternal;
extern Decimal128DefaultTypeInternal _Decimal128_default_instance_;
class DecimalTypeExtension;
struct DecimalTypeExtensionDefaultTypeInternal;
extern DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
class FlightMetadata;
struct FlightMetadataDefaultTypeInternal;
extern FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_;
@@ -86,6 +95,9 @@ PROTOBUF_NAMESPACE_OPEN
template<> ::greptime::v1::AffectedRows* Arena::CreateMaybeMessage<::greptime::v1::AffectedRows>(Arena*);
template<> ::greptime::v1::AuthHeader* Arena::CreateMaybeMessage<::greptime::v1::AuthHeader>(Arena*);
template<> ::greptime::v1::Basic* Arena::CreateMaybeMessage<::greptime::v1::Basic>(Arena*);
template<> ::greptime::v1::ColumnDataTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(Arena*);
template<> ::greptime::v1::Decimal128* Arena::CreateMaybeMessage<::greptime::v1::Decimal128>(Arena*);
template<> ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::DecimalTypeExtension>(Arena*);
template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*);
template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*);
template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader>(Arena*);
@@ -154,12 +166,13 @@ enum ColumnDataType : int {
DURATION_MILLISECOND = 27,
DURATION_MICROSECOND = 28,
DURATION_NANOSECOND = 29,
DECIMAL128 = 30,
ColumnDataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
ColumnDataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
};
bool ColumnDataType_IsValid(int value);
constexpr ColumnDataType ColumnDataType_MIN = BOOLEAN;
constexpr ColumnDataType ColumnDataType_MAX = DURATION_NANOSECOND;
constexpr ColumnDataType ColumnDataType_MAX = DECIMAL128;
constexpr int ColumnDataType_ARRAYSIZE = ColumnDataType_MAX + 1;
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ColumnDataType_descriptor();
@@ -1749,6 +1762,498 @@ class IntervalMonthDayNano final :
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class Decimal128 final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Decimal128) */ {
public:
inline Decimal128() : Decimal128(nullptr) {}
~Decimal128() override;
explicit PROTOBUF_CONSTEXPR Decimal128(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
Decimal128(const Decimal128& from);
Decimal128(Decimal128&& from) noexcept
: Decimal128() {
*this = ::std::move(from);
}
inline Decimal128& operator=(const Decimal128& from) {
CopyFrom(from);
return *this;
}
inline Decimal128& operator=(Decimal128&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const Decimal128& default_instance() {
return *internal_default_instance();
}
static inline const Decimal128* internal_default_instance() {
return reinterpret_cast<const Decimal128*>(
&_Decimal128_default_instance_);
}
static constexpr int kIndexInFileMessages =
10;
friend void swap(Decimal128& a, Decimal128& b) {
a.Swap(&b);
}
inline void Swap(Decimal128* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(Decimal128* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
Decimal128* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<Decimal128>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const Decimal128& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const Decimal128& from) {
Decimal128::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(Decimal128* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.Decimal128";
}
protected:
explicit Decimal128(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kHiFieldNumber = 1,
kLoFieldNumber = 2,
};
// int64 hi = 1;
void clear_hi();
int64_t hi() const;
void set_hi(int64_t value);
private:
int64_t _internal_hi() const;
void _internal_set_hi(int64_t value);
public:
// int64 lo = 2;
void clear_lo();
int64_t lo() const;
void set_lo(int64_t value);
private:
int64_t _internal_lo() const;
void _internal_set_lo(int64_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.Decimal128)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
int64_t hi_;
int64_t lo_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class ColumnDataTypeExtension final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ColumnDataTypeExtension) */ {
public:
inline ColumnDataTypeExtension() : ColumnDataTypeExtension(nullptr) {}
~ColumnDataTypeExtension() override;
explicit PROTOBUF_CONSTEXPR ColumnDataTypeExtension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
ColumnDataTypeExtension(const ColumnDataTypeExtension& from);
ColumnDataTypeExtension(ColumnDataTypeExtension&& from) noexcept
: ColumnDataTypeExtension() {
*this = ::std::move(from);
}
inline ColumnDataTypeExtension& operator=(const ColumnDataTypeExtension& from) {
CopyFrom(from);
return *this;
}
inline ColumnDataTypeExtension& operator=(ColumnDataTypeExtension&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const ColumnDataTypeExtension& default_instance() {
return *internal_default_instance();
}
enum TypeExtCase {
kDecimalType = 1,
TYPE_EXT_NOT_SET = 0,
};
static inline const ColumnDataTypeExtension* internal_default_instance() {
return reinterpret_cast<const ColumnDataTypeExtension*>(
&_ColumnDataTypeExtension_default_instance_);
}
static constexpr int kIndexInFileMessages =
11;
friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) {
a.Swap(&b);
}
inline void Swap(ColumnDataTypeExtension* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(ColumnDataTypeExtension* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
ColumnDataTypeExtension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<ColumnDataTypeExtension>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const ColumnDataTypeExtension& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const ColumnDataTypeExtension& from) {
ColumnDataTypeExtension::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(ColumnDataTypeExtension* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.ColumnDataTypeExtension";
}
protected:
explicit ColumnDataTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kDecimalTypeFieldNumber = 1,
};
// .greptime.v1.DecimalTypeExtension decimal_type = 1;
bool has_decimal_type() const;
private:
bool _internal_has_decimal_type() const;
public:
void clear_decimal_type();
const ::greptime::v1::DecimalTypeExtension& decimal_type() const;
PROTOBUF_NODISCARD ::greptime::v1::DecimalTypeExtension* release_decimal_type();
::greptime::v1::DecimalTypeExtension* mutable_decimal_type();
void set_allocated_decimal_type(::greptime::v1::DecimalTypeExtension* decimal_type);
private:
const ::greptime::v1::DecimalTypeExtension& _internal_decimal_type() const;
::greptime::v1::DecimalTypeExtension* _internal_mutable_decimal_type();
public:
void unsafe_arena_set_allocated_decimal_type(
::greptime::v1::DecimalTypeExtension* decimal_type);
::greptime::v1::DecimalTypeExtension* unsafe_arena_release_decimal_type();
void clear_type_ext();
TypeExtCase type_ext_case() const;
// @@protoc_insertion_point(class_scope:greptime.v1.ColumnDataTypeExtension)
private:
class _Internal;
void set_has_decimal_type();
inline bool has_type_ext() const;
inline void clear_has_type_ext();
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
union TypeExtUnion {
constexpr TypeExtUnion() : _constinit_{} {}
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
::greptime::v1::DecimalTypeExtension* decimal_type_;
} type_ext_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class DecimalTypeExtension final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DecimalTypeExtension) */ {
public:
inline DecimalTypeExtension() : DecimalTypeExtension(nullptr) {}
~DecimalTypeExtension() override;
explicit PROTOBUF_CONSTEXPR DecimalTypeExtension(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
DecimalTypeExtension(const DecimalTypeExtension& from);
DecimalTypeExtension(DecimalTypeExtension&& from) noexcept
: DecimalTypeExtension() {
*this = ::std::move(from);
}
inline DecimalTypeExtension& operator=(const DecimalTypeExtension& from) {
CopyFrom(from);
return *this;
}
inline DecimalTypeExtension& operator=(DecimalTypeExtension&& from) noexcept {
if (this == &from) return *this;
if (GetOwningArena() == from.GetOwningArena()
#ifdef PROTOBUF_FORCE_COPY_IN_MOVE
&& GetOwningArena() != nullptr
#endif // !PROTOBUF_FORCE_COPY_IN_MOVE
) {
InternalSwap(&from);
} else {
CopyFrom(from);
}
return *this;
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
return GetDescriptor();
}
static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
return default_instance().GetMetadata().descriptor;
}
static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
return default_instance().GetMetadata().reflection;
}
static const DecimalTypeExtension& default_instance() {
return *internal_default_instance();
}
static inline const DecimalTypeExtension* internal_default_instance() {
return reinterpret_cast<const DecimalTypeExtension*>(
&_DecimalTypeExtension_default_instance_);
}
static constexpr int kIndexInFileMessages =
12;
friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) {
a.Swap(&b);
}
inline void Swap(DecimalTypeExtension* other) {
if (other == this) return;
#ifdef PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() != nullptr &&
GetOwningArena() == other->GetOwningArena()) {
#else // PROTOBUF_FORCE_COPY_IN_SWAP
if (GetOwningArena() == other->GetOwningArena()) {
#endif // !PROTOBUF_FORCE_COPY_IN_SWAP
InternalSwap(other);
} else {
::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
}
}
void UnsafeArenaSwap(DecimalTypeExtension* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
DecimalTypeExtension* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<DecimalTypeExtension>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const DecimalTypeExtension& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const DecimalTypeExtension& from) {
DecimalTypeExtension::MergeImpl(*this, from);
}
private:
static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg);
public:
PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
bool IsInitialized() const final;
size_t ByteSizeLong() const final;
const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
uint8_t* _InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
private:
void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
void SharedDtor();
void SetCachedSize(int size) const final;
void InternalSwap(DecimalTypeExtension* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.DecimalTypeExtension";
}
protected:
explicit DecimalTypeExtension(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned = false);
public:
static const ClassData _class_data_;
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final;
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
enum : int {
kPrecisionFieldNumber = 1,
kScaleFieldNumber = 2,
};
// int32 precision = 1;
void clear_precision();
int32_t precision() const;
void set_precision(int32_t value);
private:
int32_t _internal_precision() const;
void _internal_set_precision(int32_t value);
public:
// int32 scale = 2;
void clear_scale();
int32_t scale() const;
void set_scale(int32_t value);
private:
int32_t _internal_scale() const;
void _internal_set_scale(int32_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.DecimalTypeExtension)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
int32_t precision_;
int32_t scale_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
};
// ===================================================================
@@ -2700,6 +3205,181 @@ inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.IntervalMonthDayNano.nanoseconds)
}
// -------------------------------------------------------------------
// Decimal128
// int64 hi = 1;
inline void Decimal128::clear_hi() {
_impl_.hi_ = int64_t{0};
}
inline int64_t Decimal128::_internal_hi() const {
return _impl_.hi_;
}
inline int64_t Decimal128::hi() const {
// @@protoc_insertion_point(field_get:greptime.v1.Decimal128.hi)
return _internal_hi();
}
inline void Decimal128::_internal_set_hi(int64_t value) {
_impl_.hi_ = value;
}
inline void Decimal128::set_hi(int64_t value) {
_internal_set_hi(value);
// @@protoc_insertion_point(field_set:greptime.v1.Decimal128.hi)
}
// int64 lo = 2;
inline void Decimal128::clear_lo() {
_impl_.lo_ = int64_t{0};
}
inline int64_t Decimal128::_internal_lo() const {
return _impl_.lo_;
}
inline int64_t Decimal128::lo() const {
// @@protoc_insertion_point(field_get:greptime.v1.Decimal128.lo)
return _internal_lo();
}
inline void Decimal128::_internal_set_lo(int64_t value) {
_impl_.lo_ = value;
}
inline void Decimal128::set_lo(int64_t value) {
_internal_set_lo(value);
// @@protoc_insertion_point(field_set:greptime.v1.Decimal128.lo)
}
// -------------------------------------------------------------------
// ColumnDataTypeExtension
// .greptime.v1.DecimalTypeExtension decimal_type = 1;
inline bool ColumnDataTypeExtension::_internal_has_decimal_type() const {
return type_ext_case() == kDecimalType;
}
inline bool ColumnDataTypeExtension::has_decimal_type() const {
return _internal_has_decimal_type();
}
inline void ColumnDataTypeExtension::set_has_decimal_type() {
_impl_._oneof_case_[0] = kDecimalType;
}
inline void ColumnDataTypeExtension::clear_decimal_type() {
if (_internal_has_decimal_type()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.type_ext_.decimal_type_;
}
clear_has_type_ext();
}
}
inline ::greptime::v1::DecimalTypeExtension* ColumnDataTypeExtension::release_decimal_type() {
// @@protoc_insertion_point(field_release:greptime.v1.ColumnDataTypeExtension.decimal_type)
if (_internal_has_decimal_type()) {
clear_has_type_ext();
::greptime::v1::DecimalTypeExtension* temp = _impl_.type_ext_.decimal_type_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.type_ext_.decimal_type_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::DecimalTypeExtension& ColumnDataTypeExtension::_internal_decimal_type() const {
return _internal_has_decimal_type()
? *_impl_.type_ext_.decimal_type_
: reinterpret_cast< ::greptime::v1::DecimalTypeExtension&>(::greptime::v1::_DecimalTypeExtension_default_instance_);
}
inline const ::greptime::v1::DecimalTypeExtension& ColumnDataTypeExtension::decimal_type() const {
// @@protoc_insertion_point(field_get:greptime.v1.ColumnDataTypeExtension.decimal_type)
return _internal_decimal_type();
}
inline ::greptime::v1::DecimalTypeExtension* ColumnDataTypeExtension::unsafe_arena_release_decimal_type() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.ColumnDataTypeExtension.decimal_type)
if (_internal_has_decimal_type()) {
clear_has_type_ext();
::greptime::v1::DecimalTypeExtension* temp = _impl_.type_ext_.decimal_type_;
_impl_.type_ext_.decimal_type_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void ColumnDataTypeExtension::unsafe_arena_set_allocated_decimal_type(::greptime::v1::DecimalTypeExtension* decimal_type) {
clear_type_ext();
if (decimal_type) {
set_has_decimal_type();
_impl_.type_ext_.decimal_type_ = decimal_type;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ColumnDataTypeExtension.decimal_type)
}
inline ::greptime::v1::DecimalTypeExtension* ColumnDataTypeExtension::_internal_mutable_decimal_type() {
if (!_internal_has_decimal_type()) {
clear_type_ext();
set_has_decimal_type();
_impl_.type_ext_.decimal_type_ = CreateMaybeMessage< ::greptime::v1::DecimalTypeExtension >(GetArenaForAllocation());
}
return _impl_.type_ext_.decimal_type_;
}
inline ::greptime::v1::DecimalTypeExtension* ColumnDataTypeExtension::mutable_decimal_type() {
::greptime::v1::DecimalTypeExtension* _msg = _internal_mutable_decimal_type();
// @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDataTypeExtension.decimal_type)
return _msg;
}
inline bool ColumnDataTypeExtension::has_type_ext() const {
return type_ext_case() != TYPE_EXT_NOT_SET;
}
inline void ColumnDataTypeExtension::clear_has_type_ext() {
_impl_._oneof_case_[0] = TYPE_EXT_NOT_SET;
}
inline ColumnDataTypeExtension::TypeExtCase ColumnDataTypeExtension::type_ext_case() const {
return ColumnDataTypeExtension::TypeExtCase(_impl_._oneof_case_[0]);
}
// -------------------------------------------------------------------
// DecimalTypeExtension
// int32 precision = 1;
inline void DecimalTypeExtension::clear_precision() {
_impl_.precision_ = 0;
}
inline int32_t DecimalTypeExtension::_internal_precision() const {
return _impl_.precision_;
}
inline int32_t DecimalTypeExtension::precision() const {
// @@protoc_insertion_point(field_get:greptime.v1.DecimalTypeExtension.precision)
return _internal_precision();
}
inline void DecimalTypeExtension::_internal_set_precision(int32_t value) {
_impl_.precision_ = value;
}
inline void DecimalTypeExtension::set_precision(int32_t value) {
_internal_set_precision(value);
// @@protoc_insertion_point(field_set:greptime.v1.DecimalTypeExtension.precision)
}
// int32 scale = 2;
inline void DecimalTypeExtension::clear_scale() {
_impl_.scale_ = 0;
}
inline int32_t DecimalTypeExtension::_internal_scale() const {
return _impl_.scale_;
}
inline int32_t DecimalTypeExtension::scale() const {
// @@protoc_insertion_point(field_get:greptime.v1.DecimalTypeExtension.scale)
return _internal_scale();
}
inline void DecimalTypeExtension::_internal_set_scale(int32_t value) {
_impl_.scale_ = value;
}
inline void DecimalTypeExtension::set_scale(int32_t value) {
_internal_set_scale(value);
// @@protoc_insertion_point(field_set:greptime.v1.DecimalTypeExtension.scale)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
@@ -2721,6 +3401,12 @@ inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+64 -13
View File
@@ -229,6 +229,7 @@ PROTOBUF_CONSTEXPR ColumnDef::ColumnDef(
/*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.default_constraint_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.datatype_extension_)*/nullptr
, /*decltype(_impl_.data_type_)*/0
, /*decltype(_impl_.is_nullable_)*/false
, /*decltype(_impl_.semantic_type_)*/0
@@ -409,6 +410,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.default_constraint_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.semantic_type_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.comment_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.datatype_extension_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumnLocation, _internal_metadata_),
~0u, // no _extensions_
@@ -434,7 +436,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 120, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 127, -1, -1, sizeof(::greptime::v1::TableId)},
{ 134, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 146, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
{ 147, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -500,24 +502,26 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
"\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001("
"\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDro"
"pColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001"
" \001(\r\"\275\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata"
" \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata"
"_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType"
"\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra"
"int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept"
"ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\"\230\001\n"
"\021AddColumnLocation\022B\n\rlocation_type\030\001 \001("
"\0162+.greptime.v1.AddColumnLocation.Locati"
"onType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Loc"
"ationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.gr"
"eptime.v1B\003DdlZ5github.com/GreptimeTeam/"
"greptime-proto/go/greptime/v1b\006proto3"
"ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022"
"datatype_extension\030\007 \001(\0132$.greptime.v1.C"
"olumnDataTypeExtension\"\230\001\n\021AddColumnLoca"
"tion\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v"
"1.AddColumnLocation.LocationType\022\031\n\021afte"
"r_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005F"
"IRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003Ddl"
"Z5github.com/GreptimeTeam/greptime-proto"
"/go/greptime/v1b\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
false, false, 2157, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
false, false, 2223, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
"greptime/v1/ddl.proto",
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 16,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
@@ -4428,8 +4432,19 @@ void TableId::InternalSwap(TableId* other) {
class ColumnDef::_Internal {
public:
static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnDef* msg);
};
const ::greptime::v1::ColumnDataTypeExtension&
ColumnDef::_Internal::datatype_extension(const ColumnDef* msg) {
return *msg->_impl_.datatype_extension_;
}
void ColumnDef::clear_datatype_extension() {
if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) {
delete _impl_.datatype_extension_;
}
_impl_.datatype_extension_ = nullptr;
}
ColumnDef::ColumnDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -4443,6 +4458,7 @@ ColumnDef::ColumnDef(const ColumnDef& from)
decltype(_impl_.name_){}
, decltype(_impl_.default_constraint_){}
, decltype(_impl_.comment_){}
, decltype(_impl_.datatype_extension_){nullptr}
, decltype(_impl_.data_type_){}
, decltype(_impl_.is_nullable_){}
, decltype(_impl_.semantic_type_){}
@@ -4473,6 +4489,9 @@ ColumnDef::ColumnDef(const ColumnDef& from)
_this->_impl_.comment_.Set(from._internal_comment(),
_this->GetArenaForAllocation());
}
if (from._internal_has_datatype_extension()) {
_this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_);
}
::memcpy(&_impl_.data_type_, &from._impl_.data_type_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.semantic_type_) -
reinterpret_cast<char*>(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_));
@@ -4487,6 +4506,7 @@ inline void ColumnDef::SharedCtor(
decltype(_impl_.name_){}
, decltype(_impl_.default_constraint_){}
, decltype(_impl_.comment_){}
, decltype(_impl_.datatype_extension_){nullptr}
, decltype(_impl_.data_type_){0}
, decltype(_impl_.is_nullable_){false}
, decltype(_impl_.semantic_type_){0}
@@ -4520,6 +4540,7 @@ inline void ColumnDef::SharedDtor() {
_impl_.name_.Destroy();
_impl_.default_constraint_.Destroy();
_impl_.comment_.Destroy();
if (this != internal_default_instance()) delete _impl_.datatype_extension_;
}
void ColumnDef::SetCachedSize(int size) const {
@@ -4535,6 +4556,10 @@ void ColumnDef::Clear() {
_impl_.name_.ClearToEmpty();
_impl_.default_constraint_.ClearToEmpty();
_impl_.comment_.ClearToEmpty();
if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) {
delete _impl_.datatype_extension_;
}
_impl_.datatype_extension_ = nullptr;
::memset(&_impl_.data_type_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.semantic_type_) -
reinterpret_cast<char*>(&_impl_.data_type_)) + sizeof(_impl_.semantic_type_));
@@ -4602,6 +4627,14 @@ const char* ColumnDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx
} else
goto handle_unusual;
continue;
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 7;
case 7:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -4677,6 +4710,13 @@ uint8_t* ColumnDef::_InternalSerialize(
6, this->_internal_comment(), target);
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 7;
if (this->_internal_has_datatype_extension()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(7, _Internal::datatype_extension(this),
_Internal::datatype_extension(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -4714,6 +4754,13 @@ size_t ColumnDef::ByteSizeLong() const {
this->_internal_comment());
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 7;
if (this->_internal_has_datatype_extension()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.datatype_extension_);
}
// .greptime.v1.ColumnDataType data_type = 2;
if (this->_internal_data_type() != 0) {
total_size += 1 +
@@ -4758,6 +4805,10 @@ void ColumnDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROT
if (!from._internal_comment().empty()) {
_this->_internal_set_comment(from._internal_comment());
}
if (from._internal_has_datatype_extension()) {
_this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom(
from._internal_datatype_extension());
}
if (from._internal_data_type() != 0) {
_this->_internal_set_data_type(from._internal_data_type());
}
@@ -4801,9 +4852,9 @@ void ColumnDef::InternalSwap(ColumnDef* other) {
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.semantic_type_)
+ sizeof(ColumnDef::_impl_.semantic_type_)
- PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.data_type_)>(
reinterpret_cast<char*>(&_impl_.data_type_),
reinterpret_cast<char*>(&other->_impl_.data_type_));
- PROTOBUF_FIELD_OFFSET(ColumnDef, _impl_.datatype_extension_)>(
reinterpret_cast<char*>(&_impl_.datatype_extension_),
reinterpret_cast<char*>(&other->_impl_.datatype_extension_));
}
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const {
+105
View File
@@ -2738,6 +2738,7 @@ class ColumnDef final :
kNameFieldNumber = 1,
kDefaultConstraintFieldNumber = 4,
kCommentFieldNumber = 6,
kDatatypeExtensionFieldNumber = 7,
kDataTypeFieldNumber = 2,
kIsNullableFieldNumber = 3,
kSemanticTypeFieldNumber = 5,
@@ -2784,6 +2785,24 @@ class ColumnDef final :
std::string* _internal_mutable_comment();
public:
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 7;
bool has_datatype_extension() const;
private:
bool _internal_has_datatype_extension() const;
public:
void clear_datatype_extension();
const ::greptime::v1::ColumnDataTypeExtension& datatype_extension() const;
PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_datatype_extension();
::greptime::v1::ColumnDataTypeExtension* mutable_datatype_extension();
void set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension);
private:
const ::greptime::v1::ColumnDataTypeExtension& _internal_datatype_extension() const;
::greptime::v1::ColumnDataTypeExtension* _internal_mutable_datatype_extension();
public:
void unsafe_arena_set_allocated_datatype_extension(
::greptime::v1::ColumnDataTypeExtension* datatype_extension);
::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension();
// .greptime.v1.ColumnDataType data_type = 2;
void clear_data_type();
::greptime::v1::ColumnDataType data_type() const;
@@ -2822,6 +2841,7 @@ class ColumnDef final :
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_constraint_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
::greptime::v1::ColumnDataTypeExtension* datatype_extension_;
int data_type_;
bool is_nullable_;
int semantic_type_;
@@ -5570,6 +5590,91 @@ inline void ColumnDef::set_allocated_comment(std::string* comment) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDef.comment)
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 7;
inline bool ColumnDef::_internal_has_datatype_extension() const {
return this != internal_default_instance() && _impl_.datatype_extension_ != nullptr;
}
inline bool ColumnDef::has_datatype_extension() const {
return _internal_has_datatype_extension();
}
inline const ::greptime::v1::ColumnDataTypeExtension& ColumnDef::_internal_datatype_extension() const {
const ::greptime::v1::ColumnDataTypeExtension* p = _impl_.datatype_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::ColumnDataTypeExtension&>(
::greptime::v1::_ColumnDataTypeExtension_default_instance_);
}
inline const ::greptime::v1::ColumnDataTypeExtension& ColumnDef::datatype_extension() const {
// @@protoc_insertion_point(field_get:greptime.v1.ColumnDef.datatype_extension)
return _internal_datatype_extension();
}
inline void ColumnDef::unsafe_arena_set_allocated_datatype_extension(
::greptime::v1::ColumnDataTypeExtension* datatype_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_);
}
_impl_.datatype_extension_ = datatype_extension;
if (datatype_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ColumnDef.datatype_extension)
}
inline ::greptime::v1::ColumnDataTypeExtension* ColumnDef::release_datatype_extension() {
::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_;
_impl_.datatype_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::ColumnDataTypeExtension* ColumnDef::unsafe_arena_release_datatype_extension() {
// @@protoc_insertion_point(field_release:greptime.v1.ColumnDef.datatype_extension)
::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_;
_impl_.datatype_extension_ = nullptr;
return temp;
}
inline ::greptime::v1::ColumnDataTypeExtension* ColumnDef::_internal_mutable_datatype_extension() {
if (_impl_.datatype_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation());
_impl_.datatype_extension_ = p;
}
return _impl_.datatype_extension_;
}
inline ::greptime::v1::ColumnDataTypeExtension* ColumnDef::mutable_datatype_extension() {
::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_datatype_extension();
// @@protoc_insertion_point(field_mutable:greptime.v1.ColumnDef.datatype_extension)
return _msg;
}
inline void ColumnDef::set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_);
}
if (datatype_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(datatype_extension));
if (message_arena != submessage_arena) {
datatype_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, datatype_extension, submessage_arena);
}
} else {
}
_impl_.datatype_extension_ = datatype_extension;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDef.datatype_extension)
}
// -------------------------------------------------------------------
// AddColumnLocation
+154 -34
View File
@@ -39,6 +39,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR ColumnSchema::ColumnSchema(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.column_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.datatype_extension_)*/nullptr
, /*decltype(_impl_.datatype_)*/0
, /*decltype(_impl_.semantic_type_)*/0
, /*decltype(_impl_._cached_size_)*/{}} {}
@@ -102,6 +103,7 @@ const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTI
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.column_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.datatype_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.semantic_type_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnSchema, _impl_.datatype_extension_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::Row, _internal_metadata_),
~0u, // no _extensions_
@@ -145,13 +147,14 @@ const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTI
::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
::_pbi::kInvalidFieldOffsetTag,
PROTOBUF_FIELD_OFFSET(::greptime::v1::Value, _impl_.value_data_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::greptime::v1::Rows)},
{ 8, -1, -1, sizeof(::greptime::v1::ColumnSchema)},
{ 17, -1, -1, sizeof(::greptime::v1::Row)},
{ 24, -1, -1, sizeof(::greptime::v1::Value)},
{ 18, -1, -1, sizeof(::greptime::v1::Row)},
{ 25, -1, -1, sizeof(::greptime::v1::Value)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -165,44 +168,47 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT
"\n\025greptime/v1/row.proto\022\013greptime.v1\032\030gr"
"eptime/v1/common.proto\"Q\n\004Rows\022)\n\006schema"
"\030\001 \003(\0132\031.greptime.v1.ColumnSchema\022\036\n\004row"
"s\030\002 \003(\0132\020.greptime.v1.Row\"\204\001\n\014ColumnSche"
"s\030\002 \003(\0132\020.greptime.v1.Row\"\306\001\n\014ColumnSche"
"ma\022\023\n\013column_name\030\001 \001(\t\022-\n\010datatype\030\002 \001("
"\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant"
"ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType"
"\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va"
"lue\"\234\007\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16"
"_value\030\002 \001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti"
"64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t"
"u16_value\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023"
"\n\tu64_value\030\010 \001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000"
"\022\023\n\tf64_value\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001("
"\010H\000\022\026\n\014binary_value\030\014 \001(\014H\000\022\026\n\014string_va"
"lue\030\r \001(\tH\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016dat"
"etime_value\030\017 \001(\003H\000\022 \n\026timestamp_second_"
"value\030\020 \001(\003H\000\022%\n\033timestamp_millisecond_v"
"alue\030\021 \001(\003H\000\022%\n\033timestamp_microsecond_va"
"lue\030\022 \001(\003H\000\022$\n\032timestamp_nanosecond_valu"
"e\030\023 \001(\003H\000\022\033\n\021time_second_value\030\024 \001(\003H\000\022 "
"\n\026time_millisecond_value\030\025 \001(\003H\000\022 \n\026time"
"_microsecond_value\030\026 \001(\003H\000\022\037\n\025time_nanos"
"econd_value\030\027 \001(\003H\000\022$\n\032interval_year_mon"
"th_values\030\030 \001(\005H\000\022\"\n\030interval_day_time_v"
"alues\030\031 \001(\003H\000\022K\n\036interval_month_day_nano"
"_values\030\032 \001(\0132!.greptime.v1.IntervalMont"
"hDayNanoH\000\022\037\n\025duration_second_value\030\033 \001("
"\003H\000\022$\n\032duration_millisecond_value\030\034 \001(\003H"
"\000\022$\n\032duration_microsecond_value\030\035 \001(\003H\000\022"
"#\n\031duration_nanosecond_value\030\036 \001(\003H\000B\014\n\n"
"value_dataBP\n\016io.greptime.v1B\007RowDataZ5g"
"ithub.com/GreptimeTeam/greptime-proto/go"
"/greptime/v1b\006proto3"
"\022@\n\022datatype_extension\030\004 \001(\0132$.greptime."
"v1.ColumnDataTypeExtension\")\n\003Row\022\"\n\006val"
"ues\030\001 \003(\0132\022.greptime.v1.Value\"\321\007\n\005Value\022"
"\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 \001(\005H\000"
"\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030\004 \001(\003"
"H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value\030\006 \001("
"\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023\n\tu64_value\030\010 "
"\001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000\022\023\n\tf64_value\030"
"\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(\010H\000\022\026\n\014binary_"
"value\030\014 \001(\014H\000\022\026\n\014string_value\030\r \001(\tH\000\022\024\n"
"\ndate_value\030\016 \001(\005H\000\022\030\n\016datetime_value\030\017 "
"\001(\003H\000\022 \n\026timestamp_second_value\030\020 \001(\003H\000\022"
"%\n\033timestamp_millisecond_value\030\021 \001(\003H\000\022%"
"\n\033timestamp_microsecond_value\030\022 \001(\003H\000\022$\n"
"\032timestamp_nanosecond_value\030\023 \001(\003H\000\022\033\n\021t"
"ime_second_value\030\024 \001(\003H\000\022 \n\026time_millise"
"cond_value\030\025 \001(\003H\000\022 \n\026time_microsecond_v"
"alue\030\026 \001(\003H\000\022\037\n\025time_nanosecond_value\030\027 "
"\001(\003H\000\022$\n\032interval_year_month_values\030\030 \001("
"\005H\000\022\"\n\030interval_day_time_values\030\031 \001(\003H\000\022"
"K\n\036interval_month_day_nano_values\030\032 \001(\0132"
"!.greptime.v1.IntervalMonthDayNanoH\000\022\037\n\025"
"duration_second_value\030\033 \001(\003H\000\022$\n\032duratio"
"n_millisecond_value\030\034 \001(\003H\000\022$\n\032duration_"
"microsecond_value\030\035 \001(\003H\000\022#\n\031duration_na"
"nosecond_value\030\036 \001(\003H\000\0223\n\020decimal128_val"
"ue\030\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nv"
"alue_dataBP\n\016io.greptime.v1B\007RowDataZ5gi"
"thub.com/GreptimeTeam/greptime-proto/go/"
"greptime/v1b\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2frow_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2frow_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2frow_2eproto = {
false, false, 1340, descriptor_table_protodef_greptime_2fv1_2frow_2eproto,
false, false, 1459, descriptor_table_protodef_greptime_2fv1_2frow_2eproto,
"greptime/v1/row.proto",
&descriptor_table_greptime_2fv1_2frow_2eproto_once, descriptor_table_greptime_2fv1_2frow_2eproto_deps, 1, 4,
schemas, file_default_instances, TableStruct_greptime_2fv1_2frow_2eproto::offsets,
@@ -441,8 +447,19 @@ void Rows::InternalSwap(Rows* other) {
class ColumnSchema::_Internal {
public:
static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnSchema* msg);
};
const ::greptime::v1::ColumnDataTypeExtension&
ColumnSchema::_Internal::datatype_extension(const ColumnSchema* msg) {
return *msg->_impl_.datatype_extension_;
}
void ColumnSchema::clear_datatype_extension() {
if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) {
delete _impl_.datatype_extension_;
}
_impl_.datatype_extension_ = nullptr;
}
ColumnSchema::ColumnSchema(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -454,6 +471,7 @@ ColumnSchema::ColumnSchema(const ColumnSchema& from)
ColumnSchema* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.column_name_){}
, decltype(_impl_.datatype_extension_){nullptr}
, decltype(_impl_.datatype_){}
, decltype(_impl_.semantic_type_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -467,6 +485,9 @@ ColumnSchema::ColumnSchema(const ColumnSchema& from)
_this->_impl_.column_name_.Set(from._internal_column_name(),
_this->GetArenaForAllocation());
}
if (from._internal_has_datatype_extension()) {
_this->_impl_.datatype_extension_ = new ::greptime::v1::ColumnDataTypeExtension(*from._impl_.datatype_extension_);
}
::memcpy(&_impl_.datatype_, &from._impl_.datatype_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.semantic_type_) -
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.semantic_type_));
@@ -479,6 +500,7 @@ inline void ColumnSchema::SharedCtor(
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.column_name_){}
, decltype(_impl_.datatype_extension_){nullptr}
, decltype(_impl_.datatype_){0}
, decltype(_impl_.semantic_type_){0}
, /*decltype(_impl_._cached_size_)*/{}
@@ -501,6 +523,7 @@ ColumnSchema::~ColumnSchema() {
inline void ColumnSchema::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.column_name_.Destroy();
if (this != internal_default_instance()) delete _impl_.datatype_extension_;
}
void ColumnSchema::SetCachedSize(int size) const {
@@ -514,6 +537,10 @@ void ColumnSchema::Clear() {
(void) cached_has_bits;
_impl_.column_name_.ClearToEmpty();
if (GetArenaForAllocation() == nullptr && _impl_.datatype_extension_ != nullptr) {
delete _impl_.datatype_extension_;
}
_impl_.datatype_extension_ = nullptr;
::memset(&_impl_.datatype_, 0, static_cast<size_t>(
reinterpret_cast<char*>(&_impl_.semantic_type_) -
reinterpret_cast<char*>(&_impl_.datatype_)) + sizeof(_impl_.semantic_type_));
@@ -554,6 +581,14 @@ const char* ColumnSchema::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
ptr = ctx->ParseMessage(_internal_mutable_datatype_extension(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -607,6 +642,13 @@ uint8_t* ColumnSchema::_InternalSerialize(
3, this->_internal_semantic_type(), target);
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 4;
if (this->_internal_has_datatype_extension()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(4, _Internal::datatype_extension(this),
_Internal::datatype_extension(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -630,6 +672,13 @@ size_t ColumnSchema::ByteSizeLong() const {
this->_internal_column_name());
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 4;
if (this->_internal_has_datatype_extension()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.datatype_extension_);
}
// .greptime.v1.ColumnDataType datatype = 2;
if (this->_internal_datatype() != 0) {
total_size += 1 +
@@ -663,6 +712,10 @@ void ColumnSchema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
if (!from._internal_column_name().empty()) {
_this->_internal_set_column_name(from._internal_column_name());
}
if (from._internal_has_datatype_extension()) {
_this->_internal_mutable_datatype_extension()->::greptime::v1::ColumnDataTypeExtension::MergeFrom(
from._internal_datatype_extension());
}
if (from._internal_datatype() != 0) {
_this->_internal_set_datatype(from._internal_datatype());
}
@@ -695,9 +748,9 @@ void ColumnSchema::InternalSwap(ColumnSchema* other) {
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(ColumnSchema, _impl_.semantic_type_)
+ sizeof(ColumnSchema::_impl_.semantic_type_)
- PROTOBUF_FIELD_OFFSET(ColumnSchema, _impl_.datatype_)>(
reinterpret_cast<char*>(&_impl_.datatype_),
reinterpret_cast<char*>(&other->_impl_.datatype_));
- PROTOBUF_FIELD_OFFSET(ColumnSchema, _impl_.datatype_extension_)>(
reinterpret_cast<char*>(&_impl_.datatype_extension_),
reinterpret_cast<char*>(&other->_impl_.datatype_extension_));
}
::PROTOBUF_NAMESPACE_ID::Metadata ColumnSchema::GetMetadata() const {
@@ -896,12 +949,17 @@ void Row::InternalSwap(Row* other) {
class Value::_Internal {
public:
static const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_values(const Value* msg);
static const ::greptime::v1::Decimal128& decimal128_value(const Value* msg);
};
const ::greptime::v1::IntervalMonthDayNano&
Value::_Internal::interval_month_day_nano_values(const Value* msg) {
return *msg->_impl_.value_data_.interval_month_day_nano_values_;
}
const ::greptime::v1::Decimal128&
Value::_Internal::decimal128_value(const Value* msg) {
return *msg->_impl_.value_data_.decimal128_value_;
}
void Value::set_allocated_interval_month_day_nano_values(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_value_data();
@@ -926,6 +984,30 @@ void Value::clear_interval_month_day_nano_values() {
clear_has_value_data();
}
}
void Value::set_allocated_decimal128_value(::greptime::v1::Decimal128* decimal128_value) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_value_data();
if (decimal128_value) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(decimal128_value));
if (message_arena != submessage_arena) {
decimal128_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, decimal128_value, submessage_arena);
}
set_has_decimal128_value();
_impl_.value_data_.decimal128_value_ = decimal128_value;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.decimal128_value)
}
void Value::clear_decimal128_value() {
if (_internal_has_decimal128_value()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.value_data_.decimal128_value_;
}
clear_has_value_data();
}
}
Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1064,6 +1146,11 @@ Value::Value(const Value& from)
_this->_internal_set_duration_nanosecond_value(from._internal_duration_nanosecond_value());
break;
}
case kDecimal128Value: {
_this->_internal_mutable_decimal128_value()->::greptime::v1::Decimal128::MergeFrom(
from._internal_decimal128_value());
break;
}
case VALUE_DATA_NOT_SET: {
break;
}
@@ -1228,6 +1315,12 @@ void Value::clear_value_data() {
// No need to clear
break;
}
case kDecimal128Value: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.value_data_.decimal128_value_;
}
break;
}
case VALUE_DATA_NOT_SET: {
break;
}
@@ -1495,6 +1588,14 @@ const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
} else
goto handle_unusual;
continue;
// .greptime.v1.Decimal128 decimal128_value = 31;
case 31:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 250)) {
ptr = ctx->ParseMessage(_internal_mutable_decimal128_value(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -1709,6 +1810,13 @@ uint8_t* Value::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteInt64ToArray(30, this->_internal_duration_nanosecond_value(), target);
}
// .greptime.v1.Decimal128 decimal128_value = 31;
if (_internal_has_decimal128_value()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(31, _Internal::decimal128_value(this),
_Internal::decimal128_value(this).GetCachedSize(), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
@@ -1910,6 +2018,13 @@ size_t Value::ByteSizeLong() const {
this->_internal_duration_nanosecond_value());
break;
}
// .greptime.v1.Decimal128 decimal128_value = 31;
case kDecimal128Value: {
total_size += 2 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.value_data_.decimal128_value_);
break;
}
case VALUE_DATA_NOT_SET: {
break;
}
@@ -2054,6 +2169,11 @@ void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF
_this->_internal_set_duration_nanosecond_value(from._internal_duration_nanosecond_value());
break;
}
case kDecimal128Value: {
_this->_internal_mutable_decimal128_value()->::greptime::v1::Decimal128::MergeFrom(
from._internal_decimal128_value());
break;
}
case VALUE_DATA_NOT_SET: {
break;
}
+193
View File
@@ -371,6 +371,7 @@ class ColumnSchema final :
enum : int {
kColumnNameFieldNumber = 1,
kDatatypeExtensionFieldNumber = 4,
kDatatypeFieldNumber = 2,
kSemanticTypeFieldNumber = 3,
};
@@ -388,6 +389,24 @@ class ColumnSchema final :
std::string* _internal_mutable_column_name();
public:
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 4;
bool has_datatype_extension() const;
private:
bool _internal_has_datatype_extension() const;
public:
void clear_datatype_extension();
const ::greptime::v1::ColumnDataTypeExtension& datatype_extension() const;
PROTOBUF_NODISCARD ::greptime::v1::ColumnDataTypeExtension* release_datatype_extension();
::greptime::v1::ColumnDataTypeExtension* mutable_datatype_extension();
void set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension);
private:
const ::greptime::v1::ColumnDataTypeExtension& _internal_datatype_extension() const;
::greptime::v1::ColumnDataTypeExtension* _internal_mutable_datatype_extension();
public:
void unsafe_arena_set_allocated_datatype_extension(
::greptime::v1::ColumnDataTypeExtension* datatype_extension);
::greptime::v1::ColumnDataTypeExtension* unsafe_arena_release_datatype_extension();
// .greptime.v1.ColumnDataType datatype = 2;
void clear_datatype();
::greptime::v1::ColumnDataType datatype() const;
@@ -415,6 +434,7 @@ class ColumnSchema final :
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_;
::greptime::v1::ColumnDataTypeExtension* datatype_extension_;
int datatype_;
int semantic_type_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -655,6 +675,7 @@ class Value final :
kDurationMillisecondValue = 28,
kDurationMicrosecondValue = 29,
kDurationNanosecondValue = 30,
kDecimal128Value = 31,
VALUE_DATA_NOT_SET = 0,
};
@@ -766,6 +787,7 @@ class Value final :
kDurationMillisecondValueFieldNumber = 28,
kDurationMicrosecondValueFieldNumber = 29,
kDurationNanosecondValueFieldNumber = 30,
kDecimal128ValueFieldNumber = 31,
};
// int32 i8_value = 1;
bool has_i8_value() const;
@@ -1172,6 +1194,24 @@ class Value final :
void _internal_set_duration_nanosecond_value(int64_t value);
public:
// .greptime.v1.Decimal128 decimal128_value = 31;
bool has_decimal128_value() const;
private:
bool _internal_has_decimal128_value() const;
public:
void clear_decimal128_value();
const ::greptime::v1::Decimal128& decimal128_value() const;
PROTOBUF_NODISCARD ::greptime::v1::Decimal128* release_decimal128_value();
::greptime::v1::Decimal128* mutable_decimal128_value();
void set_allocated_decimal128_value(::greptime::v1::Decimal128* decimal128_value);
private:
const ::greptime::v1::Decimal128& _internal_decimal128_value() const;
::greptime::v1::Decimal128* _internal_mutable_decimal128_value();
public:
void unsafe_arena_set_allocated_decimal128_value(
::greptime::v1::Decimal128* decimal128_value);
::greptime::v1::Decimal128* unsafe_arena_release_decimal128_value();
void clear_value_data();
ValueDataCase value_data_case() const;
// @@protoc_insertion_point(class_scope:greptime.v1.Value)
@@ -1207,6 +1247,7 @@ class Value final :
void set_has_duration_millisecond_value();
void set_has_duration_microsecond_value();
void set_has_duration_nanosecond_value();
void set_has_decimal128_value();
inline bool has_value_data() const;
inline void clear_has_value_data();
@@ -1248,6 +1289,7 @@ class Value final :
int64_t duration_millisecond_value_;
int64_t duration_microsecond_value_;
int64_t duration_nanosecond_value_;
::greptime::v1::Decimal128* decimal128_value_;
} value_data_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
@@ -1441,6 +1483,91 @@ inline void ColumnSchema::set_semantic_type(::greptime::v1::SemanticType value)
// @@protoc_insertion_point(field_set:greptime.v1.ColumnSchema.semantic_type)
}
// .greptime.v1.ColumnDataTypeExtension datatype_extension = 4;
inline bool ColumnSchema::_internal_has_datatype_extension() const {
return this != internal_default_instance() && _impl_.datatype_extension_ != nullptr;
}
inline bool ColumnSchema::has_datatype_extension() const {
return _internal_has_datatype_extension();
}
inline const ::greptime::v1::ColumnDataTypeExtension& ColumnSchema::_internal_datatype_extension() const {
const ::greptime::v1::ColumnDataTypeExtension* p = _impl_.datatype_extension_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::ColumnDataTypeExtension&>(
::greptime::v1::_ColumnDataTypeExtension_default_instance_);
}
inline const ::greptime::v1::ColumnDataTypeExtension& ColumnSchema::datatype_extension() const {
// @@protoc_insertion_point(field_get:greptime.v1.ColumnSchema.datatype_extension)
return _internal_datatype_extension();
}
inline void ColumnSchema::unsafe_arena_set_allocated_datatype_extension(
::greptime::v1::ColumnDataTypeExtension* datatype_extension) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_);
}
_impl_.datatype_extension_ = datatype_extension;
if (datatype_extension) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.ColumnSchema.datatype_extension)
}
inline ::greptime::v1::ColumnDataTypeExtension* ColumnSchema::release_datatype_extension() {
::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_;
_impl_.datatype_extension_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
if (GetArenaForAllocation() == nullptr) { delete old; }
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::ColumnDataTypeExtension* ColumnSchema::unsafe_arena_release_datatype_extension() {
// @@protoc_insertion_point(field_release:greptime.v1.ColumnSchema.datatype_extension)
::greptime::v1::ColumnDataTypeExtension* temp = _impl_.datatype_extension_;
_impl_.datatype_extension_ = nullptr;
return temp;
}
inline ::greptime::v1::ColumnDataTypeExtension* ColumnSchema::_internal_mutable_datatype_extension() {
if (_impl_.datatype_extension_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(GetArenaForAllocation());
_impl_.datatype_extension_ = p;
}
return _impl_.datatype_extension_;
}
inline ::greptime::v1::ColumnDataTypeExtension* ColumnSchema::mutable_datatype_extension() {
::greptime::v1::ColumnDataTypeExtension* _msg = _internal_mutable_datatype_extension();
// @@protoc_insertion_point(field_mutable:greptime.v1.ColumnSchema.datatype_extension)
return _msg;
}
inline void ColumnSchema::set_allocated_datatype_extension(::greptime::v1::ColumnDataTypeExtension* datatype_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.datatype_extension_);
}
if (datatype_extension) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(datatype_extension));
if (message_arena != submessage_arena) {
datatype_extension = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, datatype_extension, submessage_arena);
}
} else {
}
_impl_.datatype_extension_ = datatype_extension;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnSchema.datatype_extension)
}
// -------------------------------------------------------------------
// Row
@@ -2735,6 +2862,72 @@ inline void Value::set_duration_nanosecond_value(int64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.Value.duration_nanosecond_value)
}
// .greptime.v1.Decimal128 decimal128_value = 31;
inline bool Value::_internal_has_decimal128_value() const {
return value_data_case() == kDecimal128Value;
}
inline bool Value::has_decimal128_value() const {
return _internal_has_decimal128_value();
}
inline void Value::set_has_decimal128_value() {
_impl_._oneof_case_[0] = kDecimal128Value;
}
inline ::greptime::v1::Decimal128* Value::release_decimal128_value() {
// @@protoc_insertion_point(field_release:greptime.v1.Value.decimal128_value)
if (_internal_has_decimal128_value()) {
clear_has_value_data();
::greptime::v1::Decimal128* temp = _impl_.value_data_.decimal128_value_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.value_data_.decimal128_value_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::Decimal128& Value::_internal_decimal128_value() const {
return _internal_has_decimal128_value()
? *_impl_.value_data_.decimal128_value_
: reinterpret_cast< ::greptime::v1::Decimal128&>(::greptime::v1::_Decimal128_default_instance_);
}
inline const ::greptime::v1::Decimal128& Value::decimal128_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.decimal128_value)
return _internal_decimal128_value();
}
inline ::greptime::v1::Decimal128* Value::unsafe_arena_release_decimal128_value() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.Value.decimal128_value)
if (_internal_has_decimal128_value()) {
clear_has_value_data();
::greptime::v1::Decimal128* temp = _impl_.value_data_.decimal128_value_;
_impl_.value_data_.decimal128_value_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Value::unsafe_arena_set_allocated_decimal128_value(::greptime::v1::Decimal128* decimal128_value) {
clear_value_data();
if (decimal128_value) {
set_has_decimal128_value();
_impl_.value_data_.decimal128_value_ = decimal128_value;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.decimal128_value)
}
inline ::greptime::v1::Decimal128* Value::_internal_mutable_decimal128_value() {
if (!_internal_has_decimal128_value()) {
clear_value_data();
set_has_decimal128_value();
_impl_.value_data_.decimal128_value_ = CreateMaybeMessage< ::greptime::v1::Decimal128 >(GetArenaForAllocation());
}
return _impl_.value_data_.decimal128_value_;
}
inline ::greptime::v1::Decimal128* Value::mutable_decimal128_value() {
::greptime::v1::Decimal128* _msg = _internal_mutable_decimal128_value();
// @@protoc_insertion_point(field_mutable:greptime.v1.Value.decimal128_value)
return _msg;
}
inline bool Value::has_value_data() const {
return value_data_case() != VALUE_DATA_NOT_SET;
}
+134 -104
View File
@@ -58,6 +58,8 @@ type Column struct {
NullMask []byte `protobuf:"bytes,4,opt,name=null_mask,json=nullMask,proto3" json:"null_mask,omitempty"`
// Helpful in creating vector from column.
Datatype ColumnDataType `protobuf:"varint,5,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"`
// Extension for ColumnDataType.
DatatypeExtension *ColumnDataTypeExtension `protobuf:"bytes,6,opt,name=datatype_extension,json=datatypeExtension,proto3" json:"datatype_extension,omitempty"`
}
func (x *Column) Reset() {
@@ -127,6 +129,13 @@ func (x *Column) GetDatatype() ColumnDataType {
return ColumnDataType_BOOLEAN
}
func (x *Column) GetDatatypeExtension() *ColumnDataTypeExtension {
if x != nil {
return x.DatatypeExtension
}
return nil
}
type Column_Values struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -162,6 +171,7 @@ type Column_Values struct {
DurationMillisecondValues []int64 `protobuf:"varint,28,rep,packed,name=duration_millisecond_values,json=durationMillisecondValues,proto3" json:"duration_millisecond_values,omitempty"`
DurationMicrosecondValues []int64 `protobuf:"varint,29,rep,packed,name=duration_microsecond_values,json=durationMicrosecondValues,proto3" json:"duration_microsecond_values,omitempty"`
DurationNanosecondValues []int64 `protobuf:"varint,30,rep,packed,name=duration_nanosecond_values,json=durationNanosecondValues,proto3" json:"duration_nanosecond_values,omitempty"`
Decimal128Values []*Decimal128 `protobuf:"bytes,31,rep,name=decimal128_values,json=decimal128Values,proto3" json:"decimal128_values,omitempty"`
}
func (x *Column_Values) Reset() {
@@ -406,6 +416,13 @@ func (x *Column_Values) GetDurationNanosecondValues() []int64 {
return nil
}
func (x *Column_Values) GetDecimal128Values() []*Decimal128 {
if x != nil {
return x.Decimal128Values
}
return nil
}
var File_greptime_v1_column_proto protoreflect.FileDescriptor
var file_greptime_v1_column_proto_rawDesc = []byte{
@@ -413,7 +430,7 @@ var file_greptime_v1_column_proto_rawDesc = []byte{
0x6c, 0x75, 0x6d, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0b, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x86, 0x0d, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b,
0x6f, 0x22, 0xa1, 0x0e, 0x0a, 0x06, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x1f, 0x0a, 0x0b,
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3e, 0x0a,
0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02,
@@ -428,102 +445,111 @@ var file_greptime_v1_column_proto_rawDesc = []byte{
0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64,
0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x1a, 0x90, 0x0b, 0x0a, 0x06, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
0x1d, 0x0a, 0x0a, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20,
0x03, 0x28, 0x05, 0x52, 0x09, 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d,
0x0a, 0x0a, 0x69, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,
0x28, 0x05, 0x52, 0x09, 0x69, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a,
0x0a, 0x69, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28,
0x03, 0x52, 0x09, 0x69, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09,
0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0d, 0x52,
0x08, 0x75, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x31, 0x36,
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75,
0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x33, 0x32, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x09, 0x75, 0x33,
0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x36, 0x34, 0x5f, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x75, 0x36, 0x34,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x33, 0x32, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x02, 0x52, 0x09, 0x66, 0x33, 0x32, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x01, 0x52, 0x09, 0x66, 0x36, 0x34, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0c, 0x62, 0x69,
0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74,
0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x03, 0x28,
0x09, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
0x1f, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0e,
0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x12, 0x27, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74,
0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d,
0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73,
0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x03, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x14, 0x20, 0x03, 0x28,
0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c,
0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x15,
0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74,
0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69,
0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f,
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x17, 0x20,
0x03, 0x28, 0x03, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3b, 0x0a, 0x1a, 0x69, 0x6e, 0x74,
0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68,
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x03, 0x28, 0x05, 0x52, 0x17, 0x69,
0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76,
0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76,
0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
0x65, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74,
0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f,
0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65,
0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x1b, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1c, 0x20, 0x03, 0x28,
0x03, 0x52, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6c, 0x6c, 0x69,
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1d, 0x20, 0x03, 0x28,
0x03, 0x52, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x63, 0x72, 0x6f,
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3c, 0x0a, 0x1a,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1e, 0x20, 0x03, 0x28, 0x03,
0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74,
0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65,
0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74,
0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x1a, 0xd6, 0x0b, 0x0a,
0x06, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x69, 0x38, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x05, 0x52, 0x08, 0x69, 0x38, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x69, 0x31, 0x36, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x05, 0x52, 0x09, 0x69, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x69, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x05,
0x20, 0x03, 0x28, 0x0d, 0x52, 0x08, 0x75, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d,
0x0a, 0x0a, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03,
0x28, 0x0d, 0x52, 0x09, 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a,
0x0a, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28,
0x0d, 0x52, 0x09, 0x75, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a,
0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x04,
0x52, 0x09, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66,
0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x02, 0x52,
0x09, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x66, 0x36,
0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x01, 0x52, 0x09,
0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x6f, 0x6f,
0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x08, 0x52, 0x0a,
0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69,
0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28,
0x0c, 0x52, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
0x23, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x0d, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x05, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d,
0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0f, 0x20, 0x03, 0x28, 0x03, 0x52, 0x0e,
0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36,
0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x10, 0x20, 0x03, 0x28, 0x03, 0x52,
0x15, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x11, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x12, 0x20, 0x03, 0x28, 0x03, 0x52, 0x1a,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x13, 0x20, 0x03, 0x28, 0x03, 0x52,
0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x74, 0x69,
0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x14, 0x20, 0x03, 0x28, 0x03, 0x52, 0x10, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65,
0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x73, 0x18, 0x15, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d,
0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x12, 0x36, 0x0a, 0x17, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x16, 0x20, 0x03, 0x28,
0x03, 0x52, 0x15, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65,
0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x18, 0x17, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61,
0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x3b,
0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f,
0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x03,
0x28, 0x05, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72,
0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x37, 0x0a, 0x18, 0x69,
0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65,
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, 0x20, 0x03, 0x28, 0x03, 0x52, 0x15, 0x69,
0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x12, 0x65, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72,
0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x52,
0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61,
0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x64,
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x03, 0x52, 0x14, 0x64, 0x75, 0x72,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69,
0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x1c, 0x20, 0x03, 0x28, 0x03, 0x52, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x3e, 0x0a, 0x1b, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69,
0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x1d, 0x20, 0x03, 0x28, 0x03, 0x52, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x3c, 0x0a, 0x1a, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61,
0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
0x1e, 0x20, 0x03, 0x28, 0x03, 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e,
0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12,
0x44, 0x0a, 0x11, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x73, 0x18, 0x1f, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c,
0x31, 0x32, 0x38, 0x52, 0x10, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x73, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -544,18 +570,22 @@ var file_greptime_v1_column_proto_goTypes = []interface{}{
(*Column_Values)(nil), // 1: greptime.v1.Column.Values
(SemanticType)(0), // 2: greptime.v1.SemanticType
(ColumnDataType)(0), // 3: greptime.v1.ColumnDataType
(*IntervalMonthDayNano)(nil), // 4: greptime.v1.IntervalMonthDayNano
(*ColumnDataTypeExtension)(nil), // 4: greptime.v1.ColumnDataTypeExtension
(*IntervalMonthDayNano)(nil), // 5: greptime.v1.IntervalMonthDayNano
(*Decimal128)(nil), // 6: greptime.v1.Decimal128
}
var file_greptime_v1_column_proto_depIdxs = []int32{
2, // 0: greptime.v1.Column.semantic_type:type_name -> greptime.v1.SemanticType
1, // 1: greptime.v1.Column.values:type_name -> greptime.v1.Column.Values
3, // 2: greptime.v1.Column.datatype:type_name -> greptime.v1.ColumnDataType
4, // 3: greptime.v1.Column.Values.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano
4, // [4:4] is the sub-list for method output_type
4, // [4:4] is the sub-list for method input_type
4, // [4:4] is the sub-list for extension type_name
4, // [4:4] is the sub-list for extension extendee
0, // [0:4] is the sub-list for field type_name
4, // 3: greptime.v1.Column.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
5, // 4: greptime.v1.Column.Values.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano
6, // 5: greptime.v1.Column.Values.decimal128_values:type_name -> greptime.v1.Decimal128
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_greptime_v1_column_proto_init() }
+294 -53
View File
@@ -116,6 +116,7 @@ const (
ColumnDataType_DURATION_MILLISECOND ColumnDataType = 27
ColumnDataType_DURATION_MICROSECOND ColumnDataType = 28
ColumnDataType_DURATION_NANOSECOND ColumnDataType = 29
ColumnDataType_DECIMAL128 ColumnDataType = 30
)
// Enum value maps for ColumnDataType.
@@ -151,6 +152,7 @@ var (
27: "DURATION_MILLISECOND",
28: "DURATION_MICROSECOND",
29: "DURATION_NANOSECOND",
30: "DECIMAL128",
}
ColumnDataType_value = map[string]int32{
"BOOLEAN": 0,
@@ -183,6 +185,7 @@ var (
"DURATION_MILLISECOND": 27,
"DURATION_MICROSECOND": 28,
"DURATION_NANOSECOND": 29,
"DECIMAL128": 30,
}
)
@@ -741,6 +744,185 @@ func (x *IntervalMonthDayNano) GetNanoseconds() int64 {
return 0
}
// (hi: high 64 bits, lo: low 64 bits) are used to keep the decimal128 value.
type Decimal128 struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hi int64 `protobuf:"varint,1,opt,name=hi,proto3" json:"hi,omitempty"`
Lo int64 `protobuf:"varint,2,opt,name=lo,proto3" json:"lo,omitempty"`
}
func (x *Decimal128) Reset() {
*x = Decimal128{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Decimal128) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Decimal128) ProtoMessage() {}
func (x *Decimal128) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Decimal128.ProtoReflect.Descriptor instead.
func (*Decimal128) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{9}
}
func (x *Decimal128) GetHi() int64 {
if x != nil {
return x.Hi
}
return 0
}
func (x *Decimal128) GetLo() int64 {
if x != nil {
return x.Lo
}
return 0
}
// Type extension for some complex types
type ColumnDataTypeExtension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to TypeExt:
//
// *ColumnDataTypeExtension_DecimalType
TypeExt isColumnDataTypeExtension_TypeExt `protobuf_oneof:"type_ext"`
}
func (x *ColumnDataTypeExtension) Reset() {
*x = ColumnDataTypeExtension{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ColumnDataTypeExtension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ColumnDataTypeExtension) ProtoMessage() {}
func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead.
func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{10}
}
func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt {
if m != nil {
return m.TypeExt
}
return nil
}
func (x *ColumnDataTypeExtension) GetDecimalType() *DecimalTypeExtension {
if x, ok := x.GetTypeExt().(*ColumnDataTypeExtension_DecimalType); ok {
return x.DecimalType
}
return nil
}
type isColumnDataTypeExtension_TypeExt interface {
isColumnDataTypeExtension_TypeExt()
}
type ColumnDataTypeExtension_DecimalType struct {
DecimalType *DecimalTypeExtension `protobuf:"bytes,1,opt,name=decimal_type,json=decimalType,proto3,oneof"`
}
func (*ColumnDataTypeExtension_DecimalType) isColumnDataTypeExtension_TypeExt() {}
type DecimalTypeExtension struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Precision int32 `protobuf:"varint,1,opt,name=precision,proto3" json:"precision,omitempty"`
Scale int32 `protobuf:"varint,2,opt,name=scale,proto3" json:"scale,omitempty"`
}
func (x *DecimalTypeExtension) Reset() {
*x = DecimalTypeExtension{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DecimalTypeExtension) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DecimalTypeExtension) ProtoMessage() {}
func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[11]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead.
func (*DecimalTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{11}
}
func (x *DecimalTypeExtension) GetPrecision() int32 {
if x != nil {
return x.Precision
}
return 0
}
func (x *DecimalTypeExtension) GetScale() int32 {
if x != nil {
return x.Scale
}
return 0
}
var File_greptime_v1_common_proto protoreflect.FileDescriptor
var file_greptime_v1_common_proto_rawDesc = []byte{
@@ -801,50 +983,66 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x04, 0x64, 0x61,
0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x73, 0x2a, 0x31, 0x0a, 0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a, 0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a,
0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45,
0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02, 0x2a, 0xa8, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f,
0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10,
0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05,
0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34,
0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a,
0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36, 0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e,
0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10,
0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b,
0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54, 0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42,
0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e,
0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a,
0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54,
0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d,
0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15,
0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53,
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11, 0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53,
0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49,
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45,
0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13,
0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e,
0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f,
0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11,
0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d,
0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f,
0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19,
0x12, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x43,
0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f,
0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1b, 0x12,
0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x43, 0x52,
0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x55, 0x52,
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
0x10, 0x1d, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6f, 0x6e, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31,
0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
0x68, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02,
0x6c, 0x6f, 0x22, 0x6d, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61,
0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x46, 0x0a,
0x0c, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61,
0x6c, 0x54, 0x79, 0x70, 0x65, 0x42, 0x0a, 0x0a, 0x08, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78,
0x74, 0x22, 0x4a, 0x0a, 0x14, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x54, 0x79, 0x70, 0x65,
0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x72, 0x65,
0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x09, 0x70, 0x72,
0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2a, 0x31, 0x0a,
0x0c, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x07, 0x0a,
0x03, 0x54, 0x41, 0x47, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x10,
0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x10, 0x02,
0x2a, 0xb8, 0x04, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54,
0x79, 0x70, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x42, 0x4f, 0x4f, 0x4c, 0x45, 0x41, 0x4e, 0x10, 0x00,
0x12, 0x08, 0x0a, 0x04, 0x49, 0x4e, 0x54, 0x38, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e,
0x54, 0x31, 0x36, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x03,
0x12, 0x09, 0x0a, 0x05, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x04, 0x12, 0x09, 0x0a, 0x05, 0x55,
0x49, 0x4e, 0x54, 0x38, 0x10, 0x05, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x31, 0x36,
0x10, 0x06, 0x12, 0x0a, 0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x33, 0x32, 0x10, 0x07, 0x12, 0x0a,
0x0a, 0x06, 0x55, 0x49, 0x4e, 0x54, 0x36, 0x34, 0x10, 0x08, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c,
0x4f, 0x41, 0x54, 0x33, 0x32, 0x10, 0x09, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x4c, 0x4f, 0x41, 0x54,
0x36, 0x34, 0x10, 0x0a, 0x12, 0x0a, 0x0a, 0x06, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x0b,
0x12, 0x0a, 0x0a, 0x06, 0x53, 0x54, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x0c, 0x12, 0x08, 0x0a, 0x04,
0x44, 0x41, 0x54, 0x45, 0x10, 0x0d, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x41, 0x54, 0x45, 0x54, 0x49,
0x4d, 0x45, 0x10, 0x0e, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d,
0x50, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x0f, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49,
0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43,
0x4f, 0x4e, 0x44, 0x10, 0x10, 0x12, 0x19, 0x0a, 0x15, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41,
0x4d, 0x50, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x11,
0x12, 0x18, 0x0a, 0x14, 0x54, 0x49, 0x4d, 0x45, 0x53, 0x54, 0x41, 0x4d, 0x50, 0x5f, 0x4e, 0x41,
0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x12, 0x12, 0x0f, 0x0a, 0x0b, 0x54, 0x49,
0x4d, 0x45, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x13, 0x12, 0x14, 0x0a, 0x10, 0x54,
0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10,
0x14, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53,
0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x15, 0x12, 0x13, 0x0a, 0x0f, 0x54, 0x49, 0x4d, 0x45, 0x5f,
0x4e, 0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x16, 0x12, 0x17, 0x0a, 0x13,
0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x59, 0x45, 0x41, 0x52, 0x5f, 0x4d, 0x4f,
0x4e, 0x54, 0x48, 0x10, 0x17, 0x12, 0x15, 0x0a, 0x11, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41,
0x4c, 0x5f, 0x44, 0x41, 0x59, 0x5f, 0x54, 0x49, 0x4d, 0x45, 0x10, 0x18, 0x12, 0x1b, 0x0a, 0x17,
0x49, 0x4e, 0x54, 0x45, 0x52, 0x56, 0x41, 0x4c, 0x5f, 0x4d, 0x4f, 0x4e, 0x54, 0x48, 0x5f, 0x44,
0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x13, 0x0a, 0x0f, 0x44, 0x55, 0x52,
0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1a, 0x12, 0x18,
0x0a, 0x14, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x4c, 0x4c, 0x49,
0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1b, 0x12, 0x18, 0x0a, 0x14, 0x44, 0x55, 0x52, 0x41,
0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4d, 0x49, 0x43, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44,
0x10, 0x1c, 0x12, 0x17, 0x0a, 0x13, 0x44, 0x55, 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4e,
0x41, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x1d, 0x12, 0x0e, 0x0a, 0x0a, 0x44,
0x45, 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x42, 0x4f, 0x0a, 0x0e, 0x69,
0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43,
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72,
0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -860,7 +1058,7 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte {
}
var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_greptime_v1_common_proto_goTypes = []interface{}{
(SemanticType)(0), // 0: greptime.v1.SemanticType
(ColumnDataType)(0), // 1: greptime.v1.ColumnDataType
@@ -873,20 +1071,24 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{
(*AffectedRows)(nil), // 8: greptime.v1.AffectedRows
(*FlightMetadata)(nil), // 9: greptime.v1.FlightMetadata
(*IntervalMonthDayNano)(nil), // 10: greptime.v1.IntervalMonthDayNano
nil, // 11: greptime.v1.RequestHeader.TracingContextEntry
(*Decimal128)(nil), // 11: greptime.v1.Decimal128
(*ColumnDataTypeExtension)(nil), // 12: greptime.v1.ColumnDataTypeExtension
(*DecimalTypeExtension)(nil), // 13: greptime.v1.DecimalTypeExtension
nil, // 14: greptime.v1.RequestHeader.TracingContextEntry
}
var file_greptime_v1_common_proto_depIdxs = []int32{
5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
11, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry
14, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry
4, // 2: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
8, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
13, // 6: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension
7, // [7:7] is the sub-list for method output_type
7, // [7:7] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
}
func init() { file_greptime_v1_common_proto_init() }
@@ -1003,18 +1205,57 @@ func file_greptime_v1_common_proto_init() {
return nil
}
}
file_greptime_v1_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Decimal128); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnDataTypeExtension); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DecimalTypeExtension); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
file_greptime_v1_common_proto_msgTypes[3].OneofWrappers = []interface{}{
(*AuthHeader_Basic)(nil),
(*AuthHeader_Token)(nil),
}
file_greptime_v1_common_proto_msgTypes[10].OneofWrappers = []interface{}{
(*ColumnDataTypeExtension_DecimalType)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_common_proto_rawDesc,
NumEnums: 2,
NumMessages: 10,
NumMessages: 13,
NumExtensions: 0,
NumServices: 0,
},
+42 -25
View File
@@ -959,6 +959,8 @@ type ColumnDef struct {
DefaultConstraint []byte `protobuf:"bytes,4,opt,name=default_constraint,json=defaultConstraint,proto3" json:"default_constraint,omitempty"`
SemanticType SemanticType `protobuf:"varint,5,opt,name=semantic_type,json=semanticType,proto3,enum=greptime.v1.SemanticType" json:"semantic_type,omitempty"`
Comment string `protobuf:"bytes,6,opt,name=comment,proto3" json:"comment,omitempty"`
// Extension for ColumnDataType.
DatatypeExtension *ColumnDataTypeExtension `protobuf:"bytes,7,opt,name=datatype_extension,json=datatypeExtension,proto3" json:"datatype_extension,omitempty"`
}
func (x *ColumnDef) Reset() {
@@ -1035,6 +1037,13 @@ func (x *ColumnDef) GetComment() string {
return ""
}
func (x *ColumnDef) GetDatatypeExtension() *ColumnDataTypeExtension {
if x != nil {
return x.DatatypeExtension
}
return nil
}
type AddColumnLocation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -1231,7 +1240,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a,
0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x83, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c,
0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61,
0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
@@ -1247,24 +1256,30 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74,
0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xb7,
0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f,
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61,
0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,
0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a,
0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a,
0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70,
0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53,
0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44,
0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41,
0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c,
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61,
0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54,
0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a,
0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42,
0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x33,
}
var (
@@ -1301,6 +1316,7 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
nil, // 16: greptime.v1.CreateDatabaseExpr.OptionsEntry
(ColumnDataType)(0), // 17: greptime.v1.ColumnDataType
(SemanticType)(0), // 18: greptime.v1.SemanticType
(*ColumnDataTypeExtension)(nil), // 19: greptime.v1.ColumnDataTypeExtension
}
var file_greptime_v1_ddl_proto_depIdxs = []int32{
5, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
@@ -1323,12 +1339,13 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
14, // 17: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
17, // 18: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
18, // 19: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
0, // 20: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
21, // [21:21] is the sub-list for method output_type
21, // [21:21] is the sub-list for method input_type
21, // [21:21] is the sub-list for extension type_name
21, // [21:21] is the sub-list for extension extendee
0, // [0:21] is the sub-list for field type_name
19, // 20: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
0, // 21: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
22, // [22:22] is the sub-list for method output_type
22, // [22:22] is the sub-list for method input_type
22, // [22:22] is the sub-list for extension type_name
22, // [22:22] is the sub-list for extension extendee
0, // [0:22] is the sub-list for field type_name
}
func init() { file_greptime_v1_ddl_proto_init() }
+147 -109
View File
@@ -97,6 +97,8 @@ type ColumnSchema struct {
ColumnName string `protobuf:"bytes,1,opt,name=column_name,json=columnName,proto3" json:"column_name,omitempty"`
Datatype ColumnDataType `protobuf:"varint,2,opt,name=datatype,proto3,enum=greptime.v1.ColumnDataType" json:"datatype,omitempty"`
SemanticType SemanticType `protobuf:"varint,3,opt,name=semantic_type,json=semanticType,proto3,enum=greptime.v1.SemanticType" json:"semantic_type,omitempty"`
// Extension for ColumnDataType.
DatatypeExtension *ColumnDataTypeExtension `protobuf:"bytes,4,opt,name=datatype_extension,json=datatypeExtension,proto3" json:"datatype_extension,omitempty"`
}
func (x *ColumnSchema) Reset() {
@@ -152,6 +154,13 @@ func (x *ColumnSchema) GetSemanticType() SemanticType {
return SemanticType_TAG
}
func (x *ColumnSchema) GetDatatypeExtension() *ColumnDataTypeExtension {
if x != nil {
return x.DatatypeExtension
}
return nil
}
type Row struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -236,6 +245,7 @@ type Value struct {
// *Value_DurationMillisecondValue
// *Value_DurationMicrosecondValue
// *Value_DurationNanosecondValue
// *Value_Decimal128Value
ValueData isValue_ValueData `protobuf_oneof:"value_data"`
}
@@ -488,6 +498,13 @@ func (x *Value) GetDurationNanosecondValue() int64 {
return 0
}
func (x *Value) GetDecimal128Value() *Decimal128 {
if x, ok := x.GetValueData().(*Value_Decimal128Value); ok {
return x.Decimal128Value
}
return nil
}
type isValue_ValueData interface {
isValue_ValueData()
}
@@ -612,6 +629,10 @@ type Value_DurationNanosecondValue struct {
DurationNanosecondValue int64 `protobuf:"varint,30,opt,name=duration_nanosecond_value,json=durationNanosecondValue,proto3,oneof"`
}
type Value_Decimal128Value struct {
Decimal128Value *Decimal128 `protobuf:"bytes,31,opt,name=decimal128_value,json=decimal128Value,proto3,oneof"`
}
func (*Value_I8Value) isValue_ValueData() {}
func (*Value_I16Value) isValue_ValueData() {}
@@ -672,6 +693,8 @@ func (*Value_DurationMicrosecondValue) isValue_ValueData() {}
func (*Value_DurationNanosecondValue) isValue_ValueData() {}
func (*Value_Decimal128Value) isValue_ValueData() {}
var File_greptime_v1_row_proto protoreflect.FileDescriptor
var file_greptime_v1_row_proto_rawDesc = []byte{
@@ -685,7 +708,7 @@ var file_greptime_v1_row_proto_rawDesc = []byte{
0x61, 0x52, 0x06, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x12, 0x24, 0x0a, 0x04, 0x72, 0x6f, 0x77,
0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x6f, 0x77, 0x52, 0x04, 0x72, 0x6f, 0x77, 0x73, 0x22,
0xa8, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
0xfd, 0x01, 0x0a, 0x0c, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x37, 0x0a, 0x08, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
@@ -695,106 +718,116 @@ var file_greptime_v1_row_proto_rawDesc = []byte{
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65,
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x22, 0x31, 0x0a, 0x03, 0x52, 0x6f,
0x77, 0x12, 0x2a, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0xa3, 0x0b,
0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x69, 0x38, 0x5f, 0x76, 0x61,
0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x07, 0x69, 0x38, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x31, 0x36, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69, 0x33, 0x32, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x12, 0x1b, 0x0a, 0x08, 0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20,
0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x07, 0x75, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d,
0x0a, 0x09, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28,
0x0d, 0x48, 0x00, 0x52, 0x08, 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a,
0x09, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d,
0x48, 0x00, 0x52, 0x08, 0x75, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09,
0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x48,
0x00, 0x52, 0x08, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x66,
0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00,
0x52, 0x08, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x66, 0x36,
0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52,
0x08, 0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f,
0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52,
0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x62, 0x69,
0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c,
0x48, 0x00, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x0d, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x09, 0x64, 0x61, 0x74, 0x65,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0e, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d,
0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36,
0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x53, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x19, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x1b, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x12, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x74, 0x69,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x13, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00,
0x52, 0x18, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4e, 0x61, 0x6e, 0x6f, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x11, 0x74, 0x69,
0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x14, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x69, 0x6d, 0x65, 0x53, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65,
0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65,
0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x16, 0x20, 0x01, 0x28, 0x03,
0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a, 0x15, 0x74, 0x69, 0x6d, 0x65,
0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x13, 0x74, 0x69, 0x6d, 0x65, 0x4e,
0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3d,
0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x79, 0x65, 0x61, 0x72, 0x5f,
0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x18, 0x20, 0x01,
0x28, 0x05, 0x48, 0x00, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x59, 0x65,
0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x39, 0x0a,
0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x74, 0x69,
0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x03, 0x48,
0x00, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x44, 0x61, 0x79, 0x54, 0x69,
0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x67, 0x0a, 0x1e, 0x69, 0x6e, 0x74, 0x65,
0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x64, 0x61, 0x79, 0x5f, 0x6e,
0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x49,
0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e,
0x61, 0x6e, 0x6f, 0x48, 0x00, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d,
0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x12, 0x34, 0x0a, 0x15, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x03,
0x48, 0x00, 0x52, 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x64, 0x75, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x64,
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a, 0x64, 0x75, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x64,
0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f,
0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x19, 0x64, 0x75, 0x72, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x17, 0x64, 0x75,
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x64,
0x61, 0x74, 0x61, 0x42, 0x50, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x07, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x5a, 0x35,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61,
0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54,
0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61,
0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22,
0x31, 0x0a, 0x03, 0x52, 0x6f, 0x77, 0x12, 0x2a, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x22, 0xe9, 0x0b, 0x0a, 0x05, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08,
0x69, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00,
0x52, 0x07, 0x69, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x31, 0x36,
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08,
0x69, 0x31, 0x36, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x33, 0x32, 0x5f,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x69,
0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x36, 0x34, 0x5f, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x36,
0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x08, 0x75, 0x38, 0x5f, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x07, 0x75, 0x38, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x31, 0x36, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x18, 0x06, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x08, 0x75, 0x31, 0x36, 0x56, 0x61, 0x6c,
0x75, 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x07, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x08, 0x75, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x12, 0x1d, 0x0a, 0x09, 0x75, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08,
0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x08, 0x75, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x12, 0x1d, 0x0a, 0x09, 0x66, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20,
0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x08, 0x66, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
0x1d, 0x0a, 0x09, 0x66, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01,
0x28, 0x01, 0x48, 0x00, 0x52, 0x08, 0x66, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f,
0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0b, 0x20, 0x01,
0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
0x23, 0x0a, 0x0c, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x0c, 0x20, 0x01, 0x28, 0x0c, 0x48, 0x00, 0x52, 0x0b, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x56,
0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74,
0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x64, 0x61, 0x74,
0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52,
0x09, 0x64, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x27, 0x0a, 0x0e, 0x64, 0x61,
0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, 0x01,
0x28, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x61, 0x74, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x10, 0x20,
0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a, 0x1b, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x11, 0x20, 0x01, 0x28, 0x03,
0x48, 0x00, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d, 0x69, 0x6c,
0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x40, 0x0a,
0x1b, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f,
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x12, 0x20, 0x01,
0x28, 0x03, 0x48, 0x00, 0x52, 0x19, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x4d,
0x69, 0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
0x3e, 0x0a, 0x1a, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6e, 0x61, 0x6e,
0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x13, 0x20,
0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x18, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
0x2c, 0x0a, 0x11, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x14, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0f, 0x74, 0x69,
0x6d, 0x65, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a,
0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e,
0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x15, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52,
0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x36, 0x0a, 0x16, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6d, 0x69,
0x63, 0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x16, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x14, 0x74, 0x69, 0x6d, 0x65, 0x4d, 0x69, 0x63,
0x72, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x34, 0x0a,
0x15, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x17, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x13,
0x74, 0x69, 0x6d, 0x65, 0x4e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61,
0x6c, 0x75, 0x65, 0x12, 0x3d, 0x0a, 0x1a, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f,
0x79, 0x65, 0x61, 0x72, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x73, 0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x17, 0x69, 0x6e, 0x74, 0x65, 0x72,
0x76, 0x61, 0x6c, 0x59, 0x65, 0x61, 0x72, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x56, 0x61, 0x6c, 0x75,
0x65, 0x73, 0x12, 0x39, 0x0a, 0x18, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x64,
0x61, 0x79, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x19,
0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x15, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c,
0x44, 0x61, 0x79, 0x54, 0x69, 0x6d, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x67, 0x0a,
0x1e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x5f, 0x6d, 0x6f, 0x6e, 0x74, 0x68, 0x5f,
0x64, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18,
0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74,
0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f, 0x48, 0x00, 0x52, 0x1a, 0x69, 0x6e, 0x74, 0x65,
0x72, 0x76, 0x61, 0x6c, 0x4d, 0x6f, 0x6e, 0x74, 0x68, 0x44, 0x61, 0x79, 0x4e, 0x61, 0x6e, 0x6f,
0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x15, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69,
0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x1b, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x13, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f,
0x6e, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x03,
0x48, 0x00, 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x6c, 0x6c,
0x69, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3e, 0x0a, 0x1a,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x65,
0x63, 0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x03,
0x48, 0x00, 0x52, 0x18, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x69, 0x63, 0x72,
0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x19,
0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1e, 0x20, 0x01, 0x28, 0x03, 0x48,
0x00, 0x52, 0x17, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x61, 0x6e, 0x6f, 0x73,
0x65, 0x63, 0x6f, 0x6e, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x44, 0x0a, 0x10, 0x64, 0x65,
0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x1f,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x48, 0x00, 0x52,
0x0f, 0x64, 0x65, 0x63, 0x69, 0x6d, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x56, 0x61, 0x6c, 0x75, 0x65,
0x42, 0x0c, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x42, 0x50,
0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x42, 0x07, 0x52, 0x6f, 0x77, 0x44, 0x61, 0x74, 0x61, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75,
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65,
0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -817,20 +850,24 @@ var file_greptime_v1_row_proto_goTypes = []interface{}{
(*Value)(nil), // 3: greptime.v1.Value
(ColumnDataType)(0), // 4: greptime.v1.ColumnDataType
(SemanticType)(0), // 5: greptime.v1.SemanticType
(*IntervalMonthDayNano)(nil), // 6: greptime.v1.IntervalMonthDayNano
(*ColumnDataTypeExtension)(nil), // 6: greptime.v1.ColumnDataTypeExtension
(*IntervalMonthDayNano)(nil), // 7: greptime.v1.IntervalMonthDayNano
(*Decimal128)(nil), // 8: greptime.v1.Decimal128
}
var file_greptime_v1_row_proto_depIdxs = []int32{
1, // 0: greptime.v1.Rows.schema:type_name -> greptime.v1.ColumnSchema
2, // 1: greptime.v1.Rows.rows:type_name -> greptime.v1.Row
4, // 2: greptime.v1.ColumnSchema.datatype:type_name -> greptime.v1.ColumnDataType
5, // 3: greptime.v1.ColumnSchema.semantic_type:type_name -> greptime.v1.SemanticType
3, // 4: greptime.v1.Row.values:type_name -> greptime.v1.Value
6, // 5: greptime.v1.Value.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano
6, // [6:6] is the sub-list for method output_type
6, // [6:6] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
6, // 4: greptime.v1.ColumnSchema.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
3, // 5: greptime.v1.Row.values:type_name -> greptime.v1.Value
7, // 6: greptime.v1.Value.interval_month_day_nano_values:type_name -> greptime.v1.IntervalMonthDayNano
8, // 7: greptime.v1.Value.decimal128_value:type_name -> greptime.v1.Decimal128
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_greptime_v1_row_proto_init() }
@@ -920,6 +957,7 @@ func file_greptime_v1_row_proto_init() {
(*Value_DurationMillisecondValue)(nil),
(*Value_DurationMicrosecondValue)(nil),
(*Value_DurationNanosecondValue)(nil),
(*Value_Decimal128Value)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
+666 -28
View File
@@ -119,6 +119,33 @@ public final class Columns {
* @return The datatype.
*/
io.greptime.v1.Common.ColumnDataType getDatatype();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
* @return Whether the datatypeExtension field is set.
*/
boolean hasDatatypeExtension();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
* @return The datatypeExtension.
*/
io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder();
}
/**
* Protobuf type {@code greptime.v1.Column}
@@ -205,6 +232,19 @@ public final class Columns {
datatype_ = rawValue;
break;
}
case 50: {
io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null;
if (datatypeExtension_ != null) {
subBuilder = datatypeExtension_.toBuilder();
}
datatypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(datatypeExtension_);
datatypeExtension_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -767,6 +807,30 @@ public final class Columns {
* @return The durationNanosecondValues at the given index.
*/
long getDurationNanosecondValues(int index);
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
java.util.List<io.greptime.v1.Common.Decimal128>
getDecimal128ValuesList();
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
io.greptime.v1.Common.Decimal128 getDecimal128Values(int index);
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
int getDecimal128ValuesCount();
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
java.util.List<? extends io.greptime.v1.Common.Decimal128OrBuilder>
getDecimal128ValuesOrBuilderList();
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValuesOrBuilder(
int index);
}
/**
* Protobuf type {@code greptime.v1.Column.Values}
@@ -811,6 +875,7 @@ public final class Columns {
durationMillisecondValues_ = emptyLongList();
durationMicrosecondValues_ = emptyLongList();
durationNanosecondValues_ = emptyLongList();
decimal128Values_ = java.util.Collections.emptyList();
}
@java.lang.Override
@@ -1437,6 +1502,15 @@ public final class Columns {
input.popLimit(limit);
break;
}
case 250: {
if (!((mutable_bitField0_ & 0x40000000) != 0)) {
decimal128Values_ = new java.util.ArrayList<io.greptime.v1.Common.Decimal128>();
mutable_bitField0_ |= 0x40000000;
}
decimal128Values_.add(
input.readMessage(io.greptime.v1.Common.Decimal128.parser(), extensionRegistry));
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -1544,6 +1618,9 @@ public final class Columns {
if (((mutable_bitField0_ & 0x20000000) != 0)) {
durationNanosecondValues_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x40000000) != 0)) {
decimal128Values_ = java.util.Collections.unmodifiableList(decimal128Values_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
@@ -2419,6 +2496,46 @@ public final class Columns {
}
private int durationNanosecondValuesMemoizedSerializedSize = -1;
public static final int DECIMAL128_VALUES_FIELD_NUMBER = 31;
private java.util.List<io.greptime.v1.Common.Decimal128> decimal128Values_;
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
@java.lang.Override
public java.util.List<io.greptime.v1.Common.Decimal128> getDecimal128ValuesList() {
return decimal128Values_;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
@java.lang.Override
public java.util.List<? extends io.greptime.v1.Common.Decimal128OrBuilder>
getDecimal128ValuesOrBuilderList() {
return decimal128Values_;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
@java.lang.Override
public int getDecimal128ValuesCount() {
return decimal128Values_.size();
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.Decimal128 getDecimal128Values(int index) {
return decimal128Values_.get(index);
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValuesOrBuilder(
int index) {
return decimal128Values_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -2632,6 +2749,9 @@ public final class Columns {
for (int i = 0; i < durationNanosecondValues_.size(); i++) {
output.writeInt64NoTag(durationNanosecondValues_.getLong(i));
}
for (int i = 0; i < decimal128Values_.size(); i++) {
output.writeMessage(31, decimal128Values_.get(i));
}
unknownFields.writeTo(output);
}
@@ -3031,6 +3151,10 @@ public final class Columns {
}
durationNanosecondValuesMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < decimal128Values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, decimal128Values_.get(i));
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -3106,6 +3230,8 @@ public final class Columns {
.equals(other.getDurationMicrosecondValuesList())) return false;
if (!getDurationNanosecondValuesList()
.equals(other.getDurationNanosecondValuesList())) return false;
if (!getDecimal128ValuesList()
.equals(other.getDecimal128ValuesList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -3237,6 +3363,10 @@ public final class Columns {
hash = (37 * hash) + DURATION_NANOSECOND_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getDurationNanosecondValuesList().hashCode();
}
if (getDecimal128ValuesCount() > 0) {
hash = (37 * hash) + DECIMAL128_VALUES_FIELD_NUMBER;
hash = (53 * hash) + getDecimal128ValuesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -3366,6 +3496,7 @@ public final class Columns {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIntervalMonthDayNanoValuesFieldBuilder();
getDecimal128ValuesFieldBuilder();
}
}
@java.lang.Override
@@ -3435,6 +3566,12 @@ public final class Columns {
bitField0_ = (bitField0_ & ~0x10000000);
durationNanosecondValues_ = emptyLongList();
bitField0_ = (bitField0_ & ~0x20000000);
if (decimal128ValuesBuilder_ == null) {
decimal128Values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x40000000);
} else {
decimal128ValuesBuilder_.clear();
}
return this;
}
@@ -3616,6 +3753,15 @@ public final class Columns {
bitField0_ = (bitField0_ & ~0x20000000);
}
result.durationNanosecondValues_ = durationNanosecondValues_;
if (decimal128ValuesBuilder_ == null) {
if (((bitField0_ & 0x40000000) != 0)) {
decimal128Values_ = java.util.Collections.unmodifiableList(decimal128Values_);
bitField0_ = (bitField0_ & ~0x40000000);
}
result.decimal128Values_ = decimal128Values_;
} else {
result.decimal128Values_ = decimal128ValuesBuilder_.build();
}
onBuilt();
return result;
}
@@ -3980,6 +4126,32 @@ public final class Columns {
}
onChanged();
}
if (decimal128ValuesBuilder_ == null) {
if (!other.decimal128Values_.isEmpty()) {
if (decimal128Values_.isEmpty()) {
decimal128Values_ = other.decimal128Values_;
bitField0_ = (bitField0_ & ~0x40000000);
} else {
ensureDecimal128ValuesIsMutable();
decimal128Values_.addAll(other.decimal128Values_);
}
onChanged();
}
} else {
if (!other.decimal128Values_.isEmpty()) {
if (decimal128ValuesBuilder_.isEmpty()) {
decimal128ValuesBuilder_.dispose();
decimal128ValuesBuilder_ = null;
decimal128Values_ = other.decimal128Values_;
bitField0_ = (bitField0_ & ~0x40000000);
decimal128ValuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getDecimal128ValuesFieldBuilder() : null;
} else {
decimal128ValuesBuilder_.addAllMessages(other.decimal128Values_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -6577,6 +6749,246 @@ public final class Columns {
onChanged();
return this;
}
private java.util.List<io.greptime.v1.Common.Decimal128> decimal128Values_ =
java.util.Collections.emptyList();
private void ensureDecimal128ValuesIsMutable() {
if (!((bitField0_ & 0x40000000) != 0)) {
decimal128Values_ = new java.util.ArrayList<io.greptime.v1.Common.Decimal128>(decimal128Values_);
bitField0_ |= 0x40000000;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder> decimal128ValuesBuilder_;
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public java.util.List<io.greptime.v1.Common.Decimal128> getDecimal128ValuesList() {
if (decimal128ValuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(decimal128Values_);
} else {
return decimal128ValuesBuilder_.getMessageList();
}
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public int getDecimal128ValuesCount() {
if (decimal128ValuesBuilder_ == null) {
return decimal128Values_.size();
} else {
return decimal128ValuesBuilder_.getCount();
}
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public io.greptime.v1.Common.Decimal128 getDecimal128Values(int index) {
if (decimal128ValuesBuilder_ == null) {
return decimal128Values_.get(index);
} else {
return decimal128ValuesBuilder_.getMessage(index);
}
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder setDecimal128Values(
int index, io.greptime.v1.Common.Decimal128 value) {
if (decimal128ValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDecimal128ValuesIsMutable();
decimal128Values_.set(index, value);
onChanged();
} else {
decimal128ValuesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder setDecimal128Values(
int index, io.greptime.v1.Common.Decimal128.Builder builderForValue) {
if (decimal128ValuesBuilder_ == null) {
ensureDecimal128ValuesIsMutable();
decimal128Values_.set(index, builderForValue.build());
onChanged();
} else {
decimal128ValuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder addDecimal128Values(io.greptime.v1.Common.Decimal128 value) {
if (decimal128ValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDecimal128ValuesIsMutable();
decimal128Values_.add(value);
onChanged();
} else {
decimal128ValuesBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder addDecimal128Values(
int index, io.greptime.v1.Common.Decimal128 value) {
if (decimal128ValuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureDecimal128ValuesIsMutable();
decimal128Values_.add(index, value);
onChanged();
} else {
decimal128ValuesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder addDecimal128Values(
io.greptime.v1.Common.Decimal128.Builder builderForValue) {
if (decimal128ValuesBuilder_ == null) {
ensureDecimal128ValuesIsMutable();
decimal128Values_.add(builderForValue.build());
onChanged();
} else {
decimal128ValuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder addDecimal128Values(
int index, io.greptime.v1.Common.Decimal128.Builder builderForValue) {
if (decimal128ValuesBuilder_ == null) {
ensureDecimal128ValuesIsMutable();
decimal128Values_.add(index, builderForValue.build());
onChanged();
} else {
decimal128ValuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder addAllDecimal128Values(
java.lang.Iterable<? extends io.greptime.v1.Common.Decimal128> values) {
if (decimal128ValuesBuilder_ == null) {
ensureDecimal128ValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, decimal128Values_);
onChanged();
} else {
decimal128ValuesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder clearDecimal128Values() {
if (decimal128ValuesBuilder_ == null) {
decimal128Values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x40000000);
onChanged();
} else {
decimal128ValuesBuilder_.clear();
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public Builder removeDecimal128Values(int index) {
if (decimal128ValuesBuilder_ == null) {
ensureDecimal128ValuesIsMutable();
decimal128Values_.remove(index);
onChanged();
} else {
decimal128ValuesBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public io.greptime.v1.Common.Decimal128.Builder getDecimal128ValuesBuilder(
int index) {
return getDecimal128ValuesFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValuesOrBuilder(
int index) {
if (decimal128ValuesBuilder_ == null) {
return decimal128Values_.get(index); } else {
return decimal128ValuesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public java.util.List<? extends io.greptime.v1.Common.Decimal128OrBuilder>
getDecimal128ValuesOrBuilderList() {
if (decimal128ValuesBuilder_ != null) {
return decimal128ValuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(decimal128Values_);
}
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public io.greptime.v1.Common.Decimal128.Builder addDecimal128ValuesBuilder() {
return getDecimal128ValuesFieldBuilder().addBuilder(
io.greptime.v1.Common.Decimal128.getDefaultInstance());
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public io.greptime.v1.Common.Decimal128.Builder addDecimal128ValuesBuilder(
int index) {
return getDecimal128ValuesFieldBuilder().addBuilder(
index, io.greptime.v1.Common.Decimal128.getDefaultInstance());
}
/**
* <code>repeated .greptime.v1.Decimal128 decimal128_values = 31;</code>
*/
public java.util.List<io.greptime.v1.Common.Decimal128.Builder>
getDecimal128ValuesBuilderList() {
return getDecimal128ValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder>
getDecimal128ValuesFieldBuilder() {
if (decimal128ValuesBuilder_ == null) {
decimal128ValuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder>(
decimal128Values_,
((bitField0_ & 0x40000000) != 0),
getParentForChildren(),
isClean());
decimal128Values_ = null;
}
return decimal128ValuesBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -6790,6 +7202,44 @@ public final class Columns {
return result == null ? io.greptime.v1.Common.ColumnDataType.UNRECOGNIZED : result;
}
public static final int DATATYPE_EXTENSION_FIELD_NUMBER = 6;
private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_;
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
* @return Whether the datatypeExtension field is set.
*/
@java.lang.Override
public boolean hasDatatypeExtension() {
return datatypeExtension_ != null;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
* @return The datatypeExtension.
*/
@java.lang.Override
public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() {
return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() {
return getDatatypeExtension();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -6819,6 +7269,9 @@ public final class Columns {
if (datatype_ != io.greptime.v1.Common.ColumnDataType.BOOLEAN.getNumber()) {
output.writeEnum(5, datatype_);
}
if (datatypeExtension_ != null) {
output.writeMessage(6, getDatatypeExtension());
}
unknownFields.writeTo(output);
}
@@ -6847,6 +7300,10 @@ public final class Columns {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(5, datatype_);
}
if (datatypeExtension_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getDatatypeExtension());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -6873,6 +7330,11 @@ public final class Columns {
if (!getNullMask()
.equals(other.getNullMask())) return false;
if (datatype_ != other.datatype_) return false;
if (hasDatatypeExtension() != other.hasDatatypeExtension()) return false;
if (hasDatatypeExtension()) {
if (!getDatatypeExtension()
.equals(other.getDatatypeExtension())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -6896,6 +7358,10 @@ public final class Columns {
hash = (53 * hash) + getNullMask().hashCode();
hash = (37 * hash) + DATATYPE_FIELD_NUMBER;
hash = (53 * hash) + datatype_;
if (hasDatatypeExtension()) {
hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getDatatypeExtension().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -7043,6 +7509,12 @@ public final class Columns {
datatype_ = 0;
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = null;
} else {
datatypeExtension_ = null;
datatypeExtensionBuilder_ = null;
}
return this;
}
@@ -7078,6 +7550,11 @@ public final class Columns {
}
result.nullMask_ = nullMask_;
result.datatype_ = datatype_;
if (datatypeExtensionBuilder_ == null) {
result.datatypeExtension_ = datatypeExtension_;
} else {
result.datatypeExtension_ = datatypeExtensionBuilder_.build();
}
onBuilt();
return result;
}
@@ -7142,6 +7619,9 @@ public final class Columns {
if (other.datatype_ != 0) {
setDatatypeValue(other.getDatatypeValue());
}
if (other.hasDatatypeExtension()) {
mergeDatatypeExtension(other.getDatatypeExtension());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -7644,6 +8124,161 @@ public final class Columns {
onChanged();
return this;
}
private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> datatypeExtensionBuilder_;
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
* @return Whether the datatypeExtension field is set.
*/
public boolean hasDatatypeExtension() {
return datatypeExtensionBuilder_ != null || datatypeExtension_ != null;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
* @return The datatypeExtension.
*/
public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() {
if (datatypeExtensionBuilder_ == null) {
return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
} else {
return datatypeExtensionBuilder_.getMessage();
}
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
public Builder setDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) {
if (datatypeExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
datatypeExtension_ = value;
onChanged();
} else {
datatypeExtensionBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
public Builder setDatatypeExtension(
io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) {
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = builderForValue.build();
onChanged();
} else {
datatypeExtensionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
public Builder mergeDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) {
if (datatypeExtensionBuilder_ == null) {
if (datatypeExtension_ != null) {
datatypeExtension_ =
io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(datatypeExtension_).mergeFrom(value).buildPartial();
} else {
datatypeExtension_ = value;
}
onChanged();
} else {
datatypeExtensionBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
public Builder clearDatatypeExtension() {
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = null;
onChanged();
} else {
datatypeExtension_ = null;
datatypeExtensionBuilder_ = null;
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getDatatypeExtensionBuilder() {
onChanged();
return getDatatypeExtensionFieldBuilder().getBuilder();
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() {
if (datatypeExtensionBuilder_ != null) {
return datatypeExtensionBuilder_.getMessageOrBuilder();
} else {
return datatypeExtension_ == null ?
io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
}
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 6;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>
getDatatypeExtensionFieldBuilder() {
if (datatypeExtensionBuilder_ == null) {
datatypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>(
getDatatypeExtension(),
getParentForChildren(),
isClean());
datatypeExtension_ = null;
}
return datatypeExtensionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -7717,36 +8352,39 @@ public final class Columns {
static {
java.lang.String[] descriptorData = {
"\n\030greptime/v1/column.proto\022\013greptime.v1\032" +
"\030greptime/v1/common.proto\"\256\010\n\006Column\022\023\n\013" +
"\030greptime/v1/common.proto\"\244\t\n\006Column\022\023\n\013" +
"column_name\030\001 \001(\t\0220\n\rsemantic_type\030\002 \001(\016" +
"2\031.greptime.v1.SemanticType\022*\n\006values\030\003 " +
"\001(\0132\032.greptime.v1.Column.Values\022\021\n\tnull_" +
"mask\030\004 \001(\014\022-\n\010datatype\030\005 \001(\0162\033.greptime." +
"v1.ColumnDataType\032\356\006\n\006Values\022\021\n\ti8_value" +
"s\030\001 \003(\005\022\022\n\ni16_values\030\002 \003(\005\022\022\n\ni32_value" +
"s\030\003 \003(\005\022\022\n\ni64_values\030\004 \003(\003\022\021\n\tu8_values" +
"\030\005 \003(\r\022\022\n\nu16_values\030\006 \003(\r\022\022\n\nu32_values" +
"\030\007 \003(\r\022\022\n\nu64_values\030\010 \003(\004\022\022\n\nf32_values" +
"\030\t \003(\002\022\022\n\nf64_values\030\n \003(\001\022\023\n\013bool_value" +
"s\030\013 \003(\010\022\025\n\rbinary_values\030\014 \003(\014\022\025\n\rstring" +
"_values\030\r \003(\t\022\023\n\013date_values\030\016 \003(\005\022\027\n\017da" +
"tetime_values\030\017 \003(\003\022\037\n\027timestamp_second_" +
"values\030\020 \003(\003\022$\n\034timestamp_millisecond_va" +
"lues\030\021 \003(\003\022$\n\034timestamp_microsecond_valu" +
"es\030\022 \003(\003\022#\n\033timestamp_nanosecond_values\030" +
"\023 \003(\003\022\032\n\022time_second_values\030\024 \003(\003\022\037\n\027tim" +
"e_millisecond_values\030\025 \003(\003\022\037\n\027time_micro" +
"second_values\030\026 \003(\003\022\036\n\026time_nanosecond_v" +
"alues\030\027 \003(\003\022\"\n\032interval_year_month_value" +
"s\030\030 \003(\005\022 \n\030interval_day_time_values\030\031 \003(" +
"\003\022I\n\036interval_month_day_nano_values\030\032 \003(" +
"\0132!.greptime.v1.IntervalMonthDayNano\022\036\n\026" +
"duration_second_values\030\033 \003(\003\022#\n\033duration" +
"_millisecond_values\030\034 \003(\003\022#\n\033duration_mi" +
"crosecond_values\030\035 \003(\003\022\"\n\032duration_nanos" +
"econd_values\030\036 \003(\003BP\n\016io.greptime.v1B\007Co" +
"lumnsZ5github.com/GreptimeTeam/greptime-" +
"proto/go/greptime/v1b\006proto3"
"v1.ColumnDataType\022@\n\022datatype_extension\030" +
"\006 \001(\0132$.greptime.v1.ColumnDataTypeExtens" +
"ion\032\242\007\n\006Values\022\021\n\ti8_values\030\001 \003(\005\022\022\n\ni16" +
"_values\030\002 \003(\005\022\022\n\ni32_values\030\003 \003(\005\022\022\n\ni64" +
"_values\030\004 \003(\003\022\021\n\tu8_values\030\005 \003(\r\022\022\n\nu16_" +
"values\030\006 \003(\r\022\022\n\nu32_values\030\007 \003(\r\022\022\n\nu64_" +
"values\030\010 \003(\004\022\022\n\nf32_values\030\t \003(\002\022\022\n\nf64_" +
"values\030\n \003(\001\022\023\n\013bool_values\030\013 \003(\010\022\025\n\rbin" +
"ary_values\030\014 \003(\014\022\025\n\rstring_values\030\r \003(\t\022" +
"\023\n\013date_values\030\016 \003(\005\022\027\n\017datetime_values\030" +
"\017 \003(\003\022\037\n\027timestamp_second_values\030\020 \003(\003\022$" +
"\n\034timestamp_millisecond_values\030\021 \003(\003\022$\n\034" +
"timestamp_microsecond_values\030\022 \003(\003\022#\n\033ti" +
"mestamp_nanosecond_values\030\023 \003(\003\022\032\n\022time_" +
"second_values\030\024 \003(\003\022\037\n\027time_millisecond_" +
"values\030\025 \003(\003\022\037\n\027time_microsecond_values\030" +
"\026 \003(\003\022\036\n\026time_nanosecond_values\030\027 \003(\003\022\"\n" +
"\032interval_year_month_values\030\030 \003(\005\022 \n\030int" +
"erval_day_time_values\030\031 \003(\003\022I\n\036interval_" +
"month_day_nano_values\030\032 \003(\0132!.greptime.v" +
"1.IntervalMonthDayNano\022\036\n\026duration_secon" +
"d_values\030\033 \003(\003\022#\n\033duration_millisecond_v" +
"alues\030\034 \003(\003\022#\n\033duration_microsecond_valu" +
"es\030\035 \003(\003\022\"\n\032duration_nanosecond_values\030\036" +
" \003(\003\0222\n\021decimal128_values\030\037 \003(\0132\027.grepti" +
"me.v1.Decimal128BP\n\016io.greptime.v1B\007Colu" +
"mnsZ5github.com/GreptimeTeam/greptime-pr" +
"oto/go/greptime/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -7758,13 +8396,13 @@ public final class Columns {
internal_static_greptime_v1_Column_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_Column_descriptor,
new java.lang.String[] { "ColumnName", "SemanticType", "Values", "NullMask", "Datatype", });
new java.lang.String[] { "ColumnName", "SemanticType", "Values", "NullMask", "Datatype", "DatatypeExtension", });
internal_static_greptime_v1_Column_Values_descriptor =
internal_static_greptime_v1_Column_descriptor.getNestedTypes().get(0);
internal_static_greptime_v1_Column_Values_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_Column_Values_descriptor,
new java.lang.String[] { "I8Values", "I16Values", "I32Values", "I64Values", "U8Values", "U16Values", "U32Values", "U64Values", "F32Values", "F64Values", "BoolValues", "BinaryValues", "StringValues", "DateValues", "DatetimeValues", "TimestampSecondValues", "TimestampMillisecondValues", "TimestampMicrosecondValues", "TimestampNanosecondValues", "TimeSecondValues", "TimeMillisecondValues", "TimeMicrosecondValues", "TimeNanosecondValues", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValues", "DurationMillisecondValues", "DurationMicrosecondValues", "DurationNanosecondValues", });
new java.lang.String[] { "I8Values", "I16Values", "I32Values", "I64Values", "U8Values", "U16Values", "U32Values", "U64Values", "F32Values", "F64Values", "BoolValues", "BinaryValues", "StringValues", "DateValues", "DatetimeValues", "TimestampSecondValues", "TimestampMillisecondValues", "TimestampMicrosecondValues", "TimestampNanosecondValues", "TimeSecondValues", "TimeMillisecondValues", "TimeMicrosecondValues", "TimeNanosecondValues", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValues", "DurationMillisecondValues", "DurationMicrosecondValues", "DurationNanosecondValues", "Decimal128Values", });
io.greptime.v1.Common.getDescriptor();
}
File diff suppressed because it is too large Load Diff
+274 -9
View File
@@ -13027,6 +13027,33 @@ java.lang.String defaultValue);
*/
com.google.protobuf.ByteString
getCommentBytes();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
* @return Whether the datatypeExtension field is set.
*/
boolean hasDatatypeExtension();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
* @return The datatypeExtension.
*/
io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder();
}
/**
* Protobuf type {@code greptime.v1.ColumnDef}
@@ -13112,6 +13139,19 @@ java.lang.String defaultValue);
comment_ = s;
break;
}
case 58: {
io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null;
if (datatypeExtension_ != null) {
subBuilder = datatypeExtension_.toBuilder();
}
datatypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(datatypeExtension_);
datatypeExtension_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -13282,6 +13322,44 @@ java.lang.String defaultValue);
}
}
public static final int DATATYPE_EXTENSION_FIELD_NUMBER = 7;
private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_;
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
* @return Whether the datatypeExtension field is set.
*/
@java.lang.Override
public boolean hasDatatypeExtension() {
return datatypeExtension_ != null;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
* @return The datatypeExtension.
*/
@java.lang.Override
public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() {
return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() {
return getDatatypeExtension();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -13314,6 +13392,9 @@ java.lang.String defaultValue);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, comment_);
}
if (datatypeExtension_ != null) {
output.writeMessage(7, getDatatypeExtension());
}
unknownFields.writeTo(output);
}
@@ -13345,6 +13426,10 @@ java.lang.String defaultValue);
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(comment_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, comment_);
}
if (datatypeExtension_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, getDatatypeExtension());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -13370,6 +13455,11 @@ java.lang.String defaultValue);
if (semanticType_ != other.semanticType_) return false;
if (!getComment()
.equals(other.getComment())) return false;
if (hasDatatypeExtension() != other.hasDatatypeExtension()) return false;
if (hasDatatypeExtension()) {
if (!getDatatypeExtension()
.equals(other.getDatatypeExtension())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -13394,6 +13484,10 @@ java.lang.String defaultValue);
hash = (53 * hash) + semanticType_;
hash = (37 * hash) + COMMENT_FIELD_NUMBER;
hash = (53 * hash) + getComment().hashCode();
if (hasDatatypeExtension()) {
hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getDatatypeExtension().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -13539,6 +13633,12 @@ java.lang.String defaultValue);
comment_ = "";
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = null;
} else {
datatypeExtension_ = null;
datatypeExtensionBuilder_ = null;
}
return this;
}
@@ -13571,6 +13671,11 @@ java.lang.String defaultValue);
result.defaultConstraint_ = defaultConstraint_;
result.semanticType_ = semanticType_;
result.comment_ = comment_;
if (datatypeExtensionBuilder_ == null) {
result.datatypeExtension_ = datatypeExtension_;
} else {
result.datatypeExtension_ = datatypeExtensionBuilder_.build();
}
onBuilt();
return result;
}
@@ -13639,6 +13744,9 @@ java.lang.String defaultValue);
comment_ = other.comment_;
onChanged();
}
if (other.hasDatatypeExtension()) {
mergeDatatypeExtension(other.getDatatypeExtension());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -13992,6 +14100,161 @@ java.lang.String defaultValue);
onChanged();
return this;
}
private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> datatypeExtensionBuilder_;
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
* @return Whether the datatypeExtension field is set.
*/
public boolean hasDatatypeExtension() {
return datatypeExtensionBuilder_ != null || datatypeExtension_ != null;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
* @return The datatypeExtension.
*/
public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() {
if (datatypeExtensionBuilder_ == null) {
return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
} else {
return datatypeExtensionBuilder_.getMessage();
}
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
public Builder setDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) {
if (datatypeExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
datatypeExtension_ = value;
onChanged();
} else {
datatypeExtensionBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
public Builder setDatatypeExtension(
io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) {
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = builderForValue.build();
onChanged();
} else {
datatypeExtensionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
public Builder mergeDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) {
if (datatypeExtensionBuilder_ == null) {
if (datatypeExtension_ != null) {
datatypeExtension_ =
io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(datatypeExtension_).mergeFrom(value).buildPartial();
} else {
datatypeExtension_ = value;
}
onChanged();
} else {
datatypeExtensionBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
public Builder clearDatatypeExtension() {
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = null;
onChanged();
} else {
datatypeExtension_ = null;
datatypeExtensionBuilder_ = null;
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getDatatypeExtensionBuilder() {
onChanged();
return getDatatypeExtensionFieldBuilder().getBuilder();
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() {
if (datatypeExtensionBuilder_ != null) {
return datatypeExtensionBuilder_.getMessageOrBuilder();
} else {
return datatypeExtension_ == null ?
io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
}
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 7;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>
getDatatypeExtensionFieldBuilder() {
if (datatypeExtensionBuilder_ == null) {
datatypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>(
getDatatypeExtension(),
getParentForChildren(),
isClean());
datatypeExtension_ = null;
}
return datatypeExtensionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -14962,17 +15225,19 @@ java.lang.String defaultValue);
"\026.greptime.v1.ColumnDef\0220\n\010location\030\003 \001(" +
"\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDro" +
"pColumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001" +
" \001(\r\"\275\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" +
" \001(\r\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" +
"_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" +
"\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra" +
"int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" +
"ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\"\230\001\n" +
"\021AddColumnLocation\022B\n\rlocation_type\030\001 \001(" +
"\0162+.greptime.v1.AddColumnLocation.Locati" +
"onType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Loc" +
"ationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.gr" +
"eptime.v1B\003DdlZ5github.com/GreptimeTeam/" +
"greptime-proto/go/greptime/v1b\006proto3"
"ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" +
"datatype_extension\030\007 \001(\0132$.greptime.v1.C" +
"olumnDataTypeExtension\"\230\001\n\021AddColumnLoca" +
"tion\022B\n\rlocation_type\030\001 \001(\0162+.greptime.v" +
"1.AddColumnLocation.LocationType\022\031\n\021afte" +
"r_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005F" +
"IRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003Ddl" +
"Z5github.com/GreptimeTeam/greptime-proto" +
"/go/greptime/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -15068,7 +15333,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_ColumnDef_descriptor,
new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", });
new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", });
internal_static_greptime_v1_AddColumnLocation_descriptor =
getDescriptor().getMessageTypes().get(13);
internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new
+526 -30
View File
@@ -1218,6 +1218,33 @@ public final class RowData {
* @return The semanticType.
*/
io.greptime.v1.Common.SemanticType getSemanticType();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
* @return Whether the datatypeExtension field is set.
*/
boolean hasDatatypeExtension();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
* @return The datatypeExtension.
*/
io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension();
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder();
}
/**
* Protobuf type {@code greptime.v1.ColumnSchema}
@@ -1285,6 +1312,19 @@ public final class RowData {
semanticType_ = rawValue;
break;
}
case 34: {
io.greptime.v1.Common.ColumnDataTypeExtension.Builder subBuilder = null;
if (datatypeExtension_ != null) {
subBuilder = datatypeExtension_.toBuilder();
}
datatypeExtension_ = input.readMessage(io.greptime.v1.Common.ColumnDataTypeExtension.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(datatypeExtension_);
datatypeExtension_ = subBuilder.buildPartial();
}
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -1395,6 +1435,44 @@ public final class RowData {
return result == null ? io.greptime.v1.Common.SemanticType.UNRECOGNIZED : result;
}
public static final int DATATYPE_EXTENSION_FIELD_NUMBER = 4;
private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_;
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
* @return Whether the datatypeExtension field is set.
*/
@java.lang.Override
public boolean hasDatatypeExtension() {
return datatypeExtension_ != null;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
* @return The datatypeExtension.
*/
@java.lang.Override
public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() {
return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() {
return getDatatypeExtension();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -1418,6 +1496,9 @@ public final class RowData {
if (semanticType_ != io.greptime.v1.Common.SemanticType.TAG.getNumber()) {
output.writeEnum(3, semanticType_);
}
if (datatypeExtension_ != null) {
output.writeMessage(4, getDatatypeExtension());
}
unknownFields.writeTo(output);
}
@@ -1438,6 +1519,10 @@ public final class RowData {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, semanticType_);
}
if (datatypeExtension_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getDatatypeExtension());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -1457,6 +1542,11 @@ public final class RowData {
.equals(other.getColumnName())) return false;
if (datatype_ != other.datatype_) return false;
if (semanticType_ != other.semanticType_) return false;
if (hasDatatypeExtension() != other.hasDatatypeExtension()) return false;
if (hasDatatypeExtension()) {
if (!getDatatypeExtension()
.equals(other.getDatatypeExtension())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@@ -1474,6 +1564,10 @@ public final class RowData {
hash = (53 * hash) + datatype_;
hash = (37 * hash) + SEMANTIC_TYPE_FIELD_NUMBER;
hash = (53 * hash) + semanticType_;
if (hasDatatypeExtension()) {
hash = (37 * hash) + DATATYPE_EXTENSION_FIELD_NUMBER;
hash = (53 * hash) + getDatatypeExtension().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
@@ -1613,6 +1707,12 @@ public final class RowData {
semanticType_ = 0;
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = null;
} else {
datatypeExtension_ = null;
datatypeExtensionBuilder_ = null;
}
return this;
}
@@ -1642,6 +1742,11 @@ public final class RowData {
result.columnName_ = columnName_;
result.datatype_ = datatype_;
result.semanticType_ = semanticType_;
if (datatypeExtensionBuilder_ == null) {
result.datatypeExtension_ = datatypeExtension_;
} else {
result.datatypeExtension_ = datatypeExtensionBuilder_.build();
}
onBuilt();
return result;
}
@@ -1700,6 +1805,9 @@ public final class RowData {
if (other.semanticType_ != 0) {
setSemanticTypeValue(other.getSemanticTypeValue());
}
if (other.hasDatatypeExtension()) {
mergeDatatypeExtension(other.getDatatypeExtension());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
@@ -1912,6 +2020,161 @@ public final class RowData {
onChanged();
return this;
}
private io.greptime.v1.Common.ColumnDataTypeExtension datatypeExtension_;
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder> datatypeExtensionBuilder_;
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
* @return Whether the datatypeExtension field is set.
*/
public boolean hasDatatypeExtension() {
return datatypeExtensionBuilder_ != null || datatypeExtension_ != null;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
* @return The datatypeExtension.
*/
public io.greptime.v1.Common.ColumnDataTypeExtension getDatatypeExtension() {
if (datatypeExtensionBuilder_ == null) {
return datatypeExtension_ == null ? io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
} else {
return datatypeExtensionBuilder_.getMessage();
}
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
public Builder setDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) {
if (datatypeExtensionBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
datatypeExtension_ = value;
onChanged();
} else {
datatypeExtensionBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
public Builder setDatatypeExtension(
io.greptime.v1.Common.ColumnDataTypeExtension.Builder builderForValue) {
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = builderForValue.build();
onChanged();
} else {
datatypeExtensionBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
public Builder mergeDatatypeExtension(io.greptime.v1.Common.ColumnDataTypeExtension value) {
if (datatypeExtensionBuilder_ == null) {
if (datatypeExtension_ != null) {
datatypeExtension_ =
io.greptime.v1.Common.ColumnDataTypeExtension.newBuilder(datatypeExtension_).mergeFrom(value).buildPartial();
} else {
datatypeExtension_ = value;
}
onChanged();
} else {
datatypeExtensionBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
public Builder clearDatatypeExtension() {
if (datatypeExtensionBuilder_ == null) {
datatypeExtension_ = null;
onChanged();
} else {
datatypeExtension_ = null;
datatypeExtensionBuilder_ = null;
}
return this;
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
public io.greptime.v1.Common.ColumnDataTypeExtension.Builder getDatatypeExtensionBuilder() {
onChanged();
return getDatatypeExtensionFieldBuilder().getBuilder();
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
public io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder getDatatypeExtensionOrBuilder() {
if (datatypeExtensionBuilder_ != null) {
return datatypeExtensionBuilder_.getMessageOrBuilder();
} else {
return datatypeExtension_ == null ?
io.greptime.v1.Common.ColumnDataTypeExtension.getDefaultInstance() : datatypeExtension_;
}
}
/**
* <pre>
* Extension for ColumnDataType.
* </pre>
*
* <code>.greptime.v1.ColumnDataTypeExtension datatype_extension = 4;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>
getDatatypeExtensionFieldBuilder() {
if (datatypeExtensionBuilder_ == null) {
datatypeExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.ColumnDataTypeExtension, io.greptime.v1.Common.ColumnDataTypeExtension.Builder, io.greptime.v1.Common.ColumnDataTypeExtensionOrBuilder>(
getDatatypeExtension(),
getParentForChildren(),
isClean());
datatypeExtension_ = null;
}
return datatypeExtensionBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -3104,6 +3367,21 @@ public final class RowData {
*/
long getDurationNanosecondValue();
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
* @return Whether the decimal128Value field is set.
*/
boolean hasDecimal128Value();
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
* @return The decimal128Value.
*/
io.greptime.v1.Common.Decimal128 getDecimal128Value();
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValueOrBuilder();
public io.greptime.v1.RowData.Value.ValueDataCase getValueDataCase();
}
/**
@@ -3311,6 +3589,20 @@ public final class RowData {
valueDataCase_ = 30;
break;
}
case 250: {
io.greptime.v1.Common.Decimal128.Builder subBuilder = null;
if (valueDataCase_ == 31) {
subBuilder = ((io.greptime.v1.Common.Decimal128) valueData_).toBuilder();
}
valueData_ =
input.readMessage(io.greptime.v1.Common.Decimal128.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.greptime.v1.Common.Decimal128) valueData_);
valueData_ = subBuilder.buildPartial();
}
valueDataCase_ = 31;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -3380,6 +3672,7 @@ public final class RowData {
DURATION_MILLISECOND_VALUE(28),
DURATION_MICROSECOND_VALUE(29),
DURATION_NANOSECOND_VALUE(30),
DECIMAL128_VALUE(31),
VALUEDATA_NOT_SET(0);
private final int value;
private ValueDataCase(int value) {
@@ -3427,6 +3720,7 @@ public final class RowData {
case 28: return DURATION_MILLISECOND_VALUE;
case 29: return DURATION_MICROSECOND_VALUE;
case 30: return DURATION_NANOSECOND_VALUE;
case 31: return DECIMAL128_VALUE;
case 0: return VALUEDATA_NOT_SET;
default: return null;
}
@@ -4113,6 +4407,37 @@ public final class RowData {
return 0L;
}
public static final int DECIMAL128_VALUE_FIELD_NUMBER = 31;
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
* @return Whether the decimal128Value field is set.
*/
@java.lang.Override
public boolean hasDecimal128Value() {
return valueDataCase_ == 31;
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
* @return The decimal128Value.
*/
@java.lang.Override
public io.greptime.v1.Common.Decimal128 getDecimal128Value() {
if (valueDataCase_ == 31) {
return (io.greptime.v1.Common.Decimal128) valueData_;
}
return io.greptime.v1.Common.Decimal128.getDefaultInstance();
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValueOrBuilder() {
if (valueDataCase_ == 31) {
return (io.greptime.v1.Common.Decimal128) valueData_;
}
return io.greptime.v1.Common.Decimal128.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
@@ -4245,6 +4570,9 @@ public final class RowData {
output.writeInt64(
30, (long)((java.lang.Long) valueData_));
}
if (valueDataCase_ == 31) {
output.writeMessage(31, (io.greptime.v1.Common.Decimal128) valueData_);
}
unknownFields.writeTo(output);
}
@@ -4401,6 +4729,10 @@ public final class RowData {
.computeInt64Size(
30, (long)((java.lang.Long) valueData_));
}
if (valueDataCase_ == 31) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(31, (io.greptime.v1.Common.Decimal128) valueData_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -4540,6 +4872,10 @@ public final class RowData {
if (getDurationNanosecondValue()
!= other.getDurationNanosecondValue()) return false;
break;
case 31:
if (!getDecimal128Value()
.equals(other.getDecimal128Value())) return false;
break;
case 0:
default:
}
@@ -4694,6 +5030,10 @@ public final class RowData {
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getDurationNanosecondValue());
break;
case 31:
hash = (37 * hash) + DECIMAL128_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getDecimal128Value().hashCode();
break;
case 0:
default:
}
@@ -4952,6 +5292,13 @@ public final class RowData {
if (valueDataCase_ == 30) {
result.valueData_ = valueData_;
}
if (valueDataCase_ == 31) {
if (decimal128ValueBuilder_ == null) {
result.valueData_ = valueData_;
} else {
result.valueData_ = decimal128ValueBuilder_.build();
}
}
result.valueDataCase_ = valueDataCase_;
onBuilt();
return result;
@@ -5124,6 +5471,10 @@ public final class RowData {
setDurationNanosecondValue(other.getDurationNanosecondValue());
break;
}
case DECIMAL128_VALUE: {
mergeDecimal128Value(other.getDecimal128Value());
break;
}
case VALUEDATA_NOT_SET: {
break;
}
@@ -6561,6 +6912,148 @@ public final class RowData {
}
return this;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder> decimal128ValueBuilder_;
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
* @return Whether the decimal128Value field is set.
*/
@java.lang.Override
public boolean hasDecimal128Value() {
return valueDataCase_ == 31;
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
* @return The decimal128Value.
*/
@java.lang.Override
public io.greptime.v1.Common.Decimal128 getDecimal128Value() {
if (decimal128ValueBuilder_ == null) {
if (valueDataCase_ == 31) {
return (io.greptime.v1.Common.Decimal128) valueData_;
}
return io.greptime.v1.Common.Decimal128.getDefaultInstance();
} else {
if (valueDataCase_ == 31) {
return decimal128ValueBuilder_.getMessage();
}
return io.greptime.v1.Common.Decimal128.getDefaultInstance();
}
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
public Builder setDecimal128Value(io.greptime.v1.Common.Decimal128 value) {
if (decimal128ValueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
valueData_ = value;
onChanged();
} else {
decimal128ValueBuilder_.setMessage(value);
}
valueDataCase_ = 31;
return this;
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
public Builder setDecimal128Value(
io.greptime.v1.Common.Decimal128.Builder builderForValue) {
if (decimal128ValueBuilder_ == null) {
valueData_ = builderForValue.build();
onChanged();
} else {
decimal128ValueBuilder_.setMessage(builderForValue.build());
}
valueDataCase_ = 31;
return this;
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
public Builder mergeDecimal128Value(io.greptime.v1.Common.Decimal128 value) {
if (decimal128ValueBuilder_ == null) {
if (valueDataCase_ == 31 &&
valueData_ != io.greptime.v1.Common.Decimal128.getDefaultInstance()) {
valueData_ = io.greptime.v1.Common.Decimal128.newBuilder((io.greptime.v1.Common.Decimal128) valueData_)
.mergeFrom(value).buildPartial();
} else {
valueData_ = value;
}
onChanged();
} else {
if (valueDataCase_ == 31) {
decimal128ValueBuilder_.mergeFrom(value);
} else {
decimal128ValueBuilder_.setMessage(value);
}
}
valueDataCase_ = 31;
return this;
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
public Builder clearDecimal128Value() {
if (decimal128ValueBuilder_ == null) {
if (valueDataCase_ == 31) {
valueDataCase_ = 0;
valueData_ = null;
onChanged();
}
} else {
if (valueDataCase_ == 31) {
valueDataCase_ = 0;
valueData_ = null;
}
decimal128ValueBuilder_.clear();
}
return this;
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
public io.greptime.v1.Common.Decimal128.Builder getDecimal128ValueBuilder() {
return getDecimal128ValueFieldBuilder().getBuilder();
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.Decimal128OrBuilder getDecimal128ValueOrBuilder() {
if ((valueDataCase_ == 31) && (decimal128ValueBuilder_ != null)) {
return decimal128ValueBuilder_.getMessageOrBuilder();
} else {
if (valueDataCase_ == 31) {
return (io.greptime.v1.Common.Decimal128) valueData_;
}
return io.greptime.v1.Common.Decimal128.getDefaultInstance();
}
}
/**
* <code>.greptime.v1.Decimal128 decimal128_value = 31;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder>
getDecimal128ValueFieldBuilder() {
if (decimal128ValueBuilder_ == null) {
if (!(valueDataCase_ == 31)) {
valueData_ = io.greptime.v1.Common.Decimal128.getDefaultInstance();
}
decimal128ValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.Decimal128, io.greptime.v1.Common.Decimal128.Builder, io.greptime.v1.Common.Decimal128OrBuilder>(
(io.greptime.v1.Common.Decimal128) valueData_,
getParentForChildren(),
isClean());
valueData_ = null;
}
valueDataCase_ = 31;
onChanged();;
return decimal128ValueBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -6646,37 +7139,40 @@ public final class RowData {
"\n\025greptime/v1/row.proto\022\013greptime.v1\032\030gr" +
"eptime/v1/common.proto\"Q\n\004Rows\022)\n\006schema" +
"\030\001 \003(\0132\031.greptime.v1.ColumnSchema\022\036\n\004row" +
"s\030\002 \003(\0132\020.greptime.v1.Row\"\204\001\n\014ColumnSche" +
"s\030\002 \003(\0132\020.greptime.v1.Row\"\306\001\n\014ColumnSche" +
"ma\022\023\n\013column_name\030\001 \001(\t\022-\n\010datatype\030\002 \001(" +
"\0162\033.greptime.v1.ColumnDataType\0220\n\rsemant" +
"ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType" +
"\")\n\003Row\022\"\n\006values\030\001 \003(\0132\022.greptime.v1.Va" +
"lue\"\234\007\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16" +
"_value\030\002 \001(\005H\000\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti" +
"64_value\030\004 \001(\003H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\t" +
"u16_value\030\006 \001(\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023" +
"\n\tu64_value\030\010 \001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000" +
"\022\023\n\tf64_value\030\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(" +
"\010H\000\022\026\n\014binary_value\030\014 \001(\014H\000\022\026\n\014string_va" +
"lue\030\r \001(\tH\000\022\024\n\ndate_value\030\016 \001(\005H\000\022\030\n\016dat" +
"etime_value\030\017 \001(\003H\000\022 \n\026timestamp_second_" +
"value\030\020 \001(\003H\000\022%\n\033timestamp_millisecond_v" +
"alue\030\021 \001(\003H\000\022%\n\033timestamp_microsecond_va" +
"lue\030\022 \001(\003H\000\022$\n\032timestamp_nanosecond_valu" +
"e\030\023 \001(\003H\000\022\033\n\021time_second_value\030\024 \001(\003H\000\022 " +
"\n\026time_millisecond_value\030\025 \001(\003H\000\022 \n\026time" +
"_microsecond_value\030\026 \001(\003H\000\022\037\n\025time_nanos" +
"econd_value\030\027 \001(\003H\000\022$\n\032interval_year_mon" +
"th_values\030\030 \001(\005H\000\022\"\n\030interval_day_time_v" +
"alues\030\031 \001(\003H\000\022K\n\036interval_month_day_nano" +
"_values\030\032 \001(\0132!.greptime.v1.IntervalMont" +
"hDayNanoH\000\022\037\n\025duration_second_value\030\033 \001(" +
"\003H\000\022$\n\032duration_millisecond_value\030\034 \001(\003H" +
"\000\022$\n\032duration_microsecond_value\030\035 \001(\003H\000\022" +
"#\n\031duration_nanosecond_value\030\036 \001(\003H\000B\014\n\n" +
"value_dataBP\n\016io.greptime.v1B\007RowDataZ5g" +
"ithub.com/GreptimeTeam/greptime-proto/go" +
"/greptime/v1b\006proto3"
"\022@\n\022datatype_extension\030\004 \001(\0132$.greptime." +
"v1.ColumnDataTypeExtension\")\n\003Row\022\"\n\006val" +
"ues\030\001 \003(\0132\022.greptime.v1.Value\"\321\007\n\005Value\022" +
"\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 \001(\005H\000" +
"\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030\004 \001(\003" +
"H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value\030\006 \001(" +
"\rH\000\022\023\n\tu32_value\030\007 \001(\rH\000\022\023\n\tu64_value\030\010 " +
"\001(\004H\000\022\023\n\tf32_value\030\t \001(\002H\000\022\023\n\tf64_value\030" +
"\n \001(\001H\000\022\024\n\nbool_value\030\013 \001(\010H\000\022\026\n\014binary_" +
"value\030\014 \001(\014H\000\022\026\n\014string_value\030\r \001(\tH\000\022\024\n" +
"\ndate_value\030\016 \001(\005H\000\022\030\n\016datetime_value\030\017 " +
"\001(\003H\000\022 \n\026timestamp_second_value\030\020 \001(\003H\000\022" +
"%\n\033timestamp_millisecond_value\030\021 \001(\003H\000\022%" +
"\n\033timestamp_microsecond_value\030\022 \001(\003H\000\022$\n" +
"\032timestamp_nanosecond_value\030\023 \001(\003H\000\022\033\n\021t" +
"ime_second_value\030\024 \001(\003H\000\022 \n\026time_millise" +
"cond_value\030\025 \001(\003H\000\022 \n\026time_microsecond_v" +
"alue\030\026 \001(\003H\000\022\037\n\025time_nanosecond_value\030\027 " +
"\001(\003H\000\022$\n\032interval_year_month_values\030\030 \001(" +
"\005H\000\022\"\n\030interval_day_time_values\030\031 \001(\003H\000\022" +
"K\n\036interval_month_day_nano_values\030\032 \001(\0132" +
"!.greptime.v1.IntervalMonthDayNanoH\000\022\037\n\025" +
"duration_second_value\030\033 \001(\003H\000\022$\n\032duratio" +
"n_millisecond_value\030\034 \001(\003H\000\022$\n\032duration_" +
"microsecond_value\030\035 \001(\003H\000\022#\n\031duration_na" +
"nosecond_value\030\036 \001(\003H\000\0223\n\020decimal128_val" +
"ue\030\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nv" +
"alue_dataBP\n\016io.greptime.v1B\007RowDataZ5gi" +
"thub.com/GreptimeTeam/greptime-proto/go/" +
"greptime/v1b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -6694,7 +7190,7 @@ public final class RowData {
internal_static_greptime_v1_ColumnSchema_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_ColumnSchema_descriptor,
new java.lang.String[] { "ColumnName", "Datatype", "SemanticType", });
new java.lang.String[] { "ColumnName", "Datatype", "SemanticType", "DatatypeExtension", });
internal_static_greptime_v1_Row_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_greptime_v1_Row_fieldAccessorTable = new
@@ -6706,7 +7202,7 @@ public final class RowData {
internal_static_greptime_v1_Value_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_Value_descriptor,
new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TimestampSecondValue", "TimestampMillisecondValue", "TimestampMicrosecondValue", "TimestampNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValue", "DurationMillisecondValue", "DurationMicrosecondValue", "DurationNanosecondValue", "ValueData", });
new java.lang.String[] { "I8Value", "I16Value", "I32Value", "I64Value", "U8Value", "U16Value", "U32Value", "U64Value", "F32Value", "F64Value", "BoolValue", "BinaryValue", "StringValue", "DateValue", "DatetimeValue", "TimestampSecondValue", "TimestampMillisecondValue", "TimestampMicrosecondValue", "TimestampNanosecondValue", "TimeSecondValue", "TimeMillisecondValue", "TimeMicrosecondValue", "TimeNanosecondValue", "IntervalYearMonthValues", "IntervalDayTimeValues", "IntervalMonthDayNanoValues", "DurationSecondValue", "DurationMillisecondValue", "DurationMicrosecondValue", "DurationNanosecondValue", "Decimal128Value", "ValueData", });
io.greptime.v1.Common.getDescriptor();
}
+4
View File
@@ -61,6 +61,7 @@ message Column {
repeated int64 duration_millisecond_values = 28;
repeated int64 duration_microsecond_values = 29;
repeated int64 duration_nanosecond_values = 30;
repeated Decimal128 decimal128_values = 31;
}
// The array of non-null values in this column.
//
@@ -80,4 +81,7 @@ message Column {
// Helpful in creating vector from column.
ColumnDataType datatype = 5;
// Extension for ColumnDataType.
ColumnDataTypeExtension datatype_extension = 6;
}
+19
View File
@@ -97,6 +97,7 @@ enum ColumnDataType {
DURATION_MILLISECOND = 27;
DURATION_MICROSECOND = 28;
DURATION_NANOSECOND = 29;
DECIMAL128 = 30;
}
message IntervalMonthDayNano {
@@ -104,3 +105,21 @@ message IntervalMonthDayNano {
int32 days = 2;
int64 nanoseconds = 3;
}
// (hi: high 64 bits, lo: low 64 bits) are used to keep the decimal128 value.
message Decimal128 {
int64 hi = 1;
int64 lo = 2;
}
// Type extension for some complex types
message ColumnDataTypeExtension {
oneof type_ext {
DecimalTypeExtension decimal_type = 1;
}
}
message DecimalTypeExtension {
int32 precision = 1;
int32 scale = 2;
}
+2
View File
@@ -103,6 +103,8 @@ message ColumnDef {
bytes default_constraint = 4;
SemanticType semantic_type = 5;
string comment = 6;
// Extension for ColumnDataType.
ColumnDataTypeExtension datatype_extension = 7;
}
message AddColumnLocation {
+3
View File
@@ -31,6 +31,8 @@ message ColumnSchema {
string column_name = 1;
ColumnDataType datatype = 2;
SemanticType semantic_type = 3;
// Extension for ColumnDataType.
ColumnDataTypeExtension datatype_extension = 4;
}
message Row { repeated Value values = 1; }
@@ -71,5 +73,6 @@ message Value {
int64 duration_millisecond_value = 28;
int64 duration_microsecond_value = 29;
int64 duration_nanosecond_value = 30;
Decimal128 decimal128_value = 31;
}
}