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:
discord9
2025-08-04 18:17:40 +08:00
committed by GitHub
parent 91c3d7b97a
commit ccfd4da48b
15 changed files with 5844 additions and 894 deletions
+554 -50
View File
@@ -281,6 +281,34 @@ struct IntervalMonthDayNanoDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_; 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( PROTOBUF_CONSTEXPR Decimal128::Decimal128(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.hi_)*/int64_t{0} /*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_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowIpcDefaultTypeInternal _ArrowIpc_default_instance_;
} // namespace v1 } // namespace v1
} // namespace greptime } // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[26]; static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[28];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[3]; 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; 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) = { 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_.days_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_), PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_),
~0u, // no _has_bits_ ~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_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
@@ -628,13 +672,15 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 142, -1, -1, sizeof(::greptime::v1::ExpireAfter)}, { 142, -1, -1, sizeof(::greptime::v1::ExpireAfter)},
{ 149, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, { 149, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 157, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, { 157, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 166, -1, -1, sizeof(::greptime::v1::Decimal128)}, { 166, -1, -1, sizeof(::greptime::v1::TimeRange)},
{ 174, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, { 174, -1, -1, sizeof(::greptime::v1::TimeRanges)},
{ 184, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, { 182, -1, -1, sizeof(::greptime::v1::Decimal128)},
{ 192, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, { 190, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
{ 199, 207, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, { 200, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
{ 209, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, { 208, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)},
{ 216, -1, -1, sizeof(::greptime::v1::ArrowIpc)}, { 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[] = { 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::_ExpireAfter_default_instance_._instance,
&::greptime::v1::_FlightMetadata_default_instance_._instance, &::greptime::v1::_FlightMetadata_default_instance_._instance,
&::greptime::v1::_IntervalMonthDayNano_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::_Decimal128_default_instance_._instance,
&::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance, &::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance,
&::greptime::v1::_DecimalTypeExtension_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" "ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR"
"ows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Metri" "ows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Metri"
"cs\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 \001" "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" "(\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" "\tTimeRange\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"c"
"ColumnDataTypeExtension\0229\n\014decimal_type\030" "\n\nTimeRanges\022(\n\ttime_unit\030\001 \001(\0162\025.grepti"
"\001 \001(\0132!.greptime.v1.DecimalTypeExtension" "me.v1.TimeUnit\022+\n\013time_ranges\030\002 \003(\0132\026.gr"
"H\000\0223\n\tjson_type\030\002 \001(\0162\036.greptime.v1.Json" "eptime.v1.TimeRange\"$\n\nDecimal128\022\n\n\002hi\030"
"TypeExtensionH\000\0227\n\013vector_type\030\003 \001(\0132 .g" "\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExte"
"reptime.v1.VectorTypeExtensionH\000B\n\n\010type" "nsion\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v"
"_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisio" "1.DecimalTypeExtensionH\000\0223\n\tjson_type\030\002 "
"n\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n\023VectorTypeExte" "\001(\0162\036.greptime.v1.JsonTypeExtensionH\000\0227\n"
"nsion\022\013\n\003dim\030\001 \001(\r\"y\n\rColumnOptions\0228\n\007o" "\013vector_type\030\003 \001(\0132 .greptime.v1.VectorT"
"ptions\030\001 \003(\0132\'.greptime.v1.ColumnOptions" "ypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTyp"
".OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001" "eExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002"
"(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\010ArrowIpc\022\016\n\006sch" " \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r"
"ema\030\001 \001(\014\022\023\n\013data_header\030\002 \001(\014\022\017\n\007payloa" "\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.gre"
"d\030\003 \001(\014*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIEL" "ptime.v1.ColumnOptions.OptionsEntry\032.\n\014O"
"D\020\001\022\r\n\tTIMESTAMP\020\002*\354\003\n\016ColumnDataType\022\013\n" "ptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:"
"\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32" "\0028\001\"@\n\010ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_"
"\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006" "header\030\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014Semanti"
"UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLO" "cType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002"
"AT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r" "*\354\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8"
"\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025" "\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005U"
"TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MIC" "INT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64"
"ROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013" "\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013"
"TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020T" "\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020"
"IME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027" "TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISEC"
"\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_" "OND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIME"
"TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nD" "STAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020T"
"ECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021Jso" "IME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022"
"nTypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.gr" "\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MO"
"eptime.v1B\006CommonZ5github.com/GreptimeTe" "NTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL"
"am/greptime-proto/go/greptime/v1b\006proto3" "_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; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { 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", "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, 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_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto,
file_level_service_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); ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcommon_2eproto);
return file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2]; 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) { bool JsonTypeExtension_IsValid(int value) {
switch (value) { switch (value) {
case 0: 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 { class Decimal128::_Internal {
public: public:
}; };
@@ -4983,7 +5479,7 @@ void Decimal128::InternalSwap(Decimal128* other) {
::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata VectorTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions_OptionsEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata ArrowIpc::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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) // @@protoc_insertion_point(namespace_scope)
@@ -6315,6 +6811,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano*
Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(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* template<> PROTOBUF_NOINLINE ::greptime::v1::Decimal128*
Arena::CreateMaybeMessage< ::greptime::v1::Decimal128 >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::Decimal128 >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::Decimal128 >(arena); return Arena::CreateMessageInternal< ::greptime::v1::Decimal128 >(arena);
+485 -6
View File
@@ -122,6 +122,12 @@ extern StatusDefaultTypeInternal _Status_default_instance_;
class TableName; class TableName;
struct TableNameDefaultTypeInternal; struct TableNameDefaultTypeInternal;
extern TableNameDefaultTypeInternal _TableName_default_instance_; 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; class Token;
struct TokenDefaultTypeInternal; struct TokenDefaultTypeInternal;
extern TokenDefaultTypeInternal _Token_default_instance_; 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::SnapshotSequences_SstMinSequencesEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*); template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*);
template<> ::greptime::v1::TableName* Arena::CreateMaybeMessage<::greptime::v1::TableName>(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::Token* Arena::CreateMaybeMessage<::greptime::v1::Token>(Arena*);
template<> ::greptime::v1::VectorTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::VectorTypeExtension>(Arena*); template<> ::greptime::v1::VectorTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::VectorTypeExtension>(Arena*);
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
@@ -239,6 +247,33 @@ inline bool ColumnDataType_Parse(
return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ColumnDataType>( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ColumnDataType>(
ColumnDataType_descriptor(), name, value); 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 { enum JsonTypeExtension : int {
JSON_BINARY = 0, JSON_BINARY = 0,
JsonTypeExtension_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<int32_t>::min(), 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 : class Decimal128 final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Decimal128) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Decimal128) */ {
public: public:
@@ -3080,7 +3442,7 @@ class Decimal128 final :
&_Decimal128_default_instance_); &_Decimal128_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
19; 21;
friend void swap(Decimal128& a, Decimal128& b) { friend void swap(Decimal128& a, Decimal128& b) {
a.Swap(&b); a.Swap(&b);
@@ -3246,7 +3608,7 @@ class ColumnDataTypeExtension final :
&_ColumnDataTypeExtension_default_instance_); &_ColumnDataTypeExtension_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
20; 22;
friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) { friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) {
a.Swap(&b); a.Swap(&b);
@@ -3452,7 +3814,7 @@ class DecimalTypeExtension final :
&_DecimalTypeExtension_default_instance_); &_DecimalTypeExtension_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
21; 23;
friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) { friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) {
a.Swap(&b); a.Swap(&b);
@@ -3611,7 +3973,7 @@ class VectorTypeExtension final :
&_VectorTypeExtension_default_instance_); &_VectorTypeExtension_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
22; 24;
friend void swap(VectorTypeExtension& a, VectorTypeExtension& b) { friend void swap(VectorTypeExtension& a, VectorTypeExtension& b) {
a.Swap(&b); a.Swap(&b);
@@ -3787,7 +4149,7 @@ class ColumnOptions final :
&_ColumnOptions_default_instance_); &_ColumnOptions_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
24; 26;
friend void swap(ColumnOptions& a, ColumnOptions& b) { friend void swap(ColumnOptions& a, ColumnOptions& b) {
a.Swap(&b); a.Swap(&b);
@@ -3950,7 +4312,7 @@ class ArrowIpc final :
&_ArrowIpc_default_instance_); &_ArrowIpc_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
25; 27;
friend void swap(ArrowIpc& a, ArrowIpc& b) { friend void swap(ArrowIpc& a, ArrowIpc& b) {
a.Swap(&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 // Decimal128
// int64 hi = 1; // int64 hi = 1;
@@ -6436,6 +6906,10 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
@@ -6454,6 +6928,11 @@ template <>
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::ColumnDataType>() { inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::ColumnDataType>() {
return ::greptime::v1::ColumnDataType_descriptor(); 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 <> struct is_proto_enum< ::greptime::v1::JsonTypeExtension> : ::std::true_type {};
template <> template <>
inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::JsonTypeExtension>() { inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::JsonTypeExtension>() {
+173 -118
View File
@@ -306,6 +306,7 @@ PROTOBUF_CONSTEXPR TruncateTableExpr::TruncateTableExpr(
, /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*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_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.table_id_)*/nullptr , /*decltype(_impl_.table_id_)*/nullptr
, /*decltype(_impl_.time_ranges_)*/nullptr
, /*decltype(_impl_._cached_size_)*/{}} {} , /*decltype(_impl_._cached_size_)*/{}} {}
struct TruncateTableExprDefaultTypeInternal { struct TruncateTableExprDefaultTypeInternal {
PROTOBUF_CONSTEXPR 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_.schema_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_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_.table_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.time_ranges_),
~0u, // no _has_bits_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDatabaseExpr, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDatabaseExpr, _internal_metadata_),
~0u, // no _extensions_ ~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)}, { 189, 197, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 199, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, { 199, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 209, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, { 209, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 219, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, { 220, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
{ 228, -1, -1, sizeof(::greptime::v1::AddColumns)}, { 229, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 235, -1, -1, sizeof(::greptime::v1::DropDefaults)}, { 236, -1, -1, sizeof(::greptime::v1::DropDefaults)},
{ 242, -1, -1, sizeof(::greptime::v1::SetDefaults)}, { 243, -1, -1, sizeof(::greptime::v1::SetDefaults)},
{ 249, -1, -1, sizeof(::greptime::v1::DropColumns)}, { 250, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 256, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, { 257, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)},
{ 263, -1, -1, sizeof(::greptime::v1::RenameTable)}, { 264, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 270, -1, -1, sizeof(::greptime::v1::AddColumn)}, { 271, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 279, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, { 280, -1, -1, sizeof(::greptime::v1::ModifyColumnType)},
{ 288, -1, -1, sizeof(::greptime::v1::Option)}, { 289, -1, -1, sizeof(::greptime::v1::Option)},
{ 296, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, { 297, -1, -1, sizeof(::greptime::v1::SetTableOptions)},
{ 303, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, { 304, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)},
{ 310, -1, -1, sizeof(::greptime::v1::DropColumn)}, { 311, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 317, -1, -1, sizeof(::greptime::v1::TableId)}, { 318, -1, -1, sizeof(::greptime::v1::TableId)},
{ 324, -1, -1, sizeof(::greptime::v1::FlowId)}, { 325, -1, -1, sizeof(::greptime::v1::FlowId)},
{ 331, -1, -1, sizeof(::greptime::v1::ColumnDef)}, { 332, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 345, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, { 346, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
{ 353, -1, -1, sizeof(::greptime::v1::SetFulltext)}, { 354, -1, -1, sizeof(::greptime::v1::SetFulltext)},
{ 366, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, { 367, -1, -1, sizeof(::greptime::v1::UnsetFulltext)},
{ 373, -1, -1, sizeof(::greptime::v1::SetInverted)}, { 374, -1, -1, sizeof(::greptime::v1::SetInverted)},
{ 380, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, { 381, -1, -1, sizeof(::greptime::v1::UnsetInverted)},
{ 387, -1, -1, sizeof(::greptime::v1::SetSkipping)}, { 388, -1, -1, sizeof(::greptime::v1::SetSkipping)},
{ 398, -1, -1, sizeof(::greptime::v1::UnsetSkipping)}, { 399, -1, -1, sizeof(::greptime::v1::UnsetSkipping)},
{ 405, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, { 406, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)},
{ 416, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, { 417, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)},
{ 423, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, { 424, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)},
{ 430, 438, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)}, { 431, 439, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)},
{ 440, 448, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)}, { 441, 449, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)},
{ 450, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)}, { 451, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)},
{ 464, -1, -1, sizeof(::greptime::v1::NotifyChannel)}, { 465, -1, -1, sizeof(::greptime::v1::NotifyChannel)},
{ 473, 481, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)}, { 474, 482, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)},
{ 483, -1, -1, sizeof(::greptime::v1::WebhookOptions)}, { 484, -1, -1, sizeof(::greptime::v1::WebhookOptions)},
{ 491, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)}, { 492, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)},
}; };
static const ::_pb::Message* const file_default_instances[] = { 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" "sts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1"
".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti" ".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti"
"onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" "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 " "\"\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\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030"
" \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Tab" "\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Ta"
"leId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name" "bleId\022,\n\013time_ranges\030\005 \001(\0132\027.greptime.v1"
"\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_e" ".TimeRanges\"U\n\020DropDatabaseExpr\022\024\n\014catal"
"xists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns" "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr"
"\030\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n\014DropDe" "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_"
"faults\022/\n\rdrop_defaults\030\001 \003(\0132\030.greptime" "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n"
".v1.DropDefault\"<\n\013SetDefaults\022-\n\014set_de" "\014DropDefaults\022/\n\rdrop_defaults\030\001 \003(\0132\030.g"
"faults\030\001 \003(\0132\027.greptime.v1.SetDefault\"<\n" "reptime.v1.DropDefault\"<\n\013SetDefaults\022-\n"
"\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" "\014set_defaults\030\001 \003(\0132\027.greptime.v1.SetDef"
"ptime.v1.DropColumn\"O\n\021ModifyColumnTypes" "ault\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003("
"\022:\n\023modify_column_types\030\001 \003(\0132\035.greptime" "\0132\027.greptime.v1.DropColumn\"O\n\021ModifyColu"
".v1.ModifyColumnType\"%\n\013RenameTable\022\026\n\016n" "mnTypes\022:\n\023modify_column_types\030\001 \003(\0132\035.g"
"ew_table_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncol" "reptime.v1.ModifyColumnType\"%\n\013RenameTab"
"umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n" "le\022\026\n\016new_table_name\030\001 \001(\t\"\204\001\n\tAddColumn"
"\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL" "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
"ocation\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020M" "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add"
"odifyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013" "ColumnLocation\022\031\n\021add_if_not_exists\030\004 \001("
"target_type\030\002 \001(\0162\033.greptime.v1.ColumnDa" "\010\"\236\001\n\020ModifyColumnType\022\023\n\013column_name\030\001 "
"taType\022C\n\025target_type_extension\030\003 \001(\0132$." "\001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.C"
"greptime.v1.ColumnDataTypeExtension\"$\n\006O" "olumnDataType\022C\n\025target_type_extension\030\003"
"ption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017Set" " \001(\0132$.greptime.v1.ColumnDataTypeExtensi"
"TableOptions\022*\n\rtable_options\030\001 \003(\0132\023.gr" "on\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t"
"eptime.v1.Option\"!\n\021UnsetTableOptions\022\014\n" "\"=\n\017SetTableOptions\022*\n\rtable_options\030\001 \003"
"\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"" "(\0132\023.greptime.v1.Option\"!\n\021UnsetTableOpt"
"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001" "ions\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name"
" \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" "\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022"
"_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" "\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022"
"\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra" ".\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnD"
"int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" "ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_"
"ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" "constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162"
"datatype_extension\030\007 \001(\0132$.greptime.v1.C" "\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 "
"olumnDataTypeExtension\022+\n\007options\030\010 \001(\0132" "\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti"
"\032.greptime.v1.ColumnOptions\"\230\001\n\021AddColum" "me.v1.ColumnDataTypeExtension\022+\n\007options"
"nLocation\022B\n\rlocation_type\030\001 \001(\0162+.grept" "\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021A"
"ime.v1.AddColumnLocation.LocationType\022\031\n" "ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162"
"\021after_column_name\030\002 \001(\t\"$\n\014LocationType" "+.greptime.v1.AddColumnLocation.Location"
"\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltext\022\023" "Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat"
"\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010a" "ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFul"
"nalyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016" "ltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001"
"case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034." "(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analy"
"greptime.v1.FulltextBackend\022\023\n\013granulari" "zer\022\026\n\016case_sensitive\030\004 \001(\010\022-\n\007backend\030\005"
"ty\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001\"$\n" " \001(\0162\034.greptime.v1.FulltextBackend\022\023\n\013gr"
"\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013S" "anularity\030\006 \001(\004\022\033\n\023false_positive_rate\030\007"
"etInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnset" " \001(\001\"$\n\rUnsetFulltext\022\023\n\013column_name\030\001 \001"
"Inverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013SetSki" "(\t\"\"\n\013SetInverted\022\023\n\013column_name\030\001 \001(\t\"$"
"pping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" "\n\rUnsetInverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n"
"(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_inde" "\013SetSkipping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006ena"
"x_type\030\004 \001(\0162\036.greptime.v1.SkippingIndex" "ble\030\002 \001(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skippi"
"Type\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\rUns" "ng_index_type\030\004 \001(\0162\036.greptime.v1.Skippi"
"etSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021Alte" "ngIndexType\022\033\n\023false_positive_rate\030\005 \001(\001"
"rDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" "\"$\n\rUnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314"
"chema_name\030\002 \001(\t\022\?\n\024set_database_options" "\001\n\021AlterDatabaseExpr\022\024\n\014catalog_name\030\001 \001"
"\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptionsH" "(\t\022\023\n\013schema_name\030\002 \001(\t\022\?\n\024set_database_"
"\000\022C\n\026unset_database_options\030\004 \001(\0132!.grep" "options\030\003 \001(\0132\037.greptime.v1.SetDatabaseO"
"time.v1.UnsetDatabaseOptionsH\000B\006\n\004kind\"G" "ptionsH\000\022C\n\026unset_database_options\030\004 \001(\013"
"\n\022SetDatabaseOptions\0221\n\024set_database_opt" "2!.greptime.v1.UnsetDatabaseOptionsH\000B\006\n"
"ions\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Unset" "\004kind\"G\n\022SetDatabaseOptions\0221\n\024set_datab"
"DatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Create" "ase_options\030\001 \003(\0132\023.greptime.v1.Option\"$"
"TriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014tri" "\n\024UnsetDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n"
"gger_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030" "\021CreateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t"
"\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132\032.g" "\022\024\n\014trigger_name\030\002 \001(\t\022\034\n\024create_if_not_"
"reptime.v1.NotifyChannel\022:\n\006labels\030\006 \003(\013" "exists\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 "
"2*.greptime.v1.CreateTriggerExpr.LabelsE" "\003(\0132\032.greptime.v1.NotifyChannel\022:\n\006label"
"ntry\022D\n\013annotations\030\007 \003(\0132/.greptime.v1." "s\030\006 \003(\0132*.greptime.v1.CreateTriggerExpr."
"CreateTriggerExpr.AnnotationsEntry\022\020\n\010in" "LabelsEntry\022D\n\013annotations\030\007 \003(\0132/.grept"
"terval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" "ime.v1.CreateTriggerExpr.AnnotationsEntr"
"\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022" "y\022\020\n\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003ke"
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNotif" "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotation"
"yChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132" "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]"
"\033.greptime.v1.WebhookOptionsH\000B\016\n\014channe" "\n\rNotifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook"
"l_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t\0223\n" "\030\002 \001(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n"
"\004opts\030\002 \003(\0132%.greptime.v1.WebhookOptions" "\014channel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001"
".OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" " \001(\t\0223\n\004opts\030\002 \003(\0132%.greptime.v1.Webhook"
"value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n\014ca" "Options.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 "
"talog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t\022\026" "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExp"
"\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n\007EN" "r\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030"
"GLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBackend\022" "\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyze"
"\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIndex" "r\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextB"
"Type\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime.v1" "ackend\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021Skippi"
"B\003DdlZ5github.com/GreptimeTeam/greptime-" "ngIndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.grep"
"proto/go/greptime/v1b\006proto3" "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] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fcommon_2eproto,
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { 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", "greptime/v1/ddl.proto",
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 52, &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, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
@@ -8332,12 +8335,23 @@ void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) {
class TruncateTableExpr::_Internal { class TruncateTableExpr::_Internal {
public: public:
static const ::greptime::v1::TableId& table_id(const TruncateTableExpr* msg); static const ::greptime::v1::TableId& table_id(const TruncateTableExpr* msg);
static const ::greptime::v1::TimeRanges& time_ranges(const TruncateTableExpr* msg);
}; };
const ::greptime::v1::TableId& const ::greptime::v1::TableId&
TruncateTableExpr::_Internal::table_id(const TruncateTableExpr* msg) { TruncateTableExpr::_Internal::table_id(const TruncateTableExpr* msg) {
return *msg->_impl_.table_id_; 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, TruncateTableExpr::TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned) bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, 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_.schema_name_){}
, decltype(_impl_.table_name_){} , decltype(_impl_.table_name_){}
, decltype(_impl_.table_id_){nullptr} , decltype(_impl_.table_id_){nullptr}
, decltype(_impl_.time_ranges_){nullptr}
, /*decltype(_impl_._cached_size_)*/{}}; , /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _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()) { if (from._internal_has_table_id()) {
_this->_impl_.table_id_ = new ::greptime::v1::TableId(*from._impl_.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) // @@protoc_insertion_point(copy_constructor:greptime.v1.TruncateTableExpr)
} }
@@ -8394,6 +8412,7 @@ inline void TruncateTableExpr::SharedCtor(
, decltype(_impl_.schema_name_){} , decltype(_impl_.schema_name_){}
, decltype(_impl_.table_name_){} , decltype(_impl_.table_name_){}
, decltype(_impl_.table_id_){nullptr} , decltype(_impl_.table_id_){nullptr}
, decltype(_impl_.time_ranges_){nullptr}
, /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._cached_size_)*/{}
}; };
_impl_.catalog_name_.InitDefault(); _impl_.catalog_name_.InitDefault();
@@ -8425,6 +8444,7 @@ inline void TruncateTableExpr::SharedDtor() {
_impl_.schema_name_.Destroy(); _impl_.schema_name_.Destroy();
_impl_.table_name_.Destroy(); _impl_.table_name_.Destroy();
if (this != internal_default_instance()) delete _impl_.table_id_; if (this != internal_default_instance()) delete _impl_.table_id_;
if (this != internal_default_instance()) delete _impl_.time_ranges_;
} }
void TruncateTableExpr::SetCachedSize(int size) const { void TruncateTableExpr::SetCachedSize(int size) const {
@@ -8444,6 +8464,10 @@ void TruncateTableExpr::Clear() {
delete _impl_.table_id_; delete _impl_.table_id_;
} }
_impl_.table_id_ = nullptr; _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>(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
} }
@@ -8491,6 +8515,14 @@ const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont
} else } else
goto handle_unusual; goto handle_unusual;
continue; 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: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -8557,6 +8589,13 @@ uint8_t* TruncateTableExpr::_InternalSerialize(
_Internal::table_id(this).GetCachedSize(), target, stream); _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())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _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_); *_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_); 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( _this->_internal_mutable_table_id()->::greptime::v1::TableId::MergeFrom(
from._internal_table_id()); 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_); _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, &_impl_.table_name_, lhs_arena,
&other->_impl_.table_name_, rhs_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 { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const {
+105
View File
@@ -4278,6 +4278,7 @@ class TruncateTableExpr final :
kSchemaNameFieldNumber = 2, kSchemaNameFieldNumber = 2,
kTableNameFieldNumber = 3, kTableNameFieldNumber = 3,
kTableIdFieldNumber = 4, kTableIdFieldNumber = 4,
kTimeRangesFieldNumber = 5,
}; };
// string catalog_name = 1; // string catalog_name = 1;
void clear_catalog_name(); void clear_catalog_name();
@@ -4339,6 +4340,24 @@ class TruncateTableExpr final :
::greptime::v1::TableId* table_id); ::greptime::v1::TableId* table_id);
::greptime::v1::TableId* unsafe_arena_release_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) // @@protoc_insertion_point(class_scope:greptime.v1.TruncateTableExpr)
private: private:
class _Internal; class _Internal;
@@ -4351,6 +4370,7 @@ class TruncateTableExpr final :
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_;
::greptime::v1::TableId* table_id_; ::greptime::v1::TableId* table_id_;
::greptime::v1::TimeRanges* time_ranges_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
}; };
union { Impl_ _impl_; }; 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) // @@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 // DropDatabaseExpr
+272 -38
View File
@@ -420,7 +420,9 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
PROTOBUF_CONSTEXPR TruncateRequest::TruncateRequest( PROTOBUF_CONSTEXPR TruncateRequest::TruncateRequest(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.region_id_)*/uint64_t{0u} /*decltype(_impl_.region_id_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {} , /*decltype(_impl_.kind_)*/{}
, /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}} {}
struct TruncateRequestDefaultTypeInternal { struct TruncateRequestDefaultTypeInternal {
PROTOBUF_CONSTEXPR TruncateRequestDefaultTypeInternal() PROTOBUF_CONSTEXPR TruncateRequestDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {} : _instance(::_pbi::ConstantInitialized{}) {}
@@ -430,6 +432,17 @@ struct TruncateRequestDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateRequestDefaultTypeInternal _TruncateRequest_default_instance_; 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( PROTOBUF_CONSTEXPR RegionColumnDef::RegionColumnDef(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.column_def_)*/nullptr /*decltype(_impl_.column_def_)*/nullptr
@@ -518,7 +531,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
} // namespace region } // namespace region
} // namespace v1 } // namespace v1
} // namespace greptime } // 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::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; 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_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _internal_metadata_),
~0u, // no _extensions_ ~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 _weak_field_map_
~0u, // no _inlined_string_donated_ ~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _impl_.region_id_), 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_ ~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionColumnDef, _internal_metadata_), PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionColumnDef, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
@@ -878,12 +900,13 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 250, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, { 250, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 257, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, { 257, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 267, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, { 267, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 274, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, { 277, -1, -1, sizeof(::greptime::v1::region::All)},
{ 282, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)}, { 283, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 291, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)}, { 291, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 298, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)}, { 300, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 306, -1, -1, sizeof(::greptime::v1::region::SyncRequest)}, { 307, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 316, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)}, { 315, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 325, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
}; };
static const ::_pb::Message* const file_default_instances[] = { 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::_StrictWindow_default_instance_._instance,
&::greptime::v1::region::_CompactRequest_default_instance_._instance, &::greptime::v1::region::_CompactRequest_default_instance_._instance,
&::greptime::v1::region::_TruncateRequest_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::_RegionColumnDef_default_instance_._instance,
&::greptime::v1::region::_BulkInsertRequest_default_instance_._instance, &::greptime::v1::region::_BulkInsertRequest_default_instance_._instance,
&::greptime::v1::region::_MitoManifestInfo_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." "\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region."
"RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept" "RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept"
"ime.v1.region.StrictWindowH\000B\t\n\007options\"" "ime.v1.region.StrictWindowH\000B\t\n\007options\""
"$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n" "\204\001\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\022&"
"\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g" "\n\003all\030\002 \001(\0132\027.greptime.v1.region.AllH\000\022."
"reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r\"" "\n\013time_ranges\030\003 \001(\0132\027.greptime.v1.TimeRa"
"Z\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022" "ngesH\000B\006\n\004kind\"\005\n\003All\"P\n\017RegionColumnDef"
"*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.ArrowIp" "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
"cH\000B\006\n\004body\"1\n\020MitoManifestInfo\022\035\n\025data_" "nDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertReq"
"manifest_version\030\001 \001(\004\"V\n\022MetricManifest" "uest\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001"
"Info\022\035\n\025data_manifest_version\030\001 \001(\004\022!\n\031m" "(\0132\025.greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020M"
"etadata_manifest_version\030\002 \001(\004\"\275\001\n\013SyncR" "itoManifestInfo\022\035\n\025data_manifest_version"
"equest\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_manife" "\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data_man"
"st_info\030\002 \001(\0132$.greptime.v1.region.MitoM" "ifest_version\030\001 \001(\004\022!\n\031metadata_manifest"
"anifestInfoH\000\022F\n\024metric_manifest_info\030\003 " "_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion"
"\001(\0132&.greptime.v1.region.MetricManifestI" "_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$."
"nfoH\000B\017\n\rmanifest_info\")\n\023ListMetadataRe" "greptime.v1.region.MitoManifestInfoH\000\022F\n"
"quest\022\022\n\nregion_ids\030\001 \003(\0042Y\n\006Region\022O\n\006H" "\024metric_manifest_info\030\003 \001(\0132&.greptime.v"
"andle\022!.greptime.v1.region.RegionRequest" "1.region.MetricManifestInfoH\000B\017\n\rmanifes"
"\032\".greptime.v1.region.RegionResponseB]\n\025" "t_info\")\n\023ListMetadataRequest\022\022\n\nregion_"
"io.greptime.v1.regionB\006ServerZ<github.co" "ids\030\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.greptime"
"m/GreptimeTeam/greptime-proto/go/greptim" ".v1.region.RegionRequest\032\".greptime.v1.r"
"e/v1/regionb\006proto3" "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] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto, &::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; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = { 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", "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, 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_metadata_greptime_2fv1_2fregion_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto,
file_level_service_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 { class TruncateRequest::_Internal {
public: 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, TruncateRequest::TruncateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned) bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, 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; TruncateRequest* const _this = this; (void)_this;
new (&_impl_) Impl_{ new (&_impl_) Impl_{
decltype(_impl_.region_id_){} 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_); _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.region_id_ = from._impl_.region_id_; _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) // @@protoc_insertion_point(copy_constructor:greptime.v1.region.TruncateRequest)
} }
@@ -8549,8 +8643,11 @@ inline void TruncateRequest::SharedCtor(
(void)is_message_owned; (void)is_message_owned;
new (&_impl_) Impl_{ new (&_impl_) Impl_{
decltype(_impl_.region_id_){uint64_t{0u}} decltype(_impl_.region_id_){uint64_t{0u}}
, decltype(_impl_.kind_){}
, /*decltype(_impl_._cached_size_)*/{} , /*decltype(_impl_._cached_size_)*/{}
, /*decltype(_impl_._oneof_case_)*/{}
}; };
clear_has_kind();
} }
TruncateRequest::~TruncateRequest() { TruncateRequest::~TruncateRequest() {
@@ -8564,12 +8661,38 @@ TruncateRequest::~TruncateRequest() {
inline void TruncateRequest::SharedDtor() { inline void TruncateRequest::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (has_kind()) {
clear_kind();
}
} }
void TruncateRequest::SetCachedSize(int size) const { void TruncateRequest::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size); _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() { void TruncateRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.region.TruncateRequest) // @@protoc_insertion_point(message_clear_start:greptime.v1.region.TruncateRequest)
uint32_t cached_has_bits = 0; uint32_t cached_has_bits = 0;
@@ -8577,6 +8700,7 @@ void TruncateRequest::Clear() {
(void) cached_has_bits; (void) cached_has_bits;
_impl_.region_id_ = uint64_t{0u}; _impl_.region_id_ = uint64_t{0u};
clear_kind();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
} }
@@ -8594,6 +8718,22 @@ const char* TruncateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContex
} else } else
goto handle_unusual; goto handle_unusual;
continue; 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: default:
goto handle_unusual; goto handle_unusual;
} // switch } // switch
@@ -8629,6 +8769,20 @@ uint8_t* TruncateRequest::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target); 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())) { if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); _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()); 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_); 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) { if (from._internal_region_id() != 0) {
_this->_internal_set_region_id(from._internal_region_id()); _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_); _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
} }
@@ -8689,6 +8877,8 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) {
using std::swap; using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_); _internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.region_id_, other->_impl_.region_id_); 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 { ::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 { class RegionColumnDef::_Internal {
public: public:
static const ::greptime::v1::ColumnDef& column_def(const RegionColumnDef* msg); 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 { ::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata BulkInsertRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata MitoManifestInfo::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata MetricManifestInfo::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata SyncRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata ListMetadataRequest::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, &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) // @@protoc_insertion_point(namespace_scope)
@@ -10249,6 +10479,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::region::TruncateRequest*
Arena::CreateMaybeMessage< ::greptime::v1::region::TruncateRequest >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::region::TruncateRequest >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::region::TruncateRequest >(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* template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionColumnDef*
Arena::CreateMaybeMessage< ::greptime::v1::region::RegionColumnDef >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::region::RegionColumnDef >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::region::RegionColumnDef >(arena); return Arena::CreateMessageInternal< ::greptime::v1::region::RegionColumnDef >(arena);
+345 -9
View File
@@ -60,6 +60,9 @@ extern AddColumnDefaultTypeInternal _AddColumn_default_instance_;
class AddColumns; class AddColumns;
struct AddColumnsDefaultTypeInternal; struct AddColumnsDefaultTypeInternal;
extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_; extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_;
class All;
struct AllDefaultTypeInternal;
extern AllDefaultTypeInternal _All_default_instance_;
class AlterRequest; class AlterRequest;
struct AlterRequestDefaultTypeInternal; struct AlterRequestDefaultTypeInternal;
extern AlterRequestDefaultTypeInternal _AlterRequest_default_instance_; extern AlterRequestDefaultTypeInternal _AlterRequest_default_instance_;
@@ -168,6 +171,7 @@ extern TruncateRequestDefaultTypeInternal _TruncateRequest_default_instance_;
PROTOBUF_NAMESPACE_OPEN PROTOBUF_NAMESPACE_OPEN
template<> ::greptime::v1::region::AddColumn* Arena::CreateMaybeMessage<::greptime::v1::region::AddColumn>(Arena*); 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::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::AlterRequest* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequest>(Arena*);
template<> ::greptime::v1::region::AlterRequests* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequests>(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*); template<> ::greptime::v1::region::BulkInsertRequest* Arena::CreateMaybeMessage<::greptime::v1::region::BulkInsertRequest>(Arena*);
@@ -5224,6 +5228,12 @@ class TruncateRequest final :
static const TruncateRequest& default_instance() { static const TruncateRequest& default_instance() {
return *internal_default_instance(); return *internal_default_instance();
} }
enum KindCase {
kAll = 2,
kTimeRanges = 3,
KIND_NOT_SET = 0,
};
static inline const TruncateRequest* internal_default_instance() { static inline const TruncateRequest* internal_default_instance() {
return reinterpret_cast<const TruncateRequest*>( return reinterpret_cast<const TruncateRequest*>(
&_TruncateRequest_default_instance_); &_TruncateRequest_default_instance_);
@@ -5303,6 +5313,8 @@ class TruncateRequest final :
enum : int { enum : int {
kRegionIdFieldNumber = 1, kRegionIdFieldNumber = 1,
kAllFieldNumber = 2,
kTimeRangesFieldNumber = 3,
}; };
// uint64 region_id = 1; // uint64 region_id = 1;
void clear_region_id(); void clear_region_id();
@@ -5313,18 +5325,187 @@ class TruncateRequest final :
void _internal_set_region_id(uint64_t value); void _internal_set_region_id(uint64_t value);
public: 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) // @@protoc_insertion_point(class_scope:greptime.v1.region.TruncateRequest)
private: private:
class _Internal; 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; template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_; typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
struct Impl_ { 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; friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto;
}; };
// ------------------------------------------------------------------- // -------------------------------------------------------------------
@@ -5377,7 +5558,7 @@ class RegionColumnDef final :
&_RegionColumnDef_default_instance_); &_RegionColumnDef_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
30; 31;
friend void swap(RegionColumnDef& a, RegionColumnDef& b) { friend void swap(RegionColumnDef& a, RegionColumnDef& b) {
a.Swap(&b); a.Swap(&b);
@@ -5550,7 +5731,7 @@ class BulkInsertRequest final :
&_BulkInsertRequest_default_instance_); &_BulkInsertRequest_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
31; 32;
friend void swap(BulkInsertRequest& a, BulkInsertRequest& b) { friend void swap(BulkInsertRequest& a, BulkInsertRequest& b) {
a.Swap(&b); a.Swap(&b);
@@ -5730,7 +5911,7 @@ class MitoManifestInfo final :
&_MitoManifestInfo_default_instance_); &_MitoManifestInfo_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
32; 33;
friend void swap(MitoManifestInfo& a, MitoManifestInfo& b) { friend void swap(MitoManifestInfo& a, MitoManifestInfo& b) {
a.Swap(&b); a.Swap(&b);
@@ -5878,7 +6059,7 @@ class MetricManifestInfo final :
&_MetricManifestInfo_default_instance_); &_MetricManifestInfo_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
33; 34;
friend void swap(MetricManifestInfo& a, MetricManifestInfo& b) { friend void swap(MetricManifestInfo& a, MetricManifestInfo& b) {
a.Swap(&b); a.Swap(&b);
@@ -6043,7 +6224,7 @@ class SyncRequest final :
&_SyncRequest_default_instance_); &_SyncRequest_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
34; 35;
friend void swap(SyncRequest& a, SyncRequest& b) { friend void swap(SyncRequest& a, SyncRequest& b) {
a.Swap(&b); a.Swap(&b);
@@ -6244,7 +6425,7 @@ class ListMetadataRequest final :
&_ListMetadataRequest_default_instance_); &_ListMetadataRequest_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
35; 36;
friend void swap(ListMetadataRequest& a, ListMetadataRequest& b) { friend void swap(ListMetadataRequest& a, ListMetadataRequest& b) {
a.Swap(&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) // @@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 // RegionColumnDef
@@ -11149,6 +11483,8 @@ ListMetadataRequest::mutable_region_ids() {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+298 -88
View File
@@ -210,6 +210,60 @@ func (ColumnDataType) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{1} return file_greptime_v1_common_proto_rawDescGZIP(), []int{1}
} }
// / Time Unit for timestamp
type TimeUnit int32
const (
// The default time unit is MILLISECOND
TimeUnit_MILLISECOND TimeUnit = 0
TimeUnit_SECOND TimeUnit = 1
TimeUnit_MICROSECOND TimeUnit = 2
TimeUnit_NANOSECOND TimeUnit = 3
)
// Enum value maps for TimeUnit.
var (
TimeUnit_name = map[int32]string{
0: "MILLISECOND",
1: "SECOND",
2: "MICROSECOND",
3: "NANOSECOND",
}
TimeUnit_value = map[string]int32{
"MILLISECOND": 0,
"SECOND": 1,
"MICROSECOND": 2,
"NANOSECOND": 3,
}
)
func (x TimeUnit) Enum() *TimeUnit {
p := new(TimeUnit)
*p = x
return p
}
func (x TimeUnit) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TimeUnit) Descriptor() protoreflect.EnumDescriptor {
return file_greptime_v1_common_proto_enumTypes[2].Descriptor()
}
func (TimeUnit) Type() protoreflect.EnumType {
return &file_greptime_v1_common_proto_enumTypes[2]
}
func (x TimeUnit) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TimeUnit.Descriptor instead.
func (TimeUnit) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{2}
}
type JsonTypeExtension int32 type JsonTypeExtension int32
const ( const (
@@ -237,11 +291,11 @@ func (x JsonTypeExtension) String() string {
} }
func (JsonTypeExtension) Descriptor() protoreflect.EnumDescriptor { func (JsonTypeExtension) Descriptor() protoreflect.EnumDescriptor {
return file_greptime_v1_common_proto_enumTypes[2].Descriptor() return file_greptime_v1_common_proto_enumTypes[3].Descriptor()
} }
func (JsonTypeExtension) Type() protoreflect.EnumType { func (JsonTypeExtension) Type() protoreflect.EnumType {
return &file_greptime_v1_common_proto_enumTypes[2] return &file_greptime_v1_common_proto_enumTypes[3]
} }
func (x JsonTypeExtension) Number() protoreflect.EnumNumber { func (x JsonTypeExtension) Number() protoreflect.EnumNumber {
@@ -250,7 +304,7 @@ func (x JsonTypeExtension) Number() protoreflect.EnumNumber {
// Deprecated: Use JsonTypeExtension.Descriptor instead. // Deprecated: Use JsonTypeExtension.Descriptor instead.
func (JsonTypeExtension) EnumDescriptor() ([]byte, []int) { func (JsonTypeExtension) EnumDescriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{2} return file_greptime_v1_common_proto_rawDescGZIP(), []int{3}
} }
type QueryContext struct { type QueryContext struct {
@@ -1158,6 +1212,117 @@ func (x *IntervalMonthDayNano) GetNanoseconds() int64 {
return 0 return 0
} }
type TimeRange struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"`
End int64 `protobuf:"varint,2,opt,name=end,proto3" json:"end,omitempty"`
}
func (x *TimeRange) Reset() {
*x = TimeRange{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[15]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TimeRange) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeRange) ProtoMessage() {}
func (x *TimeRange) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[15]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TimeRange.ProtoReflect.Descriptor instead.
func (*TimeRange) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{15}
}
func (x *TimeRange) GetStart() int64 {
if x != nil {
return x.Start
}
return 0
}
func (x *TimeRange) GetEnd() int64 {
if x != nil {
return x.End
}
return 0
}
// / Truncate partially by time ranges
type TimeRanges struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TimeUnit TimeUnit `protobuf:"varint,1,opt,name=time_unit,json=timeUnit,proto3,enum=greptime.v1.TimeUnit" json:"time_unit,omitempty"`
TimeRanges []*TimeRange `protobuf:"bytes,2,rep,name=time_ranges,json=timeRanges,proto3" json:"time_ranges,omitempty"`
}
func (x *TimeRanges) Reset() {
*x = TimeRanges{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[16]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TimeRanges) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TimeRanges) ProtoMessage() {}
func (x *TimeRanges) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[16]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TimeRanges.ProtoReflect.Descriptor instead.
func (*TimeRanges) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{16}
}
func (x *TimeRanges) GetTimeUnit() TimeUnit {
if x != nil {
return x.TimeUnit
}
return TimeUnit_MILLISECOND
}
func (x *TimeRanges) GetTimeRanges() []*TimeRange {
if x != nil {
return x.TimeRanges
}
return nil
}
// (hi: high 64 bits, lo: low 64 bits) are used to keep the decimal128 value. // (hi: high 64 bits, lo: low 64 bits) are used to keep the decimal128 value.
type Decimal128 struct { type Decimal128 struct {
state protoimpl.MessageState state protoimpl.MessageState
@@ -1171,7 +1336,7 @@ type Decimal128 struct {
func (x *Decimal128) Reset() { func (x *Decimal128) Reset() {
*x = Decimal128{} *x = Decimal128{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[15] mi := &file_greptime_v1_common_proto_msgTypes[17]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1184,7 +1349,7 @@ func (x *Decimal128) String() string {
func (*Decimal128) ProtoMessage() {} func (*Decimal128) ProtoMessage() {}
func (x *Decimal128) ProtoReflect() protoreflect.Message { func (x *Decimal128) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[15] mi := &file_greptime_v1_common_proto_msgTypes[17]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1197,7 +1362,7 @@ func (x *Decimal128) ProtoReflect() protoreflect.Message {
// Deprecated: Use Decimal128.ProtoReflect.Descriptor instead. // Deprecated: Use Decimal128.ProtoReflect.Descriptor instead.
func (*Decimal128) Descriptor() ([]byte, []int) { func (*Decimal128) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{15} return file_greptime_v1_common_proto_rawDescGZIP(), []int{17}
} }
func (x *Decimal128) GetHi() int64 { func (x *Decimal128) GetHi() int64 {
@@ -1231,7 +1396,7 @@ type ColumnDataTypeExtension struct {
func (x *ColumnDataTypeExtension) Reset() { func (x *ColumnDataTypeExtension) Reset() {
*x = ColumnDataTypeExtension{} *x = ColumnDataTypeExtension{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[16] mi := &file_greptime_v1_common_proto_msgTypes[18]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1244,7 +1409,7 @@ func (x *ColumnDataTypeExtension) String() string {
func (*ColumnDataTypeExtension) ProtoMessage() {} func (*ColumnDataTypeExtension) ProtoMessage() {}
func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[16] mi := &file_greptime_v1_common_proto_msgTypes[18]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1257,7 +1422,7 @@ func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead. // Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead.
func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) { func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{16} return file_greptime_v1_common_proto_rawDescGZIP(), []int{18}
} }
func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt { func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt {
@@ -1323,7 +1488,7 @@ type DecimalTypeExtension struct {
func (x *DecimalTypeExtension) Reset() { func (x *DecimalTypeExtension) Reset() {
*x = DecimalTypeExtension{} *x = DecimalTypeExtension{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[17] mi := &file_greptime_v1_common_proto_msgTypes[19]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1336,7 +1501,7 @@ func (x *DecimalTypeExtension) String() string {
func (*DecimalTypeExtension) ProtoMessage() {} func (*DecimalTypeExtension) ProtoMessage() {}
func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[17] mi := &file_greptime_v1_common_proto_msgTypes[19]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1349,7 +1514,7 @@ func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead. // Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead.
func (*DecimalTypeExtension) Descriptor() ([]byte, []int) { func (*DecimalTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{17} return file_greptime_v1_common_proto_rawDescGZIP(), []int{19}
} }
func (x *DecimalTypeExtension) GetPrecision() int32 { func (x *DecimalTypeExtension) GetPrecision() int32 {
@@ -1377,7 +1542,7 @@ type VectorTypeExtension struct {
func (x *VectorTypeExtension) Reset() { func (x *VectorTypeExtension) Reset() {
*x = VectorTypeExtension{} *x = VectorTypeExtension{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[18] mi := &file_greptime_v1_common_proto_msgTypes[20]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1390,7 +1555,7 @@ func (x *VectorTypeExtension) String() string {
func (*VectorTypeExtension) ProtoMessage() {} func (*VectorTypeExtension) ProtoMessage() {}
func (x *VectorTypeExtension) ProtoReflect() protoreflect.Message { func (x *VectorTypeExtension) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[18] mi := &file_greptime_v1_common_proto_msgTypes[20]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1403,7 +1568,7 @@ func (x *VectorTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use VectorTypeExtension.ProtoReflect.Descriptor instead. // Deprecated: Use VectorTypeExtension.ProtoReflect.Descriptor instead.
func (*VectorTypeExtension) Descriptor() ([]byte, []int) { func (*VectorTypeExtension) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{18} return file_greptime_v1_common_proto_rawDescGZIP(), []int{20}
} }
func (x *VectorTypeExtension) GetDim() uint32 { func (x *VectorTypeExtension) GetDim() uint32 {
@@ -1445,7 +1610,7 @@ type ColumnOptions struct {
func (x *ColumnOptions) Reset() { func (x *ColumnOptions) Reset() {
*x = ColumnOptions{} *x = ColumnOptions{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[19] mi := &file_greptime_v1_common_proto_msgTypes[21]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1458,7 +1623,7 @@ func (x *ColumnOptions) String() string {
func (*ColumnOptions) ProtoMessage() {} func (*ColumnOptions) ProtoMessage() {}
func (x *ColumnOptions) ProtoReflect() protoreflect.Message { func (x *ColumnOptions) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[19] mi := &file_greptime_v1_common_proto_msgTypes[21]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1471,7 +1636,7 @@ func (x *ColumnOptions) ProtoReflect() protoreflect.Message {
// Deprecated: Use ColumnOptions.ProtoReflect.Descriptor instead. // Deprecated: Use ColumnOptions.ProtoReflect.Descriptor instead.
func (*ColumnOptions) Descriptor() ([]byte, []int) { func (*ColumnOptions) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{19} return file_greptime_v1_common_proto_rawDescGZIP(), []int{21}
} }
func (x *ColumnOptions) GetOptions() map[string]string { func (x *ColumnOptions) GetOptions() map[string]string {
@@ -1494,7 +1659,7 @@ type ArrowIpc struct {
func (x *ArrowIpc) Reset() { func (x *ArrowIpc) Reset() {
*x = ArrowIpc{} *x = ArrowIpc{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_common_proto_msgTypes[20] mi := &file_greptime_v1_common_proto_msgTypes[22]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1507,7 +1672,7 @@ func (x *ArrowIpc) String() string {
func (*ArrowIpc) ProtoMessage() {} func (*ArrowIpc) ProtoMessage() {}
func (x *ArrowIpc) ProtoReflect() protoreflect.Message { func (x *ArrowIpc) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_common_proto_msgTypes[20] mi := &file_greptime_v1_common_proto_msgTypes[22]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1520,7 +1685,7 @@ func (x *ArrowIpc) ProtoReflect() protoreflect.Message {
// Deprecated: Use ArrowIpc.ProtoReflect.Descriptor instead. // Deprecated: Use ArrowIpc.ProtoReflect.Descriptor instead.
func (*ArrowIpc) Descriptor() ([]byte, []int) { func (*ArrowIpc) Descriptor() ([]byte, []int) {
return file_greptime_v1_common_proto_rawDescGZIP(), []int{20} return file_greptime_v1_common_proto_rawDescGZIP(), []int{22}
} }
func (x *ArrowIpc) GetSchema() []byte { func (x *ArrowIpc) GetSchema() []byte {
@@ -1670,7 +1835,18 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x79, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63,
0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f,
0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x2c, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x33, 0x0a, 0x09, 0x54, 0x69, 0x6d, 0x65, 0x52,
0x61, 0x6e, 0x67, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20,
0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x65, 0x6e,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x22, 0x79, 0x0a, 0x0a,
0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x09, 0x74, 0x69,
0x6d, 0x65, 0x5f, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65,
0x55, 0x6e, 0x69, 0x74, 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x37,
0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x18, 0x02, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x52, 0x0a, 0x74, 0x69, 0x6d,
0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x2c, 0x0a, 0x0a, 0x44, 0x65, 0x63, 0x69, 0x6d,
0x61, 0x6c, 0x31, 0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x61, 0x6c, 0x31, 0x32, 0x38, 0x12, 0x0e, 0x0a, 0x02, 0x68, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28,
0x03, 0x52, 0x02, 0x68, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x68, 0x69, 0x12, 0x0e, 0x0a, 0x02, 0x6c, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28,
0x03, 0x52, 0x02, 0x6c, 0x6f, 0x22, 0xf1, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x03, 0x52, 0x02, 0x6c, 0x6f, 0x22, 0xf1, 0x01, 0x0a, 0x17, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
@@ -1745,14 +1921,19 @@ var file_greptime_v1_common_proto_rawDesc = []byte{
0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45, 0x44, 0x41, 0x59, 0x5f, 0x4e, 0x41, 0x4e, 0x4f, 0x10, 0x19, 0x12, 0x0e, 0x0a, 0x0a, 0x44, 0x45,
0x43, 0x49, 0x4d, 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53, 0x43, 0x49, 0x4d, 0x41, 0x4c, 0x31, 0x32, 0x38, 0x10, 0x1e, 0x12, 0x08, 0x0a, 0x04, 0x4a, 0x53,
0x4f, 0x4e, 0x10, 0x1f, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x20, 0x4f, 0x4e, 0x10, 0x1f, 0x12, 0x0a, 0x0a, 0x06, 0x56, 0x45, 0x43, 0x54, 0x4f, 0x52, 0x10, 0x20,
0x2a, 0x24, 0x0a, 0x11, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x2a, 0x48, 0x0a, 0x08, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x0f, 0x0a, 0x0b,
0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x49, 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a,
0x4e, 0x41, 0x52, 0x59, 0x10, 0x00, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x06, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x43,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x41,
0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x03, 0x2a, 0x24, 0x0a, 0x11, 0x4a, 0x73,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12,
0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x0f, 0x0a, 0x0b, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x00,
0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 0x42, 0x4f, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x42, 0x06, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54,
0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -1767,61 +1948,66 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte {
return file_greptime_v1_common_proto_rawDescData return file_greptime_v1_common_proto_rawDescData
} }
var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 26) var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 28)
var file_greptime_v1_common_proto_goTypes = []interface{}{ var file_greptime_v1_common_proto_goTypes = []interface{}{
(SemanticType)(0), // 0: greptime.v1.SemanticType (SemanticType)(0), // 0: greptime.v1.SemanticType
(ColumnDataType)(0), // 1: greptime.v1.ColumnDataType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType
(JsonTypeExtension)(0), // 2: greptime.v1.JsonTypeExtension (TimeUnit)(0), // 2: greptime.v1.TimeUnit
(*QueryContext)(nil), // 3: greptime.v1.QueryContext (JsonTypeExtension)(0), // 3: greptime.v1.JsonTypeExtension
(*SnapshotSequences)(nil), // 4: greptime.v1.SnapshotSequences (*QueryContext)(nil), // 4: greptime.v1.QueryContext
(*ExplainOptions)(nil), // 5: greptime.v1.ExplainOptions (*SnapshotSequences)(nil), // 5: greptime.v1.SnapshotSequences
(*RequestHeader)(nil), // 6: greptime.v1.RequestHeader (*ExplainOptions)(nil), // 6: greptime.v1.ExplainOptions
(*ResponseHeader)(nil), // 7: greptime.v1.ResponseHeader (*RequestHeader)(nil), // 7: greptime.v1.RequestHeader
(*Status)(nil), // 8: greptime.v1.Status (*ResponseHeader)(nil), // 8: greptime.v1.ResponseHeader
(*AuthHeader)(nil), // 9: greptime.v1.AuthHeader (*Status)(nil), // 9: greptime.v1.Status
(*Basic)(nil), // 10: greptime.v1.Basic (*AuthHeader)(nil), // 10: greptime.v1.AuthHeader
(*Token)(nil), // 11: greptime.v1.Token (*Basic)(nil), // 11: greptime.v1.Basic
(*TableName)(nil), // 12: greptime.v1.TableName (*Token)(nil), // 12: greptime.v1.Token
(*AffectedRows)(nil), // 13: greptime.v1.AffectedRows (*TableName)(nil), // 13: greptime.v1.TableName
(*Metrics)(nil), // 14: greptime.v1.Metrics (*AffectedRows)(nil), // 14: greptime.v1.AffectedRows
(*ExpireAfter)(nil), // 15: greptime.v1.ExpireAfter (*Metrics)(nil), // 15: greptime.v1.Metrics
(*FlightMetadata)(nil), // 16: greptime.v1.FlightMetadata (*ExpireAfter)(nil), // 16: greptime.v1.ExpireAfter
(*IntervalMonthDayNano)(nil), // 17: greptime.v1.IntervalMonthDayNano (*FlightMetadata)(nil), // 17: greptime.v1.FlightMetadata
(*Decimal128)(nil), // 18: greptime.v1.Decimal128 (*IntervalMonthDayNano)(nil), // 18: greptime.v1.IntervalMonthDayNano
(*ColumnDataTypeExtension)(nil), // 19: greptime.v1.ColumnDataTypeExtension (*TimeRange)(nil), // 19: greptime.v1.TimeRange
(*DecimalTypeExtension)(nil), // 20: greptime.v1.DecimalTypeExtension (*TimeRanges)(nil), // 20: greptime.v1.TimeRanges
(*VectorTypeExtension)(nil), // 21: greptime.v1.VectorTypeExtension (*Decimal128)(nil), // 21: greptime.v1.Decimal128
(*ColumnOptions)(nil), // 22: greptime.v1.ColumnOptions (*ColumnDataTypeExtension)(nil), // 22: greptime.v1.ColumnDataTypeExtension
(*ArrowIpc)(nil), // 23: greptime.v1.ArrowIpc (*DecimalTypeExtension)(nil), // 23: greptime.v1.DecimalTypeExtension
nil, // 24: greptime.v1.QueryContext.ExtensionsEntry (*VectorTypeExtension)(nil), // 24: greptime.v1.VectorTypeExtension
nil, // 25: greptime.v1.SnapshotSequences.SstMinSequencesEntry (*ColumnOptions)(nil), // 25: greptime.v1.ColumnOptions
nil, // 26: greptime.v1.SnapshotSequences.SnapshotSeqsEntry (*ArrowIpc)(nil), // 26: greptime.v1.ArrowIpc
nil, // 27: greptime.v1.RequestHeader.TracingContextEntry nil, // 27: greptime.v1.QueryContext.ExtensionsEntry
nil, // 28: greptime.v1.ColumnOptions.OptionsEntry nil, // 28: greptime.v1.SnapshotSequences.SstMinSequencesEntry
nil, // 29: greptime.v1.SnapshotSequences.SnapshotSeqsEntry
nil, // 30: greptime.v1.RequestHeader.TracingContextEntry
nil, // 31: greptime.v1.ColumnOptions.OptionsEntry
} }
var file_greptime_v1_common_proto_depIdxs = []int32{ var file_greptime_v1_common_proto_depIdxs = []int32{
24, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry 27, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry
4, // 1: greptime.v1.QueryContext.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences 5, // 1: greptime.v1.QueryContext.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences
5, // 2: greptime.v1.QueryContext.explain:type_name -> greptime.v1.ExplainOptions 6, // 2: greptime.v1.QueryContext.explain:type_name -> greptime.v1.ExplainOptions
25, // 3: greptime.v1.SnapshotSequences.sst_min_sequences:type_name -> greptime.v1.SnapshotSequences.SstMinSequencesEntry 28, // 3: greptime.v1.SnapshotSequences.sst_min_sequences:type_name -> greptime.v1.SnapshotSequences.SstMinSequencesEntry
26, // 4: greptime.v1.SnapshotSequences.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences.SnapshotSeqsEntry 29, // 4: greptime.v1.SnapshotSequences.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences.SnapshotSeqsEntry
9, // 5: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader 10, // 5: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader
27, // 6: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry 30, // 6: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry
8, // 7: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status 9, // 7: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
10, // 8: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic 11, // 8: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
11, // 9: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token 12, // 9: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
13, // 10: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows 14, // 10: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
14, // 11: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics 15, // 11: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics
20, // 12: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension 2, // 12: greptime.v1.TimeRanges.time_unit:type_name -> greptime.v1.TimeUnit
2, // 13: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension 19, // 13: greptime.v1.TimeRanges.time_ranges:type_name -> greptime.v1.TimeRange
21, // 14: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension 23, // 14: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension
28, // 15: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry 3, // 15: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension
16, // [16:16] is the sub-list for method output_type 24, // 16: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension
16, // [16:16] is the sub-list for method input_type 31, // 17: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry
16, // [16:16] is the sub-list for extension type_name 18, // [18:18] is the sub-list for method output_type
16, // [16:16] is the sub-list for extension extendee 18, // [18:18] is the sub-list for method input_type
0, // [0:16] is the sub-list for field type_name 18, // [18:18] is the sub-list for extension type_name
18, // [18:18] is the sub-list for extension extendee
0, // [0:18] is the sub-list for field type_name
} }
func init() { file_greptime_v1_common_proto_init() } func init() { file_greptime_v1_common_proto_init() }
@@ -2011,7 +2197,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Decimal128); i { switch v := v.(*TimeRange); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -2023,7 +2209,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnDataTypeExtension); i { switch v := v.(*TimeRanges); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -2035,7 +2221,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DecimalTypeExtension); i { switch v := v.(*Decimal128); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -2047,7 +2233,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VectorTypeExtension); i { switch v := v.(*ColumnDataTypeExtension); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -2059,7 +2245,7 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnOptions); i { switch v := v.(*DecimalTypeExtension); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -2071,6 +2257,30 @@ func file_greptime_v1_common_proto_init() {
} }
} }
file_greptime_v1_common_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_common_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*VectorTypeExtension); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_common_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ColumnOptions); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_common_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ArrowIpc); i { switch v := v.(*ArrowIpc); i {
case 0: case 0:
return &v.state return &v.state
@@ -2087,7 +2297,7 @@ func file_greptime_v1_common_proto_init() {
(*AuthHeader_Basic)(nil), (*AuthHeader_Basic)(nil),
(*AuthHeader_Token)(nil), (*AuthHeader_Token)(nil),
} }
file_greptime_v1_common_proto_msgTypes[16].OneofWrappers = []interface{}{ file_greptime_v1_common_proto_msgTypes[18].OneofWrappers = []interface{}{
(*ColumnDataTypeExtension_DecimalType)(nil), (*ColumnDataTypeExtension_DecimalType)(nil),
(*ColumnDataTypeExtension_JsonType)(nil), (*ColumnDataTypeExtension_JsonType)(nil),
(*ColumnDataTypeExtension_VectorType)(nil), (*ColumnDataTypeExtension_VectorType)(nil),
@@ -2097,8 +2307,8 @@ func file_greptime_v1_common_proto_init() {
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_common_proto_rawDesc, RawDescriptor: file_greptime_v1_common_proto_rawDesc,
NumEnums: 3, NumEnums: 4,
NumMessages: 26, NumMessages: 28,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
+303 -288
View File
@@ -1725,6 +1725,8 @@ type TruncateTableExpr struct {
SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"`
TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"`
TableId *TableId `protobuf:"bytes,4,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"` TableId *TableId `protobuf:"bytes,4,opt,name=table_id,json=tableId,proto3" json:"table_id,omitempty"`
// if empty, truncate entire table, else only truncate time ranges
TimeRanges *TimeRanges `protobuf:"bytes,5,opt,name=time_ranges,json=timeRanges,proto3" json:"time_ranges,omitempty"`
} }
func (x *TruncateTableExpr) Reset() { func (x *TruncateTableExpr) Reset() {
@@ -1787,6 +1789,13 @@ func (x *TruncateTableExpr) GetTableId() *TableId {
return nil return nil
} }
func (x *TruncateTableExpr) GetTimeRanges() *TimeRanges {
if x != nil {
return x.TimeRanges
}
return nil
}
type DropDatabaseExpr struct { type DropDatabaseExpr struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -3860,7 +3869,7 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xe1, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75,
0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21,
0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d,
@@ -3871,260 +3880,264 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65,
0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73,
0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x7c, 0x0a, 0x10,
0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72,
0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e,
0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61,
0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f,
0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72,
0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x4d, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f,
0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e,
0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x73, 0x22, 0x4d, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c,
0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x6c, 0x74, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73,
0x61, 0x75, 0x6c, 0x74, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x49, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12,
0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x3a, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18,
0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x0b,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44,
0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x11, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72,
0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44,
0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x62, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x4d, 0x0a, 0x13, 0x6d,
0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70,
0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65,
0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77,
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22,
0xa9, 0x01, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a,
0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x12, 0x29, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65,
0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x61, 0x64, 0x64,
0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0xcb, 0x01, 0x0a, 0x10,
0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65,
0x73, 0x12, 0x4d, 0x0a, 0x13, 0x6d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x6d, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65,
0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x73, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54,
0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12,
0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24,
0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xa9, 0x01, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e,
0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x30, 0x0a, 0x06, 0x4f, 0x70, 0x74,
0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4b, 0x0a, 0x0f, 0x53,
0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38,
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x11, 0x61, 0x64, 0x64, 0x5f, 0x69, 0x66, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18,
0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
0x08, 0x52, 0x0e, 0x61, 0x64, 0x64, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c,
0x73, 0x22, 0xcb, 0x01, 0x0a, 0x10, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x43, 0x6f, 0x6c, 0x75, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x6e, 0x73, 0x65,
0x6d, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79,
0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x73, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12,
0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e,
0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x18,
0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61,
0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e,
0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75,
0x30, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c,
0x65, 0x22, 0x4b, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x27, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72,
0x0a, 0x11, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74,
0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63,
0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e,
0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65,
0x52, 0x02, 0x69, 0x64, 0x22, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44,
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e,
0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08,
0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64,
0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65,
0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f,
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70,
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66,
0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a,
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a,
0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45,
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x52, 0x10, 0x01, 0x22, 0xaa, 0x02, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74,
0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61,
0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02,
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08,
0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15,
0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76,
0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x61,
0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x20,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20,
0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79,
0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69,
0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x76, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x01, 0x52, 0x11, 0x66,
0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x61, 0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x52, 0x61, 0x74, 0x65,
0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78,
0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x22, 0xaa, 0x02, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61,
0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65,
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61,
0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 0x03, 0x6d, 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72,
0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61,
0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x61, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70,
0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e,
0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a,
0x74, 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x07, 0x62, 0x61, 0x63, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01,
0x6b, 0x65, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x12,
0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x4e, 0x0a, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65,
0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67,
0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x07, 0x20, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x6b, 0x69, 0x70, 0x70,
0x01, 0x28, 0x01, 0x52, 0x11, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x52, 0x11, 0x73, 0x6b,
0x76, 0x65, 0x52, 0x61, 0x74, 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x46, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12,
0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76,
0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x01, 0x52, 0x11, 0x66, 0x61,
0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x49, 0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x52, 0x61, 0x74, 0x65, 0x22,
0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67,
0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d,
0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x11, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62,
0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c,
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xe8, 0x01, 0x0a, 0x0b, 0x53, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63,
0x65, 0x74, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63,
0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x14, 0x73,
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69,
0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62,
0x61, 0x72, 0x69, 0x74, 0x79, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65,
0x67, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01,
0x28, 0x0e, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79,
0x70, 0x65, 0x52, 0x11, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65,
0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70,
0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, 0x01,
0x28, 0x01, 0x52, 0x11, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x50, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76,
0x65, 0x52, 0x61, 0x74, 0x65, 0x22, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x53, 0x6b,
0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x11, 0x41, 0x6c, 0x74, 0x65,
0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a,
0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65,
0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d,
0x65, 0x12, 0x53, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x12, 0x59, 0x0a, 0x16, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55,
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x14, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61,
0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x14, 0x75, 0x6e, 0x73, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b,
0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x69, 0x6e, 0x64, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61,
0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x14, 0x73, 0x65, 0x74,
0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x45, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x65,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x6f, 0x6e, 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73,
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x82, 0x04, 0x0a,
0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78,
0x79, 0x73, 0x22, 0x82, 0x04, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61,
0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f,
0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72,
0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69,
0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61,
0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73,
0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66,
0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c,
0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x36, 0x0a, 0x08, 0x63,
0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
0x6c, 0x12, 0x36, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69,
0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e,
0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x65, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20,
0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x78, 0x70, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52,
0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74,
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x51, 0x0a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67,
0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x41, 0x6e, 0x6e,
0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61,
0x70, 0x72, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e,
0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x69, 0x6e,
0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73,
0x28, 0x04, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01,
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x01, 0x22, 0x6c, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e,
0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x6c, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f,
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42,
0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x77, 0x65, 0x0e, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22,
0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x96, 0x01, 0x0a, 0x0e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f,
0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x0e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x04, 0x6f, 0x70, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x1a,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x37, 0x0a, 0x09, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03,
0x04, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14,
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76,
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x7d, 0x0a, 0x0f, 0x44, 0x72, 0x6f, 0x70,
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x7d, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63,
0x0a, 0x0f, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21,
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69,
0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49,
0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x2a, 0x24, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79,
0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x2a, 0x24, 0x0a, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00,
0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x29, 0x0a,
0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64,
0x45, 0x10, 0x01, 0x2a, 0x29, 0x0a, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x41, 0x4e, 0x54, 0x49, 0x56, 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a,
0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x41, 0x4e, 0x54, 0x49, 0x56, 0x05, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70,
0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x10, 0x01, 0x2a, 0x25, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a,
0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x0c, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x00, 0x42,
0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x5f, 0x46, 0x49, 0x4c, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x54, 0x45, 0x52, 0x10, 0x00, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f,
0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67,
0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -4200,10 +4213,11 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
nil, // 55: greptime.v1.WebhookOptions.OptsEntry nil, // 55: greptime.v1.WebhookOptions.OptsEntry
(*TableName)(nil), // 56: greptime.v1.TableName (*TableName)(nil), // 56: greptime.v1.TableName
(*ExpireAfter)(nil), // 57: greptime.v1.ExpireAfter (*ExpireAfter)(nil), // 57: greptime.v1.ExpireAfter
(ColumnDataType)(0), // 58: greptime.v1.ColumnDataType (*TimeRanges)(nil), // 58: greptime.v1.TimeRanges
(*ColumnDataTypeExtension)(nil), // 59: greptime.v1.ColumnDataTypeExtension (ColumnDataType)(0), // 59: greptime.v1.ColumnDataType
(SemanticType)(0), // 60: greptime.v1.SemanticType (*ColumnDataTypeExtension)(nil), // 60: greptime.v1.ColumnDataTypeExtension
(*ColumnOptions)(nil), // 61: greptime.v1.ColumnOptions (SemanticType)(0), // 61: greptime.v1.SemanticType
(*ColumnOptions)(nil), // 62: greptime.v1.ColumnOptions
} }
var file_greptime_v1_ddl_proto_depIdxs = []int32{ var file_greptime_v1_ddl_proto_depIdxs = []int32{
18, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr 18, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
@@ -4249,37 +4263,38 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
33, // 40: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId 33, // 40: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
52, // 41: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry 52, // 41: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
33, // 42: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId 33, // 42: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
27, // 43: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn 58, // 43: greptime.v1.TruncateTableExpr.time_ranges:type_name -> greptime.v1.TimeRanges
11, // 44: greptime.v1.DropDefaults.drop_defaults:type_name -> greptime.v1.DropDefault 27, // 44: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
14, // 45: greptime.v1.SetDefaults.set_defaults:type_name -> greptime.v1.SetDefault 11, // 45: greptime.v1.DropDefaults.drop_defaults:type_name -> greptime.v1.DropDefault
32, // 46: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn 14, // 46: greptime.v1.SetDefaults.set_defaults:type_name -> greptime.v1.SetDefault
28, // 47: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType 32, // 47: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
35, // 48: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef 28, // 48: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType
36, // 49: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation 35, // 49: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
58, // 50: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType 36, // 50: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
59, // 51: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension 59, // 51: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType
29, // 52: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.Option 60, // 52: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension
58, // 53: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType 29, // 53: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.Option
60, // 54: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType 59, // 54: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
59, // 55: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension 61, // 55: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
61, // 56: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions 60, // 56: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
3, // 57: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType 62, // 57: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions
0, // 58: greptime.v1.SetFulltext.analyzer:type_name -> greptime.v1.Analyzer 3, // 58: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
1, // 59: greptime.v1.SetFulltext.backend:type_name -> greptime.v1.FulltextBackend 0, // 59: greptime.v1.SetFulltext.analyzer:type_name -> greptime.v1.Analyzer
2, // 60: greptime.v1.SetSkipping.skipping_index_type:type_name -> greptime.v1.SkippingIndexType 1, // 60: greptime.v1.SetFulltext.backend:type_name -> greptime.v1.FulltextBackend
44, // 61: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions 2, // 61: greptime.v1.SetSkipping.skipping_index_type:type_name -> greptime.v1.SkippingIndexType
45, // 62: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions 44, // 62: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions
29, // 63: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.Option 45, // 63: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions
47, // 64: greptime.v1.CreateTriggerExpr.channels:type_name -> greptime.v1.NotifyChannel 29, // 64: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.Option
53, // 65: greptime.v1.CreateTriggerExpr.labels:type_name -> greptime.v1.CreateTriggerExpr.LabelsEntry 47, // 65: greptime.v1.CreateTriggerExpr.channels:type_name -> greptime.v1.NotifyChannel
54, // 66: greptime.v1.CreateTriggerExpr.annotations:type_name -> greptime.v1.CreateTriggerExpr.AnnotationsEntry 53, // 66: greptime.v1.CreateTriggerExpr.labels:type_name -> greptime.v1.CreateTriggerExpr.LabelsEntry
48, // 67: greptime.v1.NotifyChannel.webhook:type_name -> greptime.v1.WebhookOptions 54, // 67: greptime.v1.CreateTriggerExpr.annotations:type_name -> greptime.v1.CreateTriggerExpr.AnnotationsEntry
55, // 68: greptime.v1.WebhookOptions.opts:type_name -> greptime.v1.WebhookOptions.OptsEntry 48, // 68: greptime.v1.NotifyChannel.webhook:type_name -> greptime.v1.WebhookOptions
69, // [69:69] is the sub-list for method output_type 55, // 69: greptime.v1.WebhookOptions.opts:type_name -> greptime.v1.WebhookOptions.OptsEntry
69, // [69:69] is the sub-list for method input_type 70, // [70:70] is the sub-list for method output_type
69, // [69:69] is the sub-list for extension type_name 70, // [70:70] is the sub-list for method input_type
69, // [69:69] is the sub-list for extension extendee 70, // [70:70] is the sub-list for extension type_name
0, // [0:69] is the sub-list for field type_name 70, // [70:70] is the sub-list for extension extendee
0, // [0:70] is the sub-list for field type_name
} }
func init() { file_greptime_v1_ddl_proto_init() } func init() { file_greptime_v1_ddl_proto_init() }
+256 -148
View File
@@ -1860,6 +1860,11 @@ type TruncateRequest struct {
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"` RegionId uint64 `protobuf:"varint,1,opt,name=region_id,json=regionId,proto3" json:"region_id,omitempty"`
// Types that are assignable to Kind:
//
// *TruncateRequest_All
// *TruncateRequest_TimeRanges
Kind isTruncateRequest_Kind `protobuf_oneof:"kind"`
} }
func (x *TruncateRequest) Reset() { func (x *TruncateRequest) Reset() {
@@ -1901,6 +1906,82 @@ func (x *TruncateRequest) GetRegionId() uint64 {
return 0 return 0
} }
func (m *TruncateRequest) GetKind() isTruncateRequest_Kind {
if m != nil {
return m.Kind
}
return nil
}
func (x *TruncateRequest) GetAll() *All {
if x, ok := x.GetKind().(*TruncateRequest_All); ok {
return x.All
}
return nil
}
func (x *TruncateRequest) GetTimeRanges() *v1.TimeRanges {
if x, ok := x.GetKind().(*TruncateRequest_TimeRanges); ok {
return x.TimeRanges
}
return nil
}
type isTruncateRequest_Kind interface {
isTruncateRequest_Kind()
}
type TruncateRequest_All struct {
All *All `protobuf:"bytes,2,opt,name=all,proto3,oneof"`
}
type TruncateRequest_TimeRanges struct {
TimeRanges *v1.TimeRanges `protobuf:"bytes,3,opt,name=time_ranges,json=timeRanges,proto3,oneof"`
}
func (*TruncateRequest_All) isTruncateRequest_Kind() {}
func (*TruncateRequest_TimeRanges) isTruncateRequest_Kind() {}
// Truncate all data in region
type All struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *All) Reset() {
*x = All{}
if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_region_server_proto_msgTypes[26]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *All) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*All) ProtoMessage() {}
func (x *All) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_region_server_proto_msgTypes[26]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use All.ProtoReflect.Descriptor instead.
func (*All) Descriptor() ([]byte, []int) {
return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{26}
}
// The column definition of a region. Unlike the message `ColumnDef` in // The column definition of a region. Unlike the message `ColumnDef` in
// `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef` // `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef`
// is for region requests use only. So it carries an extra field `column_id` // is for region requests use only. So it carries an extra field `column_id`
@@ -1917,7 +1998,7 @@ type RegionColumnDef struct {
func (x *RegionColumnDef) Reset() { func (x *RegionColumnDef) Reset() {
*x = RegionColumnDef{} *x = RegionColumnDef{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_region_server_proto_msgTypes[26] mi := &file_greptime_v1_region_server_proto_msgTypes[27]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1930,7 +2011,7 @@ func (x *RegionColumnDef) String() string {
func (*RegionColumnDef) ProtoMessage() {} func (*RegionColumnDef) ProtoMessage() {}
func (x *RegionColumnDef) ProtoReflect() protoreflect.Message { func (x *RegionColumnDef) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_region_server_proto_msgTypes[26] mi := &file_greptime_v1_region_server_proto_msgTypes[27]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -1943,7 +2024,7 @@ func (x *RegionColumnDef) ProtoReflect() protoreflect.Message {
// Deprecated: Use RegionColumnDef.ProtoReflect.Descriptor instead. // Deprecated: Use RegionColumnDef.ProtoReflect.Descriptor instead.
func (*RegionColumnDef) Descriptor() ([]byte, []int) { func (*RegionColumnDef) Descriptor() ([]byte, []int) {
return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{26} return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{27}
} }
func (x *RegionColumnDef) GetColumnDef() *v1.ColumnDef { func (x *RegionColumnDef) GetColumnDef() *v1.ColumnDef {
@@ -1976,7 +2057,7 @@ type BulkInsertRequest struct {
func (x *BulkInsertRequest) Reset() { func (x *BulkInsertRequest) Reset() {
*x = BulkInsertRequest{} *x = BulkInsertRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_region_server_proto_msgTypes[27] mi := &file_greptime_v1_region_server_proto_msgTypes[28]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -1989,7 +2070,7 @@ func (x *BulkInsertRequest) String() string {
func (*BulkInsertRequest) ProtoMessage() {} func (*BulkInsertRequest) ProtoMessage() {}
func (x *BulkInsertRequest) ProtoReflect() protoreflect.Message { func (x *BulkInsertRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_region_server_proto_msgTypes[27] mi := &file_greptime_v1_region_server_proto_msgTypes[28]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -2002,7 +2083,7 @@ func (x *BulkInsertRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use BulkInsertRequest.ProtoReflect.Descriptor instead. // Deprecated: Use BulkInsertRequest.ProtoReflect.Descriptor instead.
func (*BulkInsertRequest) Descriptor() ([]byte, []int) { func (*BulkInsertRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{27} return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{28}
} }
func (x *BulkInsertRequest) GetRegionId() uint64 { func (x *BulkInsertRequest) GetRegionId() uint64 {
@@ -2048,7 +2129,7 @@ type MitoManifestInfo struct {
func (x *MitoManifestInfo) Reset() { func (x *MitoManifestInfo) Reset() {
*x = MitoManifestInfo{} *x = MitoManifestInfo{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_region_server_proto_msgTypes[28] mi := &file_greptime_v1_region_server_proto_msgTypes[29]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -2061,7 +2142,7 @@ func (x *MitoManifestInfo) String() string {
func (*MitoManifestInfo) ProtoMessage() {} func (*MitoManifestInfo) ProtoMessage() {}
func (x *MitoManifestInfo) ProtoReflect() protoreflect.Message { func (x *MitoManifestInfo) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_region_server_proto_msgTypes[28] mi := &file_greptime_v1_region_server_proto_msgTypes[29]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -2074,7 +2155,7 @@ func (x *MitoManifestInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use MitoManifestInfo.ProtoReflect.Descriptor instead. // Deprecated: Use MitoManifestInfo.ProtoReflect.Descriptor instead.
func (*MitoManifestInfo) Descriptor() ([]byte, []int) { func (*MitoManifestInfo) Descriptor() ([]byte, []int) {
return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{28} return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{29}
} }
func (x *MitoManifestInfo) GetDataManifestVersion() uint64 { func (x *MitoManifestInfo) GetDataManifestVersion() uint64 {
@@ -2097,7 +2178,7 @@ type MetricManifestInfo struct {
func (x *MetricManifestInfo) Reset() { func (x *MetricManifestInfo) Reset() {
*x = MetricManifestInfo{} *x = MetricManifestInfo{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_region_server_proto_msgTypes[29] mi := &file_greptime_v1_region_server_proto_msgTypes[30]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -2110,7 +2191,7 @@ func (x *MetricManifestInfo) String() string {
func (*MetricManifestInfo) ProtoMessage() {} func (*MetricManifestInfo) ProtoMessage() {}
func (x *MetricManifestInfo) ProtoReflect() protoreflect.Message { func (x *MetricManifestInfo) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_region_server_proto_msgTypes[29] mi := &file_greptime_v1_region_server_proto_msgTypes[30]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -2123,7 +2204,7 @@ func (x *MetricManifestInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use MetricManifestInfo.ProtoReflect.Descriptor instead. // Deprecated: Use MetricManifestInfo.ProtoReflect.Descriptor instead.
func (*MetricManifestInfo) Descriptor() ([]byte, []int) { func (*MetricManifestInfo) Descriptor() ([]byte, []int) {
return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{29} return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{30}
} }
func (x *MetricManifestInfo) GetDataManifestVersion() uint64 { func (x *MetricManifestInfo) GetDataManifestVersion() uint64 {
@@ -2157,7 +2238,7 @@ type SyncRequest struct {
func (x *SyncRequest) Reset() { func (x *SyncRequest) Reset() {
*x = SyncRequest{} *x = SyncRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_region_server_proto_msgTypes[30] mi := &file_greptime_v1_region_server_proto_msgTypes[31]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -2170,7 +2251,7 @@ func (x *SyncRequest) String() string {
func (*SyncRequest) ProtoMessage() {} func (*SyncRequest) ProtoMessage() {}
func (x *SyncRequest) ProtoReflect() protoreflect.Message { func (x *SyncRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_region_server_proto_msgTypes[30] mi := &file_greptime_v1_region_server_proto_msgTypes[31]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -2183,7 +2264,7 @@ func (x *SyncRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead. // Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead.
func (*SyncRequest) Descriptor() ([]byte, []int) { func (*SyncRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{30} return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{31}
} }
func (x *SyncRequest) GetRegionId() uint64 { func (x *SyncRequest) GetRegionId() uint64 {
@@ -2242,7 +2323,7 @@ type ListMetadataRequest struct {
func (x *ListMetadataRequest) Reset() { func (x *ListMetadataRequest) Reset() {
*x = ListMetadataRequest{} *x = ListMetadataRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_greptime_v1_region_server_proto_msgTypes[31] mi := &file_greptime_v1_region_server_proto_msgTypes[32]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -2255,7 +2336,7 @@ func (x *ListMetadataRequest) String() string {
func (*ListMetadataRequest) ProtoMessage() {} func (*ListMetadataRequest) ProtoMessage() {}
func (x *ListMetadataRequest) ProtoReflect() protoreflect.Message { func (x *ListMetadataRequest) ProtoReflect() protoreflect.Message {
mi := &file_greptime_v1_region_server_proto_msgTypes[31] mi := &file_greptime_v1_region_server_proto_msgTypes[32]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -2268,7 +2349,7 @@ func (x *ListMetadataRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListMetadataRequest.ProtoReflect.Descriptor instead. // Deprecated: Use ListMetadataRequest.ProtoReflect.Descriptor instead.
func (*ListMetadataRequest) Descriptor() ([]byte, []int) { func (*ListMetadataRequest) Descriptor() ([]byte, []int) {
return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{31} return file_greptime_v1_region_server_proto_rawDescGZIP(), []int{32}
} }
func (x *ListMetadataRequest) GetRegionIds() []uint64 { func (x *ListMetadataRequest) GetRegionIds() []uint64 {
@@ -2579,67 +2660,74 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x53,
0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x48, 0x00, 0x52, 0x0c, 0x73,
0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x42, 0x09, 0x0a, 0x07, 0x6f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2e, 0x0a, 0x0f, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x75, 0x6e, 0x63,
0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65,
0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72,
0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02,
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x48, 0x00, 0x52,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x3a, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e,
0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67,
0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x65, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73,
0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x05, 0x0a, 0x03, 0x41, 0x6c, 0x6c, 0x22,
0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x65, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x65, 0x66, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66,
0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69, 0x70, 0x63, 0x18, 0x02, 0x20, 0x01, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09,
0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48, 0x00, 0x52, 0x08, 0x61, 0x72, 0x72, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c,
0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x46, 0x0a, 0x75, 0x6d, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f,
0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6c, 0x75, 0x6d, 0x6e, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e,
0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72,
0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08,
0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x77, 0x5f, 0x69, 0x70, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72,
0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49,
0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x70, 0x63, 0x48, 0x00, 0x52, 0x08, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x46, 0x0a, 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61,
0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61,
0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73,
0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d,
0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84,
0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xed, 0x01, 0x0a, 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73,
0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01,
0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x12, 0x6d, 0x69, 0x74, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65,
0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74,
0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76,
0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65,
0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65,
0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65,
0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f,
0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x12, 0x6d, 0x69, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66,
0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24,
0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67,
0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x0f, 0x0a, 0x0d, 0x6d, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x34, 0x0a, 0x13, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69,
0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72,
0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x69, 0x63, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72,
0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x52, 0x12, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x0f, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x34, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x5d, 0x0a, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5a, 0x3c, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52,
0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12,
0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65,
0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x6f, 0x74, 0x6f, 0x33, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x5d, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42,
0x06, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e,
0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d,
0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
} }
var ( var (
@@ -2654,7 +2742,7 @@ func file_greptime_v1_region_server_proto_rawDescGZIP() []byte {
return file_greptime_v1_region_server_proto_rawDescData return file_greptime_v1_region_server_proto_rawDescData
} }
var file_greptime_v1_region_server_proto_msgTypes = make([]protoimpl.MessageInfo, 36) var file_greptime_v1_region_server_proto_msgTypes = make([]protoimpl.MessageInfo, 37)
var file_greptime_v1_region_server_proto_goTypes = []interface{}{ var file_greptime_v1_region_server_proto_goTypes = []interface{}{
(*RegionRequestHeader)(nil), // 0: greptime.v1.region.RegionRequestHeader (*RegionRequestHeader)(nil), // 0: greptime.v1.region.RegionRequestHeader
(*RegionRequest)(nil), // 1: greptime.v1.region.RegionRequest (*RegionRequest)(nil), // 1: greptime.v1.region.RegionRequest
@@ -2682,35 +2770,37 @@ var file_greptime_v1_region_server_proto_goTypes = []interface{}{
(*StrictWindow)(nil), // 23: greptime.v1.region.StrictWindow (*StrictWindow)(nil), // 23: greptime.v1.region.StrictWindow
(*CompactRequest)(nil), // 24: greptime.v1.region.CompactRequest (*CompactRequest)(nil), // 24: greptime.v1.region.CompactRequest
(*TruncateRequest)(nil), // 25: greptime.v1.region.TruncateRequest (*TruncateRequest)(nil), // 25: greptime.v1.region.TruncateRequest
(*RegionColumnDef)(nil), // 26: greptime.v1.region.RegionColumnDef (*All)(nil), // 26: greptime.v1.region.All
(*BulkInsertRequest)(nil), // 27: greptime.v1.region.BulkInsertRequest (*RegionColumnDef)(nil), // 27: greptime.v1.region.RegionColumnDef
(*MitoManifestInfo)(nil), // 28: greptime.v1.region.MitoManifestInfo (*BulkInsertRequest)(nil), // 28: greptime.v1.region.BulkInsertRequest
(*MetricManifestInfo)(nil), // 29: greptime.v1.region.MetricManifestInfo (*MitoManifestInfo)(nil), // 29: greptime.v1.region.MitoManifestInfo
(*SyncRequest)(nil), // 30: greptime.v1.region.SyncRequest (*MetricManifestInfo)(nil), // 30: greptime.v1.region.MetricManifestInfo
(*ListMetadataRequest)(nil), // 31: greptime.v1.region.ListMetadataRequest (*SyncRequest)(nil), // 31: greptime.v1.region.SyncRequest
nil, // 32: greptime.v1.region.RegionRequestHeader.TracingContextEntry (*ListMetadataRequest)(nil), // 32: greptime.v1.region.ListMetadataRequest
nil, // 33: greptime.v1.region.RegionResponse.ExtensionsEntry nil, // 33: greptime.v1.region.RegionRequestHeader.TracingContextEntry
nil, // 34: greptime.v1.region.CreateRequest.OptionsEntry nil, // 34: greptime.v1.region.RegionResponse.ExtensionsEntry
nil, // 35: greptime.v1.region.OpenRequest.OptionsEntry nil, // 35: greptime.v1.region.CreateRequest.OptionsEntry
(*v1.QueryContext)(nil), // 36: greptime.v1.QueryContext nil, // 36: greptime.v1.region.OpenRequest.OptionsEntry
(*v1.ResponseHeader)(nil), // 37: greptime.v1.ResponseHeader (*v1.QueryContext)(nil), // 37: greptime.v1.QueryContext
(*v1.Rows)(nil), // 38: greptime.v1.Rows (*v1.ResponseHeader)(nil), // 38: greptime.v1.ResponseHeader
(*v1.ModifyColumnTypes)(nil), // 39: greptime.v1.ModifyColumnTypes (*v1.Rows)(nil), // 39: greptime.v1.Rows
(*v1.SetTableOptions)(nil), // 40: greptime.v1.SetTableOptions (*v1.ModifyColumnTypes)(nil), // 40: greptime.v1.ModifyColumnTypes
(*v1.UnsetTableOptions)(nil), // 41: greptime.v1.UnsetTableOptions (*v1.SetTableOptions)(nil), // 41: greptime.v1.SetTableOptions
(*v1.SetIndex)(nil), // 42: greptime.v1.SetIndex (*v1.UnsetTableOptions)(nil), // 42: greptime.v1.UnsetTableOptions
(*v1.UnsetIndex)(nil), // 43: greptime.v1.UnsetIndex (*v1.SetIndex)(nil), // 43: greptime.v1.SetIndex
(*v1.DropDefaults)(nil), // 44: greptime.v1.DropDefaults (*v1.UnsetIndex)(nil), // 44: greptime.v1.UnsetIndex
(*v1.SetIndexes)(nil), // 45: greptime.v1.SetIndexes (*v1.DropDefaults)(nil), // 45: greptime.v1.DropDefaults
(*v1.UnsetIndexes)(nil), // 46: greptime.v1.UnsetIndexes (*v1.SetIndexes)(nil), // 46: greptime.v1.SetIndexes
(*v1.SetDefaults)(nil), // 47: greptime.v1.SetDefaults (*v1.UnsetIndexes)(nil), // 47: greptime.v1.UnsetIndexes
(*v1.AddColumnLocation)(nil), // 48: greptime.v1.AddColumnLocation (*v1.SetDefaults)(nil), // 48: greptime.v1.SetDefaults
(*v1.ColumnDef)(nil), // 49: greptime.v1.ColumnDef (*v1.AddColumnLocation)(nil), // 49: greptime.v1.AddColumnLocation
(*v1.ArrowIpc)(nil), // 50: greptime.v1.ArrowIpc (*v1.TimeRanges)(nil), // 50: greptime.v1.TimeRanges
(*v1.ColumnDef)(nil), // 51: greptime.v1.ColumnDef
(*v1.ArrowIpc)(nil), // 52: greptime.v1.ArrowIpc
} }
var file_greptime_v1_region_server_proto_depIdxs = []int32{ var file_greptime_v1_region_server_proto_depIdxs = []int32{
32, // 0: greptime.v1.region.RegionRequestHeader.tracing_context:type_name -> greptime.v1.region.RegionRequestHeader.TracingContextEntry 33, // 0: greptime.v1.region.RegionRequestHeader.tracing_context:type_name -> greptime.v1.region.RegionRequestHeader.TracingContextEntry
36, // 1: greptime.v1.region.RegionRequestHeader.query_context:type_name -> greptime.v1.QueryContext 37, // 1: greptime.v1.region.RegionRequestHeader.query_context:type_name -> greptime.v1.QueryContext
0, // 2: greptime.v1.region.RegionRequest.header:type_name -> greptime.v1.region.RegionRequestHeader 0, // 2: greptime.v1.region.RegionRequest.header:type_name -> greptime.v1.region.RegionRequestHeader
3, // 3: greptime.v1.region.RegionRequest.inserts:type_name -> greptime.v1.region.InsertRequests 3, // 3: greptime.v1.region.RegionRequest.inserts:type_name -> greptime.v1.region.InsertRequests
4, // 4: greptime.v1.region.RegionRequest.deletes:type_name -> greptime.v1.region.DeleteRequests 4, // 4: greptime.v1.region.RegionRequest.deletes:type_name -> greptime.v1.region.DeleteRequests
@@ -2725,52 +2815,54 @@ var file_greptime_v1_region_server_proto_depIdxs = []int32{
8, // 13: greptime.v1.region.RegionRequest.creates:type_name -> greptime.v1.region.CreateRequests 8, // 13: greptime.v1.region.RegionRequest.creates:type_name -> greptime.v1.region.CreateRequests
10, // 14: greptime.v1.region.RegionRequest.drops:type_name -> greptime.v1.region.DropRequests 10, // 14: greptime.v1.region.RegionRequest.drops:type_name -> greptime.v1.region.DropRequests
14, // 15: greptime.v1.region.RegionRequest.alters:type_name -> greptime.v1.region.AlterRequests 14, // 15: greptime.v1.region.RegionRequest.alters:type_name -> greptime.v1.region.AlterRequests
27, // 16: greptime.v1.region.RegionRequest.bulk_insert:type_name -> greptime.v1.region.BulkInsertRequest 28, // 16: greptime.v1.region.RegionRequest.bulk_insert:type_name -> greptime.v1.region.BulkInsertRequest
30, // 17: greptime.v1.region.RegionRequest.sync:type_name -> greptime.v1.region.SyncRequest 31, // 17: greptime.v1.region.RegionRequest.sync:type_name -> greptime.v1.region.SyncRequest
31, // 18: greptime.v1.region.RegionRequest.list_metadata:type_name -> greptime.v1.region.ListMetadataRequest 32, // 18: greptime.v1.region.RegionRequest.list_metadata:type_name -> greptime.v1.region.ListMetadataRequest
37, // 19: greptime.v1.region.RegionResponse.header:type_name -> greptime.v1.ResponseHeader 38, // 19: greptime.v1.region.RegionResponse.header:type_name -> greptime.v1.ResponseHeader
33, // 20: greptime.v1.region.RegionResponse.extensions:type_name -> greptime.v1.region.RegionResponse.ExtensionsEntry 34, // 20: greptime.v1.region.RegionResponse.extensions:type_name -> greptime.v1.region.RegionResponse.ExtensionsEntry
5, // 21: greptime.v1.region.InsertRequests.requests:type_name -> greptime.v1.region.InsertRequest 5, // 21: greptime.v1.region.InsertRequests.requests:type_name -> greptime.v1.region.InsertRequest
6, // 22: greptime.v1.region.DeleteRequests.requests:type_name -> greptime.v1.region.DeleteRequest 6, // 22: greptime.v1.region.DeleteRequests.requests:type_name -> greptime.v1.region.DeleteRequest
38, // 23: greptime.v1.region.InsertRequest.rows:type_name -> greptime.v1.Rows 39, // 23: greptime.v1.region.InsertRequest.rows:type_name -> greptime.v1.Rows
38, // 24: greptime.v1.region.DeleteRequest.rows:type_name -> greptime.v1.Rows 39, // 24: greptime.v1.region.DeleteRequest.rows:type_name -> greptime.v1.Rows
0, // 25: greptime.v1.region.QueryRequest.header:type_name -> greptime.v1.region.RegionRequestHeader 0, // 25: greptime.v1.region.QueryRequest.header:type_name -> greptime.v1.region.RegionRequestHeader
9, // 26: greptime.v1.region.CreateRequests.requests:type_name -> greptime.v1.region.CreateRequest 9, // 26: greptime.v1.region.CreateRequests.requests:type_name -> greptime.v1.region.CreateRequest
26, // 27: greptime.v1.region.CreateRequest.column_defs:type_name -> greptime.v1.region.RegionColumnDef 27, // 27: greptime.v1.region.CreateRequest.column_defs:type_name -> greptime.v1.region.RegionColumnDef
34, // 28: greptime.v1.region.CreateRequest.options:type_name -> greptime.v1.region.CreateRequest.OptionsEntry 35, // 28: greptime.v1.region.CreateRequest.options:type_name -> greptime.v1.region.CreateRequest.OptionsEntry
11, // 29: greptime.v1.region.DropRequests.requests:type_name -> greptime.v1.region.DropRequest 11, // 29: greptime.v1.region.DropRequests.requests:type_name -> greptime.v1.region.DropRequest
35, // 30: greptime.v1.region.OpenRequest.options:type_name -> greptime.v1.region.OpenRequest.OptionsEntry 36, // 30: greptime.v1.region.OpenRequest.options:type_name -> greptime.v1.region.OpenRequest.OptionsEntry
15, // 31: greptime.v1.region.AlterRequests.requests:type_name -> greptime.v1.region.AlterRequest 15, // 31: greptime.v1.region.AlterRequests.requests:type_name -> greptime.v1.region.AlterRequest
17, // 32: greptime.v1.region.AlterRequest.add_columns:type_name -> greptime.v1.region.AddColumns 17, // 32: greptime.v1.region.AlterRequest.add_columns:type_name -> greptime.v1.region.AddColumns
18, // 33: greptime.v1.region.AlterRequest.drop_columns:type_name -> greptime.v1.region.DropColumns 18, // 33: greptime.v1.region.AlterRequest.drop_columns:type_name -> greptime.v1.region.DropColumns
39, // 34: greptime.v1.region.AlterRequest.modify_column_types:type_name -> greptime.v1.ModifyColumnTypes 40, // 34: greptime.v1.region.AlterRequest.modify_column_types:type_name -> greptime.v1.ModifyColumnTypes
40, // 35: greptime.v1.region.AlterRequest.set_table_options:type_name -> greptime.v1.SetTableOptions 41, // 35: greptime.v1.region.AlterRequest.set_table_options:type_name -> greptime.v1.SetTableOptions
41, // 36: greptime.v1.region.AlterRequest.unset_table_options:type_name -> greptime.v1.UnsetTableOptions 42, // 36: greptime.v1.region.AlterRequest.unset_table_options:type_name -> greptime.v1.UnsetTableOptions
42, // 37: greptime.v1.region.AlterRequest.set_index:type_name -> greptime.v1.SetIndex 43, // 37: greptime.v1.region.AlterRequest.set_index:type_name -> greptime.v1.SetIndex
43, // 38: greptime.v1.region.AlterRequest.unset_index:type_name -> greptime.v1.UnsetIndex 44, // 38: greptime.v1.region.AlterRequest.unset_index:type_name -> greptime.v1.UnsetIndex
44, // 39: greptime.v1.region.AlterRequest.drop_defaults:type_name -> greptime.v1.DropDefaults 45, // 39: greptime.v1.region.AlterRequest.drop_defaults:type_name -> greptime.v1.DropDefaults
45, // 40: greptime.v1.region.AlterRequest.set_indexes:type_name -> greptime.v1.SetIndexes 46, // 40: greptime.v1.region.AlterRequest.set_indexes:type_name -> greptime.v1.SetIndexes
46, // 41: greptime.v1.region.AlterRequest.unset_indexes:type_name -> greptime.v1.UnsetIndexes 47, // 41: greptime.v1.region.AlterRequest.unset_indexes:type_name -> greptime.v1.UnsetIndexes
47, // 42: greptime.v1.region.AlterRequest.set_defaults:type_name -> greptime.v1.SetDefaults 48, // 42: greptime.v1.region.AlterRequest.set_defaults:type_name -> greptime.v1.SetDefaults
16, // 43: greptime.v1.region.AlterRequest.sync_columns:type_name -> greptime.v1.region.SyncColumns 16, // 43: greptime.v1.region.AlterRequest.sync_columns:type_name -> greptime.v1.region.SyncColumns
26, // 44: greptime.v1.region.SyncColumns.column_defs:type_name -> greptime.v1.region.RegionColumnDef 27, // 44: greptime.v1.region.SyncColumns.column_defs:type_name -> greptime.v1.region.RegionColumnDef
19, // 45: greptime.v1.region.AddColumns.add_columns:type_name -> greptime.v1.region.AddColumn 19, // 45: greptime.v1.region.AddColumns.add_columns:type_name -> greptime.v1.region.AddColumn
20, // 46: greptime.v1.region.DropColumns.drop_columns:type_name -> greptime.v1.region.DropColumn 20, // 46: greptime.v1.region.DropColumns.drop_columns:type_name -> greptime.v1.region.DropColumn
26, // 47: greptime.v1.region.AddColumn.column_def:type_name -> greptime.v1.region.RegionColumnDef 27, // 47: greptime.v1.region.AddColumn.column_def:type_name -> greptime.v1.region.RegionColumnDef
48, // 48: greptime.v1.region.AddColumn.location:type_name -> greptime.v1.AddColumnLocation 49, // 48: greptime.v1.region.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
22, // 49: greptime.v1.region.CompactRequest.regular:type_name -> greptime.v1.region.Regular 22, // 49: greptime.v1.region.CompactRequest.regular:type_name -> greptime.v1.region.Regular
23, // 50: greptime.v1.region.CompactRequest.strict_window:type_name -> greptime.v1.region.StrictWindow 23, // 50: greptime.v1.region.CompactRequest.strict_window:type_name -> greptime.v1.region.StrictWindow
49, // 51: greptime.v1.region.RegionColumnDef.column_def:type_name -> greptime.v1.ColumnDef 26, // 51: greptime.v1.region.TruncateRequest.all:type_name -> greptime.v1.region.All
50, // 52: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc 50, // 52: greptime.v1.region.TruncateRequest.time_ranges:type_name -> greptime.v1.TimeRanges
28, // 53: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo 51, // 53: greptime.v1.region.RegionColumnDef.column_def:type_name -> greptime.v1.ColumnDef
29, // 54: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo 52, // 54: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc
1, // 55: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest 29, // 55: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo
2, // 56: greptime.v1.region.Region.Handle:output_type -> greptime.v1.region.RegionResponse 30, // 56: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo
56, // [56:57] is the sub-list for method output_type 1, // 57: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest
55, // [55:56] is the sub-list for method input_type 2, // 58: greptime.v1.region.Region.Handle:output_type -> greptime.v1.region.RegionResponse
55, // [55:55] is the sub-list for extension type_name 58, // [58:59] is the sub-list for method output_type
55, // [55:55] is the sub-list for extension extendee 57, // [57:58] is the sub-list for method input_type
0, // [0:55] is the sub-list for field type_name 57, // [57:57] is the sub-list for extension type_name
57, // [57:57] is the sub-list for extension extendee
0, // [0:57] is the sub-list for field type_name
} }
func init() { file_greptime_v1_region_server_proto_init() } func init() { file_greptime_v1_region_server_proto_init() }
@@ -3092,7 +3184,7 @@ func file_greptime_v1_region_server_proto_init() {
} }
} }
file_greptime_v1_region_server_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_region_server_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*RegionColumnDef); i { switch v := v.(*All); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -3104,7 +3196,7 @@ func file_greptime_v1_region_server_proto_init() {
} }
} }
file_greptime_v1_region_server_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_region_server_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BulkInsertRequest); i { switch v := v.(*RegionColumnDef); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -3116,7 +3208,7 @@ func file_greptime_v1_region_server_proto_init() {
} }
} }
file_greptime_v1_region_server_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_region_server_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MitoManifestInfo); i { switch v := v.(*BulkInsertRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -3128,7 +3220,7 @@ func file_greptime_v1_region_server_proto_init() {
} }
} }
file_greptime_v1_region_server_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_region_server_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*MetricManifestInfo); i { switch v := v.(*MitoManifestInfo); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -3140,7 +3232,7 @@ func file_greptime_v1_region_server_proto_init() {
} }
} }
file_greptime_v1_region_server_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_region_server_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SyncRequest); i { switch v := v.(*MetricManifestInfo); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
@@ -3152,6 +3244,18 @@ func file_greptime_v1_region_server_proto_init() {
} }
} }
file_greptime_v1_region_server_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { file_greptime_v1_region_server_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SyncRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_greptime_v1_region_server_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ListMetadataRequest); i { switch v := v.(*ListMetadataRequest); i {
case 0: case 0:
return &v.state return &v.state
@@ -3200,10 +3304,14 @@ func file_greptime_v1_region_server_proto_init() {
(*CompactRequest_Regular)(nil), (*CompactRequest_Regular)(nil),
(*CompactRequest_StrictWindow)(nil), (*CompactRequest_StrictWindow)(nil),
} }
file_greptime_v1_region_server_proto_msgTypes[27].OneofWrappers = []interface{}{ file_greptime_v1_region_server_proto_msgTypes[25].OneofWrappers = []interface{}{
(*TruncateRequest_All)(nil),
(*TruncateRequest_TimeRanges)(nil),
}
file_greptime_v1_region_server_proto_msgTypes[28].OneofWrappers = []interface{}{
(*BulkInsertRequest_ArrowIpc)(nil), (*BulkInsertRequest_ArrowIpc)(nil),
} }
file_greptime_v1_region_server_proto_msgTypes[30].OneofWrappers = []interface{}{ file_greptime_v1_region_server_proto_msgTypes[31].OneofWrappers = []interface{}{
(*SyncRequest_MitoManifestInfo)(nil), (*SyncRequest_MitoManifestInfo)(nil),
(*SyncRequest_MetricManifestInfo)(nil), (*SyncRequest_MetricManifestInfo)(nil),
} }
@@ -3213,7 +3321,7 @@ func file_greptime_v1_region_server_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_region_server_proto_rawDesc, RawDescriptor: file_greptime_v1_region_server_proto_rawDesc,
NumEnums: 0, NumEnums: 0,
NumMessages: 36, NumMessages: 37,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
File diff suppressed because it is too large Load Diff
+348 -84
View File
@@ -23503,6 +23503,33 @@ java.lang.String defaultValue);
* <code>.greptime.v1.TableId table_id = 4;</code> * <code>.greptime.v1.TableId table_id = 4;</code>
*/ */
io.greptime.v1.Ddl.TableIdOrBuilder getTableIdOrBuilder(); io.greptime.v1.Ddl.TableIdOrBuilder getTableIdOrBuilder();
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
* @return Whether the timeRanges field is set.
*/
boolean hasTimeRanges();
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
* @return The timeRanges.
*/
io.greptime.v1.Common.TimeRanges getTimeRanges();
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder();
} }
/** /**
* Protobuf type {@code greptime.v1.TruncateTableExpr} * Protobuf type {@code greptime.v1.TruncateTableExpr}
@@ -23583,6 +23610,19 @@ java.lang.String defaultValue);
break; break;
} }
case 42: {
io.greptime.v1.Common.TimeRanges.Builder subBuilder = null;
if (timeRanges_ != null) {
subBuilder = timeRanges_.toBuilder();
}
timeRanges_ = input.readMessage(io.greptime.v1.Common.TimeRanges.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(timeRanges_);
timeRanges_ = subBuilder.buildPartial();
}
break;
}
default: { default: {
if (!parseUnknownField( if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) { input, unknownFields, extensionRegistry, tag)) {
@@ -23757,6 +23797,44 @@ java.lang.String defaultValue);
return getTableId(); return getTableId();
} }
public static final int TIME_RANGES_FIELD_NUMBER = 5;
private io.greptime.v1.Common.TimeRanges timeRanges_;
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
* @return Whether the timeRanges field is set.
*/
@java.lang.Override
public boolean hasTimeRanges() {
return timeRanges_ != null;
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
* @return The timeRanges.
*/
@java.lang.Override
public io.greptime.v1.Common.TimeRanges getTimeRanges() {
return timeRanges_ == null ? io.greptime.v1.Common.TimeRanges.getDefaultInstance() : timeRanges_;
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
@java.lang.Override
public io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder() {
return getTimeRanges();
}
private byte memoizedIsInitialized = -1; private byte memoizedIsInitialized = -1;
@java.lang.Override @java.lang.Override
public final boolean isInitialized() { public final boolean isInitialized() {
@@ -23783,6 +23861,9 @@ java.lang.String defaultValue);
if (tableId_ != null) { if (tableId_ != null) {
output.writeMessage(4, getTableId()); output.writeMessage(4, getTableId());
} }
if (timeRanges_ != null) {
output.writeMessage(5, getTimeRanges());
}
unknownFields.writeTo(output); unknownFields.writeTo(output);
} }
@@ -23805,6 +23886,10 @@ java.lang.String defaultValue);
size += com.google.protobuf.CodedOutputStream size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getTableId()); .computeMessageSize(4, getTableId());
} }
if (timeRanges_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getTimeRanges());
}
size += unknownFields.getSerializedSize(); size += unknownFields.getSerializedSize();
memoizedSize = size; memoizedSize = size;
return size; return size;
@@ -23831,6 +23916,11 @@ java.lang.String defaultValue);
if (!getTableId() if (!getTableId()
.equals(other.getTableId())) return false; .equals(other.getTableId())) return false;
} }
if (hasTimeRanges() != other.hasTimeRanges()) return false;
if (hasTimeRanges()) {
if (!getTimeRanges()
.equals(other.getTimeRanges())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false; if (!unknownFields.equals(other.unknownFields)) return false;
return true; return true;
} }
@@ -23852,6 +23942,10 @@ java.lang.String defaultValue);
hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; hash = (37 * hash) + TABLE_ID_FIELD_NUMBER;
hash = (53 * hash) + getTableId().hashCode(); hash = (53 * hash) + getTableId().hashCode();
} }
if (hasTimeRanges()) {
hash = (37 * hash) + TIME_RANGES_FIELD_NUMBER;
hash = (53 * hash) + getTimeRanges().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode(); hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash; memoizedHashCode = hash;
return hash; return hash;
@@ -23997,6 +24091,12 @@ java.lang.String defaultValue);
tableId_ = null; tableId_ = null;
tableIdBuilder_ = null; tableIdBuilder_ = null;
} }
if (timeRangesBuilder_ == null) {
timeRanges_ = null;
} else {
timeRanges_ = null;
timeRangesBuilder_ = null;
}
return this; return this;
} }
@@ -24031,6 +24131,11 @@ java.lang.String defaultValue);
} else { } else {
result.tableId_ = tableIdBuilder_.build(); result.tableId_ = tableIdBuilder_.build();
} }
if (timeRangesBuilder_ == null) {
result.timeRanges_ = timeRanges_;
} else {
result.timeRanges_ = timeRangesBuilder_.build();
}
onBuilt(); onBuilt();
return result; return result;
} }
@@ -24094,6 +24199,9 @@ java.lang.String defaultValue);
if (other.hasTableId()) { if (other.hasTableId()) {
mergeTableId(other.getTableId()); mergeTableId(other.getTableId());
} }
if (other.hasTimeRanges()) {
mergeTimeRanges(other.getTimeRanges());
}
this.mergeUnknownFields(other.unknownFields); this.mergeUnknownFields(other.unknownFields);
onChanged(); onChanged();
return this; return this;
@@ -24469,6 +24577,161 @@ java.lang.String defaultValue);
} }
return tableIdBuilder_; return tableIdBuilder_;
} }
private io.greptime.v1.Common.TimeRanges timeRanges_;
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.TimeRanges, io.greptime.v1.Common.TimeRanges.Builder, io.greptime.v1.Common.TimeRangesOrBuilder> timeRangesBuilder_;
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
* @return Whether the timeRanges field is set.
*/
public boolean hasTimeRanges() {
return timeRangesBuilder_ != null || timeRanges_ != null;
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
* @return The timeRanges.
*/
public io.greptime.v1.Common.TimeRanges getTimeRanges() {
if (timeRangesBuilder_ == null) {
return timeRanges_ == null ? io.greptime.v1.Common.TimeRanges.getDefaultInstance() : timeRanges_;
} else {
return timeRangesBuilder_.getMessage();
}
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
public Builder setTimeRanges(io.greptime.v1.Common.TimeRanges value) {
if (timeRangesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timeRanges_ = value;
onChanged();
} else {
timeRangesBuilder_.setMessage(value);
}
return this;
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
public Builder setTimeRanges(
io.greptime.v1.Common.TimeRanges.Builder builderForValue) {
if (timeRangesBuilder_ == null) {
timeRanges_ = builderForValue.build();
onChanged();
} else {
timeRangesBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
public Builder mergeTimeRanges(io.greptime.v1.Common.TimeRanges value) {
if (timeRangesBuilder_ == null) {
if (timeRanges_ != null) {
timeRanges_ =
io.greptime.v1.Common.TimeRanges.newBuilder(timeRanges_).mergeFrom(value).buildPartial();
} else {
timeRanges_ = value;
}
onChanged();
} else {
timeRangesBuilder_.mergeFrom(value);
}
return this;
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
public Builder clearTimeRanges() {
if (timeRangesBuilder_ == null) {
timeRanges_ = null;
onChanged();
} else {
timeRanges_ = null;
timeRangesBuilder_ = null;
}
return this;
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
public io.greptime.v1.Common.TimeRanges.Builder getTimeRangesBuilder() {
onChanged();
return getTimeRangesFieldBuilder().getBuilder();
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
public io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder() {
if (timeRangesBuilder_ != null) {
return timeRangesBuilder_.getMessageOrBuilder();
} else {
return timeRanges_ == null ?
io.greptime.v1.Common.TimeRanges.getDefaultInstance() : timeRanges_;
}
}
/**
* <pre>
* if empty, truncate entire table, else only truncate time ranges
* </pre>
*
* <code>.greptime.v1.TimeRanges time_ranges = 5;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.TimeRanges, io.greptime.v1.Common.TimeRanges.Builder, io.greptime.v1.Common.TimeRangesOrBuilder>
getTimeRangesFieldBuilder() {
if (timeRangesBuilder_ == null) {
timeRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Common.TimeRanges, io.greptime.v1.Common.TimeRanges.Builder, io.greptime.v1.Common.TimeRangesOrBuilder>(
getTimeRanges(),
getParentForChildren(),
isClean());
timeRanges_ = null;
}
return timeRangesBuilder_;
}
@java.lang.Override @java.lang.Override
public final Builder setUnknownFields( public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) { final com.google.protobuf.UnknownFieldSet unknownFields) {
@@ -49934,89 +50197,90 @@ java.lang.String defaultValue);
"sts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1" + "sts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1" +
".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti" + ".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti" +
"onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + "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 " + "\"\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\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030" +
" \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Tab" + "\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Ta" +
"leId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name" + "bleId\022,\n\013time_ranges\030\005 \001(\0132\027.greptime.v1" +
"\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_e" + ".TimeRanges\"U\n\020DropDatabaseExpr\022\024\n\014catal" +
"xists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns" + "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" +
"\030\001 \003(\0132\026.greptime.v1.AddColumn\"?\n\014DropDe" + "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" +
"faults\022/\n\rdrop_defaults\030\001 \003(\0132\030.greptime" + "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"?\n" +
".v1.DropDefault\"<\n\013SetDefaults\022-\n\014set_de" + "\014DropDefaults\022/\n\rdrop_defaults\030\001 \003(\0132\030.g" +
"faults\030\001 \003(\0132\027.greptime.v1.SetDefault\"<\n" + "reptime.v1.DropDefault\"<\n\013SetDefaults\022-\n" +
"\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" + "\014set_defaults\030\001 \003(\0132\027.greptime.v1.SetDef" +
"ptime.v1.DropColumn\"O\n\021ModifyColumnTypes" + "ault\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(" +
"\022:\n\023modify_column_types\030\001 \003(\0132\035.greptime" + "\0132\027.greptime.v1.DropColumn\"O\n\021ModifyColu" +
".v1.ModifyColumnType\"%\n\013RenameTable\022\026\n\016n" + "mnTypes\022:\n\023modify_column_types\030\001 \003(\0132\035.g" +
"ew_table_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncol" + "reptime.v1.ModifyColumnType\"%\n\013RenameTab" +
"umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n" + "le\022\026\n\016new_table_name\030\001 \001(\t\"\204\001\n\tAddColumn" +
"\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL" + "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum" +
"ocation\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020M" + "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add" +
"odifyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013" + "ColumnLocation\022\031\n\021add_if_not_exists\030\004 \001(" +
"target_type\030\002 \001(\0162\033.greptime.v1.ColumnDa" + "\010\"\236\001\n\020ModifyColumnType\022\023\n\013column_name\030\001 " +
"taType\022C\n\025target_type_extension\030\003 \001(\0132$." + "\001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.C" +
"greptime.v1.ColumnDataTypeExtension\"$\n\006O" + "olumnDataType\022C\n\025target_type_extension\030\003" +
"ption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017Set" + " \001(\0132$.greptime.v1.ColumnDataTypeExtensi" +
"TableOptions\022*\n\rtable_options\030\001 \003(\0132\023.gr" + "on\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" +
"eptime.v1.Option\"!\n\021UnsetTableOptions\022\014\n" + "\"=\n\017SetTableOptions\022*\n\rtable_options\030\001 \003" +
"\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"" + "(\0132\023.greptime.v1.Option\"!\n\021UnsetTableOpt" +
"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001" + "ions\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name" +
" \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" + "\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022" +
"_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" + "\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022" +
"\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra" + ".\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnD" +
"int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" + "ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_" +
"ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" + "constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162" +
"datatype_extension\030\007 \001(\0132$.greptime.v1.C" + "\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 " +
"olumnDataTypeExtension\022+\n\007options\030\010 \001(\0132" + "\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti" +
"\032.greptime.v1.ColumnOptions\"\230\001\n\021AddColum" + "me.v1.ColumnDataTypeExtension\022+\n\007options" +
"nLocation\022B\n\rlocation_type\030\001 \001(\0162+.grept" + "\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021A" +
"ime.v1.AddColumnLocation.LocationType\022\031\n" + "ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162" +
"\021after_column_name\030\002 \001(\t\"$\n\014LocationType" + "+.greptime.v1.AddColumnLocation.Location" +
"\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltext\022\023" + "Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat" +
"\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010a" + "ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFul" +
"nalyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016" + "ltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" +
"case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034." + "(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analy" +
"greptime.v1.FulltextBackend\022\023\n\013granulari" + "zer\022\026\n\016case_sensitive\030\004 \001(\010\022-\n\007backend\030\005" +
"ty\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001\"$\n" + " \001(\0162\034.greptime.v1.FulltextBackend\022\023\n\013gr" +
"\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013S" + "anularity\030\006 \001(\004\022\033\n\023false_positive_rate\030\007" +
"etInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnset" + " \001(\001\"$\n\rUnsetFulltext\022\023\n\013column_name\030\001 \001" +
"Inverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013SetSki" + "(\t\"\"\n\013SetInverted\022\023\n\013column_name\030\001 \001(\t\"$" +
"pping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" + "\n\rUnsetInverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n" +
"(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_inde" + "\013SetSkipping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006ena" +
"x_type\030\004 \001(\0162\036.greptime.v1.SkippingIndex" + "ble\030\002 \001(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skippi" +
"Type\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\rUns" + "ng_index_type\030\004 \001(\0162\036.greptime.v1.Skippi" +
"etSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021Alte" + "ngIndexType\022\033\n\023false_positive_rate\030\005 \001(\001" +
"rDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + "\"$\n\rUnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314" +
"chema_name\030\002 \001(\t\022?\n\024set_database_options" + "\001\n\021AlterDatabaseExpr\022\024\n\014catalog_name\030\001 \001" +
"\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptionsH" + "(\t\022\023\n\013schema_name\030\002 \001(\t\022?\n\024set_database_" +
"\000\022C\n\026unset_database_options\030\004 \001(\0132!.grep" + "options\030\003 \001(\0132\037.greptime.v1.SetDatabaseO" +
"time.v1.UnsetDatabaseOptionsH\000B\006\n\004kind\"G" + "ptionsH\000\022C\n\026unset_database_options\030\004 \001(\013" +
"\n\022SetDatabaseOptions\0221\n\024set_database_opt" + "2!.greptime.v1.UnsetDatabaseOptionsH\000B\006\n" +
"ions\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Unset" + "\004kind\"G\n\022SetDatabaseOptions\0221\n\024set_datab" +
"DatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Create" + "ase_options\030\001 \003(\0132\023.greptime.v1.Option\"$" +
"TriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014tri" + "\n\024UnsetDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n" +
"gger_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030" + "\021CreateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t" +
"\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132\032.g" + "\022\024\n\014trigger_name\030\002 \001(\t\022\034\n\024create_if_not_" +
"reptime.v1.NotifyChannel\022:\n\006labels\030\006 \003(\013" + "exists\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 " +
"2*.greptime.v1.CreateTriggerExpr.LabelsE" + "\003(\0132\032.greptime.v1.NotifyChannel\022:\n\006label" +
"ntry\022D\n\013annotations\030\007 \003(\0132/.greptime.v1." + "s\030\006 \003(\0132*.greptime.v1.CreateTriggerExpr." +
"CreateTriggerExpr.AnnotationsEntry\022\020\n\010in" + "LabelsEntry\022D\n\013annotations\030\007 \003(\0132/.grept" +
"terval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + "ime.v1.CreateTriggerExpr.AnnotationsEntr" +
"\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022" + "y\022\020\n\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003ke" +
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNotif" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotation" +
"yChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132" + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]" +
"\033.greptime.v1.WebhookOptionsH\000B\016\n\014channe" + "\n\rNotifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook" +
"l_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t\0223\n" + "\030\002 \001(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n" +
"\004opts\030\002 \003(\0132%.greptime.v1.WebhookOptions" + "\014channel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001" +
".OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + " \001(\t\0223\n\004opts\030\002 \003(\0132%.greptime.v1.Webhook" +
"value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n\014ca" + "Options.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 " +
"talog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t\022\026" + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExp" +
"\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n\007EN" + "r\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030" +
"GLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBackend\022" + "\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyze" +
"\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIndex" + "r\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextB" +
"Type\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime.v1" + "ackend\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021Skippi" +
"B\003DdlZ5github.com/GreptimeTeam/greptime-" + "ngIndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.grep" +
"proto/go/greptime/v1b\006proto3" "time.v1B\003DdlZ5github.com/GreptimeTeam/gr" +
"eptime-proto/go/greptime/v1b\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
@@ -50136,7 +50400,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable = new internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_TruncateTableExpr_descriptor, internal_static_greptime_v1_TruncateTableExpr_descriptor,
new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", }); new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", "TimeRanges", });
internal_static_greptime_v1_DropDatabaseExpr_descriptor = internal_static_greptime_v1_DropDatabaseExpr_descriptor =
getDescriptor().getMessageTypes().get(16); getDescriptor().getMessageTypes().get(16);
internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable = new internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable = new
File diff suppressed because it is too large Load Diff
+20
View File
@@ -154,6 +154,26 @@ message IntervalMonthDayNano {
int64 nanoseconds = 3; int64 nanoseconds = 3;
} }
/// Time Unit for timestamp
enum TimeUnit {
// The default time unit is MILLISECOND
MILLISECOND = 0;
SECOND = 1;
MICROSECOND = 2;
NANOSECOND = 3;
}
message TimeRange {
int64 start = 1;
int64 end = 2;
}
/// Truncate partially by time ranges
message TimeRanges {
TimeUnit time_unit = 1;
repeated TimeRange time_ranges = 2;
}
// (hi: high 64 bits, lo: low 64 bits) are used to keep the decimal128 value. // (hi: high 64 bits, lo: low 64 bits) are used to keep the decimal128 value.
message Decimal128 { message Decimal128 {
int64 hi = 1; int64 hi = 1;
+2
View File
@@ -177,6 +177,8 @@ message TruncateTableExpr {
string schema_name = 2; string schema_name = 2;
string table_name = 3; string table_name = 3;
TableId table_id = 4; TableId table_id = 4;
// if empty, truncate entire table, else only truncate time ranges
TimeRanges time_ranges = 5;
} }
message DropDatabaseExpr { message DropDatabaseExpr {
+7
View File
@@ -215,7 +215,14 @@ message CompactRequest {
message TruncateRequest { message TruncateRequest {
uint64 region_id = 1; uint64 region_id = 1;
oneof kind {
All all = 2;
TimeRanges time_ranges = 3;
} }
}
// Truncate all data in region
message All {}
// The column definition of a region. Unlike the message `ColumnDef` in // The column definition of a region. Unlike the message `ColumnDef` in
// `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef` // `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef`