From ccfd4da48bc0254ed865e479cd981a3581b02d84 Mon Sep 17 00:00:00 2001 From: discord9 <55937128+discord9@users.noreply.github.com> Date: Mon, 4 Aug 2025 18:17:40 +0800 Subject: [PATCH] feat: truncate request by time ranges (#262) * feat: truncate request by time ranges Signed-off-by: discord9 * fix: default time unit is millisecond Signed-off-by: discord9 * refactor: per review Signed-off-by: discord9 * add time ranges to truncate table expr Signed-off-by: discord9 * chore: make all Signed-off-by: discord9 * chore: fmt Signed-off-by: discord9 * chore: make all Signed-off-by: discord9 * chore: make all Signed-off-by: discord9 --------- Signed-off-by: discord9 --- c++/greptime/v1/common.pb.cc | 604 +++++- c++/greptime/v1/common.pb.h | 491 ++++- c++/greptime/v1/ddl.pb.cc | 291 +-- c++/greptime/v1/ddl.pb.h | 105 + c++/greptime/v1/region/server.pb.cc | 310 ++- c++/greptime/v1/region/server.pb.h | 354 +++- go/greptime/v1/common.pb.go | 386 +++- go/greptime/v1/ddl.pb.go | 591 +++--- go/greptime/v1/region/server.pb.go | 404 ++-- java/src/main/java/io/greptime/v1/Common.java | 1714 ++++++++++++++++- java/src/main/java/io/greptime/v1/Ddl.java | 432 ++++- .../java/io/greptime/v1/region/Server.java | 1027 +++++++++- proto/greptime/v1/common.proto | 20 + proto/greptime/v1/ddl.proto | 2 + proto/greptime/v1/region/server.proto | 7 + 15 files changed, 5844 insertions(+), 894 deletions(-) diff --git a/c++/greptime/v1/common.pb.cc b/c++/greptime/v1/common.pb.cc index c137640..0ece148 100644 --- a/c++/greptime/v1/common.pb.cc +++ b/c++/greptime/v1/common.pb.cc @@ -281,6 +281,34 @@ struct IntervalMonthDayNanoDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 IntervalMonthDayNanoDefaultTypeInternal _IntervalMonthDayNano_default_instance_; +PROTOBUF_CONSTEXPR TimeRange::TimeRange( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.start_)*/int64_t{0} + , /*decltype(_impl_.end_)*/int64_t{0} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TimeRangeDefaultTypeInternal { + PROTOBUF_CONSTEXPR TimeRangeDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TimeRangeDefaultTypeInternal() {} + union { + TimeRange _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimeRangeDefaultTypeInternal _TimeRange_default_instance_; +PROTOBUF_CONSTEXPR TimeRanges::TimeRanges( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.time_ranges_)*/{} + , /*decltype(_impl_.time_unit_)*/0 + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TimeRangesDefaultTypeInternal { + PROTOBUF_CONSTEXPR TimeRangesDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TimeRangesDefaultTypeInternal() {} + union { + TimeRanges _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TimeRangesDefaultTypeInternal _TimeRanges_default_instance_; PROTOBUF_CONSTEXPR Decimal128::Decimal128( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.hi_)*/int64_t{0} @@ -377,8 +405,8 @@ struct ArrowIpcDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ArrowIpcDefaultTypeInternal _ArrowIpc_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[26]; -static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[3]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[28]; +static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[4]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr; const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { @@ -549,6 +577,22 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.days_), PROTOBUF_FIELD_OFFSET(::greptime::v1::IntervalMonthDayNano, _impl_.nanoseconds_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRange, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRange, _impl_.start_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRange, _impl_.end_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRanges, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRanges, _impl_.time_unit_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::TimeRanges, _impl_.time_ranges_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::Decimal128, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -628,13 +672,15 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 142, -1, -1, sizeof(::greptime::v1::ExpireAfter)}, { 149, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, { 157, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, - { 166, -1, -1, sizeof(::greptime::v1::Decimal128)}, - { 174, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, - { 184, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, - { 192, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, - { 199, 207, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, - { 209, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, - { 216, -1, -1, sizeof(::greptime::v1::ArrowIpc)}, + { 166, -1, -1, sizeof(::greptime::v1::TimeRange)}, + { 174, -1, -1, sizeof(::greptime::v1::TimeRanges)}, + { 182, -1, -1, sizeof(::greptime::v1::Decimal128)}, + { 190, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, + { 200, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, + { 208, -1, -1, sizeof(::greptime::v1::VectorTypeExtension)}, + { 215, 223, -1, sizeof(::greptime::v1::ColumnOptions_OptionsEntry_DoNotUse)}, + { 225, -1, -1, sizeof(::greptime::v1::ColumnOptions)}, + { 232, -1, -1, sizeof(::greptime::v1::ArrowIpc)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -657,6 +703,8 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_ExpireAfter_default_instance_._instance, &::greptime::v1::_FlightMetadata_default_instance_._instance, &::greptime::v1::_IntervalMonthDayNano_default_instance_._instance, + &::greptime::v1::_TimeRange_default_instance_._instance, + &::greptime::v1::_TimeRanges_default_instance_._instance, &::greptime::v1::_Decimal128_default_instance_._instance, &::greptime::v1::_ColumnDataTypeExtension_default_instance_._instance, &::greptime::v1::_DecimalTypeExtension_default_instance_._instance, @@ -705,43 +753,49 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S "ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" "ows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Metri" "cs\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 \001" - "(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"$\n" - "\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027" - "ColumnDataTypeExtension\0229\n\014decimal_type\030" - "\001 \001(\0132!.greptime.v1.DecimalTypeExtension" - "H\000\0223\n\tjson_type\030\002 \001(\0162\036.greptime.v1.Json" - "TypeExtensionH\000\0227\n\013vector_type\030\003 \001(\0132 .g" - "reptime.v1.VectorTypeExtensionH\000B\n\n\010type" - "_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisio" - "n\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n\023VectorTypeExte" - "nsion\022\013\n\003dim\030\001 \001(\r\"y\n\rColumnOptions\0228\n\007o" - "ptions\030\001 \003(\0132\'.greptime.v1.ColumnOptions" - ".OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001" - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\010ArrowIpc\022\016\n\006sch" - "ema\030\001 \001(\014\022\023\n\013data_header\030\002 \001(\014\022\017\n\007payloa" - "d\030\003 \001(\014*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIEL" - "D\020\001\022\r\n\tTIMESTAMP\020\002*\354\003\n\016ColumnDataType\022\013\n" - "\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32" - "\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006" - "UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLO" - "AT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r" - "\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025" - "TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MIC" - "ROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013" - "TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020T" - "IME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027" - "\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_" - "TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nD" - "ECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021Jso" - "nTypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.gr" - "eptime.v1B\006CommonZ5github.com/GreptimeTe" - "am/greptime-proto/go/greptime/v1b\006proto3" + "(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"\'\n" + "\tTimeRange\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"c" + "\n\nTimeRanges\022(\n\ttime_unit\030\001 \001(\0162\025.grepti" + "me.v1.TimeUnit\022+\n\013time_ranges\030\002 \003(\0132\026.gr" + "eptime.v1.TimeRange\"$\n\nDecimal128\022\n\n\002hi\030" + "\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExte" + "nsion\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v" + "1.DecimalTypeExtensionH\000\0223\n\tjson_type\030\002 " + "\001(\0162\036.greptime.v1.JsonTypeExtensionH\000\0227\n" + "\013vector_type\030\003 \001(\0132 .greptime.v1.VectorT" + "ypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTyp" + "eExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002" + " \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r" + "\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.gre" + "ptime.v1.ColumnOptions.OptionsEntry\032.\n\014O" + "ptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + "\0028\001\"@\n\010ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_" + "header\030\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014Semanti" + "cType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002" + "*\354\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8" + "\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005U" + "INT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64" + "\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013" + "\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020" + "TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISEC" + "OND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIME" + "STAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020T" + "IME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022" + "\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MO" + "NTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL" + "_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSO" + "N\020\037\022\n\n\006VECTOR\020 *H\n\010TimeUnit\022\017\n\013MILLISECO" + "ND\020\000\022\n\n\006SECOND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNAN" + "OSECOND\020\003*$\n\021JsonTypeExtension\022\017\n\013JSON_B" + "INARY\020\000BO\n\016io.greptime.v1B\006CommonZ5githu" + "b.com/GreptimeTeam/greptime-proto/go/gre" + "ptime/v1b\006proto3" ; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { - false, false, 2760, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, + false, false, 2976, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, "greptime/v1/common.proto", - &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 26, + &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 28, schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets, file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto, file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto, @@ -810,10 +864,26 @@ bool ColumnDataType_IsValid(int value) { } } -const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JsonTypeExtension_descriptor() { +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* TimeUnit_descriptor() { ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcommon_2eproto); return file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2]; } +bool TimeUnit_IsValid(int value) { + switch (value) { + case 0: + case 1: + case 2: + case 3: + return true; + default: + return false; + } +} + +const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* JsonTypeExtension_descriptor() { + ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_greptime_2fv1_2fcommon_2eproto); + return file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[3]; +} bool JsonTypeExtension_IsValid(int value) { switch (value) { case 0: @@ -4777,6 +4847,432 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) { // =================================================================== +class TimeRange::_Internal { + public: +}; + +TimeRange::TimeRange(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.TimeRange) +} +TimeRange::TimeRange(const TimeRange& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TimeRange* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.start_){} + , decltype(_impl_.end_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + ::memcpy(&_impl_.start_, &from._impl_.start_, + static_cast(reinterpret_cast(&_impl_.end_) - + reinterpret_cast(&_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( + reinterpret_cast(&_impl_.end_) - + reinterpret_cast(&_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(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(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(&to_msg); + auto& from = static_cast(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(&_impl_.start_), + reinterpret_cast(&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(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(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(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(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.TimeRanges) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.time_ranges_.MergeFrom(from._impl_.time_ranges_); + if (from._internal_time_unit() != 0) { + _this->_internal_set_time_unit(from._internal_time_unit()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TimeRanges::CopyFrom(const TimeRanges& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TimeRanges) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TimeRanges::IsInitialized() const { + return true; +} + +void TimeRanges::InternalSwap(TimeRanges* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.time_ranges_.InternalSwap(&other->_impl_.time_ranges_); + swap(_impl_.time_unit_, other->_impl_.time_unit_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TimeRanges::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, + file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]); +} + +// =================================================================== + class Decimal128::_Internal { public: }; @@ -4983,7 +5479,7 @@ void Decimal128::InternalSwap(Decimal128* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[19]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]); } // =================================================================== @@ -5322,7 +5818,7 @@ void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[20]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[22]); } // =================================================================== @@ -5533,7 +6029,7 @@ void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[21]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[23]); } // =================================================================== @@ -5711,7 +6207,7 @@ void VectorTypeExtension::InternalSwap(VectorTypeExtension* other) { ::PROTOBUF_NAMESPACE_ID::Metadata VectorTypeExtension::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[22]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[24]); } // =================================================================== @@ -5725,7 +6221,7 @@ void ColumnOptions_OptionsEntry_DoNotUse::MergeFrom(const ColumnOptions_OptionsE ::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions_OptionsEntry_DoNotUse::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[23]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[25]); } // =================================================================== @@ -5944,7 +6440,7 @@ void ColumnOptions::InternalSwap(ColumnOptions* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnOptions::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[24]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[26]); } // =================================================================== @@ -6232,7 +6728,7 @@ void ArrowIpc::InternalSwap(ArrowIpc* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ArrowIpc::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[25]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[27]); } // @@protoc_insertion_point(namespace_scope) @@ -6315,6 +6811,14 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage< ::greptime::v1::IntervalMonthDayNano >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::IntervalMonthDayNano >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::TimeRange* +Arena::CreateMaybeMessage< ::greptime::v1::TimeRange >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::TimeRange >(arena); +} +template<> PROTOBUF_NOINLINE ::greptime::v1::TimeRanges* +Arena::CreateMaybeMessage< ::greptime::v1::TimeRanges >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::TimeRanges >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::Decimal128* Arena::CreateMaybeMessage< ::greptime::v1::Decimal128 >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::Decimal128 >(arena); diff --git a/c++/greptime/v1/common.pb.h b/c++/greptime/v1/common.pb.h index 2982f7c..7f0dc0e 100644 --- a/c++/greptime/v1/common.pb.h +++ b/c++/greptime/v1/common.pb.h @@ -122,6 +122,12 @@ extern StatusDefaultTypeInternal _Status_default_instance_; class TableName; struct TableNameDefaultTypeInternal; extern TableNameDefaultTypeInternal _TableName_default_instance_; +class TimeRange; +struct TimeRangeDefaultTypeInternal; +extern TimeRangeDefaultTypeInternal _TimeRange_default_instance_; +class TimeRanges; +struct TimeRangesDefaultTypeInternal; +extern TimeRangesDefaultTypeInternal _TimeRanges_default_instance_; class Token; struct TokenDefaultTypeInternal; extern TokenDefaultTypeInternal _Token_default_instance_; @@ -155,6 +161,8 @@ template<> ::greptime::v1::SnapshotSequences_SnapshotSeqsEntry_DoNotUse* Arena:: template<> ::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::SnapshotSequences_SstMinSequencesEntry_DoNotUse>(Arena*); template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*); template<> ::greptime::v1::TableName* Arena::CreateMaybeMessage<::greptime::v1::TableName>(Arena*); +template<> ::greptime::v1::TimeRange* Arena::CreateMaybeMessage<::greptime::v1::TimeRange>(Arena*); +template<> ::greptime::v1::TimeRanges* Arena::CreateMaybeMessage<::greptime::v1::TimeRanges>(Arena*); template<> ::greptime::v1::Token* Arena::CreateMaybeMessage<::greptime::v1::Token>(Arena*); template<> ::greptime::v1::VectorTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::VectorTypeExtension>(Arena*); PROTOBUF_NAMESPACE_CLOSE @@ -239,6 +247,33 @@ inline bool ColumnDataType_Parse( return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum( ColumnDataType_descriptor(), name, value); } +enum TimeUnit : int { + MILLISECOND = 0, + SECOND = 1, + MICROSECOND = 2, + NANOSECOND = 3, + TimeUnit_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::min(), + TimeUnit_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits::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 +inline const std::string& TimeUnit_Name(T enum_t_value) { + static_assert(::std::is_same::value || + ::std::is_integral::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_descriptor(), name, value); +} enum JsonTypeExtension : int { JSON_BINARY = 0, JsonTypeExtension_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits::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( + &_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(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 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( + &_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(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 friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TimeRange > time_ranges_; + int time_unit_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + class Decimal128 final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.Decimal128) */ { public: @@ -3080,7 +3442,7 @@ class Decimal128 final : &_Decimal128_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 21; friend void swap(Decimal128& a, Decimal128& b) { a.Swap(&b); @@ -3246,7 +3608,7 @@ class ColumnDataTypeExtension final : &_ColumnDataTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 22; friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) { a.Swap(&b); @@ -3452,7 +3814,7 @@ class DecimalTypeExtension final : &_DecimalTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 21; + 23; friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) { a.Swap(&b); @@ -3611,7 +3973,7 @@ class VectorTypeExtension final : &_VectorTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 22; + 24; friend void swap(VectorTypeExtension& a, VectorTypeExtension& b) { a.Swap(&b); @@ -3787,7 +4149,7 @@ class ColumnOptions final : &_ColumnOptions_default_instance_); } static constexpr int kIndexInFileMessages = - 24; + 26; friend void swap(ColumnOptions& a, ColumnOptions& b) { a.Swap(&b); @@ -3950,7 +4312,7 @@ class ArrowIpc final : &_ArrowIpc_default_instance_); } static constexpr int kIndexInFileMessages = - 25; + 27; friend void swap(ArrowIpc& a, ArrowIpc& b) { a.Swap(&b); @@ -5885,6 +6247,114 @@ inline void IntervalMonthDayNano::set_nanoseconds(int64_t value) { // ------------------------------------------------------------------- +// TimeRange + +// int64 start = 1; +inline void TimeRange::clear_start() { + _impl_.start_ = int64_t{0}; +} +inline int64_t TimeRange::_internal_start() const { + return _impl_.start_; +} +inline int64_t TimeRange::start() const { + // @@protoc_insertion_point(field_get:greptime.v1.TimeRange.start) + return _internal_start(); +} +inline void TimeRange::_internal_set_start(int64_t value) { + + _impl_.start_ = value; +} +inline void TimeRange::set_start(int64_t value) { + _internal_set_start(value); + // @@protoc_insertion_point(field_set:greptime.v1.TimeRange.start) +} + +// int64 end = 2; +inline void TimeRange::clear_end() { + _impl_.end_ = int64_t{0}; +} +inline int64_t TimeRange::_internal_end() const { + return _impl_.end_; +} +inline int64_t TimeRange::end() const { + // @@protoc_insertion_point(field_get:greptime.v1.TimeRange.end) + return _internal_end(); +} +inline void TimeRange::_internal_set_end(int64_t value) { + + _impl_.end_ = value; +} +inline void TimeRange::set_end(int64_t value) { + _internal_set_end(value); + // @@protoc_insertion_point(field_set:greptime.v1.TimeRange.end) +} + +// ------------------------------------------------------------------- + +// TimeRanges + +// .greptime.v1.TimeUnit time_unit = 1; +inline void TimeRanges::clear_time_unit() { + _impl_.time_unit_ = 0; +} +inline ::greptime::v1::TimeUnit TimeRanges::_internal_time_unit() const { + return static_cast< ::greptime::v1::TimeUnit >(_impl_.time_unit_); +} +inline ::greptime::v1::TimeUnit TimeRanges::time_unit() const { + // @@protoc_insertion_point(field_get:greptime.v1.TimeRanges.time_unit) + return _internal_time_unit(); +} +inline void TimeRanges::_internal_set_time_unit(::greptime::v1::TimeUnit value) { + + _impl_.time_unit_ = value; +} +inline void TimeRanges::set_time_unit(::greptime::v1::TimeUnit value) { + _internal_set_time_unit(value); + // @@protoc_insertion_point(field_set:greptime.v1.TimeRanges.time_unit) +} + +// repeated .greptime.v1.TimeRange time_ranges = 2; +inline int TimeRanges::_internal_time_ranges_size() const { + return _impl_.time_ranges_.size(); +} +inline int TimeRanges::time_ranges_size() const { + return _internal_time_ranges_size(); +} +inline void TimeRanges::clear_time_ranges() { + _impl_.time_ranges_.Clear(); +} +inline ::greptime::v1::TimeRange* TimeRanges::mutable_time_ranges(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.TimeRanges.time_ranges) + return _impl_.time_ranges_.Mutable(index); +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TimeRange >* +TimeRanges::mutable_time_ranges() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.TimeRanges.time_ranges) + return &_impl_.time_ranges_; +} +inline const ::greptime::v1::TimeRange& TimeRanges::_internal_time_ranges(int index) const { + return _impl_.time_ranges_.Get(index); +} +inline const ::greptime::v1::TimeRange& TimeRanges::time_ranges(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.TimeRanges.time_ranges) + return _internal_time_ranges(index); +} +inline ::greptime::v1::TimeRange* TimeRanges::_internal_add_time_ranges() { + return _impl_.time_ranges_.Add(); +} +inline ::greptime::v1::TimeRange* TimeRanges::add_time_ranges() { + ::greptime::v1::TimeRange* _add = _internal_add_time_ranges(); + // @@protoc_insertion_point(field_add:greptime.v1.TimeRanges.time_ranges) + return _add; +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TimeRange >& +TimeRanges::time_ranges() const { + // @@protoc_insertion_point(field_list:greptime.v1.TimeRanges.time_ranges) + return _impl_.time_ranges_; +} + +// ------------------------------------------------------------------- + // Decimal128 // int64 hi = 1; @@ -6436,6 +6906,10 @@ inline void ArrowIpc::set_allocated_payload(std::string* payload) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) @@ -6454,6 +6928,11 @@ template <> inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::ColumnDataType>() { return ::greptime::v1::ColumnDataType_descriptor(); } +template <> struct is_proto_enum< ::greptime::v1::TimeUnit> : ::std::true_type {}; +template <> +inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::TimeUnit>() { + return ::greptime::v1::TimeUnit_descriptor(); +} template <> struct is_proto_enum< ::greptime::v1::JsonTypeExtension> : ::std::true_type {}; template <> inline const EnumDescriptor* GetEnumDescriptor< ::greptime::v1::JsonTypeExtension>() { diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 61bd4ba..890d3e1 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -306,6 +306,7 @@ PROTOBUF_CONSTEXPR TruncateTableExpr::TruncateTableExpr( , /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} , /*decltype(_impl_.table_id_)*/nullptr + , /*decltype(_impl_.time_ranges_)*/nullptr , /*decltype(_impl_._cached_size_)*/{}} {} struct TruncateTableExprDefaultTypeInternal { PROTOBUF_CONSTEXPR TruncateTableExprDefaultTypeInternal() @@ -1005,6 +1006,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.schema_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_id_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.time_ranges_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDatabaseExpr, _internal_metadata_), ~0u, // no _extensions_ @@ -1307,39 +1309,39 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 189, 197, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, { 199, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, { 209, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 219, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 228, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 235, -1, -1, sizeof(::greptime::v1::DropDefaults)}, - { 242, -1, -1, sizeof(::greptime::v1::SetDefaults)}, - { 249, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 256, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, - { 263, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 270, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 279, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, - { 288, -1, -1, sizeof(::greptime::v1::Option)}, - { 296, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, - { 303, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, - { 310, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 317, -1, -1, sizeof(::greptime::v1::TableId)}, - { 324, -1, -1, sizeof(::greptime::v1::FlowId)}, - { 331, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 345, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, - { 353, -1, -1, sizeof(::greptime::v1::SetFulltext)}, - { 366, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, - { 373, -1, -1, sizeof(::greptime::v1::SetInverted)}, - { 380, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, - { 387, -1, -1, sizeof(::greptime::v1::SetSkipping)}, - { 398, -1, -1, sizeof(::greptime::v1::UnsetSkipping)}, - { 405, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, - { 416, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, - { 423, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, - { 430, 438, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)}, - { 440, 448, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)}, - { 450, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)}, - { 464, -1, -1, sizeof(::greptime::v1::NotifyChannel)}, - { 473, 481, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)}, - { 483, -1, -1, sizeof(::greptime::v1::WebhookOptions)}, - { 491, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)}, + { 220, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 229, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 236, -1, -1, sizeof(::greptime::v1::DropDefaults)}, + { 243, -1, -1, sizeof(::greptime::v1::SetDefaults)}, + { 250, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 257, -1, -1, sizeof(::greptime::v1::ModifyColumnTypes)}, + { 264, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 271, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 280, -1, -1, sizeof(::greptime::v1::ModifyColumnType)}, + { 289, -1, -1, sizeof(::greptime::v1::Option)}, + { 297, -1, -1, sizeof(::greptime::v1::SetTableOptions)}, + { 304, -1, -1, sizeof(::greptime::v1::UnsetTableOptions)}, + { 311, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 318, -1, -1, sizeof(::greptime::v1::TableId)}, + { 325, -1, -1, sizeof(::greptime::v1::FlowId)}, + { 332, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 346, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 354, -1, -1, sizeof(::greptime::v1::SetFulltext)}, + { 367, -1, -1, sizeof(::greptime::v1::UnsetFulltext)}, + { 374, -1, -1, sizeof(::greptime::v1::SetInverted)}, + { 381, -1, -1, sizeof(::greptime::v1::UnsetInverted)}, + { 388, -1, -1, sizeof(::greptime::v1::SetSkipping)}, + { 399, -1, -1, sizeof(::greptime::v1::UnsetSkipping)}, + { 406, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, + { 417, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, + { 424, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, + { 431, 439, -1, sizeof(::greptime::v1::CreateTriggerExpr_LabelsEntry_DoNotUse)}, + { 441, 449, -1, sizeof(::greptime::v1::CreateTriggerExpr_AnnotationsEntry_DoNotUse)}, + { 451, -1, -1, sizeof(::greptime::v1::CreateTriggerExpr)}, + { 465, -1, -1, sizeof(::greptime::v1::NotifyChannel)}, + { 474, 482, -1, sizeof(::greptime::v1::WebhookOptions_OptsEntry_DoNotUse)}, + { 484, -1, -1, sizeof(::greptime::v1::WebhookOptions)}, + { 492, -1, -1, sizeof(::greptime::v1::DropTriggerExpr)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -1487,96 +1489,97 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "sts\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.greptime.v1" ".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti" "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - "\"z\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001 " - "\001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003" - " \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Tab" - "leId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name" - "\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_e" - "xists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns" - "\030\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n\014DropDe" - "faults\022/\n\rdrop_defaults\030\001 \003(\0132\030.greptime" - ".v1.DropDefault\"<\n\013SetDefaults\022-\n\014set_de" - "faults\030\001 \003(\0132\027.greptime.v1.SetDefault\"<\n" - "\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" - "ptime.v1.DropColumn\"O\n\021ModifyColumnTypes" - "\022:\n\023modify_column_types\030\001 \003(\0132\035.greptime" - ".v1.ModifyColumnType\"%\n\013RenameTable\022\026\n\016n" - "ew_table_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncol" - "umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n" - "\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL" - "ocation\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020M" - "odifyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013" - "target_type\030\002 \001(\0162\033.greptime.v1.ColumnDa" - "taType\022C\n\025target_type_extension\030\003 \001(\0132$." - "greptime.v1.ColumnDataTypeExtension\"$\n\006O" - "ption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017Set" - "TableOptions\022*\n\rtable_options\030\001 \003(\0132\023.gr" - "eptime.v1.Option\"!\n\021UnsetTableOptions\022\014\n" - "\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"" - "\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001" - " \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" - "_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" - "\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra" - "int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" - "ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" - "datatype_extension\030\007 \001(\0132$.greptime.v1.C" - "olumnDataTypeExtension\022+\n\007options\030\010 \001(\0132" - "\032.greptime.v1.ColumnOptions\"\230\001\n\021AddColum" - "nLocation\022B\n\rlocation_type\030\001 \001(\0162+.grept" - "ime.v1.AddColumnLocation.LocationType\022\031\n" - "\021after_column_name\030\002 \001(\t\"$\n\014LocationType" - "\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltext\022\023" - "\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010a" - "nalyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016" - "case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034." - "greptime.v1.FulltextBackend\022\023\n\013granulari" - "ty\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001\"$\n" - "\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013S" - "etInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnset" - "Inverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013SetSki" - "pping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" - "(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_inde" - "x_type\030\004 \001(\0162\036.greptime.v1.SkippingIndex" - "Type\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\rUns" - "etSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021Alte" - "rDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" - "chema_name\030\002 \001(\t\022\?\n\024set_database_options" - "\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptionsH" - "\000\022C\n\026unset_database_options\030\004 \001(\0132!.grep" - "time.v1.UnsetDatabaseOptionsH\000B\006\n\004kind\"G" - "\n\022SetDatabaseOptions\0221\n\024set_database_opt" - "ions\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Unset" - "DatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Create" - "TriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014tri" - "gger_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030" - "\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132\032.g" - "reptime.v1.NotifyChannel\022:\n\006labels\030\006 \003(\013" - "2*.greptime.v1.CreateTriggerExpr.LabelsE" - "ntry\022D\n\013annotations\030\007 \003(\0132/.greptime.v1." - "CreateTriggerExpr.AnnotationsEntry\022\020\n\010in" - "terval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" - "\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022" - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNotif" - "yChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132" - "\033.greptime.v1.WebhookOptionsH\000B\016\n\014channe" - "l_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t\0223\n" - "\004opts\030\002 \003(\0132%.greptime.v1.WebhookOptions" - ".OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" - "value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n\014ca" - "talog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t\022\026" - "\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n\007EN" - "GLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBackend\022" - "\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIndex" - "Type\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime.v1" - "B\003DdlZ5github.com/GreptimeTeam/greptime-" - "proto/go/greptime/v1b\006proto3" + "\"\250\001\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001" + " \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030" + "\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Ta" + "bleId\022,\n\013time_ranges\030\005 \001(\0132\027.greptime.v1" + ".TimeRanges\"U\n\020DropDatabaseExpr\022\024\n\014catal" + "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" + "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" + "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"\?\n" + "\014DropDefaults\022/\n\rdrop_defaults\030\001 \003(\0132\030.g" + "reptime.v1.DropDefault\"<\n\013SetDefaults\022-\n" + "\014set_defaults\030\001 \003(\0132\027.greptime.v1.SetDef" + "ault\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(" + "\0132\027.greptime.v1.DropColumn\"O\n\021ModifyColu" + "mnTypes\022:\n\023modify_column_types\030\001 \003(\0132\035.g" + "reptime.v1.ModifyColumnType\"%\n\013RenameTab" + "le\022\026\n\016new_table_name\030\001 \001(\t\"\204\001\n\tAddColumn" + "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum" + "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add" + "ColumnLocation\022\031\n\021add_if_not_exists\030\004 \001(" + "\010\"\236\001\n\020ModifyColumnType\022\023\n\013column_name\030\001 " + "\001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.C" + "olumnDataType\022C\n\025target_type_extension\030\003" + " \001(\0132$.greptime.v1.ColumnDataTypeExtensi" + "on\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + "\"=\n\017SetTableOptions\022*\n\rtable_options\030\001 \003" + "(\0132\023.greptime.v1.Option\"!\n\021UnsetTableOpt" + "ions\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name" + "\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022" + "\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022" + ".\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnD" + "ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_" + "constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162" + "\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 " + "\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti" + "me.v1.ColumnDataTypeExtension\022+\n\007options" + "\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021A" + "ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162" + "+.greptime.v1.AddColumnLocation.Location" + "Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat" + "ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFul" + "ltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" + "(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analy" + "zer\022\026\n\016case_sensitive\030\004 \001(\010\022-\n\007backend\030\005" + " \001(\0162\034.greptime.v1.FulltextBackend\022\023\n\013gr" + "anularity\030\006 \001(\004\022\033\n\023false_positive_rate\030\007" + " \001(\001\"$\n\rUnsetFulltext\022\023\n\013column_name\030\001 \001" + "(\t\"\"\n\013SetInverted\022\023\n\013column_name\030\001 \001(\t\"$" + "\n\rUnsetInverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n" + "\013SetSkipping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006ena" + "ble\030\002 \001(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skippi" + "ng_index_type\030\004 \001(\0162\036.greptime.v1.Skippi" + "ngIndexType\022\033\n\023false_positive_rate\030\005 \001(\001" + "\"$\n\rUnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314" + "\001\n\021AlterDatabaseExpr\022\024\n\014catalog_name\030\001 \001" + "(\t\022\023\n\013schema_name\030\002 \001(\t\022\?\n\024set_database_" + "options\030\003 \001(\0132\037.greptime.v1.SetDatabaseO" + "ptionsH\000\022C\n\026unset_database_options\030\004 \001(\013" + "2!.greptime.v1.UnsetDatabaseOptionsH\000B\006\n" + "\004kind\"G\n\022SetDatabaseOptions\0221\n\024set_datab" + "ase_options\030\001 \003(\0132\023.greptime.v1.Option\"$" + "\n\024UnsetDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n" + "\021CreateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t" + "\022\024\n\014trigger_name\030\002 \001(\t\022\034\n\024create_if_not_" + "exists\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 " + "\003(\0132\032.greptime.v1.NotifyChannel\022:\n\006label" + "s\030\006 \003(\0132*.greptime.v1.CreateTriggerExpr." + "LabelsEntry\022D\n\013annotations\030\007 \003(\0132/.grept" + "ime.v1.CreateTriggerExpr.AnnotationsEntr" + "y\022\020\n\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003ke" + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotation" + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]" + "\n\rNotifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook" + "\030\002 \001(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n" + "\014channel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001" + " \001(\t\0223\n\004opts\030\002 \003(\0132%.greptime.v1.Webhook" + "Options.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 " + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExp" + "r\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030" + "\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyze" + "r\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextB" + "ackend\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021Skippi" + "ngIndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.grep" + "time.v1B\003DdlZ5github.com/GreptimeTeam/gr" + "eptime-proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 6868, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 6915, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, "greptime/v1/ddl.proto", &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 52, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, @@ -8332,12 +8335,23 @@ void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) { class TruncateTableExpr::_Internal { public: static const ::greptime::v1::TableId& table_id(const TruncateTableExpr* msg); + static const ::greptime::v1::TimeRanges& time_ranges(const TruncateTableExpr* msg); }; const ::greptime::v1::TableId& TruncateTableExpr::_Internal::table_id(const TruncateTableExpr* msg) { return *msg->_impl_.table_id_; } +const ::greptime::v1::TimeRanges& +TruncateTableExpr::_Internal::time_ranges(const TruncateTableExpr* msg) { + return *msg->_impl_.time_ranges_; +} +void TruncateTableExpr::clear_time_ranges() { + if (GetArenaForAllocation() == nullptr && _impl_.time_ranges_ != nullptr) { + delete _impl_.time_ranges_; + } + _impl_.time_ranges_ = nullptr; +} TruncateTableExpr::TruncateTableExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -8352,6 +8366,7 @@ TruncateTableExpr::TruncateTableExpr(const TruncateTableExpr& from) , decltype(_impl_.schema_name_){} , decltype(_impl_.table_name_){} , decltype(_impl_.table_id_){nullptr} + , decltype(_impl_.time_ranges_){nullptr} , /*decltype(_impl_._cached_size_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); @@ -8382,6 +8397,9 @@ TruncateTableExpr::TruncateTableExpr(const TruncateTableExpr& from) if (from._internal_has_table_id()) { _this->_impl_.table_id_ = new ::greptime::v1::TableId(*from._impl_.table_id_); } + if (from._internal_has_time_ranges()) { + _this->_impl_.time_ranges_ = new ::greptime::v1::TimeRanges(*from._impl_.time_ranges_); + } // @@protoc_insertion_point(copy_constructor:greptime.v1.TruncateTableExpr) } @@ -8394,6 +8412,7 @@ inline void TruncateTableExpr::SharedCtor( , decltype(_impl_.schema_name_){} , decltype(_impl_.table_name_){} , decltype(_impl_.table_id_){nullptr} + , decltype(_impl_.time_ranges_){nullptr} , /*decltype(_impl_._cached_size_)*/{} }; _impl_.catalog_name_.InitDefault(); @@ -8425,6 +8444,7 @@ inline void TruncateTableExpr::SharedDtor() { _impl_.schema_name_.Destroy(); _impl_.table_name_.Destroy(); if (this != internal_default_instance()) delete _impl_.table_id_; + if (this != internal_default_instance()) delete _impl_.time_ranges_; } void TruncateTableExpr::SetCachedSize(int size) const { @@ -8444,6 +8464,10 @@ void TruncateTableExpr::Clear() { delete _impl_.table_id_; } _impl_.table_id_ = nullptr; + if (GetArenaForAllocation() == nullptr && _impl_.time_ranges_ != nullptr) { + delete _impl_.time_ranges_; + } + _impl_.time_ranges_ = nullptr; _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -8491,6 +8515,14 @@ const char* TruncateTableExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; + // .greptime.v1.TimeRanges time_ranges = 5; + case 5: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 42)) { + ptr = ctx->ParseMessage(_internal_mutable_time_ranges(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -8557,6 +8589,13 @@ uint8_t* TruncateTableExpr::_InternalSerialize( _Internal::table_id(this).GetCachedSize(), target, stream); } + // .greptime.v1.TimeRanges time_ranges = 5; + if (this->_internal_has_time_ranges()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(5, _Internal::time_ranges(this), + _Internal::time_ranges(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -8601,6 +8640,13 @@ size_t TruncateTableExpr::ByteSizeLong() const { *_impl_.table_id_); } + // .greptime.v1.TimeRanges time_ranges = 5; + if (this->_internal_has_time_ranges()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.time_ranges_); + } + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -8632,6 +8678,10 @@ void TruncateTableExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons _this->_internal_mutable_table_id()->::greptime::v1::TableId::MergeFrom( from._internal_table_id()); } + if (from._internal_has_time_ranges()) { + _this->_internal_mutable_time_ranges()->::greptime::v1::TimeRanges::MergeFrom( + from._internal_time_ranges()); + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -8663,7 +8713,12 @@ void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) { &_impl_.table_name_, lhs_arena, &other->_impl_.table_name_, rhs_arena ); - swap(_impl_.table_id_, other->_impl_.table_id_); + ::PROTOBUF_NAMESPACE_ID::internal::memswap< + PROTOBUF_FIELD_OFFSET(TruncateTableExpr, _impl_.time_ranges_) + + sizeof(TruncateTableExpr::_impl_.time_ranges_) + - PROTOBUF_FIELD_OFFSET(TruncateTableExpr, _impl_.table_id_)>( + reinterpret_cast(&_impl_.table_id_), + reinterpret_cast(&other->_impl_.table_id_)); } ::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const { diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 417732f..886ec0c 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -4278,6 +4278,7 @@ class TruncateTableExpr final : kSchemaNameFieldNumber = 2, kTableNameFieldNumber = 3, kTableIdFieldNumber = 4, + kTimeRangesFieldNumber = 5, }; // string catalog_name = 1; void clear_catalog_name(); @@ -4339,6 +4340,24 @@ class TruncateTableExpr final : ::greptime::v1::TableId* table_id); ::greptime::v1::TableId* unsafe_arena_release_table_id(); + // .greptime.v1.TimeRanges time_ranges = 5; + bool has_time_ranges() const; + private: + bool _internal_has_time_ranges() const; + public: + void clear_time_ranges(); + const ::greptime::v1::TimeRanges& time_ranges() const; + PROTOBUF_NODISCARD ::greptime::v1::TimeRanges* release_time_ranges(); + ::greptime::v1::TimeRanges* mutable_time_ranges(); + void set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges); + private: + const ::greptime::v1::TimeRanges& _internal_time_ranges() const; + ::greptime::v1::TimeRanges* _internal_mutable_time_ranges(); + public: + void unsafe_arena_set_allocated_time_ranges( + ::greptime::v1::TimeRanges* time_ranges); + ::greptime::v1::TimeRanges* unsafe_arena_release_time_ranges(); + // @@protoc_insertion_point(class_scope:greptime.v1.TruncateTableExpr) private: class _Internal; @@ -4351,6 +4370,7 @@ class TruncateTableExpr final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; ::greptime::v1::TableId* table_id_; + ::greptime::v1::TimeRanges* time_ranges_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; union { Impl_ _impl_; }; @@ -14912,6 +14932,91 @@ inline void TruncateTableExpr::set_allocated_table_id(::greptime::v1::TableId* t // @@protoc_insertion_point(field_set_allocated:greptime.v1.TruncateTableExpr.table_id) } +// .greptime.v1.TimeRanges time_ranges = 5; +inline bool TruncateTableExpr::_internal_has_time_ranges() const { + return this != internal_default_instance() && _impl_.time_ranges_ != nullptr; +} +inline bool TruncateTableExpr::has_time_ranges() const { + return _internal_has_time_ranges(); +} +inline const ::greptime::v1::TimeRanges& TruncateTableExpr::_internal_time_ranges() const { + const ::greptime::v1::TimeRanges* p = _impl_.time_ranges_; + return p != nullptr ? *p : reinterpret_cast( + ::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 diff --git a/c++/greptime/v1/region/server.pb.cc b/c++/greptime/v1/region/server.pb.cc index 8d6e4dd..bdbb85d 100644 --- a/c++/greptime/v1/region/server.pb.cc +++ b/c++/greptime/v1/region/server.pb.cc @@ -420,7 +420,9 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT PROTOBUF_CONSTEXPR TruncateRequest::TruncateRequest( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.region_id_)*/uint64_t{0u} - , /*decltype(_impl_._cached_size_)*/{}} {} + , /*decltype(_impl_.kind_)*/{} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}} {} struct TruncateRequestDefaultTypeInternal { PROTOBUF_CONSTEXPR TruncateRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {} @@ -430,6 +432,17 @@ struct TruncateRequestDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateRequestDefaultTypeInternal _TruncateRequest_default_instance_; +PROTOBUF_CONSTEXPR All::All( + ::_pbi::ConstantInitialized) {} +struct AllDefaultTypeInternal { + PROTOBUF_CONSTEXPR AllDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~AllDefaultTypeInternal() {} + union { + All _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AllDefaultTypeInternal _All_default_instance_; PROTOBUF_CONSTEXPR RegionColumnDef::RegionColumnDef( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.column_def_)*/nullptr @@ -518,7 +531,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace region } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[36]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[37]; static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fregion_2fserver_2eproto = nullptr; @@ -793,10 +806,19 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _internal_metadata_), ~0u, // no _extensions_ - ~0u, // no _oneof_case_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _impl_._oneof_case_[0]), ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _impl_.region_id_), + ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::TruncateRequest, _impl_.kind_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::region::All, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::region::RegionColumnDef, _internal_metadata_), ~0u, // no _extensions_ @@ -878,12 +900,13 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 250, -1, -1, sizeof(::greptime::v1::region::StrictWindow)}, { 257, -1, -1, sizeof(::greptime::v1::region::CompactRequest)}, { 267, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)}, - { 274, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, - { 282, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)}, - { 291, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)}, - { 298, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)}, - { 306, -1, -1, sizeof(::greptime::v1::region::SyncRequest)}, - { 316, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)}, + { 277, -1, -1, sizeof(::greptime::v1::region::All)}, + { 283, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)}, + { 291, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)}, + { 300, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)}, + { 307, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)}, + { 315, -1, -1, sizeof(::greptime::v1::region::SyncRequest)}, + { 325, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -917,6 +940,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::region::_StrictWindow_default_instance_._instance, &::greptime::v1::region::_CompactRequest_default_instance_._instance, &::greptime::v1::region::_TruncateRequest_default_instance_._instance, + &::greptime::v1::region::_All_default_instance_._instance, &::greptime::v1::region::_RegionColumnDef_default_instance_._instance, &::greptime::v1::region::_BulkInsertRequest_default_instance_._instance, &::greptime::v1::region::_MitoManifestInfo_default_instance_._instance, @@ -1025,26 +1049,29 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P "\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region." "RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept" "ime.v1.region.StrictWindowH\000B\t\n\007options\"" - "$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n" - "\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g" - "reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r\"" - "Z\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022" - "*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.ArrowIp" - "cH\000B\006\n\004body\"1\n\020MitoManifestInfo\022\035\n\025data_" - "manifest_version\030\001 \001(\004\"V\n\022MetricManifest" - "Info\022\035\n\025data_manifest_version\030\001 \001(\004\022!\n\031m" - "etadata_manifest_version\030\002 \001(\004\"\275\001\n\013SyncR" - "equest\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_manife" - "st_info\030\002 \001(\0132$.greptime.v1.region.MitoM" - "anifestInfoH\000\022F\n\024metric_manifest_info\030\003 " - "\001(\0132&.greptime.v1.region.MetricManifestI" - "nfoH\000B\017\n\rmanifest_info\")\n\023ListMetadataRe" - "quest\022\022\n\nregion_ids\030\001 \003(\0042Y\n\006Region\022O\n\006H" - "andle\022!.greptime.v1.region.RegionRequest" - "\032\".greptime.v1.region.RegionResponseB]\n\025" - "io.greptime.v1.regionB\006ServerZ_impl_.kind_.all_; +} +const ::greptime::v1::TimeRanges& +TruncateRequest::_Internal::time_ranges(const TruncateRequest* msg) { + return *msg->_impl_.kind_.time_ranges_; +} +void TruncateRequest::set_allocated_all(::greptime::v1::region::All* all) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (all) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(all); + if (message_arena != submessage_arena) { + all = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, all, submessage_arena); + } + set_has_all(); + _impl_.kind_.all_ = all; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.TruncateRequest.all) +} +void TruncateRequest::set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (time_ranges) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(time_ranges)); + if (message_arena != submessage_arena) { + time_ranges = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, time_ranges, submessage_arena); + } + set_has_time_ranges(); + _impl_.kind_.time_ranges_ = time_ranges; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.region.TruncateRequest.time_ranges) +} +void TruncateRequest::clear_time_ranges() { + if (_internal_has_time_ranges()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.time_ranges_; + } + clear_has_kind(); + } +} TruncateRequest::TruncateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -8536,10 +8612,28 @@ TruncateRequest::TruncateRequest(const TruncateRequest& from) TruncateRequest* const _this = this; (void)_this; new (&_impl_) Impl_{ decltype(_impl_.region_id_){} - , /*decltype(_impl_._cached_size_)*/{}}; + , decltype(_impl_.kind_){} + , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{}}; _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); _this->_impl_.region_id_ = from._impl_.region_id_; + clear_has_kind(); + switch (from.kind_case()) { + case kAll: { + _this->_internal_mutable_all()->::greptime::v1::region::All::MergeFrom( + from._internal_all()); + break; + } + case kTimeRanges: { + _this->_internal_mutable_time_ranges()->::greptime::v1::TimeRanges::MergeFrom( + from._internal_time_ranges()); + break; + } + case KIND_NOT_SET: { + break; + } + } // @@protoc_insertion_point(copy_constructor:greptime.v1.region.TruncateRequest) } @@ -8549,8 +8643,11 @@ inline void TruncateRequest::SharedCtor( (void)is_message_owned; new (&_impl_) Impl_{ decltype(_impl_.region_id_){uint64_t{0u}} + , decltype(_impl_.kind_){} , /*decltype(_impl_._cached_size_)*/{} + , /*decltype(_impl_._oneof_case_)*/{} }; + clear_has_kind(); } TruncateRequest::~TruncateRequest() { @@ -8564,12 +8661,38 @@ TruncateRequest::~TruncateRequest() { inline void TruncateRequest::SharedDtor() { GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + if (has_kind()) { + clear_kind(); + } } void TruncateRequest::SetCachedSize(int size) const { _impl_._cached_size_.Set(size); } +void TruncateRequest::clear_kind() { +// @@protoc_insertion_point(one_of_clear_start:greptime.v1.region.TruncateRequest) + switch (kind_case()) { + case kAll: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.all_; + } + break; + } + case kTimeRanges: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.time_ranges_; + } + break; + } + case KIND_NOT_SET: { + break; + } + } + _impl_._oneof_case_[0] = KIND_NOT_SET; +} + + void TruncateRequest::Clear() { // @@protoc_insertion_point(message_clear_start:greptime.v1.region.TruncateRequest) uint32_t cached_has_bits = 0; @@ -8577,6 +8700,7 @@ void TruncateRequest::Clear() { (void) cached_has_bits; _impl_.region_id_ = uint64_t{0u}; + clear_kind(); _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); } @@ -8594,6 +8718,22 @@ const char* TruncateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContex } else goto handle_unusual; continue; + // .greptime.v1.region.All all = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(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(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_time_ranges(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; default: goto handle_unusual; } // switch @@ -8629,6 +8769,20 @@ uint8_t* TruncateRequest::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_region_id(), target); } + // .greptime.v1.region.All all = 2; + if (_internal_has_all()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(2, _Internal::all(this), + _Internal::all(this).GetCachedSize(), target, stream); + } + + // .greptime.v1.TimeRanges time_ranges = 3; + if (_internal_has_time_ranges()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(3, _Internal::time_ranges(this), + _Internal::time_ranges(this).GetCachedSize(), target, stream); + } + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); @@ -8650,6 +8804,25 @@ size_t TruncateRequest::ByteSizeLong() const { total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_region_id()); } + switch (kind_case()) { + // .greptime.v1.region.All all = 2; + case kAll: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.all_); + break; + } + // .greptime.v1.TimeRanges time_ranges = 3; + case kTimeRanges: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.time_ranges_); + break; + } + case KIND_NOT_SET: { + break; + } + } return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); } @@ -8671,6 +8844,21 @@ void TruncateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const if (from._internal_region_id() != 0) { _this->_internal_set_region_id(from._internal_region_id()); } + switch (from.kind_case()) { + case kAll: { + _this->_internal_mutable_all()->::greptime::v1::region::All::MergeFrom( + from._internal_all()); + break; + } + case kTimeRanges: { + _this->_internal_mutable_time_ranges()->::greptime::v1::TimeRanges::MergeFrom( + from._internal_time_ranges()); + break; + } + case KIND_NOT_SET: { + break; + } + } _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); } @@ -8689,6 +8877,8 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) { using std::swap; _internal_metadata_.InternalSwap(&other->_internal_metadata_); swap(_impl_.region_id_, other->_impl_.region_id_); + swap(_impl_.kind_, other->_impl_.kind_); + swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]); } ::PROTOBUF_NAMESPACE_ID::Metadata TruncateRequest::GetMetadata() const { @@ -8699,6 +8889,46 @@ void TruncateRequest::InternalSwap(TruncateRequest* other) { // =================================================================== +class All::_Internal { + public: +}; + +All::All(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase(arena, is_message_owned) { + // @@protoc_insertion_point(arena_constructor:greptime.v1.region.All) +} +All::All(const All& from) + : ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase() { + All* const _this = this; (void)_this; + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.region.All) +} + + + + + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData All::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl, + ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl, +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*All::GetClassData() const { return &_class_data_; } + + + + + + + +::PROTOBUF_NAMESPACE_ID::Metadata All::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]); +} + +// =================================================================== + class RegionColumnDef::_Internal { public: static const ::greptime::v1::ColumnDef& column_def(const RegionColumnDef* msg); @@ -8924,7 +9154,7 @@ void RegionColumnDef::InternalSwap(RegionColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RegionColumnDef::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[30]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[31]); } // =================================================================== @@ -9207,7 +9437,7 @@ void BulkInsertRequest::InternalSwap(BulkInsertRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata BulkInsertRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[31]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[32]); } // =================================================================== @@ -9385,7 +9615,7 @@ void MitoManifestInfo::InternalSwap(MitoManifestInfo* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MitoManifestInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[32]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[33]); } // =================================================================== @@ -9596,7 +9826,7 @@ void MetricManifestInfo::InternalSwap(MetricManifestInfo* other) { ::PROTOBUF_NAMESPACE_ID::Metadata MetricManifestInfo::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[33]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[34]); } // =================================================================== @@ -9928,7 +10158,7 @@ void SyncRequest::InternalSwap(SyncRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata SyncRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[34]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[35]); } // =================================================================== @@ -10121,7 +10351,7 @@ void ListMetadataRequest::InternalSwap(ListMetadataRequest* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ListMetadataRequest::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, - file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[35]); + file_level_metadata_greptime_2fv1_2fregion_2fserver_2eproto[36]); } // @@protoc_insertion_point(namespace_scope) @@ -10249,6 +10479,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::region::TruncateRequest* Arena::CreateMaybeMessage< ::greptime::v1::region::TruncateRequest >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::TruncateRequest >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::region::All* +Arena::CreateMaybeMessage< ::greptime::v1::region::All >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::region::All >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::region::RegionColumnDef* Arena::CreateMaybeMessage< ::greptime::v1::region::RegionColumnDef >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::region::RegionColumnDef >(arena); diff --git a/c++/greptime/v1/region/server.pb.h b/c++/greptime/v1/region/server.pb.h index ff2ab5b..3d47bea 100644 --- a/c++/greptime/v1/region/server.pb.h +++ b/c++/greptime/v1/region/server.pb.h @@ -60,6 +60,9 @@ extern AddColumnDefaultTypeInternal _AddColumn_default_instance_; class AddColumns; struct AddColumnsDefaultTypeInternal; extern AddColumnsDefaultTypeInternal _AddColumns_default_instance_; +class All; +struct AllDefaultTypeInternal; +extern AllDefaultTypeInternal _All_default_instance_; class AlterRequest; struct AlterRequestDefaultTypeInternal; extern AlterRequestDefaultTypeInternal _AlterRequest_default_instance_; @@ -168,6 +171,7 @@ extern TruncateRequestDefaultTypeInternal _TruncateRequest_default_instance_; PROTOBUF_NAMESPACE_OPEN template<> ::greptime::v1::region::AddColumn* Arena::CreateMaybeMessage<::greptime::v1::region::AddColumn>(Arena*); template<> ::greptime::v1::region::AddColumns* Arena::CreateMaybeMessage<::greptime::v1::region::AddColumns>(Arena*); +template<> ::greptime::v1::region::All* Arena::CreateMaybeMessage<::greptime::v1::region::All>(Arena*); template<> ::greptime::v1::region::AlterRequest* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequest>(Arena*); template<> ::greptime::v1::region::AlterRequests* Arena::CreateMaybeMessage<::greptime::v1::region::AlterRequests>(Arena*); template<> ::greptime::v1::region::BulkInsertRequest* Arena::CreateMaybeMessage<::greptime::v1::region::BulkInsertRequest>(Arena*); @@ -5224,6 +5228,12 @@ class TruncateRequest final : static const TruncateRequest& default_instance() { return *internal_default_instance(); } + enum KindCase { + kAll = 2, + kTimeRanges = 3, + KIND_NOT_SET = 0, + }; + static inline const TruncateRequest* internal_default_instance() { return reinterpret_cast( &_TruncateRequest_default_instance_); @@ -5303,6 +5313,8 @@ class TruncateRequest final : enum : int { kRegionIdFieldNumber = 1, + kAllFieldNumber = 2, + kTimeRangesFieldNumber = 3, }; // uint64 region_id = 1; void clear_region_id(); @@ -5313,18 +5325,187 @@ class TruncateRequest final : void _internal_set_region_id(uint64_t value); public: + // .greptime.v1.region.All all = 2; + bool has_all() const; + private: + bool _internal_has_all() const; + public: + void clear_all(); + const ::greptime::v1::region::All& all() const; + PROTOBUF_NODISCARD ::greptime::v1::region::All* release_all(); + ::greptime::v1::region::All* mutable_all(); + void set_allocated_all(::greptime::v1::region::All* all); + private: + const ::greptime::v1::region::All& _internal_all() const; + ::greptime::v1::region::All* _internal_mutable_all(); + public: + void unsafe_arena_set_allocated_all( + ::greptime::v1::region::All* all); + ::greptime::v1::region::All* unsafe_arena_release_all(); + + // .greptime.v1.TimeRanges time_ranges = 3; + bool has_time_ranges() const; + private: + bool _internal_has_time_ranges() const; + public: + void clear_time_ranges(); + const ::greptime::v1::TimeRanges& time_ranges() const; + PROTOBUF_NODISCARD ::greptime::v1::TimeRanges* release_time_ranges(); + ::greptime::v1::TimeRanges* mutable_time_ranges(); + void set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges); + private: + const ::greptime::v1::TimeRanges& _internal_time_ranges() const; + ::greptime::v1::TimeRanges* _internal_mutable_time_ranges(); + public: + void unsafe_arena_set_allocated_time_ranges( + ::greptime::v1::TimeRanges* time_ranges); + ::greptime::v1::TimeRanges* unsafe_arena_release_time_ranges(); + + void clear_kind(); + KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.region.TruncateRequest) private: class _Internal; + void set_has_all(); + void set_has_time_ranges(); + + inline bool has_kind() const; + inline void clear_has_kind(); + + template 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( + &_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(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 friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - uint64_t region_id_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; - union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fregion_2fserver_2eproto; }; // ------------------------------------------------------------------- @@ -5377,7 +5558,7 @@ class RegionColumnDef final : &_RegionColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 30; + 31; friend void swap(RegionColumnDef& a, RegionColumnDef& b) { a.Swap(&b); @@ -5550,7 +5731,7 @@ class BulkInsertRequest final : &_BulkInsertRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 31; + 32; friend void swap(BulkInsertRequest& a, BulkInsertRequest& b) { a.Swap(&b); @@ -5730,7 +5911,7 @@ class MitoManifestInfo final : &_MitoManifestInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 32; + 33; friend void swap(MitoManifestInfo& a, MitoManifestInfo& b) { a.Swap(&b); @@ -5878,7 +6059,7 @@ class MetricManifestInfo final : &_MetricManifestInfo_default_instance_); } static constexpr int kIndexInFileMessages = - 33; + 34; friend void swap(MetricManifestInfo& a, MetricManifestInfo& b) { a.Swap(&b); @@ -6043,7 +6224,7 @@ class SyncRequest final : &_SyncRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 34; + 35; friend void swap(SyncRequest& a, SyncRequest& b) { a.Swap(&b); @@ -6244,7 +6425,7 @@ class ListMetadataRequest final : &_ListMetadataRequest_default_instance_); } static constexpr int kIndexInFileMessages = - 35; + 36; friend void swap(ListMetadataRequest& a, ListMetadataRequest& b) { a.Swap(&b); @@ -10568,6 +10749,159 @@ inline void TruncateRequest::set_region_id(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.region.TruncateRequest.region_id) } +// .greptime.v1.region.All all = 2; +inline bool TruncateRequest::_internal_has_all() const { + return kind_case() == kAll; +} +inline bool TruncateRequest::has_all() const { + return _internal_has_all(); +} +inline void TruncateRequest::set_has_all() { + _impl_._oneof_case_[0] = kAll; +} +inline void TruncateRequest::clear_all() { + if (_internal_has_all()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.all_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::region::All* TruncateRequest::release_all() { + // @@protoc_insertion_point(field_release:greptime.v1.region.TruncateRequest.all) + if (_internal_has_all()) { + clear_has_kind(); + ::greptime::v1::region::All* temp = _impl_.kind_.all_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.all_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::region::All& TruncateRequest::_internal_all() const { + return _internal_has_all() + ? *_impl_.kind_.all_ + : reinterpret_cast< ::greptime::v1::region::All&>(::greptime::v1::region::_All_default_instance_); +} +inline const ::greptime::v1::region::All& TruncateRequest::all() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.TruncateRequest.all) + return _internal_all(); +} +inline ::greptime::v1::region::All* TruncateRequest::unsafe_arena_release_all() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.TruncateRequest.all) + if (_internal_has_all()) { + clear_has_kind(); + ::greptime::v1::region::All* temp = _impl_.kind_.all_; + _impl_.kind_.all_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TruncateRequest::unsafe_arena_set_allocated_all(::greptime::v1::region::All* all) { + clear_kind(); + if (all) { + set_has_all(); + _impl_.kind_.all_ = all; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.TruncateRequest.all) +} +inline ::greptime::v1::region::All* TruncateRequest::_internal_mutable_all() { + if (!_internal_has_all()) { + clear_kind(); + set_has_all(); + _impl_.kind_.all_ = CreateMaybeMessage< ::greptime::v1::region::All >(GetArenaForAllocation()); + } + return _impl_.kind_.all_; +} +inline ::greptime::v1::region::All* TruncateRequest::mutable_all() { + ::greptime::v1::region::All* _msg = _internal_mutable_all(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.TruncateRequest.all) + return _msg; +} + +// .greptime.v1.TimeRanges time_ranges = 3; +inline bool TruncateRequest::_internal_has_time_ranges() const { + return kind_case() == kTimeRanges; +} +inline bool TruncateRequest::has_time_ranges() const { + return _internal_has_time_ranges(); +} +inline void TruncateRequest::set_has_time_ranges() { + _impl_._oneof_case_[0] = kTimeRanges; +} +inline ::greptime::v1::TimeRanges* TruncateRequest::release_time_ranges() { + // @@protoc_insertion_point(field_release:greptime.v1.region.TruncateRequest.time_ranges) + if (_internal_has_time_ranges()) { + clear_has_kind(); + ::greptime::v1::TimeRanges* temp = _impl_.kind_.time_ranges_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.time_ranges_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::TimeRanges& TruncateRequest::_internal_time_ranges() const { + return _internal_has_time_ranges() + ? *_impl_.kind_.time_ranges_ + : reinterpret_cast< ::greptime::v1::TimeRanges&>(::greptime::v1::_TimeRanges_default_instance_); +} +inline const ::greptime::v1::TimeRanges& TruncateRequest::time_ranges() const { + // @@protoc_insertion_point(field_get:greptime.v1.region.TruncateRequest.time_ranges) + return _internal_time_ranges(); +} +inline ::greptime::v1::TimeRanges* TruncateRequest::unsafe_arena_release_time_ranges() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.TruncateRequest.time_ranges) + if (_internal_has_time_ranges()) { + clear_has_kind(); + ::greptime::v1::TimeRanges* temp = _impl_.kind_.time_ranges_; + _impl_.kind_.time_ranges_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void TruncateRequest::unsafe_arena_set_allocated_time_ranges(::greptime::v1::TimeRanges* time_ranges) { + clear_kind(); + if (time_ranges) { + set_has_time_ranges(); + _impl_.kind_.time_ranges_ = time_ranges; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.TruncateRequest.time_ranges) +} +inline ::greptime::v1::TimeRanges* TruncateRequest::_internal_mutable_time_ranges() { + if (!_internal_has_time_ranges()) { + clear_kind(); + set_has_time_ranges(); + _impl_.kind_.time_ranges_ = CreateMaybeMessage< ::greptime::v1::TimeRanges >(GetArenaForAllocation()); + } + return _impl_.kind_.time_ranges_; +} +inline ::greptime::v1::TimeRanges* TruncateRequest::mutable_time_ranges() { + ::greptime::v1::TimeRanges* _msg = _internal_mutable_time_ranges(); + // @@protoc_insertion_point(field_mutable:greptime.v1.region.TruncateRequest.time_ranges) + return _msg; +} + +inline bool TruncateRequest::has_kind() const { + return kind_case() != KIND_NOT_SET; +} +inline void TruncateRequest::clear_has_kind() { + _impl_._oneof_case_[0] = KIND_NOT_SET; +} +inline TruncateRequest::KindCase TruncateRequest::kind_case() const { + return TruncateRequest::KindCase(_impl_._oneof_case_[0]); +} +// ------------------------------------------------------------------- + +// All + // ------------------------------------------------------------------- // RegionColumnDef @@ -11149,6 +11483,8 @@ ListMetadataRequest::mutable_region_ids() { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/common.pb.go b/go/greptime/v1/common.pb.go index bff8258..6727b02 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -210,6 +210,60 @@ func (ColumnDataType) EnumDescriptor() ([]byte, []int) { 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 const ( @@ -237,11 +291,11 @@ func (x JsonTypeExtension) String() string { } 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 { - return &file_greptime_v1_common_proto_enumTypes[2] + return &file_greptime_v1_common_proto_enumTypes[3] } func (x JsonTypeExtension) Number() protoreflect.EnumNumber { @@ -250,7 +304,7 @@ func (x JsonTypeExtension) Number() protoreflect.EnumNumber { // Deprecated: Use JsonTypeExtension.Descriptor instead. 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 { @@ -1158,6 +1212,117 @@ func (x *IntervalMonthDayNano) GetNanoseconds() int64 { 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. type Decimal128 struct { state protoimpl.MessageState @@ -1171,7 +1336,7 @@ type Decimal128 struct { func (x *Decimal128) Reset() { *x = Decimal128{} 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.StoreMessageInfo(mi) } @@ -1184,7 +1349,7 @@ func (x *Decimal128) String() string { func (*Decimal128) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1197,7 +1362,7 @@ func (x *Decimal128) ProtoReflect() protoreflect.Message { // Deprecated: Use Decimal128.ProtoReflect.Descriptor instead. 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 { @@ -1231,7 +1396,7 @@ type ColumnDataTypeExtension struct { func (x *ColumnDataTypeExtension) Reset() { *x = ColumnDataTypeExtension{} 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.StoreMessageInfo(mi) } @@ -1244,7 +1409,7 @@ func (x *ColumnDataTypeExtension) String() string { func (*ColumnDataTypeExtension) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1257,7 +1422,7 @@ func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead. 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 { @@ -1323,7 +1488,7 @@ type DecimalTypeExtension struct { func (x *DecimalTypeExtension) Reset() { *x = DecimalTypeExtension{} 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.StoreMessageInfo(mi) } @@ -1336,7 +1501,7 @@ func (x *DecimalTypeExtension) String() string { func (*DecimalTypeExtension) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1349,7 +1514,7 @@ func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead. 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 { @@ -1377,7 +1542,7 @@ type VectorTypeExtension struct { func (x *VectorTypeExtension) Reset() { *x = VectorTypeExtension{} 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.StoreMessageInfo(mi) } @@ -1390,7 +1555,7 @@ func (x *VectorTypeExtension) String() string { func (*VectorTypeExtension) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1403,7 +1568,7 @@ func (x *VectorTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use VectorTypeExtension.ProtoReflect.Descriptor instead. 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 { @@ -1445,7 +1610,7 @@ type ColumnOptions struct { func (x *ColumnOptions) Reset() { *x = ColumnOptions{} 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.StoreMessageInfo(mi) } @@ -1458,7 +1623,7 @@ func (x *ColumnOptions) String() string { func (*ColumnOptions) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1471,7 +1636,7 @@ func (x *ColumnOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnOptions.ProtoReflect.Descriptor instead. 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 { @@ -1494,7 +1659,7 @@ type ArrowIpc struct { func (x *ArrowIpc) Reset() { *x = ArrowIpc{} 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.StoreMessageInfo(mi) } @@ -1507,7 +1672,7 @@ func (x *ArrowIpc) String() string { func (*ArrowIpc) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1520,7 +1685,7 @@ func (x *ArrowIpc) ProtoReflect() protoreflect.Message { // Deprecated: Use ArrowIpc.ProtoReflect.Descriptor instead. 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 { @@ -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, 0x04, 0x64, 0x61, 0x79, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x6e, 0x61, 0x6e, 0x6f, - 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 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, 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, @@ -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, 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, - 0x2a, 0x24, 0x0a, 0x11, 0x4a, 0x73, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, - 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0f, 0x0a, 0x0b, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x49, - 0x4e, 0x41, 0x52, 0x59, 0x10, 0x00, 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, + 0x2a, 0x48, 0x0a, 0x08, 0x54, 0x69, 0x6d, 0x65, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x0f, 0x0a, 0x0b, + 0x4d, 0x49, 0x4c, 0x4c, 0x49, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, + 0x06, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x49, 0x43, + 0x52, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x41, + 0x4e, 0x4f, 0x53, 0x45, 0x43, 0x4f, 0x4e, 0x44, 0x10, 0x03, 0x2a, 0x24, 0x0a, 0x11, 0x4a, 0x73, + 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, + 0x0f, 0x0a, 0x0b, 0x4a, 0x53, 0x4f, 0x4e, 0x5f, 0x42, 0x49, 0x4e, 0x41, 0x52, 0x59, 0x10, 0x00, + 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 ( @@ -1767,61 +1948,66 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte { return file_greptime_v1_common_proto_rawDescData } -var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 26) +var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 4) +var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 28) var file_greptime_v1_common_proto_goTypes = []interface{}{ (SemanticType)(0), // 0: greptime.v1.SemanticType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType - (JsonTypeExtension)(0), // 2: greptime.v1.JsonTypeExtension - (*QueryContext)(nil), // 3: greptime.v1.QueryContext - (*SnapshotSequences)(nil), // 4: greptime.v1.SnapshotSequences - (*ExplainOptions)(nil), // 5: greptime.v1.ExplainOptions - (*RequestHeader)(nil), // 6: greptime.v1.RequestHeader - (*ResponseHeader)(nil), // 7: greptime.v1.ResponseHeader - (*Status)(nil), // 8: greptime.v1.Status - (*AuthHeader)(nil), // 9: greptime.v1.AuthHeader - (*Basic)(nil), // 10: greptime.v1.Basic - (*Token)(nil), // 11: greptime.v1.Token - (*TableName)(nil), // 12: greptime.v1.TableName - (*AffectedRows)(nil), // 13: greptime.v1.AffectedRows - (*Metrics)(nil), // 14: greptime.v1.Metrics - (*ExpireAfter)(nil), // 15: greptime.v1.ExpireAfter - (*FlightMetadata)(nil), // 16: greptime.v1.FlightMetadata - (*IntervalMonthDayNano)(nil), // 17: greptime.v1.IntervalMonthDayNano - (*Decimal128)(nil), // 18: greptime.v1.Decimal128 - (*ColumnDataTypeExtension)(nil), // 19: greptime.v1.ColumnDataTypeExtension - (*DecimalTypeExtension)(nil), // 20: greptime.v1.DecimalTypeExtension - (*VectorTypeExtension)(nil), // 21: greptime.v1.VectorTypeExtension - (*ColumnOptions)(nil), // 22: greptime.v1.ColumnOptions - (*ArrowIpc)(nil), // 23: greptime.v1.ArrowIpc - nil, // 24: greptime.v1.QueryContext.ExtensionsEntry - nil, // 25: greptime.v1.SnapshotSequences.SstMinSequencesEntry - nil, // 26: greptime.v1.SnapshotSequences.SnapshotSeqsEntry - nil, // 27: greptime.v1.RequestHeader.TracingContextEntry - nil, // 28: greptime.v1.ColumnOptions.OptionsEntry + (TimeUnit)(0), // 2: greptime.v1.TimeUnit + (JsonTypeExtension)(0), // 3: greptime.v1.JsonTypeExtension + (*QueryContext)(nil), // 4: greptime.v1.QueryContext + (*SnapshotSequences)(nil), // 5: greptime.v1.SnapshotSequences + (*ExplainOptions)(nil), // 6: greptime.v1.ExplainOptions + (*RequestHeader)(nil), // 7: greptime.v1.RequestHeader + (*ResponseHeader)(nil), // 8: greptime.v1.ResponseHeader + (*Status)(nil), // 9: greptime.v1.Status + (*AuthHeader)(nil), // 10: greptime.v1.AuthHeader + (*Basic)(nil), // 11: greptime.v1.Basic + (*Token)(nil), // 12: greptime.v1.Token + (*TableName)(nil), // 13: greptime.v1.TableName + (*AffectedRows)(nil), // 14: greptime.v1.AffectedRows + (*Metrics)(nil), // 15: greptime.v1.Metrics + (*ExpireAfter)(nil), // 16: greptime.v1.ExpireAfter + (*FlightMetadata)(nil), // 17: greptime.v1.FlightMetadata + (*IntervalMonthDayNano)(nil), // 18: greptime.v1.IntervalMonthDayNano + (*TimeRange)(nil), // 19: greptime.v1.TimeRange + (*TimeRanges)(nil), // 20: greptime.v1.TimeRanges + (*Decimal128)(nil), // 21: greptime.v1.Decimal128 + (*ColumnDataTypeExtension)(nil), // 22: greptime.v1.ColumnDataTypeExtension + (*DecimalTypeExtension)(nil), // 23: greptime.v1.DecimalTypeExtension + (*VectorTypeExtension)(nil), // 24: greptime.v1.VectorTypeExtension + (*ColumnOptions)(nil), // 25: greptime.v1.ColumnOptions + (*ArrowIpc)(nil), // 26: greptime.v1.ArrowIpc + nil, // 27: greptime.v1.QueryContext.ExtensionsEntry + 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{ - 24, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry - 4, // 1: greptime.v1.QueryContext.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences - 5, // 2: greptime.v1.QueryContext.explain:type_name -> greptime.v1.ExplainOptions - 25, // 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 - 9, // 5: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader - 27, // 6: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry - 8, // 7: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status - 10, // 8: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic - 11, // 9: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token - 13, // 10: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows - 14, // 11: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics - 20, // 12: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension - 2, // 13: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension - 21, // 14: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension - 28, // 15: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry - 16, // [16:16] is the sub-list for method output_type - 16, // [16:16] is the sub-list for method input_type - 16, // [16:16] is the sub-list for extension type_name - 16, // [16:16] is the sub-list for extension extendee - 0, // [0:16] is the sub-list for field type_name + 27, // 0: greptime.v1.QueryContext.extensions:type_name -> greptime.v1.QueryContext.ExtensionsEntry + 5, // 1: greptime.v1.QueryContext.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences + 6, // 2: greptime.v1.QueryContext.explain:type_name -> greptime.v1.ExplainOptions + 28, // 3: greptime.v1.SnapshotSequences.sst_min_sequences:type_name -> greptime.v1.SnapshotSequences.SstMinSequencesEntry + 29, // 4: greptime.v1.SnapshotSequences.snapshot_seqs:type_name -> greptime.v1.SnapshotSequences.SnapshotSeqsEntry + 10, // 5: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader + 30, // 6: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry + 9, // 7: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status + 11, // 8: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic + 12, // 9: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token + 14, // 10: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows + 15, // 11: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics + 2, // 12: greptime.v1.TimeRanges.time_unit:type_name -> greptime.v1.TimeUnit + 19, // 13: greptime.v1.TimeRanges.time_ranges:type_name -> greptime.v1.TimeRange + 23, // 14: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension + 3, // 15: greptime.v1.ColumnDataTypeExtension.json_type:type_name -> greptime.v1.JsonTypeExtension + 24, // 16: greptime.v1.ColumnDataTypeExtension.vector_type:type_name -> greptime.v1.VectorTypeExtension + 31, // 17: greptime.v1.ColumnOptions.options:type_name -> greptime.v1.ColumnOptions.OptionsEntry + 18, // [18:18] is the sub-list for method output_type + 18, // [18:18] is the sub-list for method input_type + 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() } @@ -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{} { - switch v := v.(*Decimal128); i { + switch v := v.(*TimeRange); i { case 0: return &v.state 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{} { - switch v := v.(*ColumnDataTypeExtension); i { + switch v := v.(*TimeRanges); i { case 0: return &v.state 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{} { - switch v := v.(*DecimalTypeExtension); i { + switch v := v.(*Decimal128); i { case 0: return &v.state 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{} { - switch v := v.(*VectorTypeExtension); i { + switch v := v.(*ColumnDataTypeExtension); i { case 0: return &v.state 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{} { - switch v := v.(*ColumnOptions); i { + switch v := v.(*DecimalTypeExtension); i { case 0: return &v.state 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{} { + 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 { case 0: return &v.state @@ -2087,7 +2297,7 @@ func file_greptime_v1_common_proto_init() { (*AuthHeader_Basic)(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_JsonType)(nil), (*ColumnDataTypeExtension_VectorType)(nil), @@ -2097,8 +2307,8 @@ func file_greptime_v1_common_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_common_proto_rawDesc, - NumEnums: 3, - NumMessages: 26, + NumEnums: 4, + NumMessages: 28, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index e7ca637..85ad5ef 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -1725,6 +1725,8 @@ type TruncateTableExpr struct { 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"` 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() { @@ -1787,6 +1789,13 @@ func (x *TruncateTableExpr) GetTableId() *TableId { return nil } +func (x *TruncateTableExpr) GetTimeRanges() *TimeRanges { + if x != nil { + return x.TimeRanges + } + return nil +} + type DropDatabaseExpr struct { state protoimpl.MessageState 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, 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, - 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, 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, @@ -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, 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, - 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 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, 0x24, 0x0a, 0x0e, 0x64, 0x72, - 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, - 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, - 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x4d, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x5f, - 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, - 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 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, + 0x49, 0x64, 0x12, 0x38, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, 0x22, 0x7c, 0x0a, 0x10, + 0x44, 0x72, 0x6f, 0x70, 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, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, + 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, + 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, + 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x73, 0x22, 0x4d, 0x0a, 0x0c, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x73, 0x12, 0x3d, 0x0a, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, + 0x22, 0x49, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x12, + 0x3a, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x0b, + 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, + 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, - 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, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, - 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, - 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, - 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x30, 0x0a, 0x06, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 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, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x4b, 0x0a, 0x0f, 0x53, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x27, - 0x0a, 0x11, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, - 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, - 0x52, 0x02, 0x69, 0x64, 0x22, 0x18, 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, - 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, - 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, - 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, - 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, - 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, - 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, - 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, - 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, - 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, - 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, - 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, - 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, - 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, - 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10, 0x01, 0x22, 0xaa, 0x02, 0x0a, 0x0b, 0x53, 0x65, - 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, - 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x61, 0x6e, 0x61, - 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, - 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, - 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x07, - 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x75, 0x6c, 0x6c, - 0x74, 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x07, 0x62, 0x61, 0x63, - 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, - 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, - 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, - 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x07, 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, 0x46, - 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 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, 0x2e, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x49, - 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 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, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, - 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, 0x64, 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, 0xe8, 0x01, 0x0a, 0x0b, 0x53, - 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, 0x12, 0x16, 0x0a, 0x06, 0x65, - 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, - 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, - 0x61, 0x72, 0x69, 0x74, 0x79, 0x12, 0x4e, 0x0a, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, - 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, + 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x58, 0x0a, 0x15, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, + 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x13, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x30, 0x0a, 0x06, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 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, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x4b, 0x0a, 0x0f, 0x53, + 0x65, 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x38, + 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x27, 0x0a, 0x11, 0x55, 0x6e, 0x73, 0x65, + 0x74, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, + 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, + 0x73, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, + 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x18, + 0x0a, 0x06, 0x46, 0x6c, 0x6f, 0x77, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8e, 0x03, 0x0a, 0x09, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, + 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, + 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, + 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, + 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, + 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, + 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, + 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, + 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, + 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, + 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, + 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, + 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, + 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, + 0x52, 0x10, 0x01, 0x22, 0xaa, 0x02, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x46, 0x75, 0x6c, 0x6c, 0x74, + 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x31, 0x0a, 0x08, + 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6e, 0x61, + 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x52, 0x08, 0x61, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, + 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, + 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x12, 0x36, 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, + 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x61, + 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x52, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x20, + 0x0a, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x06, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, + 0x12, 0x2e, 0x0a, 0x13, 0x66, 0x61, 0x6c, 0x73, 0x65, 0x5f, 0x70, 0x6f, 0x73, 0x69, 0x74, 0x69, + 0x76, 0x65, 0x5f, 0x72, 0x61, 0x74, 0x65, 0x18, 0x07, 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, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, + 0x74, 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, 0x2e, 0x0a, 0x0b, 0x53, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x65, + 0x64, 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, 0x30, 0x0a, 0x0d, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x76, 0x65, 0x72, + 0x74, 0x65, 0x64, 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, 0xe8, 0x01, 0x0a, 0x0b, 0x53, 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, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x20, 0x0a, + 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x04, 0x52, 0x0b, 0x67, 0x72, 0x61, 0x6e, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x12, + 0x4e, 0x0a, 0x13, 0x73, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 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, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 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, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, - 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x14, 0x75, 0x6e, 0x73, - 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x74, - 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, - 0x45, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, - 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, - 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, - 0x79, 0x73, 0x22, 0x82, 0x04, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, - 0x67, 0x67, 0x65, 0x72, 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, 0x21, 0x0a, 0x0c, 0x74, - 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, - 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, - 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, - 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, - 0x6c, 0x12, 0x36, 0x0a, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, - 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, - 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x51, 0x0a, - 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, - 0x70, 0x72, 0x2e, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, - 0x28, 0x04, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, - 0x61, 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, 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, 0x6c, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, - 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, - 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, - 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x77, 0x65, - 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, 0x0e, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x96, 0x01, 0x0a, 0x0e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, - 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x04, 0x6f, 0x70, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x04, 0x6f, 0x70, 0x74, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4f, 0x70, 0x74, 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, 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, 0x7d, - 0x0a, 0x0f, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 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, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, - 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, - 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x2a, 0x24, 0x0a, - 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, - 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, - 0x45, 0x10, 0x01, 0x2a, 0x29, 0x0a, 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, - 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x41, 0x4e, 0x54, 0x49, 0x56, - 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x10, 0x01, 0x2a, 0x25, - 0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, 0x0c, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x5f, 0x46, 0x49, 0x4c, - 0x54, 0x45, 0x52, 0x10, 0x00, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x59, 0x0a, 0x16, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, + 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x14, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, + 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, + 0x69, 0x6e, 0x64, 0x22, 0x5b, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, + 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x45, 0x0a, 0x14, 0x73, 0x65, 0x74, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x65, + 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x22, 0x2a, 0x0a, 0x14, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, + 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6b, 0x65, 0x79, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x6b, 0x65, 0x79, 0x73, 0x22, 0x82, 0x04, 0x0a, + 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 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, 0x21, 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, + 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, + 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x36, 0x0a, 0x08, 0x63, + 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x6f, 0x74, 0x69, + 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x52, 0x08, 0x63, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x73, 0x12, 0x42, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, + 0x78, 0x70, 0x72, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x51, 0x0a, 0x0b, 0x61, 0x6e, 0x6e, 0x6f, 0x74, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, + 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x41, 0x6e, 0x6e, + 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x61, + 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x69, 0x6e, + 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 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, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, + 0x01, 0x1a, 0x3e, 0x0a, 0x10, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 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, 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, 0x6c, 0x0a, 0x0d, 0x4e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x43, 0x68, 0x61, 0x6e, 0x6e, + 0x65, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x37, 0x0a, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, + 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x07, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x42, + 0x0e, 0x0a, 0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, + 0x96, 0x01, 0x0a, 0x0e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x75, 0x72, 0x6c, 0x12, 0x39, 0x0a, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 0x2e, 0x57, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x4f, 0x70, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6f, 0x70, 0x74, 0x73, 0x1a, + 0x37, 0x0a, 0x09, 0x4f, 0x70, 0x74, 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, + 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, 0x7d, 0x0a, 0x0f, 0x44, 0x72, 0x6f, 0x70, + 0x54, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 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, 0x21, + 0x0a, 0x0c, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x72, 0x69, 0x67, 0x67, 0x65, 0x72, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, + 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, + 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x2a, 0x24, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, + 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, + 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, 0x01, 0x2a, 0x29, 0x0a, + 0x0f, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, + 0x12, 0x0b, 0x0a, 0x07, 0x54, 0x41, 0x4e, 0x54, 0x49, 0x56, 0x59, 0x10, 0x00, 0x12, 0x09, 0x0a, + 0x05, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x11, 0x53, 0x6b, 0x69, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x54, 0x79, 0x70, 0x65, 0x12, 0x10, 0x0a, + 0x0c, 0x42, 0x4c, 0x4f, 0x4f, 0x4d, 0x5f, 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x00, 0x42, + 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, + 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -4200,10 +4213,11 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ nil, // 55: greptime.v1.WebhookOptions.OptsEntry (*TableName)(nil), // 56: greptime.v1.TableName (*ExpireAfter)(nil), // 57: greptime.v1.ExpireAfter - (ColumnDataType)(0), // 58: greptime.v1.ColumnDataType - (*ColumnDataTypeExtension)(nil), // 59: greptime.v1.ColumnDataTypeExtension - (SemanticType)(0), // 60: greptime.v1.SemanticType - (*ColumnOptions)(nil), // 61: greptime.v1.ColumnOptions + (*TimeRanges)(nil), // 58: greptime.v1.TimeRanges + (ColumnDataType)(0), // 59: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 60: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 61: greptime.v1.SemanticType + (*ColumnOptions)(nil), // 62: greptime.v1.ColumnOptions } var file_greptime_v1_ddl_proto_depIdxs = []int32{ 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 52, // 41: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry 33, // 42: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 27, // 43: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 11, // 44: greptime.v1.DropDefaults.drop_defaults:type_name -> greptime.v1.DropDefault - 14, // 45: greptime.v1.SetDefaults.set_defaults:type_name -> greptime.v1.SetDefault - 32, // 46: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 28, // 47: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType - 35, // 48: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 36, // 49: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 58, // 50: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 59, // 51: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 29, // 52: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.Option - 58, // 53: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 60, // 54: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 59, // 55: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 61, // 56: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions - 3, // 57: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType - 0, // 58: greptime.v1.SetFulltext.analyzer:type_name -> greptime.v1.Analyzer - 1, // 59: greptime.v1.SetFulltext.backend:type_name -> greptime.v1.FulltextBackend - 2, // 60: greptime.v1.SetSkipping.skipping_index_type:type_name -> greptime.v1.SkippingIndexType - 44, // 61: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions - 45, // 62: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions - 29, // 63: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.Option - 47, // 64: greptime.v1.CreateTriggerExpr.channels:type_name -> greptime.v1.NotifyChannel - 53, // 65: greptime.v1.CreateTriggerExpr.labels:type_name -> greptime.v1.CreateTriggerExpr.LabelsEntry - 54, // 66: greptime.v1.CreateTriggerExpr.annotations:type_name -> greptime.v1.CreateTriggerExpr.AnnotationsEntry - 48, // 67: greptime.v1.NotifyChannel.webhook:type_name -> greptime.v1.WebhookOptions - 55, // 68: greptime.v1.WebhookOptions.opts:type_name -> greptime.v1.WebhookOptions.OptsEntry - 69, // [69:69] is the sub-list for method output_type - 69, // [69:69] is the sub-list for method input_type - 69, // [69:69] is the sub-list for extension type_name - 69, // [69:69] is the sub-list for extension extendee - 0, // [0:69] is the sub-list for field type_name + 58, // 43: greptime.v1.TruncateTableExpr.time_ranges:type_name -> greptime.v1.TimeRanges + 27, // 44: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 11, // 45: greptime.v1.DropDefaults.drop_defaults:type_name -> greptime.v1.DropDefault + 14, // 46: greptime.v1.SetDefaults.set_defaults:type_name -> greptime.v1.SetDefault + 32, // 47: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 28, // 48: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType + 35, // 49: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 36, // 50: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 59, // 51: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 60, // 52: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 29, // 53: greptime.v1.SetTableOptions.table_options:type_name -> greptime.v1.Option + 59, // 54: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 61, // 55: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 60, // 56: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 62, // 57: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 3, // 58: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType + 0, // 59: greptime.v1.SetFulltext.analyzer:type_name -> greptime.v1.Analyzer + 1, // 60: greptime.v1.SetFulltext.backend:type_name -> greptime.v1.FulltextBackend + 2, // 61: greptime.v1.SetSkipping.skipping_index_type:type_name -> greptime.v1.SkippingIndexType + 44, // 62: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions + 45, // 63: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions + 29, // 64: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.Option + 47, // 65: greptime.v1.CreateTriggerExpr.channels:type_name -> greptime.v1.NotifyChannel + 53, // 66: greptime.v1.CreateTriggerExpr.labels:type_name -> greptime.v1.CreateTriggerExpr.LabelsEntry + 54, // 67: greptime.v1.CreateTriggerExpr.annotations:type_name -> greptime.v1.CreateTriggerExpr.AnnotationsEntry + 48, // 68: greptime.v1.NotifyChannel.webhook:type_name -> greptime.v1.WebhookOptions + 55, // 69: greptime.v1.WebhookOptions.opts:type_name -> greptime.v1.WebhookOptions.OptsEntry + 70, // [70:70] is the sub-list for method output_type + 70, // [70:70] is the sub-list for method input_type + 70, // [70:70] is the sub-list for extension 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() } diff --git a/go/greptime/v1/region/server.pb.go b/go/greptime/v1/region/server.pb.go index 2058a6a..8e12a42 100644 --- a/go/greptime/v1/region/server.pb.go +++ b/go/greptime/v1/region/server.pb.go @@ -1860,6 +1860,11 @@ type TruncateRequest struct { unknownFields protoimpl.UnknownFields 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() { @@ -1901,6 +1906,82 @@ func (x *TruncateRequest) GetRegionId() uint64 { 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 // `ddl.proto` which is for clients outside GreptimeDB, this `RegionColumnDef` // 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() { *x = RegionColumnDef{} 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.StoreMessageInfo(mi) } @@ -1930,7 +2011,7 @@ func (x *RegionColumnDef) String() string { func (*RegionColumnDef) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1943,7 +2024,7 @@ func (x *RegionColumnDef) ProtoReflect() protoreflect.Message { // Deprecated: Use RegionColumnDef.ProtoReflect.Descriptor instead. 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 { @@ -1976,7 +2057,7 @@ type BulkInsertRequest struct { func (x *BulkInsertRequest) Reset() { *x = BulkInsertRequest{} 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.StoreMessageInfo(mi) } @@ -1989,7 +2070,7 @@ func (x *BulkInsertRequest) String() string { func (*BulkInsertRequest) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2002,7 +2083,7 @@ func (x *BulkInsertRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use BulkInsertRequest.ProtoReflect.Descriptor instead. 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 { @@ -2048,7 +2129,7 @@ type MitoManifestInfo struct { func (x *MitoManifestInfo) Reset() { *x = MitoManifestInfo{} 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.StoreMessageInfo(mi) } @@ -2061,7 +2142,7 @@ func (x *MitoManifestInfo) String() string { func (*MitoManifestInfo) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2074,7 +2155,7 @@ func (x *MitoManifestInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use MitoManifestInfo.ProtoReflect.Descriptor instead. 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 { @@ -2097,7 +2178,7 @@ type MetricManifestInfo struct { func (x *MetricManifestInfo) Reset() { *x = MetricManifestInfo{} 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.StoreMessageInfo(mi) } @@ -2110,7 +2191,7 @@ func (x *MetricManifestInfo) String() string { func (*MetricManifestInfo) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2123,7 +2204,7 @@ func (x *MetricManifestInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use MetricManifestInfo.ProtoReflect.Descriptor instead. 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 { @@ -2157,7 +2238,7 @@ type SyncRequest struct { func (x *SyncRequest) Reset() { *x = SyncRequest{} 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.StoreMessageInfo(mi) } @@ -2170,7 +2251,7 @@ func (x *SyncRequest) String() string { func (*SyncRequest) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2183,7 +2264,7 @@ func (x *SyncRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SyncRequest.ProtoReflect.Descriptor instead. 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 { @@ -2242,7 +2323,7 @@ type ListMetadataRequest struct { func (x *ListMetadataRequest) Reset() { *x = ListMetadataRequest{} 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.StoreMessageInfo(mi) } @@ -2255,7 +2336,7 @@ func (x *ListMetadataRequest) String() string { func (*ListMetadataRequest) ProtoMessage() {} 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 { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2268,7 +2349,7 @@ func (x *ListMetadataRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ListMetadataRequest.ProtoReflect.Descriptor instead. 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 { @@ -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, 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, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2e, 0x0a, 0x0f, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, - 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 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, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x49, 0x64, 0x22, 0x6e, 0x0a, - 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, - 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69, 0x70, 0x63, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48, 0x00, 0x52, 0x08, 0x61, 0x72, 0x72, - 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x46, 0x0a, - 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, - 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, - 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, - 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, - 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, - 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, - 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, - 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xed, 0x01, 0x0a, - 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, - 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x54, 0x0a, 0x12, 0x6d, 0x69, 0x74, - 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x69, 0x74, 0x6f, 0x4d, - 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x10, 0x6d, - 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, - 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, - 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, - 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, - 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x0f, 0x0a, 0x0d, 0x6d, - 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x34, 0x0a, 0x13, - 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, - 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, - 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, - 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 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, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0f, 0x54, 0x72, 0x75, 0x6e, 0x63, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2b, 0x0a, 0x03, 0x61, 0x6c, 0x6c, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x6c, 0x6c, 0x48, 0x00, 0x52, + 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x3a, 0x0a, 0x0b, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x72, 0x61, 0x6e, + 0x67, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, + 0x65, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x73, + 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x05, 0x0a, 0x03, 0x41, 0x6c, 0x6c, 0x22, + 0x65, 0x0a, 0x0f, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, + 0x65, 0x66, 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, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, + 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, + 0x77, 0x5f, 0x69, 0x70, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, + 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, + 0x70, 0x63, 0x48, 0x00, 0x52, 0x08, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, + 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x46, 0x0a, 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, + 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, + 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, + 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, + 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, + 0x01, 0x0a, 0x12, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, + 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, + 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, + 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x49, 0x64, 0x12, 0x54, 0x0a, 0x12, 0x6d, 0x69, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, + 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, + 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, + 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, + 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, + 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, + 0x52, 0x12, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, + 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x0f, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, + 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x34, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, + 0x52, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, + 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, + 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 ( @@ -2654,7 +2742,7 @@ func file_greptime_v1_region_server_proto_rawDescGZIP() []byte { 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{}{ (*RegionRequestHeader)(nil), // 0: greptime.v1.region.RegionRequestHeader (*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 (*CompactRequest)(nil), // 24: greptime.v1.region.CompactRequest (*TruncateRequest)(nil), // 25: greptime.v1.region.TruncateRequest - (*RegionColumnDef)(nil), // 26: greptime.v1.region.RegionColumnDef - (*BulkInsertRequest)(nil), // 27: greptime.v1.region.BulkInsertRequest - (*MitoManifestInfo)(nil), // 28: greptime.v1.region.MitoManifestInfo - (*MetricManifestInfo)(nil), // 29: greptime.v1.region.MetricManifestInfo - (*SyncRequest)(nil), // 30: greptime.v1.region.SyncRequest - (*ListMetadataRequest)(nil), // 31: greptime.v1.region.ListMetadataRequest - nil, // 32: greptime.v1.region.RegionRequestHeader.TracingContextEntry - nil, // 33: greptime.v1.region.RegionResponse.ExtensionsEntry - nil, // 34: greptime.v1.region.CreateRequest.OptionsEntry - nil, // 35: greptime.v1.region.OpenRequest.OptionsEntry - (*v1.QueryContext)(nil), // 36: greptime.v1.QueryContext - (*v1.ResponseHeader)(nil), // 37: greptime.v1.ResponseHeader - (*v1.Rows)(nil), // 38: greptime.v1.Rows - (*v1.ModifyColumnTypes)(nil), // 39: greptime.v1.ModifyColumnTypes - (*v1.SetTableOptions)(nil), // 40: greptime.v1.SetTableOptions - (*v1.UnsetTableOptions)(nil), // 41: greptime.v1.UnsetTableOptions - (*v1.SetIndex)(nil), // 42: greptime.v1.SetIndex - (*v1.UnsetIndex)(nil), // 43: greptime.v1.UnsetIndex - (*v1.DropDefaults)(nil), // 44: greptime.v1.DropDefaults - (*v1.SetIndexes)(nil), // 45: greptime.v1.SetIndexes - (*v1.UnsetIndexes)(nil), // 46: greptime.v1.UnsetIndexes - (*v1.SetDefaults)(nil), // 47: greptime.v1.SetDefaults - (*v1.AddColumnLocation)(nil), // 48: greptime.v1.AddColumnLocation - (*v1.ColumnDef)(nil), // 49: greptime.v1.ColumnDef - (*v1.ArrowIpc)(nil), // 50: greptime.v1.ArrowIpc + (*All)(nil), // 26: greptime.v1.region.All + (*RegionColumnDef)(nil), // 27: greptime.v1.region.RegionColumnDef + (*BulkInsertRequest)(nil), // 28: greptime.v1.region.BulkInsertRequest + (*MitoManifestInfo)(nil), // 29: greptime.v1.region.MitoManifestInfo + (*MetricManifestInfo)(nil), // 30: greptime.v1.region.MetricManifestInfo + (*SyncRequest)(nil), // 31: greptime.v1.region.SyncRequest + (*ListMetadataRequest)(nil), // 32: greptime.v1.region.ListMetadataRequest + nil, // 33: greptime.v1.region.RegionRequestHeader.TracingContextEntry + nil, // 34: greptime.v1.region.RegionResponse.ExtensionsEntry + nil, // 35: greptime.v1.region.CreateRequest.OptionsEntry + nil, // 36: greptime.v1.region.OpenRequest.OptionsEntry + (*v1.QueryContext)(nil), // 37: greptime.v1.QueryContext + (*v1.ResponseHeader)(nil), // 38: greptime.v1.ResponseHeader + (*v1.Rows)(nil), // 39: greptime.v1.Rows + (*v1.ModifyColumnTypes)(nil), // 40: greptime.v1.ModifyColumnTypes + (*v1.SetTableOptions)(nil), // 41: greptime.v1.SetTableOptions + (*v1.UnsetTableOptions)(nil), // 42: greptime.v1.UnsetTableOptions + (*v1.SetIndex)(nil), // 43: greptime.v1.SetIndex + (*v1.UnsetIndex)(nil), // 44: greptime.v1.UnsetIndex + (*v1.DropDefaults)(nil), // 45: greptime.v1.DropDefaults + (*v1.SetIndexes)(nil), // 46: greptime.v1.SetIndexes + (*v1.UnsetIndexes)(nil), // 47: greptime.v1.UnsetIndexes + (*v1.SetDefaults)(nil), // 48: greptime.v1.SetDefaults + (*v1.AddColumnLocation)(nil), // 49: greptime.v1.AddColumnLocation + (*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{ - 32, // 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 + 33, // 0: greptime.v1.region.RegionRequestHeader.tracing_context:type_name -> greptime.v1.region.RegionRequestHeader.TracingContextEntry + 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 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 @@ -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 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 - 27, // 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, // 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 - 33, // 20: greptime.v1.region.RegionResponse.extensions:type_name -> greptime.v1.region.RegionResponse.ExtensionsEntry + 28, // 16: greptime.v1.region.RegionRequest.bulk_insert:type_name -> greptime.v1.region.BulkInsertRequest + 31, // 17: greptime.v1.region.RegionRequest.sync:type_name -> greptime.v1.region.SyncRequest + 32, // 18: greptime.v1.region.RegionRequest.list_metadata:type_name -> greptime.v1.region.ListMetadataRequest + 38, // 19: greptime.v1.region.RegionResponse.header:type_name -> greptime.v1.ResponseHeader + 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 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 - 38, // 24: greptime.v1.region.DeleteRequest.rows:type_name -> greptime.v1.Rows + 39, // 23: greptime.v1.region.InsertRequest.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 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 - 34, // 28: greptime.v1.region.CreateRequest.options:type_name -> greptime.v1.region.CreateRequest.OptionsEntry + 27, // 27: greptime.v1.region.CreateRequest.column_defs:type_name -> greptime.v1.region.RegionColumnDef + 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 - 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 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 - 39, // 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, // 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, // 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, // 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, // 42: greptime.v1.region.AlterRequest.set_defaults:type_name -> greptime.v1.SetDefaults + 40, // 34: greptime.v1.region.AlterRequest.modify_column_types:type_name -> greptime.v1.ModifyColumnTypes + 41, // 35: greptime.v1.region.AlterRequest.set_table_options:type_name -> greptime.v1.SetTableOptions + 42, // 36: greptime.v1.region.AlterRequest.unset_table_options:type_name -> greptime.v1.UnsetTableOptions + 43, // 37: greptime.v1.region.AlterRequest.set_index:type_name -> greptime.v1.SetIndex + 44, // 38: greptime.v1.region.AlterRequest.unset_index:type_name -> greptime.v1.UnsetIndex + 45, // 39: greptime.v1.region.AlterRequest.drop_defaults:type_name -> greptime.v1.DropDefaults + 46, // 40: greptime.v1.region.AlterRequest.set_indexes:type_name -> greptime.v1.SetIndexes + 47, // 41: greptime.v1.region.AlterRequest.unset_indexes:type_name -> greptime.v1.UnsetIndexes + 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 - 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 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 - 48, // 48: greptime.v1.region.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 27, // 47: greptime.v1.region.AddColumn.column_def:type_name -> greptime.v1.region.RegionColumnDef + 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 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 - 50, // 52: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc - 28, // 53: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo - 29, // 54: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo - 1, // 55: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest - 2, // 56: greptime.v1.region.Region.Handle:output_type -> greptime.v1.region.RegionResponse - 56, // [56:57] is the sub-list for method output_type - 55, // [55:56] is the sub-list for method input_type - 55, // [55:55] is the sub-list for extension type_name - 55, // [55:55] is the sub-list for extension extendee - 0, // [0:55] is the sub-list for field type_name + 26, // 51: greptime.v1.region.TruncateRequest.all:type_name -> greptime.v1.region.All + 50, // 52: greptime.v1.region.TruncateRequest.time_ranges:type_name -> greptime.v1.TimeRanges + 51, // 53: greptime.v1.region.RegionColumnDef.column_def:type_name -> greptime.v1.ColumnDef + 52, // 54: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc + 29, // 55: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo + 30, // 56: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo + 1, // 57: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest + 2, // 58: greptime.v1.region.Region.Handle:output_type -> greptime.v1.region.RegionResponse + 58, // [58:59] is the sub-list for method output_type + 57, // [57:58] is the sub-list for method input_type + 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() } @@ -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{} { - switch v := v.(*RegionColumnDef); i { + switch v := v.(*All); i { case 0: return &v.state 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{} { - switch v := v.(*BulkInsertRequest); i { + switch v := v.(*RegionColumnDef); i { case 0: return &v.state 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{} { - switch v := v.(*MitoManifestInfo); i { + switch v := v.(*BulkInsertRequest); i { case 0: return &v.state 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{} { - switch v := v.(*MetricManifestInfo); i { + switch v := v.(*MitoManifestInfo); i { case 0: return &v.state 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{} { - switch v := v.(*SyncRequest); i { + switch v := v.(*MetricManifestInfo); i { case 0: return &v.state 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{} { + 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 { case 0: return &v.state @@ -3200,10 +3304,14 @@ func file_greptime_v1_region_server_proto_init() { (*CompactRequest_Regular)(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), } - file_greptime_v1_region_server_proto_msgTypes[30].OneofWrappers = []interface{}{ + file_greptime_v1_region_server_proto_msgTypes[31].OneofWrappers = []interface{}{ (*SyncRequest_MitoManifestInfo)(nil), (*SyncRequest_MetricManifestInfo)(nil), } @@ -3213,7 +3321,7 @@ func file_greptime_v1_region_server_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_region_server_proto_rawDesc, NumEnums: 0, - NumMessages: 36, + NumMessages: 37, NumExtensions: 0, NumServices: 1, }, diff --git a/java/src/main/java/io/greptime/v1/Common.java b/java/src/main/java/io/greptime/v1/Common.java index d859137..f4e832f 100644 --- a/java/src/main/java/io/greptime/v1/Common.java +++ b/java/src/main/java/io/greptime/v1/Common.java @@ -482,6 +482,144 @@ public final class Common { // @@protoc_insertion_point(enum_scope:greptime.v1.ColumnDataType) } + /** + *
+   */ Time Unit for timestamp
+   * 
+ * + * Protobuf enum {@code greptime.v1.TimeUnit} + */ + public enum TimeUnit + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+     * The default time unit is MILLISECOND
+     * 
+ * + * MILLISECOND = 0; + */ + MILLISECOND(0), + /** + * SECOND = 1; + */ + SECOND(1), + /** + * MICROSECOND = 2; + */ + MICROSECOND(2), + /** + * NANOSECOND = 3; + */ + NANOSECOND(3), + UNRECOGNIZED(-1), + ; + + /** + *
+     * The default time unit is MILLISECOND
+     * 
+ * + * MILLISECOND = 0; + */ + public static final int MILLISECOND_VALUE = 0; + /** + * SECOND = 1; + */ + public static final int SECOND_VALUE = 1; + /** + * MICROSECOND = 2; + */ + public static final int MICROSECOND_VALUE = 2; + /** + * NANOSECOND = 3; + */ + public static final int NANOSECOND_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TimeUnit valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TimeUnit forNumber(int value) { + switch (value) { + case 0: return MILLISECOND; + case 1: return SECOND; + case 2: return MICROSECOND; + case 3: return NANOSECOND; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TimeUnit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimeUnit findValueByNumber(int number) { + return TimeUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return io.greptime.v1.Common.getDescriptor().getEnumTypes().get(2); + } + + private static final TimeUnit[] VALUES = values(); + + public static TimeUnit valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TimeUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:greptime.v1.TimeUnit) + } + /** * Protobuf enum {@code greptime.v1.JsonTypeExtension} */ @@ -555,7 +693,7 @@ public final class Common { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return io.greptime.v1.Common.getDescriptor().getEnumTypes().get(2); + return io.greptime.v1.Common.getDescriptor().getEnumTypes().get(3); } private static final JsonTypeExtension[] VALUES = values(); @@ -13170,6 +13308,1478 @@ java.lang.String defaultValue); } + public interface TimeRangeOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.TimeRange) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 start = 1; + * @return The start. + */ + long getStart(); + + /** + * int64 end = 2; + * @return The end. + */ + long getEnd(); + } + /** + * Protobuf type {@code greptime.v1.TimeRange} + */ + public static final class TimeRange extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.TimeRange) + TimeRangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeRange.newBuilder() to construct. + private TimeRange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TimeRange() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TimeRange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TimeRange( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + + start_ = input.readInt64(); + break; + } + case 16: { + + end_ = input.readInt64(); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.TimeRange.class, io.greptime.v1.Common.TimeRange.Builder.class); + } + + public static final int START_FIELD_NUMBER = 1; + private long start_; + /** + * int64 start = 1; + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + + public static final int END_FIELD_NUMBER = 2; + private long end_; + /** + * int64 end = 2; + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (start_ != 0L) { + output.writeInt64(1, start_); + } + if (end_ != 0L) { + output.writeInt64(2, end_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (start_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, start_); + } + if (end_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, end_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Common.TimeRange)) { + return super.equals(obj); + } + io.greptime.v1.Common.TimeRange other = (io.greptime.v1.Common.TimeRange) obj; + + if (getStart() + != other.getStart()) return false; + if (getEnd() + != other.getEnd()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + START_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getStart()); + hash = (37 * hash) + END_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getEnd()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.TimeRange parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TimeRange parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TimeRange parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TimeRange parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TimeRange parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRange parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TimeRange parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRange parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TimeRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Common.TimeRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.TimeRange} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.TimeRange) + io.greptime.v1.Common.TimeRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.TimeRange.class, io.greptime.v1.Common.TimeRange.Builder.class); + } + + // Construct using io.greptime.v1.Common.TimeRange.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + start_ = 0L; + + end_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRange_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.TimeRange getDefaultInstanceForType() { + return io.greptime.v1.Common.TimeRange.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.TimeRange build() { + io.greptime.v1.Common.TimeRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.TimeRange buildPartial() { + io.greptime.v1.Common.TimeRange result = new io.greptime.v1.Common.TimeRange(this); + result.start_ = start_; + result.end_ = end_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Common.TimeRange) { + return mergeFrom((io.greptime.v1.Common.TimeRange)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.TimeRange other) { + if (other == io.greptime.v1.Common.TimeRange.getDefaultInstance()) return this; + if (other.getStart() != 0L) { + setStart(other.getStart()); + } + if (other.getEnd() != 0L) { + setEnd(other.getEnd()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Common.TimeRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.TimeRange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long start_ ; + /** + * int64 start = 1; + * @return The start. + */ + @java.lang.Override + public long getStart() { + return start_; + } + /** + * int64 start = 1; + * @param value The start to set. + * @return This builder for chaining. + */ + public Builder setStart(long value) { + + start_ = value; + onChanged(); + return this; + } + /** + * int64 start = 1; + * @return This builder for chaining. + */ + public Builder clearStart() { + + start_ = 0L; + onChanged(); + return this; + } + + private long end_ ; + /** + * int64 end = 2; + * @return The end. + */ + @java.lang.Override + public long getEnd() { + return end_; + } + /** + * int64 end = 2; + * @param value The end to set. + * @return This builder for chaining. + */ + public Builder setEnd(long value) { + + end_ = value; + onChanged(); + return this; + } + /** + * int64 end = 2; + * @return This builder for chaining. + */ + public Builder clearEnd() { + + end_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.TimeRange) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.TimeRange) + private static final io.greptime.v1.Common.TimeRange DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.TimeRange(); + } + + public static io.greptime.v1.Common.TimeRange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeRange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeRange(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Common.TimeRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface TimeRangesOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.TimeRanges) + com.google.protobuf.MessageOrBuilder { + + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @return The enum numeric value on the wire for timeUnit. + */ + int getTimeUnitValue(); + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @return The timeUnit. + */ + io.greptime.v1.Common.TimeUnit getTimeUnit(); + + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + java.util.List + getTimeRangesList(); + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + io.greptime.v1.Common.TimeRange getTimeRanges(int index); + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + int getTimeRangesCount(); + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + java.util.List + getTimeRangesOrBuilderList(); + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + io.greptime.v1.Common.TimeRangeOrBuilder getTimeRangesOrBuilder( + int index); + } + /** + *
+   */ Truncate partially by time ranges
+   * 
+ * + * Protobuf type {@code greptime.v1.TimeRanges} + */ + public static final class TimeRanges extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.TimeRanges) + TimeRangesOrBuilder { + private static final long serialVersionUID = 0L; + // Use TimeRanges.newBuilder() to construct. + private TimeRanges(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TimeRanges() { + timeUnit_ = 0; + timeRanges_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TimeRanges(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TimeRanges( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: { + int rawValue = input.readEnum(); + + timeUnit_ = rawValue; + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + timeRanges_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + timeRanges_.add( + input.readMessage(io.greptime.v1.Common.TimeRange.parser(), extensionRegistry)); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + timeRanges_ = java.util.Collections.unmodifiableList(timeRanges_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRanges_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.TimeRanges.class, io.greptime.v1.Common.TimeRanges.Builder.class); + } + + public static final int TIME_UNIT_FIELD_NUMBER = 1; + private int timeUnit_; + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @return The enum numeric value on the wire for timeUnit. + */ + @java.lang.Override public int getTimeUnitValue() { + return timeUnit_; + } + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @return The timeUnit. + */ + @java.lang.Override public io.greptime.v1.Common.TimeUnit getTimeUnit() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.TimeUnit result = io.greptime.v1.Common.TimeUnit.valueOf(timeUnit_); + return result == null ? io.greptime.v1.Common.TimeUnit.UNRECOGNIZED : result; + } + + public static final int TIME_RANGES_FIELD_NUMBER = 2; + private java.util.List timeRanges_; + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + @java.lang.Override + public java.util.List getTimeRangesList() { + return timeRanges_; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + @java.lang.Override + public java.util.List + getTimeRangesOrBuilderList() { + return timeRanges_; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + @java.lang.Override + public int getTimeRangesCount() { + return timeRanges_.size(); + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + @java.lang.Override + public io.greptime.v1.Common.TimeRange getTimeRanges(int index) { + return timeRanges_.get(index); + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + @java.lang.Override + public io.greptime.v1.Common.TimeRangeOrBuilder getTimeRangesOrBuilder( + int index) { + return timeRanges_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (timeUnit_ != io.greptime.v1.Common.TimeUnit.MILLISECOND.getNumber()) { + output.writeEnum(1, timeUnit_); + } + for (int i = 0; i < timeRanges_.size(); i++) { + output.writeMessage(2, timeRanges_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (timeUnit_ != io.greptime.v1.Common.TimeUnit.MILLISECOND.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, timeUnit_); + } + for (int i = 0; i < timeRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, timeRanges_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Common.TimeRanges)) { + return super.equals(obj); + } + io.greptime.v1.Common.TimeRanges other = (io.greptime.v1.Common.TimeRanges) obj; + + if (timeUnit_ != other.timeUnit_) return false; + if (!getTimeRangesList() + .equals(other.getTimeRangesList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TIME_UNIT_FIELD_NUMBER; + hash = (53 * hash) + timeUnit_; + if (getTimeRangesCount() > 0) { + hash = (37 * hash) + TIME_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getTimeRangesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.TimeRanges parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TimeRanges parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRanges parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TimeRanges parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRanges parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TimeRanges parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRanges parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TimeRanges parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRanges parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TimeRanges parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Common.TimeRanges parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TimeRanges parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Common.TimeRanges prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     */ Truncate partially by time ranges
+     * 
+ * + * Protobuf type {@code greptime.v1.TimeRanges} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.TimeRanges) + io.greptime.v1.Common.TimeRangesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRanges_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRanges_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.TimeRanges.class, io.greptime.v1.Common.TimeRanges.Builder.class); + } + + // Construct using io.greptime.v1.Common.TimeRanges.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTimeRangesFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + timeUnit_ = 0; + + if (timeRangesBuilder_ == null) { + timeRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + timeRangesBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_TimeRanges_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.TimeRanges getDefaultInstanceForType() { + return io.greptime.v1.Common.TimeRanges.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.TimeRanges build() { + io.greptime.v1.Common.TimeRanges result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.TimeRanges buildPartial() { + io.greptime.v1.Common.TimeRanges result = new io.greptime.v1.Common.TimeRanges(this); + int from_bitField0_ = bitField0_; + result.timeUnit_ = timeUnit_; + if (timeRangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + timeRanges_ = java.util.Collections.unmodifiableList(timeRanges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.timeRanges_ = timeRanges_; + } else { + result.timeRanges_ = timeRangesBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Common.TimeRanges) { + return mergeFrom((io.greptime.v1.Common.TimeRanges)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.TimeRanges other) { + if (other == io.greptime.v1.Common.TimeRanges.getDefaultInstance()) return this; + if (other.timeUnit_ != 0) { + setTimeUnitValue(other.getTimeUnitValue()); + } + if (timeRangesBuilder_ == null) { + if (!other.timeRanges_.isEmpty()) { + if (timeRanges_.isEmpty()) { + timeRanges_ = other.timeRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTimeRangesIsMutable(); + timeRanges_.addAll(other.timeRanges_); + } + onChanged(); + } + } else { + if (!other.timeRanges_.isEmpty()) { + if (timeRangesBuilder_.isEmpty()) { + timeRangesBuilder_.dispose(); + timeRangesBuilder_ = null; + timeRanges_ = other.timeRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + timeRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimeRangesFieldBuilder() : null; + } else { + timeRangesBuilder_.addAllMessages(other.timeRanges_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Common.TimeRanges parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.TimeRanges) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private int timeUnit_ = 0; + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @return The enum numeric value on the wire for timeUnit. + */ + @java.lang.Override public int getTimeUnitValue() { + return timeUnit_; + } + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @param value The enum numeric value on the wire for timeUnit to set. + * @return This builder for chaining. + */ + public Builder setTimeUnitValue(int value) { + + timeUnit_ = value; + onChanged(); + return this; + } + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @return The timeUnit. + */ + @java.lang.Override + public io.greptime.v1.Common.TimeUnit getTimeUnit() { + @SuppressWarnings("deprecation") + io.greptime.v1.Common.TimeUnit result = io.greptime.v1.Common.TimeUnit.valueOf(timeUnit_); + return result == null ? io.greptime.v1.Common.TimeUnit.UNRECOGNIZED : result; + } + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @param value The timeUnit to set. + * @return This builder for chaining. + */ + public Builder setTimeUnit(io.greptime.v1.Common.TimeUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + timeUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .greptime.v1.TimeUnit time_unit = 1; + * @return This builder for chaining. + */ + public Builder clearTimeUnit() { + + timeUnit_ = 0; + onChanged(); + return this; + } + + private java.util.List timeRanges_ = + java.util.Collections.emptyList(); + private void ensureTimeRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + timeRanges_ = new java.util.ArrayList(timeRanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.TimeRange, io.greptime.v1.Common.TimeRange.Builder, io.greptime.v1.Common.TimeRangeOrBuilder> timeRangesBuilder_; + + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public java.util.List getTimeRangesList() { + if (timeRangesBuilder_ == null) { + return java.util.Collections.unmodifiableList(timeRanges_); + } else { + return timeRangesBuilder_.getMessageList(); + } + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public int getTimeRangesCount() { + if (timeRangesBuilder_ == null) { + return timeRanges_.size(); + } else { + return timeRangesBuilder_.getCount(); + } + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public io.greptime.v1.Common.TimeRange getTimeRanges(int index) { + if (timeRangesBuilder_ == null) { + return timeRanges_.get(index); + } else { + return timeRangesBuilder_.getMessage(index); + } + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder setTimeRanges( + int index, io.greptime.v1.Common.TimeRange value) { + if (timeRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeRangesIsMutable(); + timeRanges_.set(index, value); + onChanged(); + } else { + timeRangesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder setTimeRanges( + int index, io.greptime.v1.Common.TimeRange.Builder builderForValue) { + if (timeRangesBuilder_ == null) { + ensureTimeRangesIsMutable(); + timeRanges_.set(index, builderForValue.build()); + onChanged(); + } else { + timeRangesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder addTimeRanges(io.greptime.v1.Common.TimeRange value) { + if (timeRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeRangesIsMutable(); + timeRanges_.add(value); + onChanged(); + } else { + timeRangesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder addTimeRanges( + int index, io.greptime.v1.Common.TimeRange value) { + if (timeRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeRangesIsMutable(); + timeRanges_.add(index, value); + onChanged(); + } else { + timeRangesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder addTimeRanges( + io.greptime.v1.Common.TimeRange.Builder builderForValue) { + if (timeRangesBuilder_ == null) { + ensureTimeRangesIsMutable(); + timeRanges_.add(builderForValue.build()); + onChanged(); + } else { + timeRangesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder addTimeRanges( + int index, io.greptime.v1.Common.TimeRange.Builder builderForValue) { + if (timeRangesBuilder_ == null) { + ensureTimeRangesIsMutable(); + timeRanges_.add(index, builderForValue.build()); + onChanged(); + } else { + timeRangesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder addAllTimeRanges( + java.lang.Iterable values) { + if (timeRangesBuilder_ == null) { + ensureTimeRangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, timeRanges_); + onChanged(); + } else { + timeRangesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder clearTimeRanges() { + if (timeRangesBuilder_ == null) { + timeRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + timeRangesBuilder_.clear(); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public Builder removeTimeRanges(int index) { + if (timeRangesBuilder_ == null) { + ensureTimeRangesIsMutable(); + timeRanges_.remove(index); + onChanged(); + } else { + timeRangesBuilder_.remove(index); + } + return this; + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public io.greptime.v1.Common.TimeRange.Builder getTimeRangesBuilder( + int index) { + return getTimeRangesFieldBuilder().getBuilder(index); + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public io.greptime.v1.Common.TimeRangeOrBuilder getTimeRangesOrBuilder( + int index) { + if (timeRangesBuilder_ == null) { + return timeRanges_.get(index); } else { + return timeRangesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public java.util.List + getTimeRangesOrBuilderList() { + if (timeRangesBuilder_ != null) { + return timeRangesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timeRanges_); + } + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public io.greptime.v1.Common.TimeRange.Builder addTimeRangesBuilder() { + return getTimeRangesFieldBuilder().addBuilder( + io.greptime.v1.Common.TimeRange.getDefaultInstance()); + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public io.greptime.v1.Common.TimeRange.Builder addTimeRangesBuilder( + int index) { + return getTimeRangesFieldBuilder().addBuilder( + index, io.greptime.v1.Common.TimeRange.getDefaultInstance()); + } + /** + * repeated .greptime.v1.TimeRange time_ranges = 2; + */ + public java.util.List + getTimeRangesBuilderList() { + return getTimeRangesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.TimeRange, io.greptime.v1.Common.TimeRange.Builder, io.greptime.v1.Common.TimeRangeOrBuilder> + getTimeRangesFieldBuilder() { + if (timeRangesBuilder_ == null) { + timeRangesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.greptime.v1.Common.TimeRange, io.greptime.v1.Common.TimeRange.Builder, io.greptime.v1.Common.TimeRangeOrBuilder>( + timeRanges_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + timeRanges_ = null; + } + return timeRangesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.TimeRanges) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.TimeRanges) + private static final io.greptime.v1.Common.TimeRanges DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.TimeRanges(); + } + + public static io.greptime.v1.Common.TimeRanges getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeRanges parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TimeRanges(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Common.TimeRanges getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface Decimal128OrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.Decimal128) com.google.protobuf.MessageOrBuilder { @@ -17724,6 +19334,16 @@ java.lang.String defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_TimeRange_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_TimeRange_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_TimeRanges_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_TimeRanges_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_Decimal128_descriptor; private static final @@ -17806,37 +19426,43 @@ java.lang.String defaultValue); "ected_rows\030\001 \001(\0132\031.greptime.v1.AffectedR" + "ows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Metri" + "cs\"I\n\024IntervalMonthDayNano\022\016\n\006months\030\001 \001" + - "(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"$\n" + - "\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027" + - "ColumnDataTypeExtension\0229\n\014decimal_type\030" + - "\001 \001(\0132!.greptime.v1.DecimalTypeExtension" + - "H\000\0223\n\tjson_type\030\002 \001(\0162\036.greptime.v1.Json" + - "TypeExtensionH\000\0227\n\013vector_type\030\003 \001(\0132 .g" + - "reptime.v1.VectorTypeExtensionH\000B\n\n\010type" + - "_ext\"8\n\024DecimalTypeExtension\022\021\n\tprecisio" + - "n\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005\"\"\n\023VectorTypeExte" + - "nsion\022\013\n\003dim\030\001 \001(\r\"y\n\rColumnOptions\0228\n\007o" + - "ptions\030\001 \003(\0132\'.greptime.v1.ColumnOptions" + - ".OptionsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001" + - "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"@\n\010ArrowIpc\022\016\n\006sch" + - "ema\030\001 \001(\014\022\023\n\013data_header\030\002 \001(\014\022\017\n\007payloa" + - "d\030\003 \001(\014*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIEL" + - "D\020\001\022\r\n\tTIMESTAMP\020\002*\354\003\n\016ColumnDataType\022\013\n" + - "\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32" + - "\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006" + - "UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLO" + - "AT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r" + - "\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025" + - "TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MIC" + - "ROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013" + - "TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020T" + - "IME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027" + - "\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_" + - "TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nD" + - "ECIMAL128\020\036\022\010\n\004JSON\020\037\022\n\n\006VECTOR\020 *$\n\021Jso" + - "nTypeExtension\022\017\n\013JSON_BINARY\020\000BO\n\016io.gr" + - "eptime.v1B\006CommonZ5github.com/GreptimeTe" + - "am/greptime-proto/go/greptime/v1b\006proto3" + "(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanoseconds\030\003 \001(\003\"\'\n" + + "\tTimeRange\022\r\n\005start\030\001 \001(\003\022\013\n\003end\030\002 \001(\003\"c" + + "\n\nTimeRanges\022(\n\ttime_unit\030\001 \001(\0162\025.grepti" + + "me.v1.TimeUnit\022+\n\013time_ranges\030\002 \003(\0132\026.gr" + + "eptime.v1.TimeRange\"$\n\nDecimal128\022\n\n\002hi\030" + + "\001 \001(\003\022\n\n\002lo\030\002 \001(\003\"\316\001\n\027ColumnDataTypeExte" + + "nsion\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v" + + "1.DecimalTypeExtensionH\000\0223\n\tjson_type\030\002 " + + "\001(\0162\036.greptime.v1.JsonTypeExtensionH\000\0227\n" + + "\013vector_type\030\003 \001(\0132 .greptime.v1.VectorT" + + "ypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalTyp" + + "eExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002" + + " \001(\005\"\"\n\023VectorTypeExtension\022\013\n\003dim\030\001 \001(\r" + + "\"y\n\rColumnOptions\0228\n\007options\030\001 \003(\0132\'.gre" + + "ptime.v1.ColumnOptions.OptionsEntry\032.\n\014O" + + "ptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"@\n\010ArrowIpc\022\016\n\006schema\030\001 \001(\014\022\023\n\013data_" + + "header\030\002 \001(\014\022\017\n\007payload\030\003 \001(\014*1\n\014Semanti" + + "cType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMESTAMP\020\002" + + "*\354\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8" + + "\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004\022\t\n\005U" + + "INT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006UINT64" + + "\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BINARY\020\013" + + "\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022\014\n\010DATETIME\020\016\022\024\n\020" + + "TIMESTAMP_SECOND\020\017\022\031\n\025TIMESTAMP_MILLISEC" + + "OND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n\024TIME" + + "STAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023\022\024\n\020T" + + "IME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECOND\020\025\022" + + "\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YEAR_MO" + + "NTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INTERVAL" + + "_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036\022\010\n\004JSO" + + "N\020\037\022\n\n\006VECTOR\020 *H\n\010TimeUnit\022\017\n\013MILLISECO" + + "ND\020\000\022\n\n\006SECOND\020\001\022\017\n\013MICROSECOND\020\002\022\016\n\nNAN" + + "OSECOND\020\003*$\n\021JsonTypeExtension\022\017\n\013JSON_B" + + "INARY\020\000BO\n\016io.greptime.v1B\006CommonZ5githu" + + "b.com/GreptimeTeam/greptime-proto/go/gre" + + "ptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -17956,32 +19582,44 @@ java.lang.String defaultValue); com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_IntervalMonthDayNano_descriptor, new java.lang.String[] { "Months", "Days", "Nanoseconds", }); - internal_static_greptime_v1_Decimal128_descriptor = + internal_static_greptime_v1_TimeRange_descriptor = getDescriptor().getMessageTypes().get(15); + internal_static_greptime_v1_TimeRange_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_TimeRange_descriptor, + new java.lang.String[] { "Start", "End", }); + internal_static_greptime_v1_TimeRanges_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_greptime_v1_TimeRanges_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_TimeRanges_descriptor, + new java.lang.String[] { "TimeUnit", "TimeRanges", }); + internal_static_greptime_v1_Decimal128_descriptor = + getDescriptor().getMessageTypes().get(17); internal_static_greptime_v1_Decimal128_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Decimal128_descriptor, new java.lang.String[] { "Hi", "Lo", }); internal_static_greptime_v1_ColumnDataTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDataTypeExtension_descriptor, new java.lang.String[] { "DecimalType", "JsonType", "VectorType", "TypeExt", }); internal_static_greptime_v1_DecimalTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DecimalTypeExtension_descriptor, new java.lang.String[] { "Precision", "Scale", }); internal_static_greptime_v1_VectorTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_greptime_v1_VectorTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_VectorTypeExtension_descriptor, new java.lang.String[] { "Dim", }); internal_static_greptime_v1_ColumnOptions_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_greptime_v1_ColumnOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnOptions_descriptor, @@ -17993,7 +19631,7 @@ java.lang.String defaultValue); internal_static_greptime_v1_ColumnOptions_OptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_ArrowIpc_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_greptime_v1_ArrowIpc_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ArrowIpc_descriptor, diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 2e57e67..9305902 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -23503,6 +23503,33 @@ java.lang.String defaultValue); * .greptime.v1.TableId table_id = 4; */ io.greptime.v1.Ddl.TableIdOrBuilder getTableIdOrBuilder(); + + /** + *
+     * if empty, truncate entire table, else only truncate time ranges
+     * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + * @return Whether the timeRanges field is set. + */ + boolean hasTimeRanges(); + /** + *
+     * if empty, truncate entire table, else only truncate time ranges
+     * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + * @return The timeRanges. + */ + io.greptime.v1.Common.TimeRanges getTimeRanges(); + /** + *
+     * if empty, truncate entire table, else only truncate time ranges
+     * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder(); } /** * Protobuf type {@code greptime.v1.TruncateTableExpr} @@ -23583,6 +23610,19 @@ java.lang.String defaultValue); 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: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -23757,6 +23797,44 @@ java.lang.String defaultValue); return getTableId(); } + public static final int TIME_RANGES_FIELD_NUMBER = 5; + private io.greptime.v1.Common.TimeRanges timeRanges_; + /** + *
+     * if empty, truncate entire table, else only truncate time ranges
+     * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + * @return Whether the timeRanges field is set. + */ + @java.lang.Override + public boolean hasTimeRanges() { + return timeRanges_ != null; + } + /** + *
+     * if empty, truncate entire table, else only truncate time ranges
+     * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + * @return The timeRanges. + */ + @java.lang.Override + public io.greptime.v1.Common.TimeRanges getTimeRanges() { + return timeRanges_ == null ? io.greptime.v1.Common.TimeRanges.getDefaultInstance() : timeRanges_; + } + /** + *
+     * if empty, truncate entire table, else only truncate time ranges
+     * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + @java.lang.Override + public io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder() { + return getTimeRanges(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -23783,6 +23861,9 @@ java.lang.String defaultValue); if (tableId_ != null) { output.writeMessage(4, getTableId()); } + if (timeRanges_ != null) { + output.writeMessage(5, getTimeRanges()); + } unknownFields.writeTo(output); } @@ -23805,6 +23886,10 @@ java.lang.String defaultValue); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getTableId()); } + if (timeRanges_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getTimeRanges()); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -23831,6 +23916,11 @@ java.lang.String defaultValue); if (!getTableId() .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; return true; } @@ -23852,6 +23942,10 @@ java.lang.String defaultValue); hash = (37 * hash) + TABLE_ID_FIELD_NUMBER; hash = (53 * hash) + getTableId().hashCode(); } + if (hasTimeRanges()) { + hash = (37 * hash) + TIME_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getTimeRanges().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -23997,6 +24091,12 @@ java.lang.String defaultValue); tableId_ = null; tableIdBuilder_ = null; } + if (timeRangesBuilder_ == null) { + timeRanges_ = null; + } else { + timeRanges_ = null; + timeRangesBuilder_ = null; + } return this; } @@ -24031,6 +24131,11 @@ java.lang.String defaultValue); } else { result.tableId_ = tableIdBuilder_.build(); } + if (timeRangesBuilder_ == null) { + result.timeRanges_ = timeRanges_; + } else { + result.timeRanges_ = timeRangesBuilder_.build(); + } onBuilt(); return result; } @@ -24094,6 +24199,9 @@ java.lang.String defaultValue); if (other.hasTableId()) { mergeTableId(other.getTableId()); } + if (other.hasTimeRanges()) { + mergeTimeRanges(other.getTimeRanges()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -24469,6 +24577,161 @@ java.lang.String defaultValue); } 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_; + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + * @return Whether the timeRanges field is set. + */ + public boolean hasTimeRanges() { + return timeRangesBuilder_ != null || timeRanges_ != null; + } + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + * @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(); + } + } + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + 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; + } + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + public Builder setTimeRanges( + io.greptime.v1.Common.TimeRanges.Builder builderForValue) { + if (timeRangesBuilder_ == null) { + timeRanges_ = builderForValue.build(); + onChanged(); + } else { + timeRangesBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + 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; + } + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + public Builder clearTimeRanges() { + if (timeRangesBuilder_ == null) { + timeRanges_ = null; + onChanged(); + } else { + timeRanges_ = null; + timeRangesBuilder_ = null; + } + + return this; + } + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + public io.greptime.v1.Common.TimeRanges.Builder getTimeRangesBuilder() { + + onChanged(); + return getTimeRangesFieldBuilder().getBuilder(); + } + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + public io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder() { + if (timeRangesBuilder_ != null) { + return timeRangesBuilder_.getMessageOrBuilder(); + } else { + return timeRanges_ == null ? + io.greptime.v1.Common.TimeRanges.getDefaultInstance() : timeRanges_; + } + } + /** + *
+       * if empty, truncate entire table, else only truncate time ranges
+       * 
+ * + * .greptime.v1.TimeRanges time_ranges = 5; + */ + 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 public final Builder setUnknownFields( 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" + ".CreateDatabaseExpr.OptionsEntry\032.\n\014Opti" + "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"z\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001 " + - "\001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003" + - " \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Tab" + - "leId\"U\n\020DropDatabaseExpr\022\024\n\014catalog_name" + - "\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016drop_if_e" + - "xists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_columns" + - "\030\001 \003(\0132\026.greptime.v1.AddColumn\"?\n\014DropDe" + - "faults\022/\n\rdrop_defaults\030\001 \003(\0132\030.greptime" + - ".v1.DropDefault\"<\n\013SetDefaults\022-\n\014set_de" + - "faults\030\001 \003(\0132\027.greptime.v1.SetDefault\"<\n" + - "\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.gre" + - "ptime.v1.DropColumn\"O\n\021ModifyColumnTypes" + - "\022:\n\023modify_column_types\030\001 \003(\0132\035.greptime" + - ".v1.ModifyColumnType\"%\n\013RenameTable\022\026\n\016n" + - "ew_table_name\030\001 \001(\t\"\204\001\n\tAddColumn\022*\n\ncol" + - "umn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220\n" + - "\010location\030\003 \001(\0132\036.greptime.v1.AddColumnL" + - "ocation\022\031\n\021add_if_not_exists\030\004 \001(\010\"\236\001\n\020M" + - "odifyColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013" + - "target_type\030\002 \001(\0162\033.greptime.v1.ColumnDa" + - "taType\022C\n\025target_type_extension\030\003 \001(\0132$." + - "greptime.v1.ColumnDataTypeExtension\"$\n\006O" + - "ption\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t\"=\n\017Set" + - "TableOptions\022*\n\rtable_options\030\001 \003(\0132\023.gr" + - "eptime.v1.Option\"!\n\021UnsetTableOptions\022\014\n" + - "\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"" + - "\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022\n\n\002id\030\001" + - " \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata" + - "_type\030\002 \001(\0162\033.greptime.v1.ColumnDataType" + - "\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_constra" + - "int\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.grept" + - "ime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022" + - "datatype_extension\030\007 \001(\0132$.greptime.v1.C" + - "olumnDataTypeExtension\022+\n\007options\030\010 \001(\0132" + - "\032.greptime.v1.ColumnOptions\"\230\001\n\021AddColum" + - "nLocation\022B\n\rlocation_type\030\001 \001(\0162+.grept" + - "ime.v1.AddColumnLocation.LocationType\022\031\n" + - "\021after_column_name\030\002 \001(\t\"$\n\014LocationType" + - "\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFulltext\022\023" + - "\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001(\010\022\'\n\010a" + - "nalyzer\030\003 \001(\0162\025.greptime.v1.Analyzer\022\026\n\016" + - "case_sensitive\030\004 \001(\010\022-\n\007backend\030\005 \001(\0162\034." + - "greptime.v1.FulltextBackend\022\023\n\013granulari" + - "ty\030\006 \001(\004\022\033\n\023false_positive_rate\030\007 \001(\001\"$\n" + - "\rUnsetFulltext\022\023\n\013column_name\030\001 \001(\t\"\"\n\013S" + - "etInverted\022\023\n\013column_name\030\001 \001(\t\"$\n\rUnset" + - "Inverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n\013SetSki" + - "pping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" + - "(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skipping_inde" + - "x_type\030\004 \001(\0162\036.greptime.v1.SkippingIndex" + - "Type\022\033\n\023false_positive_rate\030\005 \001(\001\"$\n\rUns" + - "etSkipping\022\023\n\013column_name\030\001 \001(\t\"\314\001\n\021Alte" + - "rDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013s" + - "chema_name\030\002 \001(\t\022?\n\024set_database_options" + - "\030\003 \001(\0132\037.greptime.v1.SetDatabaseOptionsH" + - "\000\022C\n\026unset_database_options\030\004 \001(\0132!.grep" + - "time.v1.UnsetDatabaseOptionsH\000B\006\n\004kind\"G" + - "\n\022SetDatabaseOptions\0221\n\024set_database_opt" + - "ions\030\001 \003(\0132\023.greptime.v1.Option\"$\n\024Unset" + - "DatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n\021Create" + - "TriggerExpr\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014tri" + - "gger_name\030\002 \001(\t\022\034\n\024create_if_not_exists\030" + - "\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 \003(\0132\032.g" + - "reptime.v1.NotifyChannel\022:\n\006labels\030\006 \003(\013" + - "2*.greptime.v1.CreateTriggerExpr.LabelsE" + - "ntry\022D\n\013annotations\030\007 \003(\0132/.greptime.v1." + - "CreateTriggerExpr.AnnotationsEntry\022\020\n\010in" + - "terval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020AnnotationsEntry\022" + - "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]\n\rNotif" + - "yChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook\030\002 \001(\0132" + - "\033.greptime.v1.WebhookOptionsH\000B\016\n\014channe" + - "l_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001 \001(\t\0223\n" + - "\004opts\030\002 \003(\0132%.greptime.v1.WebhookOptions" + - ".OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005" + - "value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExpr\022\024\n\014ca" + - "talog_name\030\001 \001(\t\022\024\n\014trigger_name\030\002 \001(\t\022\026" + - "\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyzer\022\013\n\007EN" + - "GLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextBackend\022" + - "\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021SkippingIndex" + - "Type\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.greptime.v1" + - "B\003DdlZ5github.com/GreptimeTeam/greptime-" + - "proto/go/greptime/v1b\006proto3" + "\"\250\001\n\021TruncateTableExpr\022\024\n\014catalog_name\030\001" + + " \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030" + + "\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.Ta" + + "bleId\022,\n\013time_ranges\030\005 \001(\0132\027.greptime.v1" + + ".TimeRanges\"U\n\020DropDatabaseExpr\022\024\n\014catal" + + "og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016dr" + + "op_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013add_" + + "columns\030\001 \003(\0132\026.greptime.v1.AddColumn\"?\n" + + "\014DropDefaults\022/\n\rdrop_defaults\030\001 \003(\0132\030.g" + + "reptime.v1.DropDefault\"<\n\013SetDefaults\022-\n" + + "\014set_defaults\030\001 \003(\0132\027.greptime.v1.SetDef" + + "ault\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(" + + "\0132\027.greptime.v1.DropColumn\"O\n\021ModifyColu" + + "mnTypes\022:\n\023modify_column_types\030\001 \003(\0132\035.g" + + "reptime.v1.ModifyColumnType\"%\n\013RenameTab" + + "le\022\026\n\016new_table_name\030\001 \001(\t\"\204\001\n\tAddColumn" + + "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum" + + "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add" + + "ColumnLocation\022\031\n\021add_if_not_exists\030\004 \001(" + + "\010\"\236\001\n\020ModifyColumnType\022\023\n\013column_name\030\001 " + + "\001(\t\0220\n\013target_type\030\002 \001(\0162\033.greptime.v1.C" + + "olumnDataType\022C\n\025target_type_extension\030\003" + + " \001(\0132$.greptime.v1.ColumnDataTypeExtensi" + + "on\"$\n\006Option\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t" + + "\"=\n\017SetTableOptions\022*\n\rtable_options\030\001 \003" + + "(\0132\023.greptime.v1.Option\"!\n\021UnsetTableOpt" + + "ions\022\014\n\004keys\030\001 \003(\t\"\032\n\nDropColumn\022\014\n\004name" + + "\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\024\n\006FlowId\022" + + "\n\n\002id\030\001 \001(\r\"\254\002\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022" + + ".\n\tdata_type\030\002 \001(\0162\033.greptime.v1.ColumnD" + + "ataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_" + + "constraint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162" + + "\031.greptime.v1.SemanticType\022\017\n\007comment\030\006 " + + "\001(\t\022@\n\022datatype_extension\030\007 \001(\0132$.grepti" + + "me.v1.ColumnDataTypeExtension\022+\n\007options" + + "\030\010 \001(\0132\032.greptime.v1.ColumnOptions\"\230\001\n\021A" + + "ddColumnLocation\022B\n\rlocation_type\030\001 \001(\0162" + + "+.greptime.v1.AddColumnLocation.Location" + + "Type\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Locat" + + "ionType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001\"\324\001\n\013SetFul" + + "ltext\022\023\n\013column_name\030\001 \001(\t\022\016\n\006enable\030\002 \001" + + "(\010\022\'\n\010analyzer\030\003 \001(\0162\025.greptime.v1.Analy" + + "zer\022\026\n\016case_sensitive\030\004 \001(\010\022-\n\007backend\030\005" + + " \001(\0162\034.greptime.v1.FulltextBackend\022\023\n\013gr" + + "anularity\030\006 \001(\004\022\033\n\023false_positive_rate\030\007" + + " \001(\001\"$\n\rUnsetFulltext\022\023\n\013column_name\030\001 \001" + + "(\t\"\"\n\013SetInverted\022\023\n\013column_name\030\001 \001(\t\"$" + + "\n\rUnsetInverted\022\023\n\013column_name\030\001 \001(\t\"\241\001\n" + + "\013SetSkipping\022\023\n\013column_name\030\001 \001(\t\022\016\n\006ena" + + "ble\030\002 \001(\010\022\023\n\013granularity\030\003 \001(\004\022;\n\023skippi" + + "ng_index_type\030\004 \001(\0162\036.greptime.v1.Skippi" + + "ngIndexType\022\033\n\023false_positive_rate\030\005 \001(\001" + + "\"$\n\rUnsetSkipping\022\023\n\013column_name\030\001 \001(\t\"\314" + + "\001\n\021AlterDatabaseExpr\022\024\n\014catalog_name\030\001 \001" + + "(\t\022\023\n\013schema_name\030\002 \001(\t\022?\n\024set_database_" + + "options\030\003 \001(\0132\037.greptime.v1.SetDatabaseO" + + "ptionsH\000\022C\n\026unset_database_options\030\004 \001(\013" + + "2!.greptime.v1.UnsetDatabaseOptionsH\000B\006\n" + + "\004kind\"G\n\022SetDatabaseOptions\0221\n\024set_datab" + + "ase_options\030\001 \003(\0132\023.greptime.v1.Option\"$" + + "\n\024UnsetDatabaseOptions\022\014\n\004keys\030\001 \003(\t\"\217\003\n" + + "\021CreateTriggerExpr\022\024\n\014catalog_name\030\001 \001(\t" + + "\022\024\n\014trigger_name\030\002 \001(\t\022\034\n\024create_if_not_" + + "exists\030\003 \001(\010\022\013\n\003sql\030\004 \001(\t\022,\n\010channels\030\005 " + + "\003(\0132\032.greptime.v1.NotifyChannel\022:\n\006label" + + "s\030\006 \003(\0132*.greptime.v1.CreateTriggerExpr." + + "LabelsEntry\022D\n\013annotations\030\007 \003(\0132/.grept" + + "ime.v1.CreateTriggerExpr.AnnotationsEntr" + + "y\022\020\n\010interval\030\010 \001(\004\032-\n\013LabelsEntry\022\013\n\003ke" + + "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\0322\n\020Annotation" + + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"]" + + "\n\rNotifyChannel\022\014\n\004name\030\001 \001(\t\022.\n\007webhook" + + "\030\002 \001(\0132\033.greptime.v1.WebhookOptionsH\000B\016\n" + + "\014channel_type\"\177\n\016WebhookOptions\022\013\n\003url\030\001" + + " \001(\t\0223\n\004opts\030\002 \003(\0132%.greptime.v1.Webhook" + + "Options.OptsEntry\032+\n\tOptsEntry\022\013\n\003key\030\001 " + + "\001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\017DropTriggerExp" + + "r\022\024\n\014catalog_name\030\001 \001(\t\022\024\n\014trigger_name\030" + + "\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010*$\n\010Analyze" + + "r\022\013\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001*)\n\017FulltextB" + + "ackend\022\013\n\007TANTIVY\020\000\022\t\n\005BLOOM\020\001*%\n\021Skippi" + + "ngIndexType\022\020\n\014BLOOM_FILTER\020\000BL\n\016io.grep" + + "time.v1B\003DdlZ5github.com/GreptimeTeam/gr" + + "eptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -50136,7 +50400,7 @@ java.lang.String defaultValue); internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( 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 = getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable = new diff --git a/java/src/main/java/io/greptime/v1/region/Server.java b/java/src/main/java/io/greptime/v1/region/Server.java index a8dd731..046dde7 100644 --- a/java/src/main/java/io/greptime/v1/region/Server.java +++ b/java/src/main/java/io/greptime/v1/region/Server.java @@ -27041,6 +27041,38 @@ java.lang.String defaultValue); * @return The regionId. */ long getRegionId(); + + /** + * .greptime.v1.region.All all = 2; + * @return Whether the all field is set. + */ + boolean hasAll(); + /** + * .greptime.v1.region.All all = 2; + * @return The all. + */ + io.greptime.v1.region.Server.All getAll(); + /** + * .greptime.v1.region.All all = 2; + */ + io.greptime.v1.region.Server.AllOrBuilder getAllOrBuilder(); + + /** + * .greptime.v1.TimeRanges time_ranges = 3; + * @return Whether the timeRanges field is set. + */ + boolean hasTimeRanges(); + /** + * .greptime.v1.TimeRanges time_ranges = 3; + * @return The timeRanges. + */ + io.greptime.v1.Common.TimeRanges getTimeRanges(); + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder(); + + public io.greptime.v1.region.Server.TruncateRequest.KindCase getKindCase(); } /** * Protobuf type {@code greptime.v1.region.TruncateRequest} @@ -27092,6 +27124,34 @@ java.lang.String defaultValue); regionId_ = input.readUInt64(); break; } + case 18: { + io.greptime.v1.region.Server.All.Builder subBuilder = null; + if (kindCase_ == 2) { + subBuilder = ((io.greptime.v1.region.Server.All) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.region.Server.All.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.region.Server.All) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 2; + break; + } + case 26: { + io.greptime.v1.Common.TimeRanges.Builder subBuilder = null; + if (kindCase_ == 3) { + subBuilder = ((io.greptime.v1.Common.TimeRanges) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.Common.TimeRanges.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Common.TimeRanges) kind_); + kind_ = subBuilder.buildPartial(); + } + kindCase_ = 3; + break; + } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { @@ -27126,6 +27186,47 @@ java.lang.String defaultValue); io.greptime.v1.region.Server.TruncateRequest.class, io.greptime.v1.region.Server.TruncateRequest.Builder.class); } + private int kindCase_ = 0; + private java.lang.Object kind_; + public enum KindCase + implements com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ALL(2), + TIME_RANGES(3), + KIND_NOT_SET(0); + private final int value; + private KindCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static KindCase valueOf(int value) { + return forNumber(value); + } + + public static KindCase forNumber(int value) { + switch (value) { + case 2: return ALL; + case 3: return TIME_RANGES; + case 0: return KIND_NOT_SET; + default: return null; + } + } + public int getNumber() { + return this.value; + } + }; + + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + public static final int REGION_ID_FIELD_NUMBER = 1; private long regionId_; /** @@ -27137,6 +27238,68 @@ java.lang.String defaultValue); return regionId_; } + public static final int ALL_FIELD_NUMBER = 2; + /** + * .greptime.v1.region.All all = 2; + * @return Whether the all field is set. + */ + @java.lang.Override + public boolean hasAll() { + return kindCase_ == 2; + } + /** + * .greptime.v1.region.All all = 2; + * @return The all. + */ + @java.lang.Override + public io.greptime.v1.region.Server.All getAll() { + if (kindCase_ == 2) { + return (io.greptime.v1.region.Server.All) kind_; + } + return io.greptime.v1.region.Server.All.getDefaultInstance(); + } + /** + * .greptime.v1.region.All all = 2; + */ + @java.lang.Override + public io.greptime.v1.region.Server.AllOrBuilder getAllOrBuilder() { + if (kindCase_ == 2) { + return (io.greptime.v1.region.Server.All) kind_; + } + return io.greptime.v1.region.Server.All.getDefaultInstance(); + } + + public static final int TIME_RANGES_FIELD_NUMBER = 3; + /** + * .greptime.v1.TimeRanges time_ranges = 3; + * @return Whether the timeRanges field is set. + */ + @java.lang.Override + public boolean hasTimeRanges() { + return kindCase_ == 3; + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + * @return The timeRanges. + */ + @java.lang.Override + public io.greptime.v1.Common.TimeRanges getTimeRanges() { + if (kindCase_ == 3) { + return (io.greptime.v1.Common.TimeRanges) kind_; + } + return io.greptime.v1.Common.TimeRanges.getDefaultInstance(); + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + @java.lang.Override + public io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder() { + if (kindCase_ == 3) { + return (io.greptime.v1.Common.TimeRanges) kind_; + } + return io.greptime.v1.Common.TimeRanges.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -27154,6 +27317,12 @@ java.lang.String defaultValue); if (regionId_ != 0L) { output.writeUInt64(1, regionId_); } + if (kindCase_ == 2) { + output.writeMessage(2, (io.greptime.v1.region.Server.All) kind_); + } + if (kindCase_ == 3) { + output.writeMessage(3, (io.greptime.v1.Common.TimeRanges) kind_); + } unknownFields.writeTo(output); } @@ -27167,6 +27336,14 @@ java.lang.String defaultValue); size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, regionId_); } + if (kindCase_ == 2) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, (io.greptime.v1.region.Server.All) kind_); + } + if (kindCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.greptime.v1.Common.TimeRanges) kind_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -27184,6 +27361,19 @@ java.lang.String defaultValue); if (getRegionId() != other.getRegionId()) return false; + if (!getKindCase().equals(other.getKindCase())) return false; + switch (kindCase_) { + case 2: + if (!getAll() + .equals(other.getAll())) return false; + break; + case 3: + if (!getTimeRanges() + .equals(other.getTimeRanges())) return false; + break; + case 0: + default: + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -27198,6 +27388,18 @@ java.lang.String defaultValue); hash = (37 * hash) + REGION_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getRegionId()); + switch (kindCase_) { + case 2: + hash = (37 * hash) + ALL_FIELD_NUMBER; + hash = (53 * hash) + getAll().hashCode(); + break; + case 3: + hash = (37 * hash) + TIME_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getTimeRanges().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -27333,6 +27535,8 @@ java.lang.String defaultValue); super.clear(); regionId_ = 0L; + kindCase_ = 0; + kind_ = null; return this; } @@ -27360,6 +27564,21 @@ java.lang.String defaultValue); public io.greptime.v1.region.Server.TruncateRequest buildPartial() { io.greptime.v1.region.Server.TruncateRequest result = new io.greptime.v1.region.Server.TruncateRequest(this); result.regionId_ = regionId_; + if (kindCase_ == 2) { + if (allBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = allBuilder_.build(); + } + } + if (kindCase_ == 3) { + if (timeRangesBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = timeRangesBuilder_.build(); + } + } + result.kindCase_ = kindCase_; onBuilt(); return result; } @@ -27411,6 +27630,19 @@ java.lang.String defaultValue); if (other.getRegionId() != 0L) { setRegionId(other.getRegionId()); } + switch (other.getKindCase()) { + case ALL: { + mergeAll(other.getAll()); + break; + } + case TIME_RANGES: { + mergeTimeRanges(other.getTimeRanges()); + break; + } + case KIND_NOT_SET: { + break; + } + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -27439,6 +27671,21 @@ java.lang.String defaultValue); } return this; } + private int kindCase_ = 0; + private java.lang.Object kind_; + public KindCase + getKindCase() { + return KindCase.forNumber( + kindCase_); + } + + public Builder clearKind() { + kindCase_ = 0; + kind_ = null; + onChanged(); + return this; + } + private long regionId_ ; /** @@ -27470,6 +27717,290 @@ java.lang.String defaultValue); onChanged(); return this; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.All, io.greptime.v1.region.Server.All.Builder, io.greptime.v1.region.Server.AllOrBuilder> allBuilder_; + /** + * .greptime.v1.region.All all = 2; + * @return Whether the all field is set. + */ + @java.lang.Override + public boolean hasAll() { + return kindCase_ == 2; + } + /** + * .greptime.v1.region.All all = 2; + * @return The all. + */ + @java.lang.Override + public io.greptime.v1.region.Server.All getAll() { + if (allBuilder_ == null) { + if (kindCase_ == 2) { + return (io.greptime.v1.region.Server.All) kind_; + } + return io.greptime.v1.region.Server.All.getDefaultInstance(); + } else { + if (kindCase_ == 2) { + return allBuilder_.getMessage(); + } + return io.greptime.v1.region.Server.All.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.All all = 2; + */ + public Builder setAll(io.greptime.v1.region.Server.All value) { + if (allBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + allBuilder_.setMessage(value); + } + kindCase_ = 2; + return this; + } + /** + * .greptime.v1.region.All all = 2; + */ + public Builder setAll( + io.greptime.v1.region.Server.All.Builder builderForValue) { + if (allBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + allBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 2; + return this; + } + /** + * .greptime.v1.region.All all = 2; + */ + public Builder mergeAll(io.greptime.v1.region.Server.All value) { + if (allBuilder_ == null) { + if (kindCase_ == 2 && + kind_ != io.greptime.v1.region.Server.All.getDefaultInstance()) { + kind_ = io.greptime.v1.region.Server.All.newBuilder((io.greptime.v1.region.Server.All) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 2) { + allBuilder_.mergeFrom(value); + } else { + allBuilder_.setMessage(value); + } + } + kindCase_ = 2; + return this; + } + /** + * .greptime.v1.region.All all = 2; + */ + public Builder clearAll() { + if (allBuilder_ == null) { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 2) { + kindCase_ = 0; + kind_ = null; + } + allBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.region.All all = 2; + */ + public io.greptime.v1.region.Server.All.Builder getAllBuilder() { + return getAllFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.region.All all = 2; + */ + @java.lang.Override + public io.greptime.v1.region.Server.AllOrBuilder getAllOrBuilder() { + if ((kindCase_ == 2) && (allBuilder_ != null)) { + return allBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 2) { + return (io.greptime.v1.region.Server.All) kind_; + } + return io.greptime.v1.region.Server.All.getDefaultInstance(); + } + } + /** + * .greptime.v1.region.All all = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.All, io.greptime.v1.region.Server.All.Builder, io.greptime.v1.region.Server.AllOrBuilder> + getAllFieldBuilder() { + if (allBuilder_ == null) { + if (!(kindCase_ == 2)) { + kind_ = io.greptime.v1.region.Server.All.getDefaultInstance(); + } + allBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.region.Server.All, io.greptime.v1.region.Server.All.Builder, io.greptime.v1.region.Server.AllOrBuilder>( + (io.greptime.v1.region.Server.All) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 2; + onChanged();; + return allBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.TimeRanges, io.greptime.v1.Common.TimeRanges.Builder, io.greptime.v1.Common.TimeRangesOrBuilder> timeRangesBuilder_; + /** + * .greptime.v1.TimeRanges time_ranges = 3; + * @return Whether the timeRanges field is set. + */ + @java.lang.Override + public boolean hasTimeRanges() { + return kindCase_ == 3; + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + * @return The timeRanges. + */ + @java.lang.Override + public io.greptime.v1.Common.TimeRanges getTimeRanges() { + if (timeRangesBuilder_ == null) { + if (kindCase_ == 3) { + return (io.greptime.v1.Common.TimeRanges) kind_; + } + return io.greptime.v1.Common.TimeRanges.getDefaultInstance(); + } else { + if (kindCase_ == 3) { + return timeRangesBuilder_.getMessage(); + } + return io.greptime.v1.Common.TimeRanges.getDefaultInstance(); + } + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + public Builder setTimeRanges(io.greptime.v1.Common.TimeRanges value) { + if (timeRangesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + timeRangesBuilder_.setMessage(value); + } + kindCase_ = 3; + return this; + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + public Builder setTimeRanges( + io.greptime.v1.Common.TimeRanges.Builder builderForValue) { + if (timeRangesBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + timeRangesBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 3; + return this; + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + public Builder mergeTimeRanges(io.greptime.v1.Common.TimeRanges value) { + if (timeRangesBuilder_ == null) { + if (kindCase_ == 3 && + kind_ != io.greptime.v1.Common.TimeRanges.getDefaultInstance()) { + kind_ = io.greptime.v1.Common.TimeRanges.newBuilder((io.greptime.v1.Common.TimeRanges) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 3) { + timeRangesBuilder_.mergeFrom(value); + } else { + timeRangesBuilder_.setMessage(value); + } + } + kindCase_ = 3; + return this; + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + public Builder clearTimeRanges() { + if (timeRangesBuilder_ == null) { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 3) { + kindCase_ = 0; + kind_ = null; + } + timeRangesBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + public io.greptime.v1.Common.TimeRanges.Builder getTimeRangesBuilder() { + return getTimeRangesFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + @java.lang.Override + public io.greptime.v1.Common.TimeRangesOrBuilder getTimeRangesOrBuilder() { + if ((kindCase_ == 3) && (timeRangesBuilder_ != null)) { + return timeRangesBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 3) { + return (io.greptime.v1.Common.TimeRanges) kind_; + } + return io.greptime.v1.Common.TimeRanges.getDefaultInstance(); + } + } + /** + * .greptime.v1.TimeRanges time_ranges = 3; + */ + 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) { + if (!(kindCase_ == 3)) { + kind_ = io.greptime.v1.Common.TimeRanges.getDefaultInstance(); + } + timeRangesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Common.TimeRanges, io.greptime.v1.Common.TimeRanges.Builder, io.greptime.v1.Common.TimeRangesOrBuilder>( + (io.greptime.v1.Common.TimeRanges) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 3; + onChanged();; + return timeRangesBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -27523,6 +28054,434 @@ java.lang.String defaultValue); } + public interface AllOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.region.All) + com.google.protobuf.MessageOrBuilder { + } + /** + *
+   * Truncate all data in region
+   * 
+ * + * Protobuf type {@code greptime.v1.region.All} + */ + public static final class All extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.region.All) + AllOrBuilder { + private static final long serialVersionUID = 0L; + // Use All.newBuilder() to construct. + private All(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private All() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new All(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private All( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_All_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_All_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.All.class, io.greptime.v1.region.Server.All.Builder.class); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.region.Server.All)) { + return super.equals(obj); + } + io.greptime.v1.region.Server.All other = (io.greptime.v1.region.Server.All) obj; + + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.region.Server.All parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.All parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.All parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.All parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.All parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.region.Server.All parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.region.Server.All parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.All parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.region.Server.All parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.All parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.region.Server.All parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.region.Server.All parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.region.Server.All prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+     * Truncate all data in region
+     * 
+ * + * Protobuf type {@code greptime.v1.region.All} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.region.All) + io.greptime.v1.region.Server.AllOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_All_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_All_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.region.Server.All.class, io.greptime.v1.region.Server.All.Builder.class); + } + + // Construct using io.greptime.v1.region.Server.All.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.region.Server.internal_static_greptime_v1_region_All_descriptor; + } + + @java.lang.Override + public io.greptime.v1.region.Server.All getDefaultInstanceForType() { + return io.greptime.v1.region.Server.All.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.region.Server.All build() { + io.greptime.v1.region.Server.All result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.region.Server.All buildPartial() { + io.greptime.v1.region.Server.All result = new io.greptime.v1.region.Server.All(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.region.Server.All) { + return mergeFrom((io.greptime.v1.region.Server.All)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.region.Server.All other) { + if (other == io.greptime.v1.region.Server.All.getDefaultInstance()) return this; + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.region.Server.All parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.region.Server.All) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.region.All) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.region.All) + private static final io.greptime.v1.region.Server.All DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.region.Server.All(); + } + + public static io.greptime.v1.region.Server.All getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public All parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new All(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.region.Server.All getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface RegionColumnDefOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.region.RegionColumnDef) com.google.protobuf.MessageOrBuilder { @@ -31904,6 +32863,11 @@ java.lang.String defaultValue); private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_region_TruncateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_region_All_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_region_All_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_region_RegionColumnDef_descriptor; private static final @@ -32042,26 +33006,29 @@ java.lang.String defaultValue); "\004\022.\n\007regular\030\002 \001(\0132\033.greptime.v1.region." + "RegularH\000\0229\n\rstrict_window\030\003 \001(\0132 .grept" + "ime.v1.region.StrictWindowH\000B\t\n\007options\"" + - "$\n\017TruncateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n" + - "\017RegionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.g" + - "reptime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r\"" + - "Z\n\021BulkInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022" + - "*\n\tarrow_ipc\030\002 \001(\0132\025.greptime.v1.ArrowIp" + - "cH\000B\006\n\004body\"1\n\020MitoManifestInfo\022\035\n\025data_" + - "manifest_version\030\001 \001(\004\"V\n\022MetricManifest" + - "Info\022\035\n\025data_manifest_version\030\001 \001(\004\022!\n\031m" + - "etadata_manifest_version\030\002 \001(\004\"\275\001\n\013SyncR" + - "equest\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_manife" + - "st_info\030\002 \001(\0132$.greptime.v1.region.MitoM" + - "anifestInfoH\000\022F\n\024metric_manifest_info\030\003 " + - "\001(\0132&.greptime.v1.region.MetricManifestI" + - "nfoH\000B\017\n\rmanifest_info\")\n\023ListMetadataRe" + - "quest\022\022\n\nregion_ids\030\001 \003(\0042Y\n\006Region\022O\n\006H" + - "andle\022!.greptime.v1.region.RegionRequest" + - "\032\".greptime.v1.region.RegionResponseB]\n\025" + - "io.greptime.v1.regionB\006ServerZ