feat: interal type for row protocol, and multi row deletes (#80)
This commit is contained in:
@@ -97,24 +97,9 @@ struct ColumnDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnDefaultTypeInternal _Column_default_instance_;
|
||||
PROTOBUF_CONSTEXPR IntervalMonthDayNano::IntervalMonthDayNano(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.months_)*/0
|
||||
, /*decltype(_impl_.days_)*/0
|
||||
, /*decltype(_impl_.nanoseconds_)*/int64_t{0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct IntervalMonthDayNanoDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR IntervalMonthDayNanoDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~IntervalMonthDayNanoDefaultTypeInternal() {}
|
||||
union {
|
||||
IntervalMonthDayNano _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcolumn_2eproto[3];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcolumn_2eproto[2];
|
||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto = nullptr;
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcolumn_2eproto = nullptr;
|
||||
|
||||
@@ -162,26 +147,15 @@ 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_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.months_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.days_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::Column_Values)},
|
||||
{ 32, -1, -1, sizeof(::greptime::v1::Column)},
|
||||
{ 43, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::_Column_Values_default_instance_._instance,
|
||||
&::greptime::v1::_Column_default_instance_._instance,
|
||||
&::greptime::v1::_IntervalMonthDayNano_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
@@ -209,20 +183,18 @@ const char descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto[] PROTOBUF_S
|
||||
"_month_values\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.IntervalMont"
|
||||
"hDayNano\"I\n\024IntervalMonthDayNano\022\016\n\006mont"
|
||||
"hs\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 "
|
||||
"\001(\003BP\n\016io.greptime.v1B\007ColumnsZ5github.c"
|
||||
"om/GreptimeTeam/greptime-proto/go/grepti"
|
||||
"me/v1b\006proto3"
|
||||
"hDayNanoBP\n\016io.greptime.v1B\007ColumnsZ5git"
|
||||
"hub.com/GreptimeTeam/greptime-proto/go/g"
|
||||
"reptime/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, 1133, descriptor_table_protodef_greptime_2fv1_2fcolumn_2eproto,
|
||||
false, false, 1058, 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, 3,
|
||||
&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,
|
||||
file_level_metadata_greptime_2fv1_2fcolumn_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcolumn_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fcolumn_2eproto,
|
||||
@@ -242,6 +214,9 @@ class Column_Values::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
void Column_Values::clear_interval_month_day_nano_values() {
|
||||
_impl_.interval_month_day_nano_values_.Clear();
|
||||
}
|
||||
Column_Values::Column_Values(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -1788,241 +1763,6 @@ void Column::InternalSwap(Column* other) {
|
||||
file_level_metadata_greptime_2fv1_2fcolumn_2eproto[1]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class IntervalMonthDayNano::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
IntervalMonthDayNano::IntervalMonthDayNano(::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.IntervalMonthDayNano)
|
||||
}
|
||||
IntervalMonthDayNano::IntervalMonthDayNano(const IntervalMonthDayNano& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
IntervalMonthDayNano* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.months_){}
|
||||
, decltype(_impl_.days_){}
|
||||
, decltype(_impl_.nanoseconds_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
::memcpy(&_impl_.months_, &from._impl_.months_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.nanoseconds_) -
|
||||
reinterpret_cast<char*>(&_impl_.months_)) + sizeof(_impl_.nanoseconds_));
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.IntervalMonthDayNano)
|
||||
}
|
||||
|
||||
inline void IntervalMonthDayNano::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.months_){0}
|
||||
, decltype(_impl_.days_){0}
|
||||
, decltype(_impl_.nanoseconds_){int64_t{0}}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
IntervalMonthDayNano::~IntervalMonthDayNano() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.IntervalMonthDayNano)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void IntervalMonthDayNano::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
}
|
||||
|
||||
void IntervalMonthDayNano::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void IntervalMonthDayNano::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.IntervalMonthDayNano)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
::memset(&_impl_.months_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.nanoseconds_) -
|
||||
reinterpret_cast<char*>(&_impl_.months_)) + sizeof(_impl_.nanoseconds_));
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* IntervalMonthDayNano::_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 months = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_impl_.months_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// int32 days = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
_impl_.days_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// int64 nanoseconds = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||
_impl_.nanoseconds_ = ::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* IntervalMonthDayNano::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.IntervalMonthDayNano)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// int32 months = 1;
|
||||
if (this->_internal_months() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_months(), target);
|
||||
}
|
||||
|
||||
// int32 days = 2;
|
||||
if (this->_internal_days() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_days(), target);
|
||||
}
|
||||
|
||||
// int64 nanoseconds = 3;
|
||||
if (this->_internal_nanoseconds() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_nanoseconds(), 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.IntervalMonthDayNano)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t IntervalMonthDayNano::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.IntervalMonthDayNano)
|
||||
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 months = 1;
|
||||
if (this->_internal_months() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_months());
|
||||
}
|
||||
|
||||
// int32 days = 2;
|
||||
if (this->_internal_days() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_days());
|
||||
}
|
||||
|
||||
// int64 nanoseconds = 3;
|
||||
if (this->_internal_nanoseconds() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_nanoseconds());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IntervalMonthDayNano::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
IntervalMonthDayNano::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IntervalMonthDayNano::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void IntervalMonthDayNano::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<IntervalMonthDayNano*>(&to_msg);
|
||||
auto& from = static_cast<const IntervalMonthDayNano&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.IntervalMonthDayNano)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_months() != 0) {
|
||||
_this->_internal_set_months(from._internal_months());
|
||||
}
|
||||
if (from._internal_days() != 0) {
|
||||
_this->_internal_set_days(from._internal_days());
|
||||
}
|
||||
if (from._internal_nanoseconds() != 0) {
|
||||
_this->_internal_set_nanoseconds(from._internal_nanoseconds());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void IntervalMonthDayNano::CopyFrom(const IntervalMonthDayNano& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.IntervalMonthDayNano)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool IntervalMonthDayNano::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(IntervalMonthDayNano, _impl_.nanoseconds_)
|
||||
+ sizeof(IntervalMonthDayNano::_impl_.nanoseconds_)
|
||||
- PROTOBUF_FIELD_OFFSET(IntervalMonthDayNano, _impl_.months_)>(
|
||||
reinterpret_cast<char*>(&_impl_.months_),
|
||||
reinterpret_cast<char*>(&other->_impl_.months_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fcolumn_2eproto_getter, &descriptor_table_greptime_2fv1_2fcolumn_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fcolumn_2eproto[2]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
@@ -2035,10 +1775,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::Column*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::Column >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::Column >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
@@ -53,15 +53,11 @@ extern ColumnDefaultTypeInternal _Column_default_instance_;
|
||||
class Column_Values;
|
||||
struct Column_ValuesDefaultTypeInternal;
|
||||
extern Column_ValuesDefaultTypeInternal _Column_Values_default_instance_;
|
||||
class IntervalMonthDayNano;
|
||||
struct IntervalMonthDayNanoDefaultTypeInternal;
|
||||
extern IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::greptime::v1::Column* Arena::CreateMaybeMessage<::greptime::v1::Column>(Arena*);
|
||||
template<> ::greptime::v1::Column_Values* Arena::CreateMaybeMessage<::greptime::v1::Column_Values>(Arena*);
|
||||
template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
@@ -1060,176 +1056,6 @@ class Column final :
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fcolumn_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class IntervalMonthDayNano final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.IntervalMonthDayNano) */ {
|
||||
public:
|
||||
inline IntervalMonthDayNano() : IntervalMonthDayNano(nullptr) {}
|
||||
~IntervalMonthDayNano() override;
|
||||
explicit PROTOBUF_CONSTEXPR IntervalMonthDayNano(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
IntervalMonthDayNano(const IntervalMonthDayNano& from);
|
||||
IntervalMonthDayNano(IntervalMonthDayNano&& from) noexcept
|
||||
: IntervalMonthDayNano() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline IntervalMonthDayNano& operator=(const IntervalMonthDayNano& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline IntervalMonthDayNano& operator=(IntervalMonthDayNano&& 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 IntervalMonthDayNano& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const IntervalMonthDayNano* internal_default_instance() {
|
||||
return reinterpret_cast<const IntervalMonthDayNano*>(
|
||||
&_IntervalMonthDayNano_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
2;
|
||||
|
||||
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(IntervalMonthDayNano* 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(IntervalMonthDayNano* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
IntervalMonthDayNano* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<IntervalMonthDayNano>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const IntervalMonthDayNano& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const IntervalMonthDayNano& from) {
|
||||
IntervalMonthDayNano::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(IntervalMonthDayNano* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.IntervalMonthDayNano";
|
||||
}
|
||||
protected:
|
||||
explicit IntervalMonthDayNano(::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 {
|
||||
kMonthsFieldNumber = 1,
|
||||
kDaysFieldNumber = 2,
|
||||
kNanosecondsFieldNumber = 3,
|
||||
};
|
||||
// int32 months = 1;
|
||||
void clear_months();
|
||||
int32_t months() const;
|
||||
void set_months(int32_t value);
|
||||
private:
|
||||
int32_t _internal_months() const;
|
||||
void _internal_set_months(int32_t value);
|
||||
public:
|
||||
|
||||
// int32 days = 2;
|
||||
void clear_days();
|
||||
int32_t days() const;
|
||||
void set_days(int32_t value);
|
||||
private:
|
||||
int32_t _internal_days() const;
|
||||
void _internal_set_days(int32_t value);
|
||||
public:
|
||||
|
||||
// int64 nanoseconds = 3;
|
||||
void clear_nanoseconds();
|
||||
int64_t nanoseconds() const;
|
||||
void set_nanoseconds(int64_t value);
|
||||
private:
|
||||
int64_t _internal_nanoseconds() const;
|
||||
void _internal_set_nanoseconds(int64_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.IntervalMonthDayNano)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
int32_t months_;
|
||||
int32_t days_;
|
||||
int64_t nanoseconds_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fcolumn_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
@@ -2479,9 +2305,6 @@ inline int Column_Values::_internal_interval_month_day_nano_values_size() const
|
||||
inline int Column_Values::interval_month_day_nano_values_size() const {
|
||||
return _internal_interval_month_day_nano_values_size();
|
||||
}
|
||||
inline void Column_Values::clear_interval_month_day_nano_values() {
|
||||
_impl_.interval_month_day_nano_values_.Clear();
|
||||
}
|
||||
inline ::greptime::v1::IntervalMonthDayNano* Column_Values::mutable_interval_month_day_nano_values(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.Column.Values.interval_month_day_nano_values)
|
||||
return _impl_.interval_month_day_nano_values_.Mutable(index);
|
||||
@@ -2746,77 +2569,11 @@ inline void Column::set_datatype(::greptime::v1::ColumnDataType value) {
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.Column.datatype)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// IntervalMonthDayNano
|
||||
|
||||
// int32 months = 1;
|
||||
inline void IntervalMonthDayNano::clear_months() {
|
||||
_impl_.months_ = 0;
|
||||
}
|
||||
inline int32_t IntervalMonthDayNano::_internal_months() const {
|
||||
return _impl_.months_;
|
||||
}
|
||||
inline int32_t IntervalMonthDayNano::months() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.IntervalMonthDayNano.months)
|
||||
return _internal_months();
|
||||
}
|
||||
inline void IntervalMonthDayNano::_internal_set_months(int32_t value) {
|
||||
|
||||
_impl_.months_ = value;
|
||||
}
|
||||
inline void IntervalMonthDayNano::set_months(int32_t value) {
|
||||
_internal_set_months(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.IntervalMonthDayNano.months)
|
||||
}
|
||||
|
||||
// int32 days = 2;
|
||||
inline void IntervalMonthDayNano::clear_days() {
|
||||
_impl_.days_ = 0;
|
||||
}
|
||||
inline int32_t IntervalMonthDayNano::_internal_days() const {
|
||||
return _impl_.days_;
|
||||
}
|
||||
inline int32_t IntervalMonthDayNano::days() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.IntervalMonthDayNano.days)
|
||||
return _internal_days();
|
||||
}
|
||||
inline void IntervalMonthDayNano::_internal_set_days(int32_t value) {
|
||||
|
||||
_impl_.days_ = value;
|
||||
}
|
||||
inline void IntervalMonthDayNano::set_days(int32_t value) {
|
||||
_internal_set_days(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.IntervalMonthDayNano.days)
|
||||
}
|
||||
|
||||
// int64 nanoseconds = 3;
|
||||
inline void IntervalMonthDayNano::clear_nanoseconds() {
|
||||
_impl_.nanoseconds_ = int64_t{0};
|
||||
}
|
||||
inline int64_t IntervalMonthDayNano::_internal_nanoseconds() const {
|
||||
return _impl_.nanoseconds_;
|
||||
}
|
||||
inline int64_t IntervalMonthDayNano::nanoseconds() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.IntervalMonthDayNano.nanoseconds)
|
||||
return _internal_nanoseconds();
|
||||
}
|
||||
inline void IntervalMonthDayNano::_internal_set_nanoseconds(int64_t value) {
|
||||
|
||||
_impl_.nanoseconds_ = value;
|
||||
}
|
||||
inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) {
|
||||
_internal_set_nanoseconds(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.IntervalMonthDayNano.nanoseconds)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
+285
-18
@@ -151,9 +151,24 @@ struct ColumnDefDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
|
||||
PROTOBUF_CONSTEXPR IntervalMonthDayNano::IntervalMonthDayNano(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.months_)*/0
|
||||
, /*decltype(_impl_.days_)*/0
|
||||
, /*decltype(_impl_.nanoseconds_)*/int64_t{0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct IntervalMonthDayNanoDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR IntervalMonthDayNanoDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~IntervalMonthDayNanoDefaultTypeInternal() {}
|
||||
union {
|
||||
IntervalMonthDayNano _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[9];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[10];
|
||||
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;
|
||||
|
||||
@@ -239,6 +254,15 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.datatype_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.is_nullable_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _impl_.default_constraint_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.months_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.days_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, 12, -1, sizeof(::greptime::v1::RequestHeader)},
|
||||
@@ -250,6 +274,7 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 57, -1, -1, sizeof(::greptime::v1::AffectedRows)},
|
||||
{ 64, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
||||
{ 71, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||
{ 81, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -262,6 +287,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::_AffectedRows_default_instance_._instance,
|
||||
&::greptime::v1::_FlightMetadata_default_instance_._instance,
|
||||
&::greptime::v1::_ColumnDef_default_instance_._instance,
|
||||
&::greptime::v1::_IntervalMonthDayNano_default_instance_._instance,
|
||||
};
|
||||
|
||||
const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||
@@ -283,27 +309,29 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
|
||||
"\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022-\n\010datatype\030\002 "
|
||||
"\001(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is_n"
|
||||
"ullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001("
|
||||
"\014*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n"
|
||||
"\tTIMESTAMP\020\002*\306\003\n\016ColumnDataType\022\013\n\007BOOLE"
|
||||
"AN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005"
|
||||
"INT64\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\004DATE\020\r\022\014\n\010DA"
|
||||
"TETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMEST"
|
||||
"AMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECO"
|
||||
"ND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_S"
|
||||
"ECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MI"
|
||||
"CROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTE"
|
||||
"RVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030"
|
||||
"\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031BO\n\016io.grep"
|
||||
"time.v1B\006CommonZ5github.com/GreptimeTeam"
|
||||
"/greptime-proto/go/greptime/v1b\006proto3"
|
||||
"\014\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 \001("
|
||||
"\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003*1\n\014"
|
||||
"SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIME"
|
||||
"STAMP\020\002*\306\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022"
|
||||
"\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64"
|
||||
"\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n"
|
||||
"\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006B"
|
||||
"INARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIM"
|
||||
"E\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_M"
|
||||
"ILLISECOND\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_MICROSE"
|
||||
"COND\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\027I"
|
||||
"NTERVAL_MONTH_DAY_NANO\020\031BO\n\016io.greptime."
|
||||
"v1B\006CommonZ5github.com/GreptimeTeam/grep"
|
||||
"time-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, 1318, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
false, false, 1393, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
"greptime/v1/common.proto",
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 9,
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 10,
|
||||
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,
|
||||
@@ -2665,6 +2693,241 @@ void ColumnDef::InternalSwap(ColumnDef* other) {
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class IntervalMonthDayNano::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
IntervalMonthDayNano::IntervalMonthDayNano(::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.IntervalMonthDayNano)
|
||||
}
|
||||
IntervalMonthDayNano::IntervalMonthDayNano(const IntervalMonthDayNano& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
IntervalMonthDayNano* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.months_){}
|
||||
, decltype(_impl_.days_){}
|
||||
, decltype(_impl_.nanoseconds_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
::memcpy(&_impl_.months_, &from._impl_.months_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.nanoseconds_) -
|
||||
reinterpret_cast<char*>(&_impl_.months_)) + sizeof(_impl_.nanoseconds_));
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.IntervalMonthDayNano)
|
||||
}
|
||||
|
||||
inline void IntervalMonthDayNano::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.months_){0}
|
||||
, decltype(_impl_.days_){0}
|
||||
, decltype(_impl_.nanoseconds_){int64_t{0}}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
IntervalMonthDayNano::~IntervalMonthDayNano() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.IntervalMonthDayNano)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void IntervalMonthDayNano::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
}
|
||||
|
||||
void IntervalMonthDayNano::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void IntervalMonthDayNano::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.IntervalMonthDayNano)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
::memset(&_impl_.months_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.nanoseconds_) -
|
||||
reinterpret_cast<char*>(&_impl_.months_)) + sizeof(_impl_.nanoseconds_));
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* IntervalMonthDayNano::_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 months = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_impl_.months_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// int32 days = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
_impl_.days_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// int64 nanoseconds = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||
_impl_.nanoseconds_ = ::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* IntervalMonthDayNano::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.IntervalMonthDayNano)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// int32 months = 1;
|
||||
if (this->_internal_months() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt32ToArray(1, this->_internal_months(), target);
|
||||
}
|
||||
|
||||
// int32 days = 2;
|
||||
if (this->_internal_days() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt32ToArray(2, this->_internal_days(), target);
|
||||
}
|
||||
|
||||
// int64 nanoseconds = 3;
|
||||
if (this->_internal_nanoseconds() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt64ToArray(3, this->_internal_nanoseconds(), 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.IntervalMonthDayNano)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t IntervalMonthDayNano::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.IntervalMonthDayNano)
|
||||
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 months = 1;
|
||||
if (this->_internal_months() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_months());
|
||||
}
|
||||
|
||||
// int32 days = 2;
|
||||
if (this->_internal_days() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_days());
|
||||
}
|
||||
|
||||
// int64 nanoseconds = 3;
|
||||
if (this->_internal_nanoseconds() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_nanoseconds());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData IntervalMonthDayNano::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
IntervalMonthDayNano::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*IntervalMonthDayNano::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void IntervalMonthDayNano::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<IntervalMonthDayNano*>(&to_msg);
|
||||
auto& from = static_cast<const IntervalMonthDayNano&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.IntervalMonthDayNano)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_months() != 0) {
|
||||
_this->_internal_set_months(from._internal_months());
|
||||
}
|
||||
if (from._internal_days() != 0) {
|
||||
_this->_internal_set_days(from._internal_days());
|
||||
}
|
||||
if (from._internal_nanoseconds() != 0) {
|
||||
_this->_internal_set_nanoseconds(from._internal_nanoseconds());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void IntervalMonthDayNano::CopyFrom(const IntervalMonthDayNano& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.IntervalMonthDayNano)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool IntervalMonthDayNano::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(IntervalMonthDayNano, _impl_.nanoseconds_)
|
||||
+ sizeof(IntervalMonthDayNano::_impl_.nanoseconds_)
|
||||
- PROTOBUF_FIELD_OFFSET(IntervalMonthDayNano, _impl_.months_)>(
|
||||
reinterpret_cast<char*>(&_impl_.months_),
|
||||
reinterpret_cast<char*>(&other->_impl_.months_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::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[9]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
@@ -2705,6 +2968,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnDef*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::ColumnDef >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::ColumnDef >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena);
|
||||
}
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
|
||||
// @@protoc_insertion_point(global_scope)
|
||||
|
||||
@@ -62,6 +62,9 @@ extern ColumnDefDefaultTypeInternal _ColumnDef_default_instance_;
|
||||
class FlightMetadata;
|
||||
struct FlightMetadataDefaultTypeInternal;
|
||||
extern FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_;
|
||||
class IntervalMonthDayNano;
|
||||
struct IntervalMonthDayNanoDefaultTypeInternal;
|
||||
extern IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
|
||||
class RequestHeader;
|
||||
struct RequestHeaderDefaultTypeInternal;
|
||||
extern RequestHeaderDefaultTypeInternal _RequestHeader_default_instance_;
|
||||
@@ -82,6 +85,7 @@ template<> ::greptime::v1::AuthHeader* Arena::CreateMaybeMessage<::greptime::v1:
|
||||
template<> ::greptime::v1::Basic* Arena::CreateMaybeMessage<::greptime::v1::Basic>(Arena*);
|
||||
template<> ::greptime::v1::ColumnDef* Arena::CreateMaybeMessage<::greptime::v1::ColumnDef>(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*);
|
||||
template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*);
|
||||
template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*);
|
||||
@@ -1736,6 +1740,176 @@ class ColumnDef final :
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class IntervalMonthDayNano final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.IntervalMonthDayNano) */ {
|
||||
public:
|
||||
inline IntervalMonthDayNano() : IntervalMonthDayNano(nullptr) {}
|
||||
~IntervalMonthDayNano() override;
|
||||
explicit PROTOBUF_CONSTEXPR IntervalMonthDayNano(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
IntervalMonthDayNano(const IntervalMonthDayNano& from);
|
||||
IntervalMonthDayNano(IntervalMonthDayNano&& from) noexcept
|
||||
: IntervalMonthDayNano() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline IntervalMonthDayNano& operator=(const IntervalMonthDayNano& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline IntervalMonthDayNano& operator=(IntervalMonthDayNano&& 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 IntervalMonthDayNano& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const IntervalMonthDayNano* internal_default_instance() {
|
||||
return reinterpret_cast<const IntervalMonthDayNano*>(
|
||||
&_IntervalMonthDayNano_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
|
||||
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(IntervalMonthDayNano* 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(IntervalMonthDayNano* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
IntervalMonthDayNano* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<IntervalMonthDayNano>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const IntervalMonthDayNano& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const IntervalMonthDayNano& from) {
|
||||
IntervalMonthDayNano::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(IntervalMonthDayNano* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.IntervalMonthDayNano";
|
||||
}
|
||||
protected:
|
||||
explicit IntervalMonthDayNano(::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 {
|
||||
kMonthsFieldNumber = 1,
|
||||
kDaysFieldNumber = 2,
|
||||
kNanosecondsFieldNumber = 3,
|
||||
};
|
||||
// int32 months = 1;
|
||||
void clear_months();
|
||||
int32_t months() const;
|
||||
void set_months(int32_t value);
|
||||
private:
|
||||
int32_t _internal_months() const;
|
||||
void _internal_set_months(int32_t value);
|
||||
public:
|
||||
|
||||
// int32 days = 2;
|
||||
void clear_days();
|
||||
int32_t days() const;
|
||||
void set_days(int32_t value);
|
||||
private:
|
||||
int32_t _internal_days() const;
|
||||
void _internal_set_days(int32_t value);
|
||||
public:
|
||||
|
||||
// int64 nanoseconds = 3;
|
||||
void clear_nanoseconds();
|
||||
int64_t nanoseconds() const;
|
||||
void set_nanoseconds(int64_t value);
|
||||
private:
|
||||
int64_t _internal_nanoseconds() const;
|
||||
void _internal_set_nanoseconds(int64_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.IntervalMonthDayNano)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
int32_t months_;
|
||||
int32_t days_;
|
||||
int64_t nanoseconds_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
|
||||
};
|
||||
// ===================================================================
|
||||
|
||||
|
||||
@@ -2792,6 +2966,70 @@ inline void ColumnDef::set_allocated_default_constraint(std::string* default_con
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.ColumnDef.default_constraint)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// IntervalMonthDayNano
|
||||
|
||||
// int32 months = 1;
|
||||
inline void IntervalMonthDayNano::clear_months() {
|
||||
_impl_.months_ = 0;
|
||||
}
|
||||
inline int32_t IntervalMonthDayNano::_internal_months() const {
|
||||
return _impl_.months_;
|
||||
}
|
||||
inline int32_t IntervalMonthDayNano::months() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.IntervalMonthDayNano.months)
|
||||
return _internal_months();
|
||||
}
|
||||
inline void IntervalMonthDayNano::_internal_set_months(int32_t value) {
|
||||
|
||||
_impl_.months_ = value;
|
||||
}
|
||||
inline void IntervalMonthDayNano::set_months(int32_t value) {
|
||||
_internal_set_months(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.IntervalMonthDayNano.months)
|
||||
}
|
||||
|
||||
// int32 days = 2;
|
||||
inline void IntervalMonthDayNano::clear_days() {
|
||||
_impl_.days_ = 0;
|
||||
}
|
||||
inline int32_t IntervalMonthDayNano::_internal_days() const {
|
||||
return _impl_.days_;
|
||||
}
|
||||
inline int32_t IntervalMonthDayNano::days() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.IntervalMonthDayNano.days)
|
||||
return _internal_days();
|
||||
}
|
||||
inline void IntervalMonthDayNano::_internal_set_days(int32_t value) {
|
||||
|
||||
_impl_.days_ = value;
|
||||
}
|
||||
inline void IntervalMonthDayNano::set_days(int32_t value) {
|
||||
_internal_set_days(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.IntervalMonthDayNano.days)
|
||||
}
|
||||
|
||||
// int64 nanoseconds = 3;
|
||||
inline void IntervalMonthDayNano::clear_nanoseconds() {
|
||||
_impl_.nanoseconds_ = int64_t{0};
|
||||
}
|
||||
inline int64_t IntervalMonthDayNano::_internal_nanoseconds() const {
|
||||
return _impl_.nanoseconds_;
|
||||
}
|
||||
inline int64_t IntervalMonthDayNano::nanoseconds() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.IntervalMonthDayNano.nanoseconds)
|
||||
return _internal_nanoseconds();
|
||||
}
|
||||
inline void IntervalMonthDayNano::_internal_set_nanoseconds(int64_t value) {
|
||||
|
||||
_impl_.nanoseconds_ = value;
|
||||
}
|
||||
inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) {
|
||||
_internal_set_nanoseconds(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.IntervalMonthDayNano.nanoseconds)
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#pragma GCC diagnostic pop
|
||||
#endif // __GNUC__
|
||||
@@ -2811,6 +3049,8 @@ inline void ColumnDef::set_allocated_default_constraint(std::string* default_con
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
+279
-66
@@ -152,6 +152,19 @@ struct RowInsertRequestDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowInsertRequestDefaultTypeInternal _RowInsertRequest_default_instance_;
|
||||
PROTOBUF_CONSTEXPR RowDeleteRequests::RowDeleteRequests(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.deletes_)*/{}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct RowDeleteRequestsDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR RowDeleteRequestsDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~RowDeleteRequestsDefaultTypeInternal() {}
|
||||
union {
|
||||
RowDeleteRequests _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowDeleteRequestsDefaultTypeInternal _RowDeleteRequests_default_instance_;
|
||||
PROTOBUF_CONSTEXPR RowDeleteRequest::RowDeleteRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
@@ -169,7 +182,7 @@ struct RowDeleteRequestDefaultTypeInternal {
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RowDeleteRequestDefaultTypeInternal _RowDeleteRequest_default_instance_;
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fdatabase_2eproto[10];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fdatabase_2eproto[11];
|
||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fdatabase_2eproto = nullptr;
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fdatabase_2eproto = nullptr;
|
||||
|
||||
@@ -258,6 +271,13 @@ const uint32_t TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets[] PROTOBUF_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _impl_.rows_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowInsertRequest, _impl_.region_number_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequests, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequests, _impl_.deletes_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::RowDeleteRequest, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
@@ -277,7 +297,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 57, -1, -1, sizeof(::greptime::v1::DeleteRequest)},
|
||||
{ 67, -1, -1, sizeof(::greptime::v1::RowInsertRequests)},
|
||||
{ 74, -1, -1, sizeof(::greptime::v1::RowInsertRequest)},
|
||||
{ 83, -1, -1, sizeof(::greptime::v1::RowDeleteRequest)},
|
||||
{ 83, -1, -1, sizeof(::greptime::v1::RowDeleteRequests)},
|
||||
{ 90, -1, -1, sizeof(::greptime::v1::RowDeleteRequest)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -290,6 +311,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::_DeleteRequest_default_instance_._instance,
|
||||
&::greptime::v1::_RowInsertRequests_default_instance_._instance,
|
||||
&::greptime::v1::_RowInsertRequest_default_instance_._instance,
|
||||
&::greptime::v1::_RowDeleteRequests_default_instance_._instance,
|
||||
&::greptime::v1::_RowDeleteRequest_default_instance_._instance,
|
||||
};
|
||||
|
||||
@@ -298,44 +320,46 @@ const char descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto[] PROTOBUF
|
||||
"1\032\025greptime/v1/ddl.proto\032\030greptime/v1/co"
|
||||
"lumn.proto\032\025greptime/v1/row.proto\032\026grept"
|
||||
"ime/v1/prom.proto\032\030greptime/v1/common.pr"
|
||||
"oto\"\350\002\n\017GreptimeRequest\022*\n\006header\030\001 \001(\0132"
|
||||
"oto\"\352\002\n\017GreptimeRequest\022*\n\006header\030\001 \001(\0132"
|
||||
"\032.greptime.v1.RequestHeader\022.\n\007inserts\030\002"
|
||||
" \001(\0132\033.greptime.v1.InsertRequestsH\000\022*\n\005q"
|
||||
"uery\030\003 \001(\0132\031.greptime.v1.QueryRequestH\000\022"
|
||||
"&\n\003ddl\030\004 \001(\0132\027.greptime.v1.DdlRequestH\000\022"
|
||||
".\n\007deletes\030\005 \001(\0132\033.greptime.v1.DeleteReq"
|
||||
"uestsH\000\0225\n\013row_inserts\030\006 \001(\0132\036.greptime."
|
||||
"v1.RowInsertRequestsH\000\0223\n\nrow_delete\030\007 \001"
|
||||
"(\0132\035.greptime.v1.RowDeleteRequestH\000B\t\n\007r"
|
||||
"equest\"\177\n\020GreptimeResponse\022+\n\006header\030\001 \001"
|
||||
"(\0132\033.greptime.v1.ResponseHeader\0222\n\raffec"
|
||||
"ted_rows\030\002 \001(\0132\031.greptime.v1.AffectedRow"
|
||||
"sH\000B\n\n\010response\"w\n\014QueryRequest\022\r\n\003sql\030\001"
|
||||
" \001(\tH\000\022\026\n\014logical_plan\030\002 \001(\014H\000\0227\n\020prom_r"
|
||||
"ange_query\030\003 \001(\0132\033.greptime.v1.PromRange"
|
||||
"QueryH\000B\007\n\005query\"=\n\016InsertRequests\022+\n\007in"
|
||||
"serts\030\001 \003(\0132\032.greptime.v1.InsertRequest\""
|
||||
"s\n\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$\n\007"
|
||||
"columns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n\tro"
|
||||
"w_count\030\004 \001(\r\022\025\n\rregion_number\030\005 \001(\r\"=\n\016"
|
||||
"DeleteRequests\022+\n\007deletes\030\001 \003(\0132\032.grepti"
|
||||
"me.v1.DeleteRequest\"w\n\rDeleteRequest\022\022\n\n"
|
||||
"table_name\030\001 \001(\t\022\025\n\rregion_number\030\002 \001(\r\022"
|
||||
"(\n\013key_columns\030\003 \003(\0132\023.greptime.v1.Colum"
|
||||
"n\022\021\n\trow_count\030\004 \001(\r\"C\n\021RowInsertRequest"
|
||||
"s\022.\n\007inserts\030\001 \003(\0132\035.greptime.v1.RowInse"
|
||||
"rtRequest\"^\n\020RowInsertRequest\022\022\n\ntable_n"
|
||||
"ame\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1.Ro"
|
||||
"ws\022\025\n\rregion_number\030\003 \001(\r\"^\n\020RowDeleteRe"
|
||||
"quest\022\022\n\ntable_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132"
|
||||
"\021.greptime.v1.Rows\022\025\n\rregion_number\030\003 \001("
|
||||
"\r2\252\001\n\020GreptimeDatabase\022E\n\006Handle\022\034.grept"
|
||||
"ime.v1.GreptimeRequest\032\035.greptime.v1.Gre"
|
||||
"ptimeResponse\022O\n\016HandleRequests\022\034.grepti"
|
||||
"me.v1.GreptimeRequest\032\035.greptime.v1.Grep"
|
||||
"timeResponse(\001BQ\n\016io.greptime.v1B\010Databa"
|
||||
"seZ5github.com/GreptimeTeam/greptime-pro"
|
||||
"to/go/greptime/v1b\006proto3"
|
||||
"v1.RowInsertRequestsH\000\0225\n\013row_deletes\030\007 "
|
||||
"\001(\0132\036.greptime.v1.RowDeleteRequestsH\000B\t\n"
|
||||
"\007request\"\177\n\020GreptimeResponse\022+\n\006header\030\001"
|
||||
" \001(\0132\033.greptime.v1.ResponseHeader\0222\n\raff"
|
||||
"ected_rows\030\002 \001(\0132\031.greptime.v1.AffectedR"
|
||||
"owsH\000B\n\n\010response\"w\n\014QueryRequest\022\r\n\003sql"
|
||||
"\030\001 \001(\tH\000\022\026\n\014logical_plan\030\002 \001(\014H\000\0227\n\020prom"
|
||||
"_range_query\030\003 \001(\0132\033.greptime.v1.PromRan"
|
||||
"geQueryH\000B\007\n\005query\"=\n\016InsertRequests\022+\n\007"
|
||||
"inserts\030\001 \003(\0132\032.greptime.v1.InsertReques"
|
||||
"t\"s\n\rInsertRequest\022\022\n\ntable_name\030\001 \001(\t\022$"
|
||||
"\n\007columns\030\003 \003(\0132\023.greptime.v1.Column\022\021\n\t"
|
||||
"row_count\030\004 \001(\r\022\025\n\rregion_number\030\005 \001(\r\"="
|
||||
"\n\016DeleteRequests\022+\n\007deletes\030\001 \003(\0132\032.grep"
|
||||
"time.v1.DeleteRequest\"w\n\rDeleteRequest\022\022"
|
||||
"\n\ntable_name\030\001 \001(\t\022\025\n\rregion_number\030\002 \001("
|
||||
"\r\022(\n\013key_columns\030\003 \003(\0132\023.greptime.v1.Col"
|
||||
"umn\022\021\n\trow_count\030\004 \001(\r\"C\n\021RowInsertReque"
|
||||
"sts\022.\n\007inserts\030\001 \003(\0132\035.greptime.v1.RowIn"
|
||||
"sertRequest\"^\n\020RowInsertRequest\022\022\n\ntable"
|
||||
"_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptime.v1."
|
||||
"Rows\022\025\n\rregion_number\030\003 \001(\r\"C\n\021RowDelete"
|
||||
"Requests\022.\n\007deletes\030\001 \003(\0132\035.greptime.v1."
|
||||
"RowDeleteRequest\"^\n\020RowDeleteRequest\022\022\n\n"
|
||||
"table_name\030\001 \001(\t\022\037\n\004rows\030\002 \001(\0132\021.greptim"
|
||||
"e.v1.Rows\022\025\n\rregion_number\030\003 \001(\r2\252\001\n\020Gre"
|
||||
"ptimeDatabase\022E\n\006Handle\022\034.greptime.v1.Gr"
|
||||
"eptimeRequest\032\035.greptime.v1.GreptimeResp"
|
||||
"onse\022O\n\016HandleRequests\022\034.greptime.v1.Gre"
|
||||
"ptimeRequest\032\035.greptime.v1.GreptimeRespo"
|
||||
"nse(\001BQ\n\016io.greptime.v1B\010DatabaseZ5githu"
|
||||
"b.com/GreptimeTeam/greptime-proto/go/gre"
|
||||
"ptime/v1b\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps[5] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcolumn_2eproto,
|
||||
@@ -346,9 +370,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fdat
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fdatabase_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fdatabase_2eproto = {
|
||||
false, false, 1665, descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto,
|
||||
false, false, 1736, descriptor_table_protodef_greptime_2fv1_2fdatabase_2eproto,
|
||||
"greptime/v1/database.proto",
|
||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps, 5, 10,
|
||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_once, descriptor_table_greptime_2fv1_2fdatabase_2eproto_deps, 5, 11,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fdatabase_2eproto::offsets,
|
||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto, file_level_enum_descriptors_greptime_2fv1_2fdatabase_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fdatabase_2eproto,
|
||||
@@ -372,7 +396,7 @@ class GreptimeRequest::_Internal {
|
||||
static const ::greptime::v1::DdlRequest& ddl(const GreptimeRequest* msg);
|
||||
static const ::greptime::v1::DeleteRequests& deletes(const GreptimeRequest* msg);
|
||||
static const ::greptime::v1::RowInsertRequests& row_inserts(const GreptimeRequest* msg);
|
||||
static const ::greptime::v1::RowDeleteRequest& row_delete(const GreptimeRequest* msg);
|
||||
static const ::greptime::v1::RowDeleteRequests& row_deletes(const GreptimeRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::RequestHeader&
|
||||
@@ -399,9 +423,9 @@ const ::greptime::v1::RowInsertRequests&
|
||||
GreptimeRequest::_Internal::row_inserts(const GreptimeRequest* msg) {
|
||||
return *msg->_impl_.request_.row_inserts_;
|
||||
}
|
||||
const ::greptime::v1::RowDeleteRequest&
|
||||
GreptimeRequest::_Internal::row_delete(const GreptimeRequest* msg) {
|
||||
return *msg->_impl_.request_.row_delete_;
|
||||
const ::greptime::v1::RowDeleteRequests&
|
||||
GreptimeRequest::_Internal::row_deletes(const GreptimeRequest* msg) {
|
||||
return *msg->_impl_.request_.row_deletes_;
|
||||
}
|
||||
void GreptimeRequest::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
@@ -493,20 +517,20 @@ void GreptimeRequest::set_allocated_row_inserts(::greptime::v1::RowInsertRequest
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.GreptimeRequest.row_inserts)
|
||||
}
|
||||
void GreptimeRequest::set_allocated_row_delete(::greptime::v1::RowDeleteRequest* row_delete) {
|
||||
void GreptimeRequest::set_allocated_row_deletes(::greptime::v1::RowDeleteRequests* row_deletes) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_request();
|
||||
if (row_delete) {
|
||||
if (row_deletes) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(row_delete);
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(row_deletes);
|
||||
if (message_arena != submessage_arena) {
|
||||
row_delete = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, row_delete, submessage_arena);
|
||||
row_deletes = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, row_deletes, submessage_arena);
|
||||
}
|
||||
set_has_row_delete();
|
||||
_impl_.request_.row_delete_ = row_delete;
|
||||
set_has_row_deletes();
|
||||
_impl_.request_.row_deletes_ = row_deletes;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.GreptimeRequest.row_delete)
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.GreptimeRequest.row_deletes)
|
||||
}
|
||||
GreptimeRequest::GreptimeRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
@@ -554,9 +578,9 @@ GreptimeRequest::GreptimeRequest(const GreptimeRequest& from)
|
||||
from._internal_row_inserts());
|
||||
break;
|
||||
}
|
||||
case kRowDelete: {
|
||||
_this->_internal_mutable_row_delete()->::greptime::v1::RowDeleteRequest::MergeFrom(
|
||||
from._internal_row_delete());
|
||||
case kRowDeletes: {
|
||||
_this->_internal_mutable_row_deletes()->::greptime::v1::RowDeleteRequests::MergeFrom(
|
||||
from._internal_row_deletes());
|
||||
break;
|
||||
}
|
||||
case REQUEST_NOT_SET: {
|
||||
@@ -633,9 +657,9 @@ void GreptimeRequest::clear_request() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kRowDelete: {
|
||||
case kRowDeletes: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.request_.row_delete_;
|
||||
delete _impl_.request_.row_deletes_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -715,10 +739,10 @@ const char* GreptimeRequest::_InternalParse(const char* ptr, ::_pbi::ParseContex
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.RowDeleteRequest row_delete = 7;
|
||||
// .greptime.v1.RowDeleteRequests row_deletes = 7;
|
||||
case 7:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_row_delete(), ptr);
|
||||
ptr = ctx->ParseMessage(_internal_mutable_row_deletes(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
@@ -794,11 +818,11 @@ uint8_t* GreptimeRequest::_InternalSerialize(
|
||||
_Internal::row_inserts(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.RowDeleteRequest row_delete = 7;
|
||||
if (_internal_has_row_delete()) {
|
||||
// .greptime.v1.RowDeleteRequests row_deletes = 7;
|
||||
if (_internal_has_row_deletes()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(7, _Internal::row_delete(this),
|
||||
_Internal::row_delete(this).GetCachedSize(), target, stream);
|
||||
InternalWriteMessage(7, _Internal::row_deletes(this),
|
||||
_Internal::row_deletes(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
@@ -860,11 +884,11 @@ size_t GreptimeRequest::ByteSizeLong() const {
|
||||
*_impl_.request_.row_inserts_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.RowDeleteRequest row_delete = 7;
|
||||
case kRowDelete: {
|
||||
// .greptime.v1.RowDeleteRequests row_deletes = 7;
|
||||
case kRowDeletes: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.request_.row_delete_);
|
||||
*_impl_.request_.row_deletes_);
|
||||
break;
|
||||
}
|
||||
case REQUEST_NOT_SET: {
|
||||
@@ -919,9 +943,9 @@ void GreptimeRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
|
||||
from._internal_row_inserts());
|
||||
break;
|
||||
}
|
||||
case kRowDelete: {
|
||||
_this->_internal_mutable_row_delete()->::greptime::v1::RowDeleteRequest::MergeFrom(
|
||||
from._internal_row_delete());
|
||||
case kRowDeletes: {
|
||||
_this->_internal_mutable_row_deletes()->::greptime::v1::RowDeleteRequests::MergeFrom(
|
||||
from._internal_row_deletes());
|
||||
break;
|
||||
}
|
||||
case REQUEST_NOT_SET: {
|
||||
@@ -3028,6 +3052,191 @@ void RowInsertRequest::InternalSwap(RowInsertRequest* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class RowDeleteRequests::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
RowDeleteRequests::RowDeleteRequests(::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.RowDeleteRequests)
|
||||
}
|
||||
RowDeleteRequests::RowDeleteRequests(const RowDeleteRequests& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
RowDeleteRequests* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.deletes_){from._impl_.deletes_}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.RowDeleteRequests)
|
||||
}
|
||||
|
||||
inline void RowDeleteRequests::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.deletes_){arena}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
RowDeleteRequests::~RowDeleteRequests() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.RowDeleteRequests)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void RowDeleteRequests::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.deletes_.~RepeatedPtrField();
|
||||
}
|
||||
|
||||
void RowDeleteRequests::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void RowDeleteRequests::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.RowDeleteRequests)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.deletes_.Clear();
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* RowDeleteRequests::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// repeated .greptime.v1.RowDeleteRequest deletes = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr -= 1;
|
||||
do {
|
||||
ptr += 1;
|
||||
ptr = ctx->ParseMessage(_internal_add_deletes(), ptr);
|
||||
CHK_(ptr);
|
||||
if (!ctx->DataAvailable(ptr)) break;
|
||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* RowDeleteRequests::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.RowDeleteRequests)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// repeated .greptime.v1.RowDeleteRequest deletes = 1;
|
||||
for (unsigned i = 0,
|
||||
n = static_cast<unsigned>(this->_internal_deletes_size()); i < n; i++) {
|
||||
const auto& repfield = this->_internal_deletes(i);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.RowDeleteRequests)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t RowDeleteRequests::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.RowDeleteRequests)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// repeated .greptime.v1.RowDeleteRequest deletes = 1;
|
||||
total_size += 1UL * this->_internal_deletes_size();
|
||||
for (const auto& msg : this->_impl_.deletes_) {
|
||||
total_size +=
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RowDeleteRequests::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
RowDeleteRequests::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RowDeleteRequests::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void RowDeleteRequests::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<RowDeleteRequests*>(&to_msg);
|
||||
auto& from = static_cast<const RowDeleteRequests&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.RowDeleteRequests)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
_this->_impl_.deletes_.MergeFrom(from._impl_.deletes_);
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void RowDeleteRequests::CopyFrom(const RowDeleteRequests& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.RowDeleteRequests)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool RowDeleteRequests::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void RowDeleteRequests::InternalSwap(RowDeleteRequests* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.deletes_.InternalSwap(&other->_impl_.deletes_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata RowDeleteRequests::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[9]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class RowDeleteRequest::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::Rows& rows(const RowDeleteRequest* msg);
|
||||
@@ -3305,7 +3514,7 @@ void RowDeleteRequest::InternalSwap(RowDeleteRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata RowDeleteRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fdatabase_2eproto_getter, &descriptor_table_greptime_2fv1_2fdatabase_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[9]);
|
||||
file_level_metadata_greptime_2fv1_2fdatabase_2eproto[10]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -3348,6 +3557,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::RowInsertRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::RowInsertRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::RowInsertRequest >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::RowDeleteRequests*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::RowDeleteRequests >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::RowDeleteRequests >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::RowDeleteRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::RowDeleteRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::RowDeleteRequest >(arena);
|
||||
|
||||
+265
-58
@@ -75,6 +75,9 @@ extern QueryRequestDefaultTypeInternal _QueryRequest_default_instance_;
|
||||
class RowDeleteRequest;
|
||||
struct RowDeleteRequestDefaultTypeInternal;
|
||||
extern RowDeleteRequestDefaultTypeInternal _RowDeleteRequest_default_instance_;
|
||||
class RowDeleteRequests;
|
||||
struct RowDeleteRequestsDefaultTypeInternal;
|
||||
extern RowDeleteRequestsDefaultTypeInternal _RowDeleteRequests_default_instance_;
|
||||
class RowInsertRequest;
|
||||
struct RowInsertRequestDefaultTypeInternal;
|
||||
extern RowInsertRequestDefaultTypeInternal _RowInsertRequest_default_instance_;
|
||||
@@ -92,6 +95,7 @@ template<> ::greptime::v1::InsertRequest* Arena::CreateMaybeMessage<::greptime::
|
||||
template<> ::greptime::v1::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::InsertRequests>(Arena*);
|
||||
template<> ::greptime::v1::QueryRequest* Arena::CreateMaybeMessage<::greptime::v1::QueryRequest>(Arena*);
|
||||
template<> ::greptime::v1::RowDeleteRequest* Arena::CreateMaybeMessage<::greptime::v1::RowDeleteRequest>(Arena*);
|
||||
template<> ::greptime::v1::RowDeleteRequests* Arena::CreateMaybeMessage<::greptime::v1::RowDeleteRequests>(Arena*);
|
||||
template<> ::greptime::v1::RowInsertRequest* Arena::CreateMaybeMessage<::greptime::v1::RowInsertRequest>(Arena*);
|
||||
template<> ::greptime::v1::RowInsertRequests* Arena::CreateMaybeMessage<::greptime::v1::RowInsertRequests>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
@@ -149,7 +153,7 @@ class GreptimeRequest final :
|
||||
kDdl = 4,
|
||||
kDeletes = 5,
|
||||
kRowInserts = 6,
|
||||
kRowDelete = 7,
|
||||
kRowDeletes = 7,
|
||||
REQUEST_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -237,7 +241,7 @@ class GreptimeRequest final :
|
||||
kDdlFieldNumber = 4,
|
||||
kDeletesFieldNumber = 5,
|
||||
kRowInsertsFieldNumber = 6,
|
||||
kRowDeleteFieldNumber = 7,
|
||||
kRowDeletesFieldNumber = 7,
|
||||
};
|
||||
// .greptime.v1.RequestHeader header = 1;
|
||||
bool has_header() const;
|
||||
@@ -347,23 +351,23 @@ class GreptimeRequest final :
|
||||
::greptime::v1::RowInsertRequests* row_inserts);
|
||||
::greptime::v1::RowInsertRequests* unsafe_arena_release_row_inserts();
|
||||
|
||||
// .greptime.v1.RowDeleteRequest row_delete = 7;
|
||||
bool has_row_delete() const;
|
||||
// .greptime.v1.RowDeleteRequests row_deletes = 7;
|
||||
bool has_row_deletes() const;
|
||||
private:
|
||||
bool _internal_has_row_delete() const;
|
||||
bool _internal_has_row_deletes() const;
|
||||
public:
|
||||
void clear_row_delete();
|
||||
const ::greptime::v1::RowDeleteRequest& row_delete() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::RowDeleteRequest* release_row_delete();
|
||||
::greptime::v1::RowDeleteRequest* mutable_row_delete();
|
||||
void set_allocated_row_delete(::greptime::v1::RowDeleteRequest* row_delete);
|
||||
void clear_row_deletes();
|
||||
const ::greptime::v1::RowDeleteRequests& row_deletes() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::RowDeleteRequests* release_row_deletes();
|
||||
::greptime::v1::RowDeleteRequests* mutable_row_deletes();
|
||||
void set_allocated_row_deletes(::greptime::v1::RowDeleteRequests* row_deletes);
|
||||
private:
|
||||
const ::greptime::v1::RowDeleteRequest& _internal_row_delete() const;
|
||||
::greptime::v1::RowDeleteRequest* _internal_mutable_row_delete();
|
||||
const ::greptime::v1::RowDeleteRequests& _internal_row_deletes() const;
|
||||
::greptime::v1::RowDeleteRequests* _internal_mutable_row_deletes();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_row_delete(
|
||||
::greptime::v1::RowDeleteRequest* row_delete);
|
||||
::greptime::v1::RowDeleteRequest* unsafe_arena_release_row_delete();
|
||||
void unsafe_arena_set_allocated_row_deletes(
|
||||
::greptime::v1::RowDeleteRequests* row_deletes);
|
||||
::greptime::v1::RowDeleteRequests* unsafe_arena_release_row_deletes();
|
||||
|
||||
void clear_request();
|
||||
RequestCase request_case() const;
|
||||
@@ -375,7 +379,7 @@ class GreptimeRequest final :
|
||||
void set_has_ddl();
|
||||
void set_has_deletes();
|
||||
void set_has_row_inserts();
|
||||
void set_has_row_delete();
|
||||
void set_has_row_deletes();
|
||||
|
||||
inline bool has_request() const;
|
||||
inline void clear_has_request();
|
||||
@@ -393,7 +397,7 @@ class GreptimeRequest final :
|
||||
::greptime::v1::DdlRequest* ddl_;
|
||||
::greptime::v1::DeleteRequests* deletes_;
|
||||
::greptime::v1::RowInsertRequests* row_inserts_;
|
||||
::greptime::v1::RowDeleteRequest* row_delete_;
|
||||
::greptime::v1::RowDeleteRequests* row_deletes_;
|
||||
} request_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@@ -1861,6 +1865,163 @@ class RowInsertRequest final :
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class RowDeleteRequests final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RowDeleteRequests) */ {
|
||||
public:
|
||||
inline RowDeleteRequests() : RowDeleteRequests(nullptr) {}
|
||||
~RowDeleteRequests() override;
|
||||
explicit PROTOBUF_CONSTEXPR RowDeleteRequests(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
RowDeleteRequests(const RowDeleteRequests& from);
|
||||
RowDeleteRequests(RowDeleteRequests&& from) noexcept
|
||||
: RowDeleteRequests() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline RowDeleteRequests& operator=(const RowDeleteRequests& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline RowDeleteRequests& operator=(RowDeleteRequests&& 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 RowDeleteRequests& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const RowDeleteRequests* internal_default_instance() {
|
||||
return reinterpret_cast<const RowDeleteRequests*>(
|
||||
&_RowDeleteRequests_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
|
||||
friend void swap(RowDeleteRequests& a, RowDeleteRequests& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(RowDeleteRequests* 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(RowDeleteRequests* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
RowDeleteRequests* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<RowDeleteRequests>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const RowDeleteRequests& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const RowDeleteRequests& from) {
|
||||
RowDeleteRequests::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(RowDeleteRequests* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.RowDeleteRequests";
|
||||
}
|
||||
protected:
|
||||
explicit RowDeleteRequests(::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 {
|
||||
kDeletesFieldNumber = 1,
|
||||
};
|
||||
// repeated .greptime.v1.RowDeleteRequest deletes = 1;
|
||||
int deletes_size() const;
|
||||
private:
|
||||
int _internal_deletes_size() const;
|
||||
public:
|
||||
void clear_deletes();
|
||||
::greptime::v1::RowDeleteRequest* mutable_deletes(int index);
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowDeleteRequest >*
|
||||
mutable_deletes();
|
||||
private:
|
||||
const ::greptime::v1::RowDeleteRequest& _internal_deletes(int index) const;
|
||||
::greptime::v1::RowDeleteRequest* _internal_add_deletes();
|
||||
public:
|
||||
const ::greptime::v1::RowDeleteRequest& deletes(int index) const;
|
||||
::greptime::v1::RowDeleteRequest* add_deletes();
|
||||
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowDeleteRequest >&
|
||||
deletes() const;
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.RowDeleteRequests)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowDeleteRequest > deletes_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fdatabase_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class RowDeleteRequest final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.RowDeleteRequest) */ {
|
||||
public:
|
||||
@@ -1909,7 +2070,7 @@ class RowDeleteRequest final :
|
||||
&_RowDeleteRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
10;
|
||||
|
||||
friend void swap(RowDeleteRequest& a, RowDeleteRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2501,77 +2662,77 @@ inline ::greptime::v1::RowInsertRequests* GreptimeRequest::mutable_row_inserts()
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.RowDeleteRequest row_delete = 7;
|
||||
inline bool GreptimeRequest::_internal_has_row_delete() const {
|
||||
return request_case() == kRowDelete;
|
||||
// .greptime.v1.RowDeleteRequests row_deletes = 7;
|
||||
inline bool GreptimeRequest::_internal_has_row_deletes() const {
|
||||
return request_case() == kRowDeletes;
|
||||
}
|
||||
inline bool GreptimeRequest::has_row_delete() const {
|
||||
return _internal_has_row_delete();
|
||||
inline bool GreptimeRequest::has_row_deletes() const {
|
||||
return _internal_has_row_deletes();
|
||||
}
|
||||
inline void GreptimeRequest::set_has_row_delete() {
|
||||
_impl_._oneof_case_[0] = kRowDelete;
|
||||
inline void GreptimeRequest::set_has_row_deletes() {
|
||||
_impl_._oneof_case_[0] = kRowDeletes;
|
||||
}
|
||||
inline void GreptimeRequest::clear_row_delete() {
|
||||
if (_internal_has_row_delete()) {
|
||||
inline void GreptimeRequest::clear_row_deletes() {
|
||||
if (_internal_has_row_deletes()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.request_.row_delete_;
|
||||
delete _impl_.request_.row_deletes_;
|
||||
}
|
||||
clear_has_request();
|
||||
}
|
||||
}
|
||||
inline ::greptime::v1::RowDeleteRequest* GreptimeRequest::release_row_delete() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.GreptimeRequest.row_delete)
|
||||
if (_internal_has_row_delete()) {
|
||||
inline ::greptime::v1::RowDeleteRequests* GreptimeRequest::release_row_deletes() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.GreptimeRequest.row_deletes)
|
||||
if (_internal_has_row_deletes()) {
|
||||
clear_has_request();
|
||||
::greptime::v1::RowDeleteRequest* temp = _impl_.request_.row_delete_;
|
||||
::greptime::v1::RowDeleteRequests* temp = _impl_.request_.row_deletes_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.request_.row_delete_ = nullptr;
|
||||
_impl_.request_.row_deletes_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::RowDeleteRequest& GreptimeRequest::_internal_row_delete() const {
|
||||
return _internal_has_row_delete()
|
||||
? *_impl_.request_.row_delete_
|
||||
: reinterpret_cast< ::greptime::v1::RowDeleteRequest&>(::greptime::v1::_RowDeleteRequest_default_instance_);
|
||||
inline const ::greptime::v1::RowDeleteRequests& GreptimeRequest::_internal_row_deletes() const {
|
||||
return _internal_has_row_deletes()
|
||||
? *_impl_.request_.row_deletes_
|
||||
: reinterpret_cast< ::greptime::v1::RowDeleteRequests&>(::greptime::v1::_RowDeleteRequests_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::RowDeleteRequest& GreptimeRequest::row_delete() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.GreptimeRequest.row_delete)
|
||||
return _internal_row_delete();
|
||||
inline const ::greptime::v1::RowDeleteRequests& GreptimeRequest::row_deletes() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.GreptimeRequest.row_deletes)
|
||||
return _internal_row_deletes();
|
||||
}
|
||||
inline ::greptime::v1::RowDeleteRequest* GreptimeRequest::unsafe_arena_release_row_delete() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.GreptimeRequest.row_delete)
|
||||
if (_internal_has_row_delete()) {
|
||||
inline ::greptime::v1::RowDeleteRequests* GreptimeRequest::unsafe_arena_release_row_deletes() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.GreptimeRequest.row_deletes)
|
||||
if (_internal_has_row_deletes()) {
|
||||
clear_has_request();
|
||||
::greptime::v1::RowDeleteRequest* temp = _impl_.request_.row_delete_;
|
||||
_impl_.request_.row_delete_ = nullptr;
|
||||
::greptime::v1::RowDeleteRequests* temp = _impl_.request_.row_deletes_;
|
||||
_impl_.request_.row_deletes_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void GreptimeRequest::unsafe_arena_set_allocated_row_delete(::greptime::v1::RowDeleteRequest* row_delete) {
|
||||
inline void GreptimeRequest::unsafe_arena_set_allocated_row_deletes(::greptime::v1::RowDeleteRequests* row_deletes) {
|
||||
clear_request();
|
||||
if (row_delete) {
|
||||
set_has_row_delete();
|
||||
_impl_.request_.row_delete_ = row_delete;
|
||||
if (row_deletes) {
|
||||
set_has_row_deletes();
|
||||
_impl_.request_.row_deletes_ = row_deletes;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.GreptimeRequest.row_delete)
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.GreptimeRequest.row_deletes)
|
||||
}
|
||||
inline ::greptime::v1::RowDeleteRequest* GreptimeRequest::_internal_mutable_row_delete() {
|
||||
if (!_internal_has_row_delete()) {
|
||||
inline ::greptime::v1::RowDeleteRequests* GreptimeRequest::_internal_mutable_row_deletes() {
|
||||
if (!_internal_has_row_deletes()) {
|
||||
clear_request();
|
||||
set_has_row_delete();
|
||||
_impl_.request_.row_delete_ = CreateMaybeMessage< ::greptime::v1::RowDeleteRequest >(GetArenaForAllocation());
|
||||
set_has_row_deletes();
|
||||
_impl_.request_.row_deletes_ = CreateMaybeMessage< ::greptime::v1::RowDeleteRequests >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.request_.row_delete_;
|
||||
return _impl_.request_.row_deletes_;
|
||||
}
|
||||
inline ::greptime::v1::RowDeleteRequest* GreptimeRequest::mutable_row_delete() {
|
||||
::greptime::v1::RowDeleteRequest* _msg = _internal_mutable_row_delete();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.GreptimeRequest.row_delete)
|
||||
inline ::greptime::v1::RowDeleteRequests* GreptimeRequest::mutable_row_deletes() {
|
||||
::greptime::v1::RowDeleteRequests* _msg = _internal_mutable_row_deletes();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.GreptimeRequest.row_deletes)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
@@ -3536,6 +3697,50 @@ inline void RowInsertRequest::set_region_number(uint32_t value) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// RowDeleteRequests
|
||||
|
||||
// repeated .greptime.v1.RowDeleteRequest deletes = 1;
|
||||
inline int RowDeleteRequests::_internal_deletes_size() const {
|
||||
return _impl_.deletes_.size();
|
||||
}
|
||||
inline int RowDeleteRequests::deletes_size() const {
|
||||
return _internal_deletes_size();
|
||||
}
|
||||
inline void RowDeleteRequests::clear_deletes() {
|
||||
_impl_.deletes_.Clear();
|
||||
}
|
||||
inline ::greptime::v1::RowDeleteRequest* RowDeleteRequests::mutable_deletes(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.RowDeleteRequests.deletes)
|
||||
return _impl_.deletes_.Mutable(index);
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowDeleteRequest >*
|
||||
RowDeleteRequests::mutable_deletes() {
|
||||
// @@protoc_insertion_point(field_mutable_list:greptime.v1.RowDeleteRequests.deletes)
|
||||
return &_impl_.deletes_;
|
||||
}
|
||||
inline const ::greptime::v1::RowDeleteRequest& RowDeleteRequests::_internal_deletes(int index) const {
|
||||
return _impl_.deletes_.Get(index);
|
||||
}
|
||||
inline const ::greptime::v1::RowDeleteRequest& RowDeleteRequests::deletes(int index) const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.RowDeleteRequests.deletes)
|
||||
return _internal_deletes(index);
|
||||
}
|
||||
inline ::greptime::v1::RowDeleteRequest* RowDeleteRequests::_internal_add_deletes() {
|
||||
return _impl_.deletes_.Add();
|
||||
}
|
||||
inline ::greptime::v1::RowDeleteRequest* RowDeleteRequests::add_deletes() {
|
||||
::greptime::v1::RowDeleteRequest* _add = _internal_add_deletes();
|
||||
// @@protoc_insertion_point(field_add:greptime.v1.RowDeleteRequests.deletes)
|
||||
return _add;
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::RowDeleteRequest >&
|
||||
RowDeleteRequests::deletes() const {
|
||||
// @@protoc_insertion_point(field_list:greptime.v1.RowDeleteRequests.deletes)
|
||||
return _impl_.deletes_;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// RowDeleteRequest
|
||||
|
||||
// string table_name = 1;
|
||||
@@ -3714,6 +3919,8 @@ inline void RowDeleteRequest::set_region_number(uint32_t value) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
+146
-6
@@ -138,6 +138,9 @@ const uint32_t TableStruct_greptime_2fv1_2frow_2eproto::offsets[] PROTOBUF_SECTI
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_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) = {
|
||||
@@ -163,7 +166,7 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT
|
||||
"\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\"\327\004\n\005Value\022\022\n\010i8_value\030\001 \001(\005H\000\022\023\n\ti16"
|
||||
"lue\"\356\005\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"
|
||||
@@ -177,17 +180,21 @@ const char descriptor_table_protodef_greptime_2fv1_2frow_2eproto[] PROTOBUF_SECT
|
||||
"osecond_value\030\023 \001(\003H\000\022\033\n\021time_second_val"
|
||||
"ue\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_nanosecond_value\030\027 \001(\003H\000B\014\n\nvalue"
|
||||
"_dataBP\n\016io.greptime.v1B\007RowDataZ5github"
|
||||
".com/GreptimeTeam/greptime-proto/go/grep"
|
||||
"time/v1b\006proto3"
|
||||
"\n\025time_nanosecond_value\030\027 \001(\003H\000\022$\n\032inter"
|
||||
"val_year_month_values\030\030 \001(\005H\000\022\"\n\030interva"
|
||||
"l_day_time_values\030\031 \001(\003H\000\022K\n\036interval_mo"
|
||||
"nth_day_nano_values\030\032 \001(\0132!.greptime.v1."
|
||||
"IntervalMonthDayNanoH\000B\014\n\nvalue_dataBP\n\016"
|
||||
"io.greptime.v1B\007RowDataZ5github.com/Grep"
|
||||
"timeTeam/greptime-proto/go/greptime/v1b\006"
|
||||
"proto3"
|
||||
;
|
||||
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, 1015, descriptor_table_protodef_greptime_2fv1_2frow_2eproto,
|
||||
false, false, 1166, 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,
|
||||
@@ -880,8 +887,37 @@ void Row::InternalSwap(Row* other) {
|
||||
|
||||
class Value::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::IntervalMonthDayNano& interval_month_day_nano_values(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_;
|
||||
}
|
||||
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();
|
||||
if (interval_month_day_nano_values) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(interval_month_day_nano_values));
|
||||
if (message_arena != submessage_arena) {
|
||||
interval_month_day_nano_values = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, interval_month_day_nano_values, submessage_arena);
|
||||
}
|
||||
set_has_interval_month_day_nano_values();
|
||||
_impl_.value_data_.interval_month_day_nano_values_ = interval_month_day_nano_values;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.Value.interval_month_day_nano_values)
|
||||
}
|
||||
void Value::clear_interval_month_day_nano_values() {
|
||||
if (_internal_has_interval_month_day_nano_values()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.value_data_.interval_month_day_nano_values_;
|
||||
}
|
||||
clear_has_value_data();
|
||||
}
|
||||
}
|
||||
Value::Value(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -991,6 +1027,19 @@ 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());
|
||||
break;
|
||||
}
|
||||
case kIntervalDayTimeValues: {
|
||||
_this->_internal_set_interval_day_time_values(from._internal_interval_day_time_values());
|
||||
break;
|
||||
}
|
||||
case kIntervalMonthDayNanoValues: {
|
||||
_this->_internal_mutable_interval_month_day_nano_values()->::greptime::v1::IntervalMonthDayNano::MergeFrom(
|
||||
from._internal_interval_month_day_nano_values());
|
||||
break;
|
||||
}
|
||||
case VALUE_DATA_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -1125,6 +1174,20 @@ void Value::clear_value_data() {
|
||||
// No need to clear
|
||||
break;
|
||||
}
|
||||
case kIntervalYearMonthValues: {
|
||||
// No need to clear
|
||||
break;
|
||||
}
|
||||
case kIntervalDayTimeValues: {
|
||||
// No need to clear
|
||||
break;
|
||||
}
|
||||
case kIntervalMonthDayNanoValues: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.value_data_.interval_month_day_nano_values_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case VALUE_DATA_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -1336,6 +1399,30 @@ const char* Value::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// int32 interval_year_month_values = 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));
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// int64 interval_day_time_values = 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));
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
|
||||
case 26:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 210)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_interval_month_day_nano_values(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -1507,6 +1594,25 @@ 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()) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt32ToArray(24, this->_internal_interval_year_month_values(), target);
|
||||
}
|
||||
|
||||
// int64 interval_day_time_values = 25;
|
||||
if (_internal_has_interval_day_time_values()) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt64ToArray(25, this->_internal_interval_day_time_values(), target);
|
||||
}
|
||||
|
||||
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
|
||||
if (_internal_has_interval_month_day_nano_values()) {
|
||||
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);
|
||||
}
|
||||
|
||||
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);
|
||||
@@ -1659,6 +1765,27 @@ size_t Value::ByteSizeLong() const {
|
||||
this->_internal_time_nanosecond_value());
|
||||
break;
|
||||
}
|
||||
// int32 interval_year_month_values = 24;
|
||||
case kIntervalYearMonthValues: {
|
||||
total_size += 2 +
|
||||
::_pbi::WireFormatLite::Int32Size(
|
||||
this->_internal_interval_year_month_values());
|
||||
break;
|
||||
}
|
||||
// int64 interval_day_time_values = 25;
|
||||
case kIntervalDayTimeValues: {
|
||||
total_size += 2 +
|
||||
::_pbi::WireFormatLite::Int64Size(
|
||||
this->_internal_interval_day_time_values());
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
|
||||
case kIntervalMonthDayNanoValues: {
|
||||
total_size += 2 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.value_data_.interval_month_day_nano_values_);
|
||||
break;
|
||||
}
|
||||
case VALUE_DATA_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -1774,6 +1901,19 @@ 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());
|
||||
break;
|
||||
}
|
||||
case kIntervalDayTimeValues: {
|
||||
_this->_internal_set_interval_day_time_values(from._internal_interval_day_time_values());
|
||||
break;
|
||||
}
|
||||
case kIntervalMonthDayNanoValues: {
|
||||
_this->_internal_mutable_interval_month_day_nano_values()->::greptime::v1::IntervalMonthDayNano::MergeFrom(
|
||||
from._internal_interval_month_day_nano_values());
|
||||
break;
|
||||
}
|
||||
case VALUE_DATA_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -648,6 +648,9 @@ class Value final :
|
||||
kTimeMillisecondValue = 21,
|
||||
kTimeMicrosecondValue = 22,
|
||||
kTimeNanosecondValue = 23,
|
||||
kIntervalYearMonthValues = 24,
|
||||
kIntervalDayTimeValues = 25,
|
||||
kIntervalMonthDayNanoValues = 26,
|
||||
VALUE_DATA_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -752,6 +755,9 @@ class Value final :
|
||||
kTimeMillisecondValueFieldNumber = 21,
|
||||
kTimeMicrosecondValueFieldNumber = 22,
|
||||
kTimeNanosecondValueFieldNumber = 23,
|
||||
kIntervalYearMonthValuesFieldNumber = 24,
|
||||
kIntervalDayTimeValuesFieldNumber = 25,
|
||||
kIntervalMonthDayNanoValuesFieldNumber = 26,
|
||||
};
|
||||
// int32 i8_value = 1;
|
||||
bool has_i8_value() const;
|
||||
@@ -1062,6 +1068,50 @@ 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;
|
||||
private:
|
||||
bool _internal_has_interval_year_month_values() const;
|
||||
public:
|
||||
void clear_interval_year_month_values();
|
||||
int32_t interval_year_month_values() const;
|
||||
void set_interval_year_month_values(int32_t value);
|
||||
private:
|
||||
int32_t _internal_interval_year_month_values() const;
|
||||
void _internal_set_interval_year_month_values(int32_t value);
|
||||
public:
|
||||
|
||||
// int64 interval_day_time_values = 25;
|
||||
bool has_interval_day_time_values() const;
|
||||
private:
|
||||
bool _internal_has_interval_day_time_values() const;
|
||||
public:
|
||||
void clear_interval_day_time_values();
|
||||
int64_t interval_day_time_values() const;
|
||||
void set_interval_day_time_values(int64_t value);
|
||||
private:
|
||||
int64_t _internal_interval_day_time_values() const;
|
||||
void _internal_set_interval_day_time_values(int64_t value);
|
||||
public:
|
||||
|
||||
// .greptime.v1.IntervalMonthDayNano interval_month_day_nano_values = 26;
|
||||
bool has_interval_month_day_nano_values() const;
|
||||
private:
|
||||
bool _internal_has_interval_month_day_nano_values() 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);
|
||||
private:
|
||||
const ::greptime::v1::IntervalMonthDayNano& _internal_interval_month_day_nano_values() const;
|
||||
::greptime::v1::IntervalMonthDayNano* _internal_mutable_interval_month_day_nano_values();
|
||||
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 clear_value_data();
|
||||
ValueDataCase value_data_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.Value)
|
||||
@@ -1090,6 +1140,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();
|
||||
|
||||
inline bool has_value_data() const;
|
||||
inline void clear_has_value_data();
|
||||
@@ -1124,6 +1177,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_;
|
||||
} value_data_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@@ -2317,6 +2373,148 @@ 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;
|
||||
}
|
||||
inline bool Value::has_interval_year_month_values() const {
|
||||
return _internal_has_interval_year_month_values();
|
||||
}
|
||||
inline void Value::set_has_interval_year_month_values() {
|
||||
_impl_._oneof_case_[0] = kIntervalYearMonthValues;
|
||||
}
|
||||
inline void Value::clear_interval_year_month_values() {
|
||||
if (_internal_has_interval_year_month_values()) {
|
||||
_impl_.value_data_.interval_year_month_values_ = 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_;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
inline void Value::_internal_set_interval_year_month_values(int32_t value) {
|
||||
if (!_internal_has_interval_year_month_values()) {
|
||||
clear_value_data();
|
||||
set_has_interval_year_month_values();
|
||||
}
|
||||
_impl_.value_data_.interval_year_month_values_ = 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 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)
|
||||
}
|
||||
|
||||
// int64 interval_day_time_values = 25;
|
||||
inline bool Value::_internal_has_interval_day_time_values() const {
|
||||
return value_data_case() == kIntervalDayTimeValues;
|
||||
}
|
||||
inline bool Value::has_interval_day_time_values() const {
|
||||
return _internal_has_interval_day_time_values();
|
||||
}
|
||||
inline void Value::set_has_interval_day_time_values() {
|
||||
_impl_._oneof_case_[0] = kIntervalDayTimeValues;
|
||||
}
|
||||
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};
|
||||
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_;
|
||||
}
|
||||
return int64_t{0};
|
||||
}
|
||||
inline void Value::_internal_set_interval_day_time_values(int64_t value) {
|
||||
if (!_internal_has_interval_day_time_values()) {
|
||||
clear_value_data();
|
||||
set_has_interval_day_time_values();
|
||||
}
|
||||
_impl_.value_data_.interval_day_time_values_ = 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 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)
|
||||
}
|
||||
|
||||
// .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;
|
||||
}
|
||||
inline bool Value::has_interval_month_day_nano_values() const {
|
||||
return _internal_has_interval_month_day_nano_values();
|
||||
}
|
||||
inline void Value::set_has_interval_month_day_nano_values() {
|
||||
_impl_._oneof_case_[0] = kIntervalMonthDayNanoValues;
|
||||
}
|
||||
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()) {
|
||||
clear_has_value_data();
|
||||
::greptime::v1::IntervalMonthDayNano* temp = _impl_.value_data_.interval_month_day_nano_values_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.value_data_.interval_month_day_nano_values_ = 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_
|
||||
: 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 ::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()) {
|
||||
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;
|
||||
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) {
|
||||
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;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.Value.interval_month_day_nano_values)
|
||||
}
|
||||
inline ::greptime::v1::IntervalMonthDayNano* Value::_internal_mutable_interval_month_day_nano_values() {
|
||||
if (!_internal_has_interval_month_day_nano_values()) {
|
||||
clear_value_data();
|
||||
set_has_interval_month_day_nano_values();
|
||||
_impl_.value_data_.interval_month_day_nano_values_ = CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.value_data_.interval_month_day_nano_values_;
|
||||
}
|
||||
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)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
inline bool Value::has_value_data() const {
|
||||
return value_data_case() != VALUE_DATA_NOT_SET;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user