chore: big typos (#129)

* chore: big typos

* feat: 0.4.2
This commit is contained in:
JeremyHi
2023-12-15 11:55:39 +08:00
committed by GitHub
parent 4306ab645e
commit a31ea166fc
6 changed files with 407 additions and 407 deletions
+71 -71
View File
@@ -174,7 +174,7 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT
"ic_type\030\003 \001(\0162\031.greptime.v1.SemanticType"
"\022@\n\022datatype_extension\030\004 \001(\0132$.greptime."
"v1.ColumnDataTypeExtension\")\n\003Row\022\"\n\006val"
"ues\030\001 \003(\0132\022.greptime.v1.Value\"\321\007\n\005Value\022"
"ues\030\001 \003(\0132\022.greptime.v1.Value\"\316\007\n\005Value\022"
"\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16_value\030\002 \001(\005H\000"
"\022\023\n\ti32_value\030\003 \001(\005H\000\022\023\n\ti64_value\030\004 \001(\003"
"H\000\022\022\n\010u8_value\030\005 \001(\rH\000\022\023\n\tu16_value\030\006 \001("
@@ -190,25 +190,25 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT
"ime_second_value\030\024 \001(\003H\000\022 \n\026time_millise"
"cond_value\030\025 \001(\003H\000\022 \n\026time_microsecond_v"
"alue\030\026 \001(\003H\000\022\037\n\025time_nanosecond_value\030\027 "
"\001(\003H\000\022$\n\032interval_year_month_values\030\030 \001("
"\005H\000\022\"\n\030interval_day_time_values\030\031 \001(\003H\000\022"
"K\n\036interval_month_day_nano_values\030\032 \001(\0132"
"!.greptime.v1.IntervalMonthDayNanoH\000\022\037\n\025"
"duration_second_value\030\033 \001(\003H\000\022$\n\032duratio"
"n_millisecond_value\030\034 \001(\003H\000\022$\n\032duration_"
"microsecond_value\030\035 \001(\003H\000\022#\n\031duration_na"
"nosecond_value\030\036 \001(\003H\000\0223\n\020decimal128_val"
"ue\030\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nv"
"alue_dataBP\n\016io.greptime.v1B\007RowDataZ5gi"
"thub.com/GreptimeTeam/greptime-proto/go/"
"greptime/v1b\006proto3"
"\001(\003H\000\022#\n\031interval_year_month_value\030\030 \001(\005"
"H\000\022!\n\027interval_day_time_value\030\031 \001(\003H\000\022J\n"
"\035interval_month_day_nano_value\030\032 \001(\0132!.g"
"reptime.v1.IntervalMonthDayNanoH\000\022\037\n\025dur"
"ation_second_value\030\033 \001(\003H\000\022$\n\032duration_m"
"illisecond_value\030\034 \001(\003H\000\022$\n\032duration_mic"
"rosecond_value\030\035 \001(\003H\000\022#\n\031duration_nanos"
"econd_value\030\036 \001(\003H\000\0223\n\020decimal128_value\030"
"\037 \001(\0132\027.greptime.v1.Decimal128H\000B\014\n\nvalu"
"e_dataBP\n\016io.greptime.v1B\007RowDataZ5githu"
"b.com/GreptimeTeam/greptime-proto/go/gre"
"ptime/v1b\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2frow_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2frow_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2frow_2eproto = {
false, false, 1459, descriptor_table_protodef_greptime_2fv1_2frow_2eproto,
false, false, 1456, descriptor_table_protodef_greptime_2fv1_2frow_2eproto,
"greptime/v1/row.proto",
&descriptor_table_greptime_2fv1_2frow_2eproto_once, descriptor_table_greptime_2fv1_2frow_2eproto_deps, 1, 4,
schemas, file_default_instances, TableStruct_greptime_2fv1_2frow_2eproto::offsets,
@@ -948,38 +948,38 @@ 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::IntervalMonthDayNano& interval_month_day_nano_value(const Value* msg);
static const ::greptime::v1::Decimal128& decimal128_value(const Value* msg);
};
const ::greptime::v1::IntervalMonthDayNano&
Value::_Internal::interval_month_day_nano_values(const Value* msg) {
return *msg->_impl_.value_data_.interval_month_day_nano_values_;
Value::_Internal::interval_month_day_nano_value(const Value* msg) {
return *msg->_impl_.value_data_.interval_month_day_nano_value_;
}
const ::greptime::v1::Decimal128&
Value::_Internal::decimal128_value(const Value* msg) {
return *msg->_impl_.value_data_.decimal128_value_;
}
void Value::set_allocated_interval_month_day_nano_values(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values) {
void Value::set_allocated_interval_month_day_nano_value(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_value_data();
if (interval_month_day_nano_values) {
if (interval_month_day_nano_value) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interval_month_day_nano_values));
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interval_month_day_nano_value));
if (message_arena != submessage_arena) {
interval_month_day_nano_values = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, interval_month_day_nano_values, submessage_arena);
interval_month_day_nano_value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, interval_month_day_nano_value, submessage_arena);
}
set_has_interval_month_day_nano_values();
_impl_.value_data_.interval_month_day_nano_values_ = interval_month_day_nano_values;
set_has_interval_month_day_nano_value();
_impl_.value_data_.interval_month_day_nano_value_ = interval_month_day_nano_value;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.interval_month_day_nano_values)
// @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.interval_month_day_nano_value)
}
void Value::clear_interval_month_day_nano_values() {
if (_internal_has_interval_month_day_nano_values()) {
void Value::clear_interval_month_day_nano_value() {
if (_internal_has_interval_month_day_nano_value()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.value_data_.interval_month_day_nano_values_;
delete _impl_.value_data_.interval_month_day_nano_value_;
}
clear_has_value_data();
}
@@ -1117,17 +1117,17 @@ Value::Value(const Value& from)
_this->_internal_set_time_nanosecond_value(from._internal_time_nanosecond_value());
break;
}
case kIntervalYearMonthValues: {
_this->_internal_set_interval_year_month_values(from._internal_interval_year_month_values());
case kIntervalYearMonthValue: {
_this->_internal_set_interval_year_month_value(from._internal_interval_year_month_value());
break;
}
case kIntervalDayTimeValues: {
_this->_internal_set_interval_day_time_values(from._internal_interval_day_time_values());
case kIntervalDayTimeValue: {
_this->_internal_set_interval_day_time_value(from._internal_interval_day_time_value());
break;
}
case kIntervalMonthDayNanoValues: {
_this->_internal_mutable_interval_month_day_nano_values()->::greptime::v1::IntervalMonthDayNano::MergeFrom(
from._internal_interval_month_day_nano_values());
case kIntervalMonthDayNanoValue: {
_this->_internal_mutable_interval_month_day_nano_value()->::greptime::v1::IntervalMonthDayNano::MergeFrom(
from._internal_interval_month_day_nano_value());
break;
}
case kDurationSecondValue: {
@@ -1285,17 +1285,17 @@ void Value::clear_value_data() {
// No need to clear
break;
}
case kIntervalYearMonthValues: {
case kIntervalYearMonthValue: {
// No need to clear
break;
}
case kIntervalDayTimeValues: {
case kIntervalDayTimeValue: {
// No need to clear
break;
}
case kIntervalMonthDayNanoValues: {
case kIntervalMonthDayNanoValue: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.value_data_.interval_month_day_nano_values_;
delete _impl_.value_data_.interval_month_day_nano_value_;
}
break;
}
@@ -1532,26 +1532,26 @@ const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
} else
goto handle_unusual;
continue;
// int32 interval_year_month_values = 24;
// int32 interval_year_month_value = 24;
case 24:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 192)) {
_internal_set_interval_year_month_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
_internal_set_interval_year_month_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int64 interval_day_time_values = 25;
// int64 interval_day_time_value = 25;
case 25:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 200)) {
_internal_set_interval_day_time_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
_internal_set_interval_day_time_value(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26;
case 26:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 210)) {
ptr = ctx->ParseMessage(_internal_mutable_interval_month_day_nano_values(), ptr);
ptr = ctx->ParseMessage(_internal_mutable_interval_month_day_nano_value(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
@@ -1767,23 +1767,23 @@ uint8_t* Value::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteInt64ToArray(23, this->_internal_time_nanosecond_value(), target);
}
// int32 interval_year_month_values = 24;
if (_internal_has_interval_year_month_values()) {
// int32 interval_year_month_value = 24;
if (_internal_has_interval_year_month_value()) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(24, this->_internal_interval_year_month_values(), target);
target = ::_pbi::WireFormatLite::WriteInt32ToArray(24, this->_internal_interval_year_month_value(), target);
}
// int64 interval_day_time_values = 25;
if (_internal_has_interval_day_time_values()) {
// int64 interval_day_time_value = 25;
if (_internal_has_interval_day_time_value()) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(25, this->_internal_interval_day_time_values(), target);
target = ::_pbi::WireFormatLite::WriteInt64ToArray(25, this->_internal_interval_day_time_value(), target);
}
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
if (_internal_has_interval_month_day_nano_values()) {
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26;
if (_internal_has_interval_month_day_nano_value()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(26, _Internal::interval_month_day_nano_values(this),
_Internal::interval_month_day_nano_values(this).GetCachedSize(), target, stream);
InternalWriteMessage(26, _Internal::interval_month_day_nano_value(this),
_Internal::interval_month_day_nano_value(this).GetCachedSize(), target, stream);
}
// int64 duration_second_value = 27;
@@ -1969,25 +1969,25 @@ size_t Value::ByteSizeLong() const {
this->_internal_time_nanosecond_value());
break;
}
// int32 interval_year_month_values = 24;
case kIntervalYearMonthValues: {
// int32 interval_year_month_value = 24;
case kIntervalYearMonthValue: {
total_size += 2 +
::_pbi::WireFormatLite::Int32Size(
this->_internal_interval_year_month_values());
this->_internal_interval_year_month_value());
break;
}
// int64 interval_day_time_values = 25;
case kIntervalDayTimeValues: {
// int64 interval_day_time_value = 25;
case kIntervalDayTimeValue: {
total_size += 2 +
::_pbi::WireFormatLite::Int64Size(
this->_internal_interval_day_time_values());
this->_internal_interval_day_time_value());
break;
}
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
case kIntervalMonthDayNanoValues: {
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26;
case kIntervalMonthDayNanoValue: {
total_size += 2 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.value_data_.interval_month_day_nano_values_);
*_impl_.value_data_.interval_month_day_nano_value_);
break;
}
// int64 duration_second_value = 27;
@@ -2140,17 +2140,17 @@ void Value::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF
_this->_internal_set_time_nanosecond_value(from._internal_time_nanosecond_value());
break;
}
case kIntervalYearMonthValues: {
_this->_internal_set_interval_year_month_values(from._internal_interval_year_month_values());
case kIntervalYearMonthValue: {
_this->_internal_set_interval_year_month_value(from._internal_interval_year_month_value());
break;
}
case kIntervalDayTimeValues: {
_this->_internal_set_interval_day_time_values(from._internal_interval_day_time_values());
case kIntervalDayTimeValue: {
_this->_internal_set_interval_day_time_value(from._internal_interval_day_time_value());
break;
}
case kIntervalMonthDayNanoValues: {
_this->_internal_mutable_interval_month_day_nano_values()->::greptime::v1::IntervalMonthDayNano::MergeFrom(
from._internal_interval_month_day_nano_values());
case kIntervalMonthDayNanoValue: {
_this->_internal_mutable_interval_month_day_nano_value()->::greptime::v1::IntervalMonthDayNano::MergeFrom(
from._internal_interval_month_day_nano_value());
break;
}
case kDurationSecondValue: {
+123 -123
View File
@@ -668,9 +668,9 @@ class Value final :
kTimeMillisecondValue = 21,
kTimeMicrosecondValue = 22,
kTimeNanosecondValue = 23,
kIntervalYearMonthValues = 24,
kIntervalDayTimeValues = 25,
kIntervalMonthDayNanoValues = 26,
kIntervalYearMonthValue = 24,
kIntervalDayTimeValue = 25,
kIntervalMonthDayNanoValue = 26,
kDurationSecondValue = 27,
kDurationMillisecondValue = 28,
kDurationMicrosecondValue = 29,
@@ -780,9 +780,9 @@ class Value final :
kTimeMillisecondValueFieldNumber = 21,
kTimeMicrosecondValueFieldNumber = 22,
kTimeNanosecondValueFieldNumber = 23,
kIntervalYearMonthValuesFieldNumber = 24,
kIntervalDayTimeValuesFieldNumber = 25,
kIntervalMonthDayNanoValuesFieldNumber = 26,
kIntervalYearMonthValueFieldNumber = 24,
kIntervalDayTimeValueFieldNumber = 25,
kIntervalMonthDayNanoValueFieldNumber = 26,
kDurationSecondValueFieldNumber = 27,
kDurationMillisecondValueFieldNumber = 28,
kDurationMicrosecondValueFieldNumber = 29,
@@ -1098,49 +1098,49 @@ class Value final :
void _internal_set_time_nanosecond_value(int64_t value);
public:
// int32 interval_year_month_values = 24;
bool has_interval_year_month_values() const;
// int32 interval_year_month_value = 24;
bool has_interval_year_month_value() const;
private:
bool _internal_has_interval_year_month_values() const;
bool _internal_has_interval_year_month_value() const;
public:
void clear_interval_year_month_values();
int32_t interval_year_month_values() const;
void set_interval_year_month_values(int32_t value);
void clear_interval_year_month_value();
int32_t interval_year_month_value() const;
void set_interval_year_month_value(int32_t value);
private:
int32_t _internal_interval_year_month_values() const;
void _internal_set_interval_year_month_values(int32_t value);
int32_t _internal_interval_year_month_value() const;
void _internal_set_interval_year_month_value(int32_t value);
public:
// int64 interval_day_time_values = 25;
bool has_interval_day_time_values() const;
// int64 interval_day_time_value = 25;
bool has_interval_day_time_value() const;
private:
bool _internal_has_interval_day_time_values() const;
bool _internal_has_interval_day_time_value() const;
public:
void clear_interval_day_time_values();
int64_t interval_day_time_values() const;
void set_interval_day_time_values(int64_t value);
void clear_interval_day_time_value();
int64_t interval_day_time_value() const;
void set_interval_day_time_value(int64_t value);
private:
int64_t _internal_interval_day_time_values() const;
void _internal_set_interval_day_time_values(int64_t value);
int64_t _internal_interval_day_time_value() const;
void _internal_set_interval_day_time_value(int64_t value);
public:
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
bool has_interval_month_day_nano_values() const;
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26;
bool has_interval_month_day_nano_value() const;
private:
bool _internal_has_interval_month_day_nano_values() const;
bool _internal_has_interval_month_day_nano_value() const;
public:
void clear_interval_month_day_nano_values();
const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_values() const;
PROTOBUF_NODISCARD ::greptime::v1::IntervalMonthDayNano* release_interval_month_day_nano_values();
::greptime::v1::IntervalMonthDayNano* mutable_interval_month_day_nano_values();
void set_allocated_interval_month_day_nano_values(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values);
void clear_interval_month_day_nano_value();
const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_value() const;
PROTOBUF_NODISCARD ::greptime::v1::IntervalMonthDayNano* release_interval_month_day_nano_value();
::greptime::v1::IntervalMonthDayNano* mutable_interval_month_day_nano_value();
void set_allocated_interval_month_day_nano_value(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value);
private:
const ::greptime::v1::IntervalMonthDayNano& _internal_interval_month_day_nano_values() const;
::greptime::v1::IntervalMonthDayNano* _internal_mutable_interval_month_day_nano_values();
const ::greptime::v1::IntervalMonthDayNano& _internal_interval_month_day_nano_value() const;
::greptime::v1::IntervalMonthDayNano* _internal_mutable_interval_month_day_nano_value();
public:
void unsafe_arena_set_allocated_interval_month_day_nano_values(
::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values);
::greptime::v1::IntervalMonthDayNano* unsafe_arena_release_interval_month_day_nano_values();
void unsafe_arena_set_allocated_interval_month_day_nano_value(
::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value);
::greptime::v1::IntervalMonthDayNano* unsafe_arena_release_interval_month_day_nano_value();
// int64 duration_second_value = 27;
bool has_duration_second_value() const;
@@ -1240,9 +1240,9 @@ class Value final :
void set_has_time_millisecond_value();
void set_has_time_microsecond_value();
void set_has_time_nanosecond_value();
void set_has_interval_year_month_values();
void set_has_interval_day_time_values();
void set_has_interval_month_day_nano_values();
void set_has_interval_year_month_value();
void set_has_interval_day_time_value();
void set_has_interval_month_day_nano_value();
void set_has_duration_second_value();
void set_has_duration_millisecond_value();
void set_has_duration_microsecond_value();
@@ -1282,9 +1282,9 @@ class Value final :
int64_t time_millisecond_value_;
int64_t time_microsecond_value_;
int64_t time_nanosecond_value_;
int32_t interval_year_month_values_;
int64_t interval_day_time_values_;
::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values_;
int32_t interval_year_month_value_;
int64_t interval_day_time_value_;
::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value_;
int64_t duration_second_value_;
int64_t duration_millisecond_value_;
int64_t duration_microsecond_value_;
@@ -2568,145 +2568,145 @@ inline void Value::set_time_nanosecond_value(int64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.Value.time_nanosecond_value)
}
// int32 interval_year_month_values = 24;
inline bool Value::_internal_has_interval_year_month_values() const {
return value_data_case() == kIntervalYearMonthValues;
// int32 interval_year_month_value = 24;
inline bool Value::_internal_has_interval_year_month_value() const {
return value_data_case() == kIntervalYearMonthValue;
}
inline bool Value::has_interval_year_month_values() const {
return _internal_has_interval_year_month_values();
inline bool Value::has_interval_year_month_value() const {
return _internal_has_interval_year_month_value();
}
inline void Value::set_has_interval_year_month_values() {
_impl_._oneof_case_[0] = kIntervalYearMonthValues;
inline void Value::set_has_interval_year_month_value() {
_impl_._oneof_case_[0] = kIntervalYearMonthValue;
}
inline void Value::clear_interval_year_month_values() {
if (_internal_has_interval_year_month_values()) {
_impl_.value_data_.interval_year_month_values_ = 0;
inline void Value::clear_interval_year_month_value() {
if (_internal_has_interval_year_month_value()) {
_impl_.value_data_.interval_year_month_value_ = 0;
clear_has_value_data();
}
}
inline int32_t Value::_internal_interval_year_month_values() const {
if (_internal_has_interval_year_month_values()) {
return _impl_.value_data_.interval_year_month_values_;
inline int32_t Value::_internal_interval_year_month_value() const {
if (_internal_has_interval_year_month_value()) {
return _impl_.value_data_.interval_year_month_value_;
}
return 0;
}
inline void Value::_internal_set_interval_year_month_values(int32_t value) {
if (!_internal_has_interval_year_month_values()) {
inline void Value::_internal_set_interval_year_month_value(int32_t value) {
if (!_internal_has_interval_year_month_value()) {
clear_value_data();
set_has_interval_year_month_values();
set_has_interval_year_month_value();
}
_impl_.value_data_.interval_year_month_values_ = value;
_impl_.value_data_.interval_year_month_value_ = value;
}
inline int32_t Value::interval_year_month_values() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.interval_year_month_values)
return _internal_interval_year_month_values();
inline int32_t Value::interval_year_month_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.interval_year_month_value)
return _internal_interval_year_month_value();
}
inline void Value::set_interval_year_month_values(int32_t value) {
_internal_set_interval_year_month_values(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.interval_year_month_values)
inline void Value::set_interval_year_month_value(int32_t value) {
_internal_set_interval_year_month_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.interval_year_month_value)
}
// int64 interval_day_time_values = 25;
inline bool Value::_internal_has_interval_day_time_values() const {
return value_data_case() == kIntervalDayTimeValues;
// int64 interval_day_time_value = 25;
inline bool Value::_internal_has_interval_day_time_value() const {
return value_data_case() == kIntervalDayTimeValue;
}
inline bool Value::has_interval_day_time_values() const {
return _internal_has_interval_day_time_values();
inline bool Value::has_interval_day_time_value() const {
return _internal_has_interval_day_time_value();
}
inline void Value::set_has_interval_day_time_values() {
_impl_._oneof_case_[0] = kIntervalDayTimeValues;
inline void Value::set_has_interval_day_time_value() {
_impl_._oneof_case_[0] = kIntervalDayTimeValue;
}
inline void Value::clear_interval_day_time_values() {
if (_internal_has_interval_day_time_values()) {
_impl_.value_data_.interval_day_time_values_ = int64_t{0};
inline void Value::clear_interval_day_time_value() {
if (_internal_has_interval_day_time_value()) {
_impl_.value_data_.interval_day_time_value_ = int64_t{0};
clear_has_value_data();
}
}
inline int64_t Value::_internal_interval_day_time_values() const {
if (_internal_has_interval_day_time_values()) {
return _impl_.value_data_.interval_day_time_values_;
inline int64_t Value::_internal_interval_day_time_value() const {
if (_internal_has_interval_day_time_value()) {
return _impl_.value_data_.interval_day_time_value_;
}
return int64_t{0};
}
inline void Value::_internal_set_interval_day_time_values(int64_t value) {
if (!_internal_has_interval_day_time_values()) {
inline void Value::_internal_set_interval_day_time_value(int64_t value) {
if (!_internal_has_interval_day_time_value()) {
clear_value_data();
set_has_interval_day_time_values();
set_has_interval_day_time_value();
}
_impl_.value_data_.interval_day_time_values_ = value;
_impl_.value_data_.interval_day_time_value_ = value;
}
inline int64_t Value::interval_day_time_values() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.interval_day_time_values)
return _internal_interval_day_time_values();
inline int64_t Value::interval_day_time_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.interval_day_time_value)
return _internal_interval_day_time_value();
}
inline void Value::set_interval_day_time_values(int64_t value) {
_internal_set_interval_day_time_values(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.interval_day_time_values)
inline void Value::set_interval_day_time_value(int64_t value) {
_internal_set_interval_day_time_value(value);
// @@protoc_insertion_point(field_set:greptime.v1.Value.interval_day_time_value)
}
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
inline bool Value::_internal_has_interval_month_day_nano_values() const {
return value_data_case() == kIntervalMonthDayNanoValues;
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_value = 26;
inline bool Value::_internal_has_interval_month_day_nano_value() const {
return value_data_case() == kIntervalMonthDayNanoValue;
}
inline bool Value::has_interval_month_day_nano_values() const {
return _internal_has_interval_month_day_nano_values();
inline bool Value::has_interval_month_day_nano_value() const {
return _internal_has_interval_month_day_nano_value();
}
inline void Value::set_has_interval_month_day_nano_values() {
_impl_._oneof_case_[0] = kIntervalMonthDayNanoValues;
inline void Value::set_has_interval_month_day_nano_value() {
_impl_._oneof_case_[0] = kIntervalMonthDayNanoValue;
}
inline ::greptime::v1::IntervalMonthDayNano* Value::release_interval_month_day_nano_values() {
// @@protoc_insertion_point(field_release:greptime.v1.Value.interval_month_day_nano_values)
if (_internal_has_interval_month_day_nano_values()) {
inline ::greptime::v1::IntervalMonthDayNano* Value::release_interval_month_day_nano_value() {
// @@protoc_insertion_point(field_release:greptime.v1.Value.interval_month_day_nano_value)
if (_internal_has_interval_month_day_nano_value()) {
clear_has_value_data();
::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_values_;
::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_value_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.value_data_.interval_month_day_nano_values_ = nullptr;
_impl_.value_data_.interval_month_day_nano_value_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::IntervalMonthDayNano& Value::_internal_interval_month_day_nano_values() const {
return _internal_has_interval_month_day_nano_values()
? *_impl_.value_data_.interval_month_day_nano_values_
inline const ::greptime::v1::IntervalMonthDayNano& Value::_internal_interval_month_day_nano_value() const {
return _internal_has_interval_month_day_nano_value()
? *_impl_.value_data_.interval_month_day_nano_value_
: reinterpret_cast< ::greptime::v1::IntervalMonthDayNano&>(::greptime::v1::_IntervalMonthDayNano_default_instance_);
}
inline const ::greptime::v1::IntervalMonthDayNano& Value::interval_month_day_nano_values() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.interval_month_day_nano_values)
return _internal_interval_month_day_nano_values();
inline const ::greptime::v1::IntervalMonthDayNano& Value::interval_month_day_nano_value() const {
// @@protoc_insertion_point(field_get:greptime.v1.Value.interval_month_day_nano_value)
return _internal_interval_month_day_nano_value();
}
inline ::greptime::v1::IntervalMonthDayNano* Value::unsafe_arena_release_interval_month_day_nano_values() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.Value.interval_month_day_nano_values)
if (_internal_has_interval_month_day_nano_values()) {
inline ::greptime::v1::IntervalMonthDayNano* Value::unsafe_arena_release_interval_month_day_nano_value() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.Value.interval_month_day_nano_value)
if (_internal_has_interval_month_day_nano_value()) {
clear_has_value_data();
::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_values_;
_impl_.value_data_.interval_month_day_nano_values_ = nullptr;
::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_value_;
_impl_.value_data_.interval_month_day_nano_value_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void Value::unsafe_arena_set_allocated_interval_month_day_nano_values(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_values) {
inline void Value::unsafe_arena_set_allocated_interval_month_day_nano_value(::greptime::v1::IntervalMonthDayNano* interval_month_day_nano_value) {
clear_value_data();
if (interval_month_day_nano_values) {
set_has_interval_month_day_nano_values();
_impl_.value_data_.interval_month_day_nano_values_ = interval_month_day_nano_values;
if (interval_month_day_nano_value) {
set_has_interval_month_day_nano_value();
_impl_.value_data_.interval_month_day_nano_value_ = interval_month_day_nano_value;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.interval_month_day_nano_values)
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.interval_month_day_nano_value)
}
inline ::greptime::v1::IntervalMonthDayNano* Value::_internal_mutable_interval_month_day_nano_values() {
if (!_internal_has_interval_month_day_nano_values()) {
inline ::greptime::v1::IntervalMonthDayNano* Value::_internal_mutable_interval_month_day_nano_value() {
if (!_internal_has_interval_month_day_nano_value()) {
clear_value_data();
set_has_interval_month_day_nano_values();
_impl_.value_data_.interval_month_day_nano_values_ = CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(GetArenaForAllocation());
set_has_interval_month_day_nano_value();
_impl_.value_data_.interval_month_day_nano_value_ = CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(GetArenaForAllocation());
}
return _impl_.value_data_.interval_month_day_nano_values_;
return _impl_.value_data_.interval_month_day_nano_value_;
}
inline ::greptime::v1::IntervalMonthDayNano* Value::mutable_interval_month_day_nano_values() {
::greptime::v1::IntervalMonthDayNano* _msg = _internal_mutable_interval_month_day_nano_values();
// @@protoc_insertion_point(field_mutable:greptime.v1.Value.interval_month_day_nano_values)
inline ::greptime::v1::IntervalMonthDayNano* Value::mutable_interval_month_day_nano_value() {
::greptime::v1::IntervalMonthDayNano* _msg = _internal_mutable_interval_month_day_nano_value();
// @@protoc_insertion_point(field_mutable:greptime.v1.Value.interval_month_day_nano_value)
return _msg;
}