feat: truncate request by time ranges (#262)
* feat: truncate request by time ranges Signed-off-by: discord9 <discord9@163.com> * fix: default time unit is millisecond Signed-off-by: discord9 <discord9@163.com> * refactor: per review Signed-off-by: discord9 <discord9@163.com> * add time ranges to truncate table expr Signed-off-by: discord9 <discord9@163.com> * chore: make all Signed-off-by: discord9 <discord9@163.com> * chore: fmt Signed-off-by: discord9 <discord9@163.com> * chore: make all Signed-off-by: discord9 <discord9@163.com> * chore: make all Signed-off-by: discord9 <discord9@163.com> --------- Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
+554
-50
@@ -281,6 +281,34 @@ struct IntervalMonthDayNanoDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_;
|
||||
PROTOBUF_CONSTEXPR TimeRange::TimeRange(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.start_)*/int64_t{0}
|
||||
, /*decltype(_impl_.end_)*/int64_t{0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct TimeRangeDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR TimeRangeDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~TimeRangeDefaultTypeInternal() {}
|
||||
union {
|
||||
TimeRange _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimeRangeDefaultTypeInternal _TimeRange_default_instance_;
|
||||
PROTOBUF_CONSTEXPR TimeRanges::TimeRanges(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.time_ranges_)*/{}
|
||||
, /*decltype(_impl_.time_unit_)*/0
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct TimeRangesDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR TimeRangesDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~TimeRangesDefaultTypeInternal() {}
|
||||
union {
|
||||
TimeRanges _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimeRangesDefaultTypeInternal _TimeRanges_default_instance_;
|
||||
PROTOBUF_CONSTEXPR Decimal128::Decimal128(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.hi_)*/int64_t{0}
|
||||
@@ -377,8 +405,8 @@ struct ArrowIpcDefaultTypeInternal {
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowIpcDefaultTypeInternal _ArrowIpc_default_instance_;
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[26];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[3];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[28];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[4];
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
@@ -549,6 +577,22 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.days_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRange, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRange, _impl_.start_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRange, _impl_.end_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRanges, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRanges, _impl_.time_unit_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRanges, _impl_.time_ranges_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
@@ -628,13 +672,15 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 142, -1, -1, sizeof(::greptime::v1::ExpireAfter)},
|
||||
{ 149, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
||||
{ 157, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||
{ 166, -1, -1, sizeof(::greptime::v1::Decimal128)},
|
||||
{ 174, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
|
||||
{ 184, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
|
||||
{ 192, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)},
|
||||
{ 199, 207, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)},
|
||||
{ 209, -1, -1, sizeof(::greptime::v1::ColumnOptions)},
|
||||
{ 216, -1, -1, sizeof(::greptime::v1::ArrowIpc)},
|
||||
{ 166, -1, -1, sizeof(::greptime::v1::TimeRange)},
|
||||
{ 174, -1, -1, sizeof(::greptime::v1::TimeRanges)},
|
||||
{ 182, -1, -1, sizeof(::greptime::v1::Decimal128)},
|
||||
{ 190, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
|
||||
{ 200, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
|
||||
{ 208, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)},
|
||||
{ 215, 223, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)},
|
||||
{ 225, -1, -1, sizeof(::greptime::v1::ColumnOptions)},
|
||||
{ 232, -1, -1, sizeof(::greptime::v1::ArrowIpc)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -657,6 +703,8 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::_ExpireAfter_default_instance_._instance,
|
||||
&::greptime::v1::_FlightMetadata_default_instance_._instance,
|
||||
&::greptime::v1::_IntervalMonthDayNano_default_instance_._instance,
|
||||
&::greptime::v1::_TimeRange_default_instance_._instance,
|
||||
&::greptime::v1::_TimeRanges_default_instance_._instance,
|
||||
&::greptime::v1::_Decimal128_default_instance_._instance,
|
||||
&::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance,
|
||||
&::greptime::v1::_DecimalTypeExtension_default_instance_._instance,
|
||||
@@ -705,43 +753,49 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
|
||||
"ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR"
|
||||
"ows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Metri"
|
||||
"cs\"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\"$\n"
|
||||
"\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027"
|
||||
"ColumnDataTypeExtension\0229\n\014decimal_type\030"
|
||||
"\001 \001(\0132!.greptime.v1.DecimalTypeExtension"
|
||||
"H\000\0223\n\tjson_type\030\002 \001(\0162\036.greptime.v1.Json"
|
||||
"TypeExtensionH\000\0227\n\013vector_type\030\003 \001(\0132 .g"
|
||||
"reptime.v1.VectorTypeExtensionH\000B\n\n\010type"
|
||||
"_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisio"
|
||||
"n\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n\023VectorTypeExte"
|
||||
"nsion\022\013\n\003dim\030\001 \001(\r\"y\n\rColumnOptions\0228\n\007o"
|
||||
"ptions\030\001 \003(\0132\'.greptime.v1.ColumnOptions"
|
||||
".OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001"
|
||||
"(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\010ArrowIpc\022\016\n\006sch"
|
||||
"ema\030\001 \001(\014\022\023\n\013data_header\030\002 \001(\014\022\017\n\007payloa"
|
||||
"d\030\003 \001(\014*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIEL"
|
||||
"D\020\001\022\r\n\tTIMESTAMP\020\002*\354\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\006"
|
||||
"UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLO"
|
||||
"AT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r"
|
||||
"\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025"
|
||||
"TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MIC"
|
||||
"ROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013"
|
||||
"TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020T"
|
||||
"IME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027"
|
||||
"\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_"
|
||||
"TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nD"
|
||||
"ECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021Jso"
|
||||
"nTypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.gr"
|
||||
"eptime.v1B\006CommonZ5github.com/GreptimeTe"
|
||||
"am/greptime-proto/go/greptime/v1b\006proto3"
|
||||
"(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"\'\n"
|
||||
"\tTimeRange\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"c"
|
||||
"\n\nTimeRanges\022(\n\ttime_unit\030\001 \001(\0162\025.grepti"
|
||||
"me.v1.TimeUnit\022+\n\013time_ranges\030\002 \003(\0132\026.gr"
|
||||
"eptime.v1.TimeRange\"$\n\nDecimal128\022\n\n\002hi\030"
|
||||
"\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExte"
|
||||
"nsion\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v"
|
||||
"1.DecimalTypeExtensionH\000\0223\n\tjson_type\030\002 "
|
||||
"\001(\0162\036.greptime.v1.JsonTypeExtensionH\000\0227\n"
|
||||
"\013vector_type\030\003 \001(\0132 .greptime.v1.VectorT"
|
||||
"ypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTyp"
|
||||
"eExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002"
|
||||
" \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r"
|
||||
"\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.gre"
|
||||
"ptime.v1.ColumnOptions.OptionsEntry\032.\n\014O"
|
||||
"ptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
|
||||
"\0028\001\"@\n\010ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_"
|
||||
"header\030\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014Semanti"
|
||||
"cType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002"
|
||||
"*\354\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\005U"
|
||||
"INT8\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\010DATETIME\020\016\022\024\n\020"
|
||||
"TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISEC"
|
||||
"OND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIME"
|
||||
"STAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020T"
|
||||
"IME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022"
|
||||
"\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MO"
|
||||
"NTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL"
|
||||
"_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSO"
|
||||
"N\020\037\022\n\n\006VECTOR\020 *H\n\010TimeUnit\022\017\n\013MILLISECO"
|
||||
"ND\020\000\022\n\n\006SECOND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNAN"
|
||||
"OSECOND\020\003*$\n\021JsonTypeExtension\022\017\n\013JSON_B"
|
||||
"INARY\020\000BO\n\016io.greptime.v1B\006CommonZ5githu"
|
||||
"b.com/GreptimeTeam/greptime-proto/go/gre"
|
||||
"ptime/v1b\006proto3"
|
||||
;
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
|
||||
false, false, 2760, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
false, false, 2976, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
"greptime/v1/common.proto",
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 26,
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 28,
|
||||
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,
|
||||
@@ -810,10 +864,26 @@ bool ColumnDataType_IsValid(int value) {
|
||||
}
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JsonTypeExtension_descriptor() {
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TimeUnit_descriptor() {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcommon_2eproto);
|
||||
return file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2];
|
||||
}
|
||||
bool TimeUnit_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
case 1:
|
||||
case 2:
|
||||
case 3:
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JsonTypeExtension_descriptor() {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcommon_2eproto);
|
||||
return file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[3];
|
||||
}
|
||||
bool JsonTypeExtension_IsValid(int value) {
|
||||
switch (value) {
|
||||
case 0:
|
||||
@@ -4777,6 +4847,432 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class TimeRange::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
TimeRange::TimeRange(::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.TimeRange)
|
||||
}
|
||||
TimeRange::TimeRange(const TimeRange& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
TimeRange* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.start_){}
|
||||
, decltype(_impl_.end_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
::memcpy(&_impl_.start_, &from._impl_.start_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.end_) -
|
||||
reinterpret_cast<char*>(&_impl_.start_)) + sizeof(_impl_.end_));
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.TimeRange)
|
||||
}
|
||||
|
||||
inline void TimeRange::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.start_){int64_t{0}}
|
||||
, decltype(_impl_.end_){int64_t{0}}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
TimeRange::~TimeRange() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.TimeRange)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void TimeRange::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
}
|
||||
|
||||
void TimeRange::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void TimeRange::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.TimeRange)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
::memset(&_impl_.start_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.end_) -
|
||||
reinterpret_cast<char*>(&_impl_.start_)) + sizeof(_impl_.end_));
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* TimeRange::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// int64 start = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_impl_.start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// int64 end = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
|
||||
_impl_.end_ = ::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* TimeRange::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TimeRange)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// int64 start = 1;
|
||||
if (this->_internal_start() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_start(), target);
|
||||
}
|
||||
|
||||
// int64 end = 2;
|
||||
if (this->_internal_end() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt64ToArray(2, this->_internal_end(), 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.TimeRange)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t TimeRange::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TimeRange)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// int64 start = 1;
|
||||
if (this->_internal_start() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_start());
|
||||
}
|
||||
|
||||
// int64 end = 2;
|
||||
if (this->_internal_end() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_end());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TimeRange::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
TimeRange::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TimeRange::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void TimeRange::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<TimeRange*>(&to_msg);
|
||||
auto& from = static_cast<const TimeRange&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.TimeRange)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_start() != 0) {
|
||||
_this->_internal_set_start(from._internal_start());
|
||||
}
|
||||
if (from._internal_end() != 0) {
|
||||
_this->_internal_set_end(from._internal_end());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void TimeRange::CopyFrom(const TimeRange& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TimeRange)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool TimeRange::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void TimeRange::InternalSwap(TimeRange* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(TimeRange, _impl_.end_)
|
||||
+ sizeof(TimeRange::_impl_.end_)
|
||||
- PROTOBUF_FIELD_OFFSET(TimeRange, _impl_.start_)>(
|
||||
reinterpret_cast<char*>(&_impl_.start_),
|
||||
reinterpret_cast<char*>(&other->_impl_.start_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata TimeRange::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[19]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class TimeRanges::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
TimeRanges::TimeRanges(::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.TimeRanges)
|
||||
}
|
||||
TimeRanges::TimeRanges(const TimeRanges& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
TimeRanges* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.time_ranges_){from._impl_.time_ranges_}
|
||||
, decltype(_impl_.time_unit_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_this->_impl_.time_unit_ = from._impl_.time_unit_;
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.TimeRanges)
|
||||
}
|
||||
|
||||
inline void TimeRanges::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.time_ranges_){arena}
|
||||
, decltype(_impl_.time_unit_){0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
TimeRanges::~TimeRanges() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.TimeRanges)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void TimeRanges::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.time_ranges_.~RepeatedPtrField();
|
||||
}
|
||||
|
||||
void TimeRanges::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void TimeRanges::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.TimeRanges)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.time_ranges_.Clear();
|
||||
_impl_.time_unit_ = 0;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* TimeRanges::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||
while (!ctx->Done(&ptr)) {
|
||||
uint32_t tag;
|
||||
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||
switch (tag >> 3) {
|
||||
// .greptime.v1.TimeUnit time_unit = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||
CHK_(ptr);
|
||||
_internal_set_time_unit(static_cast<::greptime::v1::TimeUnit>(val));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// repeated .greptime.v1.TimeRange time_ranges = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
ptr -= 1;
|
||||
do {
|
||||
ptr += 1;
|
||||
ptr = ctx->ParseMessage(_internal_add_time_ranges(), ptr);
|
||||
CHK_(ptr);
|
||||
if (!ctx->DataAvailable(ptr)) break;
|
||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
handle_unusual:
|
||||
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||
CHK_(ptr);
|
||||
ctx->SetLastTag(tag);
|
||||
goto message_done;
|
||||
}
|
||||
ptr = UnknownFieldParse(
|
||||
tag,
|
||||
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||
ptr, ctx);
|
||||
CHK_(ptr != nullptr);
|
||||
} // while
|
||||
message_done:
|
||||
return ptr;
|
||||
failure:
|
||||
ptr = nullptr;
|
||||
goto message_done;
|
||||
#undef CHK_
|
||||
}
|
||||
|
||||
uint8_t* TimeRanges::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TimeRanges)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.TimeUnit time_unit = 1;
|
||||
if (this->_internal_time_unit() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteEnumToArray(
|
||||
1, this->_internal_time_unit(), target);
|
||||
}
|
||||
|
||||
// repeated .greptime.v1.TimeRange time_ranges = 2;
|
||||
for (unsigned i = 0,
|
||||
n = static_cast<unsigned>(this->_internal_time_ranges_size()); i < n; i++) {
|
||||
const auto& repfield = this->_internal_time_ranges(i);
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(2, repfield, repfield.GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
}
|
||||
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.TimeRanges)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t TimeRanges::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TimeRanges)
|
||||
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.TimeRange time_ranges = 2;
|
||||
total_size += 1UL * this->_internal_time_ranges_size();
|
||||
for (const auto& msg : this->_impl_.time_ranges_) {
|
||||
total_size +=
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
|
||||
}
|
||||
|
||||
// .greptime.v1.TimeUnit time_unit = 1;
|
||||
if (this->_internal_time_unit() != 0) {
|
||||
total_size += 1 +
|
||||
::_pbi::WireFormatLite::EnumSize(this->_internal_time_unit());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TimeRanges::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
TimeRanges::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TimeRanges::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void TimeRanges::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<TimeRanges*>(&to_msg);
|
||||
auto& from = static_cast<const TimeRanges&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.TimeRanges)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
_this->_impl_.time_ranges_.MergeFrom(from._impl_.time_ranges_);
|
||||
if (from._internal_time_unit() != 0) {
|
||||
_this->_internal_set_time_unit(from._internal_time_unit());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void TimeRanges::CopyFrom(const TimeRanges& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TimeRanges)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool TimeRanges::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void TimeRanges::InternalSwap(TimeRanges* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.time_ranges_.InternalSwap(&other->_impl_.time_ranges_);
|
||||
swap(_impl_.time_unit_, other->_impl_.time_unit_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata TimeRanges::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[20]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class Decimal128::_Internal {
|
||||
public:
|
||||
};
|
||||
@@ -4983,7 +5479,7 @@ void Decimal128::InternalSwap(Decimal128* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[19]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -5322,7 +5818,7 @@ void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[22]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -5533,7 +6029,7 @@ void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[23]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -5711,7 +6207,7 @@ void VectorTypeExtension::InternalSwap(VectorTypeExtension* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata VectorTypeExtension::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[22]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[24]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -5725,7 +6221,7 @@ void ColumnOptions_OptionsEntry_DoNotUse::MergeFrom(const ColumnOptions_OptionsE
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions_OptionsEntry_DoNotUse::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[23]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[25]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -5944,7 +6440,7 @@ void ColumnOptions::InternalSwap(ColumnOptions* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions::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[24]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[26]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -6232,7 +6728,7 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ArrowIpc::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[25]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[27]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -6315,6 +6811,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::TimeRange*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::TimeRange >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::TimeRange >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::TimeRanges*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::TimeRanges >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::TimeRanges >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::Decimal128*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::Decimal128 >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::Decimal128 >(arena);
|
||||
|
||||
+485
-6
@@ -122,6 +122,12 @@ extern StatusDefaultTypeInternal _Status_default_instance_;
|
||||
class TableName;
|
||||
struct TableNameDefaultTypeInternal;
|
||||
extern TableNameDefaultTypeInternal _TableName_default_instance_;
|
||||
class TimeRange;
|
||||
struct TimeRangeDefaultTypeInternal;
|
||||
extern TimeRangeDefaultTypeInternal _TimeRange_default_instance_;
|
||||
class TimeRanges;
|
||||
struct TimeRangesDefaultTypeInternal;
|
||||
extern TimeRangesDefaultTypeInternal _TimeRanges_default_instance_;
|
||||
class Token;
|
||||
struct TokenDefaultTypeInternal;
|
||||
extern TokenDefaultTypeInternal _Token_default_instance_;
|
||||
@@ -155,6 +161,8 @@ template<> ::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse* Arena::
|
||||
template<> ::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse>(Arena*);
|
||||
template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*);
|
||||
template<> ::greptime::v1::TableName* Arena::CreateMaybeMessage<::greptime::v1::TableName>(Arena*);
|
||||
template<> ::greptime::v1::TimeRange* Arena::CreateMaybeMessage<::greptime::v1::TimeRange>(Arena*);
|
||||
template<> ::greptime::v1::TimeRanges* Arena::CreateMaybeMessage<::greptime::v1::TimeRanges>(Arena*);
|
||||
template<> ::greptime::v1::Token* Arena::CreateMaybeMessage<::greptime::v1::Token>(Arena*);
|
||||
template<> ::greptime::v1::VectorTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::VectorTypeExtension>(Arena*);
|
||||
PROTOBUF_NAMESPACE_CLOSE
|
||||
@@ -239,6 +247,33 @@ inline bool ColumnDataType_Parse(
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ColumnDataType>(
|
||||
ColumnDataType_descriptor(), name, value);
|
||||
}
|
||||
enum TimeUnit : int {
|
||||
MILLISECOND = 0,
|
||||
SECOND = 1,
|
||||
MICROSECOND = 2,
|
||||
NANOSECOND = 3,
|
||||
TimeUnit_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
|
||||
TimeUnit_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::max()
|
||||
};
|
||||
bool TimeUnit_IsValid(int value);
|
||||
constexpr TimeUnit TimeUnit_MIN = MILLISECOND;
|
||||
constexpr TimeUnit TimeUnit_MAX = NANOSECOND;
|
||||
constexpr int TimeUnit_ARRAYSIZE = TimeUnit_MAX + 1;
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TimeUnit_descriptor();
|
||||
template<typename T>
|
||||
inline const std::string& TimeUnit_Name(T enum_t_value) {
|
||||
static_assert(::std::is_same<T, TimeUnit>::value ||
|
||||
::std::is_integral<T>::value,
|
||||
"Incorrect type passed to function TimeUnit_Name.");
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
|
||||
TimeUnit_descriptor(), enum_t_value);
|
||||
}
|
||||
inline bool TimeUnit_Parse(
|
||||
::PROTOBUF_NAMESPACE_ID::ConstStringParam name, TimeUnit* value) {
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<TimeUnit>(
|
||||
TimeUnit_descriptor(), name, value);
|
||||
}
|
||||
enum JsonTypeExtension : int {
|
||||
JSON_BINARY = 0,
|
||||
JsonTypeExtension_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(),
|
||||
@@ -3032,6 +3067,333 @@ class IntervalMonthDayNano final :
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class TimeRange final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.TimeRange) */ {
|
||||
public:
|
||||
inline TimeRange() : TimeRange(nullptr) {}
|
||||
~TimeRange() override;
|
||||
explicit PROTOBUF_CONSTEXPR TimeRange(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
TimeRange(const TimeRange& from);
|
||||
TimeRange(TimeRange&& from) noexcept
|
||||
: TimeRange() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline TimeRange& operator=(const TimeRange& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline TimeRange& operator=(TimeRange&& 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 TimeRange& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const TimeRange* internal_default_instance() {
|
||||
return reinterpret_cast<const TimeRange*>(
|
||||
&_TimeRange_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
19;
|
||||
|
||||
friend void swap(TimeRange& a, TimeRange& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(TimeRange* 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(TimeRange* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
TimeRange* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<TimeRange>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const TimeRange& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const TimeRange& from) {
|
||||
TimeRange::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(TimeRange* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.TimeRange";
|
||||
}
|
||||
protected:
|
||||
explicit TimeRange(::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 {
|
||||
kStartFieldNumber = 1,
|
||||
kEndFieldNumber = 2,
|
||||
};
|
||||
// int64 start = 1;
|
||||
void clear_start();
|
||||
int64_t start() const;
|
||||
void set_start(int64_t value);
|
||||
private:
|
||||
int64_t _internal_start() const;
|
||||
void _internal_set_start(int64_t value);
|
||||
public:
|
||||
|
||||
// int64 end = 2;
|
||||
void clear_end();
|
||||
int64_t end() const;
|
||||
void set_end(int64_t value);
|
||||
private:
|
||||
int64_t _internal_end() const;
|
||||
void _internal_set_end(int64_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.TimeRange)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
int64_t start_;
|
||||
int64_t end_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class TimeRanges final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.TimeRanges) */ {
|
||||
public:
|
||||
inline TimeRanges() : TimeRanges(nullptr) {}
|
||||
~TimeRanges() override;
|
||||
explicit PROTOBUF_CONSTEXPR TimeRanges(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
TimeRanges(const TimeRanges& from);
|
||||
TimeRanges(TimeRanges&& from) noexcept
|
||||
: TimeRanges() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline TimeRanges& operator=(const TimeRanges& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline TimeRanges& operator=(TimeRanges&& 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 TimeRanges& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const TimeRanges* internal_default_instance() {
|
||||
return reinterpret_cast<const TimeRanges*>(
|
||||
&_TimeRanges_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
20;
|
||||
|
||||
friend void swap(TimeRanges& a, TimeRanges& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(TimeRanges* 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(TimeRanges* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
TimeRanges* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<TimeRanges>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const TimeRanges& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const TimeRanges& from) {
|
||||
TimeRanges::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(TimeRanges* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.TimeRanges";
|
||||
}
|
||||
protected:
|
||||
explicit TimeRanges(::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 {
|
||||
kTimeRangesFieldNumber = 2,
|
||||
kTimeUnitFieldNumber = 1,
|
||||
};
|
||||
// repeated .greptime.v1.TimeRange time_ranges = 2;
|
||||
int time_ranges_size() const;
|
||||
private:
|
||||
int _internal_time_ranges_size() const;
|
||||
public:
|
||||
void clear_time_ranges();
|
||||
::greptime::v1::TimeRange* mutable_time_ranges(int index);
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TimeRange >*
|
||||
mutable_time_ranges();
|
||||
private:
|
||||
const ::greptime::v1::TimeRange& _internal_time_ranges(int index) const;
|
||||
::greptime::v1::TimeRange* _internal_add_time_ranges();
|
||||
public:
|
||||
const ::greptime::v1::TimeRange& time_ranges(int index) const;
|
||||
::greptime::v1::TimeRange* add_time_ranges();
|
||||
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TimeRange >&
|
||||
time_ranges() const;
|
||||
|
||||
// .greptime.v1.TimeUnit time_unit = 1;
|
||||
void clear_time_unit();
|
||||
::greptime::v1::TimeUnit time_unit() const;
|
||||
void set_time_unit(::greptime::v1::TimeUnit value);
|
||||
private:
|
||||
::greptime::v1::TimeUnit _internal_time_unit() const;
|
||||
void _internal_set_time_unit(::greptime::v1::TimeUnit value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.TimeRanges)
|
||||
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::TimeRange > time_ranges_;
|
||||
int time_unit_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class Decimal128 final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Decimal128) */ {
|
||||
public:
|
||||
@@ -3080,7 +3442,7 @@ class Decimal128 final :
|
||||
&_Decimal128_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
19;
|
||||
21;
|
||||
|
||||
friend void swap(Decimal128& a, Decimal128& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3246,7 +3608,7 @@ class ColumnDataTypeExtension final :
|
||||
&_ColumnDataTypeExtension_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
20;
|
||||
22;
|
||||
|
||||
friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3452,7 +3814,7 @@ class DecimalTypeExtension final :
|
||||
&_DecimalTypeExtension_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
21;
|
||||
23;
|
||||
|
||||
friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3611,7 +3973,7 @@ class VectorTypeExtension final :
|
||||
&_VectorTypeExtension_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
22;
|
||||
24;
|
||||
|
||||
friend void swap(VectorTypeExtension& a, VectorTypeExtension& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3787,7 +4149,7 @@ class ColumnOptions final :
|
||||
&_ColumnOptions_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
24;
|
||||
26;
|
||||
|
||||
friend void swap(ColumnOptions& a, ColumnOptions& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3950,7 +4312,7 @@ class ArrowIpc final :
|
||||
&_ArrowIpc_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
25;
|
||||
27;
|
||||
|
||||
friend void swap(ArrowIpc& a, ArrowIpc& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5885,6 +6247,114 @@ inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// TimeRange
|
||||
|
||||
// int64 start = 1;
|
||||
inline void TimeRange::clear_start() {
|
||||
_impl_.start_ = int64_t{0};
|
||||
}
|
||||
inline int64_t TimeRange::_internal_start() const {
|
||||
return _impl_.start_;
|
||||
}
|
||||
inline int64_t TimeRange::start() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.TimeRange.start)
|
||||
return _internal_start();
|
||||
}
|
||||
inline void TimeRange::_internal_set_start(int64_t value) {
|
||||
|
||||
_impl_.start_ = value;
|
||||
}
|
||||
inline void TimeRange::set_start(int64_t value) {
|
||||
_internal_set_start(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.TimeRange.start)
|
||||
}
|
||||
|
||||
// int64 end = 2;
|
||||
inline void TimeRange::clear_end() {
|
||||
_impl_.end_ = int64_t{0};
|
||||
}
|
||||
inline int64_t TimeRange::_internal_end() const {
|
||||
return _impl_.end_;
|
||||
}
|
||||
inline int64_t TimeRange::end() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.TimeRange.end)
|
||||
return _internal_end();
|
||||
}
|
||||
inline void TimeRange::_internal_set_end(int64_t value) {
|
||||
|
||||
_impl_.end_ = value;
|
||||
}
|
||||
inline void TimeRange::set_end(int64_t value) {
|
||||
_internal_set_end(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.TimeRange.end)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// TimeRanges
|
||||
|
||||
// .greptime.v1.TimeUnit time_unit = 1;
|
||||
inline void TimeRanges::clear_time_unit() {
|
||||
_impl_.time_unit_ = 0;
|
||||
}
|
||||
inline ::greptime::v1::TimeUnit TimeRanges::_internal_time_unit() const {
|
||||
return static_cast< ::greptime::v1::TimeUnit >(_impl_.time_unit_);
|
||||
}
|
||||
inline ::greptime::v1::TimeUnit TimeRanges::time_unit() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.TimeRanges.time_unit)
|
||||
return _internal_time_unit();
|
||||
}
|
||||
inline void TimeRanges::_internal_set_time_unit(::greptime::v1::TimeUnit value) {
|
||||
|
||||
_impl_.time_unit_ = value;
|
||||
}
|
||||
inline void TimeRanges::set_time_unit(::greptime::v1::TimeUnit value) {
|
||||
_internal_set_time_unit(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.TimeRanges.time_unit)
|
||||
}
|
||||
|
||||
// repeated .greptime.v1.TimeRange time_ranges = 2;
|
||||
inline int TimeRanges::_internal_time_ranges_size() const {
|
||||
return _impl_.time_ranges_.size();
|
||||
}
|
||||
inline int TimeRanges::time_ranges_size() const {
|
||||
return _internal_time_ranges_size();
|
||||
}
|
||||
inline void TimeRanges::clear_time_ranges() {
|
||||
_impl_.time_ranges_.Clear();
|
||||
}
|
||||
inline ::greptime::v1::TimeRange* TimeRanges::mutable_time_ranges(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.TimeRanges.time_ranges)
|
||||
return _impl_.time_ranges_.Mutable(index);
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TimeRange >*
|
||||
TimeRanges::mutable_time_ranges() {
|
||||
// @@protoc_insertion_point(field_mutable_list:greptime.v1.TimeRanges.time_ranges)
|
||||
return &_impl_.time_ranges_;
|
||||
}
|
||||
inline const ::greptime::v1::TimeRange& TimeRanges::_internal_time_ranges(int index) const {
|
||||
return _impl_.time_ranges_.Get(index);
|
||||
}
|
||||
inline const ::greptime::v1::TimeRange& TimeRanges::time_ranges(int index) const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.TimeRanges.time_ranges)
|
||||
return _internal_time_ranges(index);
|
||||
}
|
||||
inline ::greptime::v1::TimeRange* TimeRanges::_internal_add_time_ranges() {
|
||||
return _impl_.time_ranges_.Add();
|
||||
}
|
||||
inline ::greptime::v1::TimeRange* TimeRanges::add_time_ranges() {
|
||||
::greptime::v1::TimeRange* _add = _internal_add_time_ranges();
|
||||
// @@protoc_insertion_point(field_add:greptime.v1.TimeRanges.time_ranges)
|
||||
return _add;
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TimeRange >&
|
||||
TimeRanges::time_ranges() const {
|
||||
// @@protoc_insertion_point(field_list:greptime.v1.TimeRanges.time_ranges)
|
||||
return _impl_.time_ranges_;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// Decimal128
|
||||
|
||||
// int64 hi = 1;
|
||||
@@ -6436,6 +6906,10 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
@@ -6454,6 +6928,11 @@ template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::ColumnDataType>() {
|
||||
return ::greptime::v1::ColumnDataType_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::greptime::v1::TimeUnit> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::TimeUnit>() {
|
||||
return ::greptime::v1::TimeUnit_descriptor();
|
||||
}
|
||||
template <> struct is_proto_enum< ::greptime::v1::JsonTypeExtension> : ::std::true_type {};
|
||||
template <>
|
||||
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::JsonTypeExtension>() {
|
||||
|
||||
+173
-118
@@ -306,6 +306,7 @@ PROTOBUF_CONSTEXPR TruncateTableExpr::TruncateTableExpr(
|
||||
, /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.table_id_)*/nullptr
|
||||
, /*decltype(_impl_.time_ranges_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct TruncateTableExprDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR TruncateTableExprDefaultTypeInternal()
|
||||
@@ -1005,6 +1006,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.schema_name_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_name_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_id_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.time_ranges_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDatabaseExpr, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -1307,39 +1309,39 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 189, 197, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
||||
{ 199, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
||||
{ 209, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
||||
{ 219, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
||||
{ 228, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
||||
{ 235, -1, -1, sizeof(::greptime::v1::DropDefaults)},
|
||||
{ 242, -1, -1, sizeof(::greptime::v1::SetDefaults)},
|
||||
{ 249, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
||||
{ 256, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)},
|
||||
{ 263, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
||||
{ 270, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
||||
{ 279, -1, -1, sizeof(::greptime::v1::ModifyColumnType)},
|
||||
{ 288, -1, -1, sizeof(::greptime::v1::Option)},
|
||||
{ 296, -1, -1, sizeof(::greptime::v1::SetTableOptions)},
|
||||
{ 303, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)},
|
||||
{ 310, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
||||
{ 317, -1, -1, sizeof(::greptime::v1::TableId)},
|
||||
{ 324, -1, -1, sizeof(::greptime::v1::FlowId)},
|
||||
{ 331, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||
{ 345, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
||||
{ 353, -1, -1, sizeof(::greptime::v1::SetFulltext)},
|
||||
{ 366, -1, -1, sizeof(::greptime::v1::UnsetFulltext)},
|
||||
{ 373, -1, -1, sizeof(::greptime::v1::SetInverted)},
|
||||
{ 380, -1, -1, sizeof(::greptime::v1::UnsetInverted)},
|
||||
{ 387, -1, -1, sizeof(::greptime::v1::SetSkipping)},
|
||||
{ 398, -1, -1, sizeof(::greptime::v1::UnsetSkipping)},
|
||||
{ 405, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)},
|
||||
{ 416, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)},
|
||||
{ 423, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)},
|
||||
{ 430, 438, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)},
|
||||
{ 440, 448, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)},
|
||||
{ 450, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)},
|
||||
{ 464, -1, -1, sizeof(::greptime::v1::NotifyChannel)},
|
||||
{ 473, 481, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)},
|
||||
{ 483, -1, -1, sizeof(::greptime::v1::WebhookOptions)},
|
||||
{ 491, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)},
|
||||
{ 220, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
||||
{ 229, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
||||
{ 236, -1, -1, sizeof(::greptime::v1::DropDefaults)},
|
||||
{ 243, -1, -1, sizeof(::greptime::v1::SetDefaults)},
|
||||
{ 250, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
||||
{ 257, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)},
|
||||
{ 264, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
||||
{ 271, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
||||
{ 280, -1, -1, sizeof(::greptime::v1::ModifyColumnType)},
|
||||
{ 289, -1, -1, sizeof(::greptime::v1::Option)},
|
||||
{ 297, -1, -1, sizeof(::greptime::v1::SetTableOptions)},
|
||||
{ 304, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)},
|
||||
{ 311, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
||||
{ 318, -1, -1, sizeof(::greptime::v1::TableId)},
|
||||
{ 325, -1, -1, sizeof(::greptime::v1::FlowId)},
|
||||
{ 332, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||
{ 346, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
||||
{ 354, -1, -1, sizeof(::greptime::v1::SetFulltext)},
|
||||
{ 367, -1, -1, sizeof(::greptime::v1::UnsetFulltext)},
|
||||
{ 374, -1, -1, sizeof(::greptime::v1::SetInverted)},
|
||||
{ 381, -1, -1, sizeof(::greptime::v1::UnsetInverted)},
|
||||
{ 388, -1, -1, sizeof(::greptime::v1::SetSkipping)},
|
||||
{ 399, -1, -1, sizeof(::greptime::v1::UnsetSkipping)},
|
||||
{ 406, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)},
|
||||
{ 417, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)},
|
||||
{ 424, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)},
|
||||
{ 431, 439, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)},
|
||||
{ 441, 449, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)},
|
||||
{ 451, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)},
|
||||
{ 465, -1, -1, sizeof(::greptime::v1::NotifyChannel)},
|
||||
{ 474, 482, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)},
|
||||
{ 484, -1, -1, sizeof(::greptime::v1::WebhookOptions)},
|
||||
{ 492, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -1487,96 +1489,97 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
|
||||
"sts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1"
|
||||
".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti"
|
||||
"onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
|
||||
"\"z\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001 "
|
||||
"\001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003"
|
||||
" \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Tab"
|
||||
"leId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name"
|
||||
"\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_e"
|
||||
"xists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns"
|
||||
"\030\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n\014DropDe"
|
||||
"faults\022/\n\rdrop_defaults\030\001 \003(\0132\030.greptime"
|
||||
".v1.DropDefault\"<\n\013SetDefaults\022-\n\014set_de"
|
||||
"faults\030\001 \003(\0132\027.greptime.v1.SetDefault\"<\n"
|
||||
"\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre"
|
||||
"ptime.v1.DropColumn\"O\n\021ModifyColumnTypes"
|
||||
"\022:\n\023modify_column_types\030\001 \003(\0132\035.greptime"
|
||||
".v1.ModifyColumnType\"%\n\013RenameTable\022\026\n\016n"
|
||||
"ew_table_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncol"
|
||||
"umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n"
|
||||
"\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL"
|
||||
"ocation\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020M"
|
||||
"odifyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013"
|
||||
"target_type\030\002 \001(\0162\033.greptime.v1.ColumnDa"
|
||||
"taType\022C\n\025target_type_extension\030\003 \001(\0132$."
|
||||
"greptime.v1.ColumnDataTypeExtension\"$\n\006O"
|
||||
"ption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017Set"
|
||||
"TableOptions\022*\n\rtable_options\030\001 \003(\0132\023.gr"
|
||||
"eptime.v1.Option\"!\n\021UnsetTableOptions\022\014\n"
|
||||
"\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\""
|
||||
"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001"
|
||||
" \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata"
|
||||
"_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType"
|
||||
"\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra"
|
||||
"int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept"
|
||||
"ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022"
|
||||
"datatype_extension\030\007 \001(\0132$.greptime.v1.C"
|
||||
"olumnDataTypeExtension\022+\n\007options\030\010 \001(\0132"
|
||||
"\032.greptime.v1.ColumnOptions\"\230\001\n\021AddColum"
|
||||
"nLocation\022B\n\rlocation_type\030\001 \001(\0162+.grept"
|
||||
"ime.v1.AddColumnLocation.LocationType\022\031\n"
|
||||
"\021after_column_name\030\002 \001(\t\"$\n\014LocationType"
|
||||
"\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltext\022\023"
|
||||
"\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010a"
|
||||
"nalyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016"
|
||||
"case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034."
|
||||
"greptime.v1.FulltextBackend\022\023\n\013granulari"
|
||||
"ty\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001\"$\n"
|
||||
"\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013S"
|
||||
"etInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnset"
|
||||
"Inverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013SetSki"
|
||||
"pping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001"
|
||||
"(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_inde"
|
||||
"x_type\030\004 \001(\0162\036.greptime.v1.SkippingIndex"
|
||||
"Type\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\rUns"
|
||||
"etSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021Alte"
|
||||
"rDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s"
|
||||
"chema_name\030\002 \001(\t\022\?\n\024set_database_options"
|
||||
"\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptionsH"
|
||||
"\000\022C\n\026unset_database_options\030\004 \001(\0132!.grep"
|
||||
"time.v1.UnsetDatabaseOptionsH\000B\006\n\004kind\"G"
|
||||
"\n\022SetDatabaseOptions\0221\n\024set_database_opt"
|
||||
"ions\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Unset"
|
||||
"DatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Create"
|
||||
"TriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014tri"
|
||||
"gger_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030"
|
||||
"\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132\032.g"
|
||||
"reptime.v1.NotifyChannel\022:\n\006labels\030\006 \003(\013"
|
||||
"2*.greptime.v1.CreateTriggerExpr.LabelsE"
|
||||
"ntry\022D\n\013annotations\030\007 \003(\0132/.greptime.v1."
|
||||
"CreateTriggerExpr.AnnotationsEntry\022\020\n\010in"
|
||||
"terval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t"
|
||||
"\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022"
|
||||
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNotif"
|
||||
"yChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132"
|
||||
"\033.greptime.v1.WebhookOptionsH\000B\016\n\014channe"
|
||||
"l_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t\0223\n"
|
||||
"\004opts\030\002 \003(\0132%.greptime.v1.WebhookOptions"
|
||||
".OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
|
||||
"value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n\014ca"
|
||||
"talog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t\022\026"
|
||||
"\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n\007EN"
|
||||
"GLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBackend\022"
|
||||
"\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIndex"
|
||||
"Type\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime.v1"
|
||||
"B\003DdlZ5github.com/GreptimeTeam/greptime-"
|
||||
"proto/go/greptime/v1b\006proto3"
|
||||
"\"\250\001\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001"
|
||||
" \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030"
|
||||
"\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Ta"
|
||||
"bleId\022,\n\013time_ranges\030\005 \001(\0132\027.greptime.v1"
|
||||
".TimeRanges\"U\n\020DropDatabaseExpr\022\024\n\014catal"
|
||||
"og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr"
|
||||
"op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_"
|
||||
"columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n"
|
||||
"\014DropDefaults\022/\n\rdrop_defaults\030\001 \003(\0132\030.g"
|
||||
"reptime.v1.DropDefault\"<\n\013SetDefaults\022-\n"
|
||||
"\014set_defaults\030\001 \003(\0132\027.greptime.v1.SetDef"
|
||||
"ault\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003("
|
||||
"\0132\027.greptime.v1.DropColumn\"O\n\021ModifyColu"
|
||||
"mnTypes\022:\n\023modify_column_types\030\001 \003(\0132\035.g"
|
||||
"reptime.v1.ModifyColumnType\"%\n\013RenameTab"
|
||||
"le\022\026\n\016new_table_name\030\001 \001(\t\"\204\001\n\tAddColumn"
|
||||
"\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
|
||||
"nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add"
|
||||
"ColumnLocation\022\031\n\021add_if_not_exists\030\004 \001("
|
||||
"\010\"\236\001\n\020ModifyColumnType\022\023\n\013column_name\030\001 "
|
||||
"\001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.C"
|
||||
"olumnDataType\022C\n\025target_type_extension\030\003"
|
||||
" \001(\0132$.greptime.v1.ColumnDataTypeExtensi"
|
||||
"on\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
|
||||
"\"=\n\017SetTableOptions\022*\n\rtable_options\030\001 \003"
|
||||
"(\0132\023.greptime.v1.Option\"!\n\021UnsetTableOpt"
|
||||
"ions\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name"
|
||||
"\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022"
|
||||
"\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022"
|
||||
".\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnD"
|
||||
"ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_"
|
||||
"constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162"
|
||||
"\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 "
|
||||
"\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti"
|
||||
"me.v1.ColumnDataTypeExtension\022+\n\007options"
|
||||
"\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021A"
|
||||
"ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162"
|
||||
"+.greptime.v1.AddColumnLocation.Location"
|
||||
"Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat"
|
||||
"ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFul"
|
||||
"ltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001"
|
||||
"(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analy"
|
||||
"zer\022\026\n\016case_sensitive\030\004 \001(\010\022-\n\007backend\030\005"
|
||||
" \001(\0162\034.greptime.v1.FulltextBackend\022\023\n\013gr"
|
||||
"anularity\030\006 \001(\004\022\033\n\023false_positive_rate\030\007"
|
||||
" \001(\001\"$\n\rUnsetFulltext\022\023\n\013column_name\030\001 \001"
|
||||
"(\t\"\"\n\013SetInverted\022\023\n\013column_name\030\001 \001(\t\"$"
|
||||
"\n\rUnsetInverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n"
|
||||
"\013SetSkipping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006ena"
|
||||
"ble\030\002 \001(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skippi"
|
||||
"ng_index_type\030\004 \001(\0162\036.greptime.v1.Skippi"
|
||||
"ngIndexType\022\033\n\023false_positive_rate\030\005 \001(\001"
|
||||
"\"$\n\rUnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314"
|
||||
"\001\n\021AlterDatabaseExpr\022\024\n\014catalog_name\030\001 \001"
|
||||
"(\t\022\023\n\013schema_name\030\002 \001(\t\022\?\n\024set_database_"
|
||||
"options\030\003 \001(\0132\037.greptime.v1.SetDatabaseO"
|
||||
"ptionsH\000\022C\n\026unset_database_options\030\004 \001(\013"
|
||||
"2!.greptime.v1.UnsetDatabaseOptionsH\000B\006\n"
|
||||
"\004kind\"G\n\022SetDatabaseOptions\0221\n\024set_datab"
|
||||
"ase_options\030\001 \003(\0132\023.greptime.v1.Option\"$"
|
||||
"\n\024UnsetDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n"
|
||||
"\021CreateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t"
|
||||
"\022\024\n\014trigger_name\030\002 \001(\t\022\034\n\024create_if_not_"
|
||||
"exists\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 "
|
||||
"\003(\0132\032.greptime.v1.NotifyChannel\022:\n\006label"
|
||||
"s\030\006 \003(\0132*.greptime.v1.CreateTriggerExpr."
|
||||
"LabelsEntry\022D\n\013annotations\030\007 \003(\0132/.grept"
|
||||
"ime.v1.CreateTriggerExpr.AnnotationsEntr"
|
||||
"y\022\020\n\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003ke"
|
||||
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotation"
|
||||
"sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]"
|
||||
"\n\rNotifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook"
|
||||
"\030\002 \001(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n"
|
||||
"\014channel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001"
|
||||
" \001(\t\0223\n\004opts\030\002 \003(\0132%.greptime.v1.Webhook"
|
||||
"Options.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 "
|
||||
"\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExp"
|
||||
"r\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030"
|
||||
"\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyze"
|
||||
"r\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextB"
|
||||
"ackend\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021Skippi"
|
||||
"ngIndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.grep"
|
||||
"time.v1B\003DdlZ5github.com/GreptimeTeam/gr"
|
||||
"eptime-proto/go/greptime/v1b\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
|
||||
false, false, 6868, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
||||
false, false, 6915, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
||||
"greptime/v1/ddl.proto",
|
||||
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 52,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
|
||||
@@ -8332,12 +8335,23 @@ void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) {
|
||||
class TruncateTableExpr::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::TableId& table_id(const TruncateTableExpr* msg);
|
||||
static const ::greptime::v1::TimeRanges& time_ranges(const TruncateTableExpr* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::TableId&
|
||||
TruncateTableExpr::_Internal::table_id(const TruncateTableExpr* msg) {
|
||||
return *msg->_impl_.table_id_;
|
||||
}
|
||||
const ::greptime::v1::TimeRanges&
|
||||
TruncateTableExpr::_Internal::time_ranges(const TruncateTableExpr* msg) {
|
||||
return *msg->_impl_.time_ranges_;
|
||||
}
|
||||
void TruncateTableExpr::clear_time_ranges() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.time_ranges_ != nullptr) {
|
||||
delete _impl_.time_ranges_;
|
||||
}
|
||||
_impl_.time_ranges_ = nullptr;
|
||||
}
|
||||
TruncateTableExpr::TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -8352,6 +8366,7 @@ TruncateTableExpr::TruncateTableExpr(const TruncateTableExpr& from)
|
||||
, decltype(_impl_.schema_name_){}
|
||||
, decltype(_impl_.table_name_){}
|
||||
, decltype(_impl_.table_id_){nullptr}
|
||||
, decltype(_impl_.time_ranges_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
@@ -8382,6 +8397,9 @@ TruncateTableExpr::TruncateTableExpr(const TruncateTableExpr& from)
|
||||
if (from._internal_has_table_id()) {
|
||||
_this->_impl_.table_id_ = new ::greptime::v1::TableId(*from._impl_.table_id_);
|
||||
}
|
||||
if (from._internal_has_time_ranges()) {
|
||||
_this->_impl_.time_ranges_ = new ::greptime::v1::TimeRanges(*from._impl_.time_ranges_);
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.TruncateTableExpr)
|
||||
}
|
||||
|
||||
@@ -8394,6 +8412,7 @@ inline void TruncateTableExpr::SharedCtor(
|
||||
, decltype(_impl_.schema_name_){}
|
||||
, decltype(_impl_.table_name_){}
|
||||
, decltype(_impl_.table_id_){nullptr}
|
||||
, decltype(_impl_.time_ranges_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
_impl_.catalog_name_.InitDefault();
|
||||
@@ -8425,6 +8444,7 @@ inline void TruncateTableExpr::SharedDtor() {
|
||||
_impl_.schema_name_.Destroy();
|
||||
_impl_.table_name_.Destroy();
|
||||
if (this != internal_default_instance()) delete _impl_.table_id_;
|
||||
if (this != internal_default_instance()) delete _impl_.time_ranges_;
|
||||
}
|
||||
|
||||
void TruncateTableExpr::SetCachedSize(int size) const {
|
||||
@@ -8444,6 +8464,10 @@ void TruncateTableExpr::Clear() {
|
||||
delete _impl_.table_id_;
|
||||
}
|
||||
_impl_.table_id_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.time_ranges_ != nullptr) {
|
||||
delete _impl_.time_ranges_;
|
||||
}
|
||||
_impl_.time_ranges_ = nullptr;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
@@ -8491,6 +8515,14 @@ const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.TimeRanges time_ranges = 5;
|
||||
case 5:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_time_ranges(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -8557,6 +8589,13 @@ uint8_t* TruncateTableExpr::_InternalSerialize(
|
||||
_Internal::table_id(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.TimeRanges time_ranges = 5;
|
||||
if (this->_internal_has_time_ranges()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(5, _Internal::time_ranges(this),
|
||||
_Internal::time_ranges(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);
|
||||
@@ -8601,6 +8640,13 @@ size_t TruncateTableExpr::ByteSizeLong() const {
|
||||
*_impl_.table_id_);
|
||||
}
|
||||
|
||||
// .greptime.v1.TimeRanges time_ranges = 5;
|
||||
if (this->_internal_has_time_ranges()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.time_ranges_);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
@@ -8632,6 +8678,10 @@ void TruncateTableExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons
|
||||
_this->_internal_mutable_table_id()->::greptime::v1::TableId::MergeFrom(
|
||||
from._internal_table_id());
|
||||
}
|
||||
if (from._internal_has_time_ranges()) {
|
||||
_this->_internal_mutable_time_ranges()->::greptime::v1::TimeRanges::MergeFrom(
|
||||
from._internal_time_ranges());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
@@ -8663,7 +8713,12 @@ void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) {
|
||||
&_impl_.table_name_, lhs_arena,
|
||||
&other->_impl_.table_name_, rhs_arena
|
||||
);
|
||||
swap(_impl_.table_id_, other->_impl_.table_id_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::memswap<
|
||||
PROTOBUF_FIELD_OFFSET(TruncateTableExpr, _impl_.time_ranges_)
|
||||
+ sizeof(TruncateTableExpr::_impl_.time_ranges_)
|
||||
- PROTOBUF_FIELD_OFFSET(TruncateTableExpr, _impl_.table_id_)>(
|
||||
reinterpret_cast<char*>(&_impl_.table_id_),
|
||||
reinterpret_cast<char*>(&other->_impl_.table_id_));
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const {
|
||||
|
||||
@@ -4278,6 +4278,7 @@ class TruncateTableExpr final :
|
||||
kSchemaNameFieldNumber = 2,
|
||||
kTableNameFieldNumber = 3,
|
||||
kTableIdFieldNumber = 4,
|
||||
kTimeRangesFieldNumber = 5,
|
||||
};
|
||||
// string catalog_name = 1;
|
||||
void clear_catalog_name();
|
||||
@@ -4339,6 +4340,24 @@ class TruncateTableExpr final :
|
||||
::greptime::v1::TableId* table_id);
|
||||
::greptime::v1::TableId* unsafe_arena_release_table_id();
|
||||
|
||||
// .greptime.v1.TimeRanges time_ranges = 5;
|
||||
bool has_time_ranges() const;
|
||||
private:
|
||||
bool _internal_has_time_ranges() const;
|
||||
public:
|
||||
void clear_time_ranges();
|
||||
const ::greptime::v1::TimeRanges& time_ranges() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::TimeRanges* release_time_ranges();
|
||||
::greptime::v1::TimeRanges* mutable_time_ranges();
|
||||
void set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges);
|
||||
private:
|
||||
const ::greptime::v1::TimeRanges& _internal_time_ranges() const;
|
||||
::greptime::v1::TimeRanges* _internal_mutable_time_ranges();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_time_ranges(
|
||||
::greptime::v1::TimeRanges* time_ranges);
|
||||
::greptime::v1::TimeRanges* unsafe_arena_release_time_ranges();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.TruncateTableExpr)
|
||||
private:
|
||||
class _Internal;
|
||||
@@ -4351,6 +4370,7 @@ class TruncateTableExpr final :
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_;
|
||||
::greptime::v1::TableId* table_id_;
|
||||
::greptime::v1::TimeRanges* time_ranges_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
@@ -14912,6 +14932,91 @@ inline void TruncateTableExpr::set_allocated_table_id(::greptime::v1::TableId* t
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.TruncateTableExpr.table_id)
|
||||
}
|
||||
|
||||
// .greptime.v1.TimeRanges time_ranges = 5;
|
||||
inline bool TruncateTableExpr::_internal_has_time_ranges() const {
|
||||
return this != internal_default_instance() && _impl_.time_ranges_ != nullptr;
|
||||
}
|
||||
inline bool TruncateTableExpr::has_time_ranges() const {
|
||||
return _internal_has_time_ranges();
|
||||
}
|
||||
inline const ::greptime::v1::TimeRanges& TruncateTableExpr::_internal_time_ranges() const {
|
||||
const ::greptime::v1::TimeRanges* p = _impl_.time_ranges_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::TimeRanges&>(
|
||||
::greptime::v1::_TimeRanges_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::TimeRanges& TruncateTableExpr::time_ranges() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.TruncateTableExpr.time_ranges)
|
||||
return _internal_time_ranges();
|
||||
}
|
||||
inline void TruncateTableExpr::unsafe_arena_set_allocated_time_ranges(
|
||||
::greptime::v1::TimeRanges* time_ranges) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_ranges_);
|
||||
}
|
||||
_impl_.time_ranges_ = time_ranges;
|
||||
if (time_ranges) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.TruncateTableExpr.time_ranges)
|
||||
}
|
||||
inline ::greptime::v1::TimeRanges* TruncateTableExpr::release_time_ranges() {
|
||||
|
||||
::greptime::v1::TimeRanges* temp = _impl_.time_ranges_;
|
||||
_impl_.time_ranges_ = nullptr;
|
||||
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::TimeRanges* TruncateTableExpr::unsafe_arena_release_time_ranges() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.TruncateTableExpr.time_ranges)
|
||||
|
||||
::greptime::v1::TimeRanges* temp = _impl_.time_ranges_;
|
||||
_impl_.time_ranges_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::TimeRanges* TruncateTableExpr::_internal_mutable_time_ranges() {
|
||||
|
||||
if (_impl_.time_ranges_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::TimeRanges>(GetArenaForAllocation());
|
||||
_impl_.time_ranges_ = p;
|
||||
}
|
||||
return _impl_.time_ranges_;
|
||||
}
|
||||
inline ::greptime::v1::TimeRanges* TruncateTableExpr::mutable_time_ranges() {
|
||||
::greptime::v1::TimeRanges* _msg = _internal_mutable_time_ranges();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.TruncateTableExpr.time_ranges)
|
||||
return _msg;
|
||||
}
|
||||
inline void TruncateTableExpr::set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.time_ranges_);
|
||||
}
|
||||
if (time_ranges) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_ranges));
|
||||
if (message_arena != submessage_arena) {
|
||||
time_ranges = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, time_ranges, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.time_ranges_ = time_ranges;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.TruncateTableExpr.time_ranges)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DropDatabaseExpr
|
||||
|
||||
@@ -420,7 +420,9 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
||||
PROTOBUF_CONSTEXPR TruncateRequest::TruncateRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.region_id_)*/uint64_t{0u}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
, /*decltype(_impl_.kind_)*/{}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, /*decltype(_impl_._oneof_case_)*/{}} {}
|
||||
struct TruncateRequestDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR TruncateRequestDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
@@ -430,6 +432,17 @@ struct TruncateRequestDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateRequestDefaultTypeInternal _TruncateRequest_default_instance_;
|
||||
PROTOBUF_CONSTEXPR All::All(
|
||||
::_pbi::ConstantInitialized) {}
|
||||
struct AllDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR AllDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~AllDefaultTypeInternal() {}
|
||||
union {
|
||||
All _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllDefaultTypeInternal _All_default_instance_;
|
||||
PROTOBUF_CONSTEXPR RegionColumnDef::RegionColumnDef(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.column_def_)*/nullptr
|
||||
@@ -518,7 +531,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
||||
} // namespace region
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[36];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[37];
|
||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr;
|
||||
|
||||
@@ -793,10 +806,19 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _impl_._oneof_case_[0]),
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _impl_.region_id_),
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _impl_.kind_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::All, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionColumnDef, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -878,12 +900,13 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 250, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 257, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 267, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 274, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
{ 282, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
|
||||
{ 291, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
|
||||
{ 298, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
|
||||
{ 306, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
|
||||
{ 316, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
|
||||
{ 277, -1, -1, sizeof(::greptime::v1::region::All)},
|
||||
{ 283, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
{ 291, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
|
||||
{ 300, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
|
||||
{ 307, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
|
||||
{ 315, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
|
||||
{ 325, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -917,6 +940,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::region::_StrictWindow_default_instance_._instance,
|
||||
&::greptime::v1::region::_CompactRequest_default_instance_._instance,
|
||||
&::greptime::v1::region::_TruncateRequest_default_instance_._instance,
|
||||
&::greptime::v1::region::_All_default_instance_._instance,
|
||||
&::greptime::v1::region::_RegionColumnDef_default_instance_._instance,
|
||||
&::greptime::v1::region::_BulkInsertRequest_default_instance_._instance,
|
||||
&::greptime::v1::region::_MitoManifestInfo_default_instance_._instance,
|
||||
@@ -1025,26 +1049,29 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
|
||||
"\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region."
|
||||
"RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept"
|
||||
"ime.v1.region.StrictWindowH\000B\t\n\007options\""
|
||||
"$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n"
|
||||
"\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g"
|
||||
"reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r\""
|
||||
"Z\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022"
|
||||
"*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.ArrowIp"
|
||||
"cH\000B\006\n\004body\"1\n\020MitoManifestInfo\022\035\n\025data_"
|
||||
"manifest_version\030\001 \001(\004\"V\n\022MetricManifest"
|
||||
"Info\022\035\n\025data_manifest_version\030\001 \001(\004\022!\n\031m"
|
||||
"etadata_manifest_version\030\002 \001(\004\"\275\001\n\013SyncR"
|
||||
"equest\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_manife"
|
||||
"st_info\030\002 \001(\0132$.greptime.v1.region.MitoM"
|
||||
"anifestInfoH\000\022F\n\024metric_manifest_info\030\003 "
|
||||
"\001(\0132&.greptime.v1.region.MetricManifestI"
|
||||
"nfoH\000B\017\n\rmanifest_info\")\n\023ListMetadataRe"
|
||||
"quest\022\022\n\nregion_ids\030\001 \003(\0042Y\n\006Region\022O\n\006H"
|
||||
"andle\022!.greptime.v1.region.RegionRequest"
|
||||
"\032\".greptime.v1.region.RegionResponseB]\n\025"
|
||||
"io.greptime.v1.regionB\006ServerZ<github.co"
|
||||
"m/GreptimeTeam/greptime-proto/go/greptim"
|
||||
"e/v1/regionb\006proto3"
|
||||
"\204\001\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\022&"
|
||||
"\n\003all\030\002 \001(\0132\027.greptime.v1.region.AllH\000\022."
|
||||
"\n\013time_ranges\030\003 \001(\0132\027.greptime.v1.TimeRa"
|
||||
"ngesH\000B\006\n\004kind\"\005\n\003All\"P\n\017RegionColumnDef"
|
||||
"\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
|
||||
"nDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertReq"
|
||||
"uest\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001"
|
||||
"(\0132\025.greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020M"
|
||||
"itoManifestInfo\022\035\n\025data_manifest_version"
|
||||
"\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data_man"
|
||||
"ifest_version\030\001 \001(\004\022!\n\031metadata_manifest"
|
||||
"_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion"
|
||||
"_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$."
|
||||
"greptime.v1.region.MitoManifestInfoH\000\022F\n"
|
||||
"\024metric_manifest_info\030\003 \001(\0132&.greptime.v"
|
||||
"1.region.MetricManifestInfoH\000B\017\n\rmanifes"
|
||||
"t_info\")\n\023ListMetadataRequest\022\022\n\nregion_"
|
||||
"ids\030\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.greptime"
|
||||
".v1.region.RegionRequest\032\".greptime.v1.r"
|
||||
"egion.RegionResponseB]\n\025io.greptime.v1.r"
|
||||
"egionB\006ServerZ<github.com/GreptimeTeam/g"
|
||||
"reptime-proto/go/greptime/v1/regionb\006pro"
|
||||
"to3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -1053,9 +1080,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
||||
false, false, 4739, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
false, false, 4843, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
"greptime/v1/region/server.proto",
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 36,
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 37,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
@@ -8523,8 +8550,57 @@ void CompactRequest::InternalSwap(CompactRequest* other) {
|
||||
|
||||
class TruncateRequest::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::region::All& all(const TruncateRequest* msg);
|
||||
static const ::greptime::v1::TimeRanges& time_ranges(const TruncateRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::region::All&
|
||||
TruncateRequest::_Internal::all(const TruncateRequest* msg) {
|
||||
return *msg->_impl_.kind_.all_;
|
||||
}
|
||||
const ::greptime::v1::TimeRanges&
|
||||
TruncateRequest::_Internal::time_ranges(const TruncateRequest* msg) {
|
||||
return *msg->_impl_.kind_.time_ranges_;
|
||||
}
|
||||
void TruncateRequest::set_allocated_all(::greptime::v1::region::All* all) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_kind();
|
||||
if (all) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(all);
|
||||
if (message_arena != submessage_arena) {
|
||||
all = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, all, submessage_arena);
|
||||
}
|
||||
set_has_all();
|
||||
_impl_.kind_.all_ = all;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.TruncateRequest.all)
|
||||
}
|
||||
void TruncateRequest::set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_kind();
|
||||
if (time_ranges) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_ranges));
|
||||
if (message_arena != submessage_arena) {
|
||||
time_ranges = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, time_ranges, submessage_arena);
|
||||
}
|
||||
set_has_time_ranges();
|
||||
_impl_.kind_.time_ranges_ = time_ranges;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.TruncateRequest.time_ranges)
|
||||
}
|
||||
void TruncateRequest::clear_time_ranges() {
|
||||
if (_internal_has_time_ranges()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.time_ranges_;
|
||||
}
|
||||
clear_has_kind();
|
||||
}
|
||||
}
|
||||
TruncateRequest::TruncateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -8536,10 +8612,28 @@ TruncateRequest::TruncateRequest(const TruncateRequest& from)
|
||||
TruncateRequest* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.region_id_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
, decltype(_impl_.kind_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, /*decltype(_impl_._oneof_case_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_this->_impl_.region_id_ = from._impl_.region_id_;
|
||||
clear_has_kind();
|
||||
switch (from.kind_case()) {
|
||||
case kAll: {
|
||||
_this->_internal_mutable_all()->::greptime::v1::region::All::MergeFrom(
|
||||
from._internal_all());
|
||||
break;
|
||||
}
|
||||
case kTimeRanges: {
|
||||
_this->_internal_mutable_time_ranges()->::greptime::v1::TimeRanges::MergeFrom(
|
||||
from._internal_time_ranges());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.TruncateRequest)
|
||||
}
|
||||
|
||||
@@ -8549,8 +8643,11 @@ inline void TruncateRequest::SharedCtor(
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.region_id_){uint64_t{0u}}
|
||||
, decltype(_impl_.kind_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, /*decltype(_impl_._oneof_case_)*/{}
|
||||
};
|
||||
clear_has_kind();
|
||||
}
|
||||
|
||||
TruncateRequest::~TruncateRequest() {
|
||||
@@ -8564,12 +8661,38 @@ TruncateRequest::~TruncateRequest() {
|
||||
|
||||
inline void TruncateRequest::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (has_kind()) {
|
||||
clear_kind();
|
||||
}
|
||||
}
|
||||
|
||||
void TruncateRequest::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void TruncateRequest::clear_kind() {
|
||||
// @@protoc_insertion_point(one_of_clear_start:greptime.v1.region.TruncateRequest)
|
||||
switch (kind_case()) {
|
||||
case kAll: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.all_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kTimeRanges: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.time_ranges_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
_impl_._oneof_case_[0] = KIND_NOT_SET;
|
||||
}
|
||||
|
||||
|
||||
void TruncateRequest::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.region.TruncateRequest)
|
||||
uint32_t cached_has_bits = 0;
|
||||
@@ -8577,6 +8700,7 @@ void TruncateRequest::Clear() {
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.region_id_ = uint64_t{0u};
|
||||
clear_kind();
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
@@ -8594,6 +8718,22 @@ const char* TruncateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContex
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.region.All all = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_all(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.TimeRanges time_ranges = 3;
|
||||
case 3:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_time_ranges(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -8629,6 +8769,20 @@ uint8_t* TruncateRequest::_InternalSerialize(
|
||||
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target);
|
||||
}
|
||||
|
||||
// .greptime.v1.region.All all = 2;
|
||||
if (_internal_has_all()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(2, _Internal::all(this),
|
||||
_Internal::all(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.TimeRanges time_ranges = 3;
|
||||
if (_internal_has_time_ranges()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(3, _Internal::time_ranges(this),
|
||||
_Internal::time_ranges(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);
|
||||
@@ -8650,6 +8804,25 @@ size_t TruncateRequest::ByteSizeLong() const {
|
||||
total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id());
|
||||
}
|
||||
|
||||
switch (kind_case()) {
|
||||
// .greptime.v1.region.All all = 2;
|
||||
case kAll: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.kind_.all_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.TimeRanges time_ranges = 3;
|
||||
case kTimeRanges: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.kind_.time_ranges_);
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
@@ -8671,6 +8844,21 @@ void TruncateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
|
||||
if (from._internal_region_id() != 0) {
|
||||
_this->_internal_set_region_id(from._internal_region_id());
|
||||
}
|
||||
switch (from.kind_case()) {
|
||||
case kAll: {
|
||||
_this->_internal_mutable_all()->::greptime::v1::region::All::MergeFrom(
|
||||
from._internal_all());
|
||||
break;
|
||||
}
|
||||
case kTimeRanges: {
|
||||
_this->_internal_mutable_time_ranges()->::greptime::v1::TimeRanges::MergeFrom(
|
||||
from._internal_time_ranges());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
@@ -8689,6 +8877,8 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.region_id_, other->_impl_.region_id_);
|
||||
swap(_impl_.kind_, other->_impl_.kind_);
|
||||
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata TruncateRequest::GetMetadata() const {
|
||||
@@ -8699,6 +8889,46 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class All::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
All::All(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) {
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.region.All)
|
||||
}
|
||||
All::All(const All& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() {
|
||||
All* const _this = this; (void)_this;
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.region.All)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData All::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl,
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*All::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata All::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class RegionColumnDef::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::ColumnDef& column_def(const RegionColumnDef* msg);
|
||||
@@ -8924,7 +9154,7 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]);
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[31]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -9207,7 +9437,7 @@ void BulkInsertRequest::InternalSwap(BulkInsertRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata BulkInsertRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[31]);
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[32]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -9385,7 +9615,7 @@ void MitoManifestInfo::InternalSwap(MitoManifestInfo* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata MitoManifestInfo::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[32]);
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[33]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -9596,7 +9826,7 @@ void MetricManifestInfo::InternalSwap(MetricManifestInfo* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata MetricManifestInfo::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[33]);
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[34]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -9928,7 +10158,7 @@ void SyncRequest::InternalSwap(SyncRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata SyncRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[34]);
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[35]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -10121,7 +10351,7 @@ void ListMetadataRequest::InternalSwap(ListMetadataRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ListMetadataRequest::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[35]);
|
||||
file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[36]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -10249,6 +10479,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::region::TruncateRequest*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::region::TruncateRequest >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::region::TruncateRequest >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::region::All*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::region::All >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::region::All >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionColumnDef*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::region::RegionColumnDef >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::region::RegionColumnDef >(arena);
|
||||
|
||||
@@ -60,6 +60,9 @@ extern AddColumnDefaultTypeInternal _AddColumn_default_instance_;
|
||||
class AddColumns;
|
||||
struct AddColumnsDefaultTypeInternal;
|
||||
extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_;
|
||||
class All;
|
||||
struct AllDefaultTypeInternal;
|
||||
extern AllDefaultTypeInternal _All_default_instance_;
|
||||
class AlterRequest;
|
||||
struct AlterRequestDefaultTypeInternal;
|
||||
extern AlterRequestDefaultTypeInternal _AlterRequest_default_instance_;
|
||||
@@ -168,6 +171,7 @@ extern TruncateRequestDefaultTypeInternal _TruncateRequest_default_instance_;
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> ::greptime::v1::region::AddColumn* Arena::CreateMaybeMessage<::greptime::v1::region::AddColumn>(Arena*);
|
||||
template<> ::greptime::v1::region::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::region::AddColumns>(Arena*);
|
||||
template<> ::greptime::v1::region::All* Arena::CreateMaybeMessage<::greptime::v1::region::All>(Arena*);
|
||||
template<> ::greptime::v1::region::AlterRequest* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequest>(Arena*);
|
||||
template<> ::greptime::v1::region::AlterRequests* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequests>(Arena*);
|
||||
template<> ::greptime::v1::region::BulkInsertRequest* Arena::CreateMaybeMessage<::greptime::v1::region::BulkInsertRequest>(Arena*);
|
||||
@@ -5224,6 +5228,12 @@ class TruncateRequest final :
|
||||
static const TruncateRequest& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
enum KindCase {
|
||||
kAll = 2,
|
||||
kTimeRanges = 3,
|
||||
KIND_NOT_SET = 0,
|
||||
};
|
||||
|
||||
static inline const TruncateRequest* internal_default_instance() {
|
||||
return reinterpret_cast<const TruncateRequest*>(
|
||||
&_TruncateRequest_default_instance_);
|
||||
@@ -5303,6 +5313,8 @@ class TruncateRequest final :
|
||||
|
||||
enum : int {
|
||||
kRegionIdFieldNumber = 1,
|
||||
kAllFieldNumber = 2,
|
||||
kTimeRangesFieldNumber = 3,
|
||||
};
|
||||
// uint64 region_id = 1;
|
||||
void clear_region_id();
|
||||
@@ -5313,18 +5325,187 @@ class TruncateRequest final :
|
||||
void _internal_set_region_id(uint64_t value);
|
||||
public:
|
||||
|
||||
// .greptime.v1.region.All all = 2;
|
||||
bool has_all() const;
|
||||
private:
|
||||
bool _internal_has_all() const;
|
||||
public:
|
||||
void clear_all();
|
||||
const ::greptime::v1::region::All& all() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::region::All* release_all();
|
||||
::greptime::v1::region::All* mutable_all();
|
||||
void set_allocated_all(::greptime::v1::region::All* all);
|
||||
private:
|
||||
const ::greptime::v1::region::All& _internal_all() const;
|
||||
::greptime::v1::region::All* _internal_mutable_all();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_all(
|
||||
::greptime::v1::region::All* all);
|
||||
::greptime::v1::region::All* unsafe_arena_release_all();
|
||||
|
||||
// .greptime.v1.TimeRanges time_ranges = 3;
|
||||
bool has_time_ranges() const;
|
||||
private:
|
||||
bool _internal_has_time_ranges() const;
|
||||
public:
|
||||
void clear_time_ranges();
|
||||
const ::greptime::v1::TimeRanges& time_ranges() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::TimeRanges* release_time_ranges();
|
||||
::greptime::v1::TimeRanges* mutable_time_ranges();
|
||||
void set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges);
|
||||
private:
|
||||
const ::greptime::v1::TimeRanges& _internal_time_ranges() const;
|
||||
::greptime::v1::TimeRanges* _internal_mutable_time_ranges();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_time_ranges(
|
||||
::greptime::v1::TimeRanges* time_ranges);
|
||||
::greptime::v1::TimeRanges* unsafe_arena_release_time_ranges();
|
||||
|
||||
void clear_kind();
|
||||
KindCase kind_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.region.TruncateRequest)
|
||||
private:
|
||||
class _Internal;
|
||||
void set_has_all();
|
||||
void set_has_time_ranges();
|
||||
|
||||
inline bool has_kind() const;
|
||||
inline void clear_has_kind();
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
uint64_t region_id_;
|
||||
union KindUnion {
|
||||
constexpr KindUnion() : _constinit_{} {}
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
|
||||
::greptime::v1::region::All* all_;
|
||||
::greptime::v1::TimeRanges* time_ranges_;
|
||||
} kind_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class All final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:greptime.v1.region.All) */ {
|
||||
public:
|
||||
inline All() : All(nullptr) {}
|
||||
explicit PROTOBUF_CONSTEXPR All(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
All(const All& from);
|
||||
All(All&& from) noexcept
|
||||
: All() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline All& operator=(const All& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline All& operator=(All&& 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 All& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const All* internal_default_instance() {
|
||||
return reinterpret_cast<const All*>(
|
||||
&_All_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
30;
|
||||
|
||||
friend void swap(All& a, All& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(All* 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(All* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
All* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<All>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom;
|
||||
inline void CopyFrom(const All& from) {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom;
|
||||
void MergeFrom(const All& from) {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from);
|
||||
}
|
||||
public:
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.region.All";
|
||||
}
|
||||
protected:
|
||||
explicit All(::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 -------------------------------------------------------
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.region.All)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
uint64_t region_id_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
@@ -5377,7 +5558,7 @@ class RegionColumnDef final :
|
||||
&_RegionColumnDef_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
30;
|
||||
31;
|
||||
|
||||
friend void swap(RegionColumnDef& a, RegionColumnDef& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5550,7 +5731,7 @@ class BulkInsertRequest final :
|
||||
&_BulkInsertRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
31;
|
||||
32;
|
||||
|
||||
friend void swap(BulkInsertRequest& a, BulkInsertRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5730,7 +5911,7 @@ class MitoManifestInfo final :
|
||||
&_MitoManifestInfo_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
32;
|
||||
33;
|
||||
|
||||
friend void swap(MitoManifestInfo& a, MitoManifestInfo& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5878,7 +6059,7 @@ class MetricManifestInfo final :
|
||||
&_MetricManifestInfo_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
33;
|
||||
34;
|
||||
|
||||
friend void swap(MetricManifestInfo& a, MetricManifestInfo& b) {
|
||||
a.Swap(&b);
|
||||
@@ -6043,7 +6224,7 @@ class SyncRequest final :
|
||||
&_SyncRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
34;
|
||||
35;
|
||||
|
||||
friend void swap(SyncRequest& a, SyncRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -6244,7 +6425,7 @@ class ListMetadataRequest final :
|
||||
&_ListMetadataRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
35;
|
||||
36;
|
||||
|
||||
friend void swap(ListMetadataRequest& a, ListMetadataRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -10568,6 +10749,159 @@ inline void TruncateRequest::set_region_id(uint64_t value) {
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.region.TruncateRequest.region_id)
|
||||
}
|
||||
|
||||
// .greptime.v1.region.All all = 2;
|
||||
inline bool TruncateRequest::_internal_has_all() const {
|
||||
return kind_case() == kAll;
|
||||
}
|
||||
inline bool TruncateRequest::has_all() const {
|
||||
return _internal_has_all();
|
||||
}
|
||||
inline void TruncateRequest::set_has_all() {
|
||||
_impl_._oneof_case_[0] = kAll;
|
||||
}
|
||||
inline void TruncateRequest::clear_all() {
|
||||
if (_internal_has_all()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.all_;
|
||||
}
|
||||
clear_has_kind();
|
||||
}
|
||||
}
|
||||
inline ::greptime::v1::region::All* TruncateRequest::release_all() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.region.TruncateRequest.all)
|
||||
if (_internal_has_all()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::region::All* temp = _impl_.kind_.all_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.kind_.all_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::region::All& TruncateRequest::_internal_all() const {
|
||||
return _internal_has_all()
|
||||
? *_impl_.kind_.all_
|
||||
: reinterpret_cast< ::greptime::v1::region::All&>(::greptime::v1::region::_All_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::region::All& TruncateRequest::all() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.region.TruncateRequest.all)
|
||||
return _internal_all();
|
||||
}
|
||||
inline ::greptime::v1::region::All* TruncateRequest::unsafe_arena_release_all() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.TruncateRequest.all)
|
||||
if (_internal_has_all()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::region::All* temp = _impl_.kind_.all_;
|
||||
_impl_.kind_.all_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void TruncateRequest::unsafe_arena_set_allocated_all(::greptime::v1::region::All* all) {
|
||||
clear_kind();
|
||||
if (all) {
|
||||
set_has_all();
|
||||
_impl_.kind_.all_ = all;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.TruncateRequest.all)
|
||||
}
|
||||
inline ::greptime::v1::region::All* TruncateRequest::_internal_mutable_all() {
|
||||
if (!_internal_has_all()) {
|
||||
clear_kind();
|
||||
set_has_all();
|
||||
_impl_.kind_.all_ = CreateMaybeMessage< ::greptime::v1::region::All >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.kind_.all_;
|
||||
}
|
||||
inline ::greptime::v1::region::All* TruncateRequest::mutable_all() {
|
||||
::greptime::v1::region::All* _msg = _internal_mutable_all();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.TruncateRequest.all)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.TimeRanges time_ranges = 3;
|
||||
inline bool TruncateRequest::_internal_has_time_ranges() const {
|
||||
return kind_case() == kTimeRanges;
|
||||
}
|
||||
inline bool TruncateRequest::has_time_ranges() const {
|
||||
return _internal_has_time_ranges();
|
||||
}
|
||||
inline void TruncateRequest::set_has_time_ranges() {
|
||||
_impl_._oneof_case_[0] = kTimeRanges;
|
||||
}
|
||||
inline ::greptime::v1::TimeRanges* TruncateRequest::release_time_ranges() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.region.TruncateRequest.time_ranges)
|
||||
if (_internal_has_time_ranges()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::TimeRanges* temp = _impl_.kind_.time_ranges_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.kind_.time_ranges_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::TimeRanges& TruncateRequest::_internal_time_ranges() const {
|
||||
return _internal_has_time_ranges()
|
||||
? *_impl_.kind_.time_ranges_
|
||||
: reinterpret_cast< ::greptime::v1::TimeRanges&>(::greptime::v1::_TimeRanges_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::TimeRanges& TruncateRequest::time_ranges() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.region.TruncateRequest.time_ranges)
|
||||
return _internal_time_ranges();
|
||||
}
|
||||
inline ::greptime::v1::TimeRanges* TruncateRequest::unsafe_arena_release_time_ranges() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.TruncateRequest.time_ranges)
|
||||
if (_internal_has_time_ranges()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::TimeRanges* temp = _impl_.kind_.time_ranges_;
|
||||
_impl_.kind_.time_ranges_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void TruncateRequest::unsafe_arena_set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges) {
|
||||
clear_kind();
|
||||
if (time_ranges) {
|
||||
set_has_time_ranges();
|
||||
_impl_.kind_.time_ranges_ = time_ranges;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.TruncateRequest.time_ranges)
|
||||
}
|
||||
inline ::greptime::v1::TimeRanges* TruncateRequest::_internal_mutable_time_ranges() {
|
||||
if (!_internal_has_time_ranges()) {
|
||||
clear_kind();
|
||||
set_has_time_ranges();
|
||||
_impl_.kind_.time_ranges_ = CreateMaybeMessage< ::greptime::v1::TimeRanges >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.kind_.time_ranges_;
|
||||
}
|
||||
inline ::greptime::v1::TimeRanges* TruncateRequest::mutable_time_ranges() {
|
||||
::greptime::v1::TimeRanges* _msg = _internal_mutable_time_ranges();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.TruncateRequest.time_ranges)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
inline bool TruncateRequest::has_kind() const {
|
||||
return kind_case() != KIND_NOT_SET;
|
||||
}
|
||||
inline void TruncateRequest::clear_has_kind() {
|
||||
_impl_._oneof_case_[0] = KIND_NOT_SET;
|
||||
}
|
||||
inline TruncateRequest::KindCase TruncateRequest::kind_case() const {
|
||||
return TruncateRequest::KindCase(_impl_._oneof_case_[0]);
|
||||
}
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// All
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// RegionColumnDef
|
||||
@@ -11149,6 +11483,8 @@ ListMetadataRequest::mutable_region_ids() {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user