feat: change EXPIRE WHEN to EXPIRE AFTER (#170)
* feat: change EXPIRE WHEN to EXPIRE AFTER Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * change expire_after type Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * optional expire after Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
+244
-39
@@ -187,6 +187,19 @@ struct MetricsDefaultTypeInternal {
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MetricsDefaultTypeInternal _Metrics_default_instance_;
|
||||
PROTOBUF_CONSTEXPR ExpireAfter::ExpireAfter(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.value_)*/int64_t{0}
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct ExpireAfterDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR ExpireAfterDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~ExpireAfterDefaultTypeInternal() {}
|
||||
union {
|
||||
ExpireAfter _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExpireAfterDefaultTypeInternal _ExpireAfter_default_instance_;
|
||||
PROTOBUF_CONSTEXPR FlightMetadata::FlightMetadata(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.affected_rows_)*/nullptr
|
||||
@@ -260,7 +273,7 @@ struct DecimalTypeExtensionDefaultTypeInternal {
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[17];
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[18];
|
||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2];
|
||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr;
|
||||
|
||||
@@ -370,6 +383,13 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::Metrics, _impl_.metrics_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ExpireAfter, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::ExpireAfter, _impl_.value_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlightMetadata, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
~0u, // no _oneof_case_
|
||||
@@ -424,11 +444,12 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 81, -1, -1, sizeof(::greptime::v1::TableName)},
|
||||
{ 90, -1, -1, sizeof(::greptime::v1::AffectedRows)},
|
||||
{ 97, -1, -1, sizeof(::greptime::v1::Metrics)},
|
||||
{ 104, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
||||
{ 112, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||
{ 121, -1, -1, sizeof(::greptime::v1::Decimal128)},
|
||||
{ 129, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
|
||||
{ 137, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
|
||||
{ 104, -1, -1, sizeof(::greptime::v1::ExpireAfter)},
|
||||
{ 111, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
|
||||
{ 119, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
|
||||
{ 128, -1, -1, sizeof(::greptime::v1::Decimal128)},
|
||||
{ 136, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
|
||||
{ 144, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -444,6 +465,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
||||
&::greptime::v1::_TableName_default_instance_._instance,
|
||||
&::greptime::v1::_AffectedRows_default_instance_._instance,
|
||||
&::greptime::v1::_Metrics_default_instance_._instance,
|
||||
&::greptime::v1::_ExpireAfter_default_instance_._instance,
|
||||
&::greptime::v1::_FlightMetadata_default_instance_._instance,
|
||||
&::greptime::v1::_IntervalMonthDayNano_default_instance_._instance,
|
||||
&::greptime::v1::_Decimal128_default_instance_._instance,
|
||||
@@ -474,38 +496,39 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S
|
||||
"\n\005token\030\001 \001(\t\"J\n\tTableName\022\024\n\014catalog_na"
|
||||
"me\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_n"
|
||||
"ame\030\003 \001(\t\"\035\n\014AffectedRows\022\r\n\005value\030\001 \001(\r"
|
||||
"\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016FlightMe"
|
||||
"tadata\0220\n\raffected_rows\030\001 \001(\0132\031.greptime"
|
||||
".v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132\024.grep"
|
||||
"time.v1.Metrics\"I\n\024IntervalMonthDayNano\022"
|
||||
"\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanosec"
|
||||
"onds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n\n\002"
|
||||
"lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n\014d"
|
||||
"ecimal_type\030\001 \001(\0132!.greptime.v1.DecimalT"
|
||||
"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*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001"
|
||||
"\022\r\n\tTIMESTAMP\020\002*\326\003\n\016ColumnDataType\022\013\n\007BO"
|
||||
"OLEAN\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\006UIN"
|
||||
"T32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT6"
|
||||
"4\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\025TIM"
|
||||
"ESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICROS"
|
||||
"ECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIM"
|
||||
"E_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME"
|
||||
"_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023I"
|
||||
"NTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIM"
|
||||
"E\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECI"
|
||||
"MAL128\020\036BO\n\016io.greptime.v1B\006CommonZ5gith"
|
||||
"ub.com/GreptimeTeam/greptime-proto/go/gr"
|
||||
"eptime/v1b\006proto3"
|
||||
"\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"\034\n\013ExpireAf"
|
||||
"ter\022\r\n\005value\030\001 \001(\003\"i\n\016FlightMetadata\0220\n\r"
|
||||
"affected_rows\030\001 \001(\0132\031.greptime.v1.Affect"
|
||||
"edRows\022%\n\007metrics\030\002 \001(\0132\024.greptime.v1.Me"
|
||||
"trics\"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\"`"
|
||||
"\n\027ColumnDataTypeExtension\0229\n\014decimal_typ"
|
||||
"e\030\001 \001(\0132!.greptime.v1.DecimalTypeExtensi"
|
||||
"onH\000B\n\n\010type_ext\"8\n\024DecimalTypeExtension"
|
||||
"\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale\030\002 \001(\005*1\n\014Se"
|
||||
"manticType\022\007\n\003TAG\020\000\022\t\n\005FIELD\020\001\022\r\n\tTIMEST"
|
||||
"AMP\020\002*\326\003\n\016ColumnDataType\022\013\n\007BOOLEAN\020\000\022\010\n"
|
||||
"\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020\003\022\t\n\005INT64\020\004"
|
||||
"\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006UINT32\020\007\022\n\n\006U"
|
||||
"INT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOAT64\020\n\022\n\n\006BIN"
|
||||
"ARY\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\025TIMESTAMP_MIL"
|
||||
"LISECOND\020\020\022\031\n\025TIMESTAMP_MICROSECOND\020\021\022\030\n"
|
||||
"\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013TIME_SECOND\020\023"
|
||||
"\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TIME_MICROSECO"
|
||||
"ND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n\023INTERVAL_YE"
|
||||
"AR_MONTH\020\027\022\025\n\021INTERVAL_DAY_TIME\020\030\022\033\n\027INT"
|
||||
"ERVAL_MONTH_DAY_NANO\020\031\022\016\n\nDECIMAL128\020\036BO"
|
||||
"\n\016io.greptime.v1B\006CommonZ5github.com/Gre"
|
||||
"ptimeTeam/greptime-proto/go/greptime/v1b"
|
||||
"\006proto3"
|
||||
;
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = {
|
||||
false, false, 1897, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
false, false, 1927, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto,
|
||||
"greptime/v1/common.proto",
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 17,
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 18,
|
||||
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,
|
||||
@@ -3300,6 +3323,184 @@ void Metrics::InternalSwap(Metrics* other) {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class ExpireAfter::_Internal {
|
||||
public:
|
||||
};
|
||||
|
||||
ExpireAfter::ExpireAfter(::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.ExpireAfter)
|
||||
}
|
||||
ExpireAfter::ExpireAfter(const ExpireAfter& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
ExpireAfter* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.value_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_this->_impl_.value_ = from._impl_.value_;
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.ExpireAfter)
|
||||
}
|
||||
|
||||
inline void ExpireAfter::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.value_){int64_t{0}}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
ExpireAfter::~ExpireAfter() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.ExpireAfter)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void ExpireAfter::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
}
|
||||
|
||||
void ExpireAfter::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void ExpireAfter::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.ExpireAfter)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.value_ = int64_t{0};
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* ExpireAfter::_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 value = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
|
||||
_impl_.value_ = ::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* ExpireAfter::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.ExpireAfter)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// int64 value = 1;
|
||||
if (this->_internal_value() != 0) {
|
||||
target = stream->EnsureSpace(target);
|
||||
target = ::_pbi::WireFormatLite::WriteInt64ToArray(1, this->_internal_value(), 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.ExpireAfter)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t ExpireAfter::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.ExpireAfter)
|
||||
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 value = 1;
|
||||
if (this->_internal_value() != 0) {
|
||||
total_size += ::_pbi::WireFormatLite::Int64SizePlusOne(this->_internal_value());
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ExpireAfter::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
ExpireAfter::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ExpireAfter::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void ExpireAfter::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<ExpireAfter*>(&to_msg);
|
||||
auto& from = static_cast<const ExpireAfter&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.ExpireAfter)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_value() != 0) {
|
||||
_this->_internal_set_value(from._internal_value());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void ExpireAfter::CopyFrom(const ExpireAfter& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.ExpireAfter)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool ExpireAfter::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void ExpireAfter::InternalSwap(ExpireAfter* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.value_, other->_impl_.value_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata ExpireAfter::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[12]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class FlightMetadata::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::AffectedRows& affected_rows(const FlightMetadata* msg);
|
||||
@@ -3534,7 +3735,7 @@ void FlightMetadata::InternalSwap(FlightMetadata* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlightMetadata::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[12]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -3769,7 +3970,7 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const {
|
||||
return ::_pbi::AssignDescriptors(
|
||||
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once,
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[14]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -3980,7 +4181,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[14]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[15]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -4227,7 +4428,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[15]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[16]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -4438,7 +4639,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[16]);
|
||||
file_level_metadata_greptime_2fv1_2fcommon_2eproto[17]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -4493,6 +4694,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::Metrics*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::Metrics >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::Metrics >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::ExpireAfter*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::ExpireAfter >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::ExpireAfter >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::FlightMetadata*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::FlightMetadata >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::FlightMetadata >(arena);
|
||||
|
||||
+183
-5
@@ -68,6 +68,9 @@ extern Decimal128DefaultTypeInternal _Decimal128_default_instance_;
|
||||
class DecimalTypeExtension;
|
||||
struct DecimalTypeExtensionDefaultTypeInternal;
|
||||
extern DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
|
||||
class ExpireAfter;
|
||||
struct ExpireAfterDefaultTypeInternal;
|
||||
extern ExpireAfterDefaultTypeInternal _ExpireAfter_default_instance_;
|
||||
class FlightMetadata;
|
||||
struct FlightMetadataDefaultTypeInternal;
|
||||
extern FlightMetadataDefaultTypeInternal _FlightMetadata_default_instance_;
|
||||
@@ -110,6 +113,7 @@ template<> ::greptime::v1::Basic* Arena::CreateMaybeMessage<::greptime::v1::Basi
|
||||
template<> ::greptime::v1::ColumnDataTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::ColumnDataTypeExtension>(Arena*);
|
||||
template<> ::greptime::v1::Decimal128* Arena::CreateMaybeMessage<::greptime::v1::Decimal128>(Arena*);
|
||||
template<> ::greptime::v1::DecimalTypeExtension* Arena::CreateMaybeMessage<::greptime::v1::DecimalTypeExtension>(Arena*);
|
||||
template<> ::greptime::v1::ExpireAfter* Arena::CreateMaybeMessage<::greptime::v1::ExpireAfter>(Arena*);
|
||||
template<> ::greptime::v1::FlightMetadata* Arena::CreateMaybeMessage<::greptime::v1::FlightMetadata>(Arena*);
|
||||
template<> ::greptime::v1::IntervalMonthDayNano* Arena::CreateMaybeMessage<::greptime::v1::IntervalMonthDayNano>(Arena*);
|
||||
template<> ::greptime::v1::Metrics* Arena::CreateMaybeMessage<::greptime::v1::Metrics>(Arena*);
|
||||
@@ -2042,6 +2046,154 @@ class Metrics final :
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class ExpireAfter final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ExpireAfter) */ {
|
||||
public:
|
||||
inline ExpireAfter() : ExpireAfter(nullptr) {}
|
||||
~ExpireAfter() override;
|
||||
explicit PROTOBUF_CONSTEXPR ExpireAfter(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
ExpireAfter(const ExpireAfter& from);
|
||||
ExpireAfter(ExpireAfter&& from) noexcept
|
||||
: ExpireAfter() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline ExpireAfter& operator=(const ExpireAfter& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline ExpireAfter& operator=(ExpireAfter&& 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 ExpireAfter& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const ExpireAfter* internal_default_instance() {
|
||||
return reinterpret_cast<const ExpireAfter*>(
|
||||
&_ExpireAfter_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
12;
|
||||
|
||||
friend void swap(ExpireAfter& a, ExpireAfter& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(ExpireAfter* 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(ExpireAfter* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
ExpireAfter* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<ExpireAfter>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const ExpireAfter& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const ExpireAfter& from) {
|
||||
ExpireAfter::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(ExpireAfter* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.ExpireAfter";
|
||||
}
|
||||
protected:
|
||||
explicit ExpireAfter(::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 {
|
||||
kValueFieldNumber = 1,
|
||||
};
|
||||
// int64 value = 1;
|
||||
void clear_value();
|
||||
int64_t value() const;
|
||||
void set_value(int64_t value);
|
||||
private:
|
||||
int64_t _internal_value() const;
|
||||
void _internal_set_value(int64_t value);
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.ExpireAfter)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
int64_t value_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class FlightMetadata final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.FlightMetadata) */ {
|
||||
public:
|
||||
@@ -2090,7 +2242,7 @@ class FlightMetadata final :
|
||||
&_FlightMetadata_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
12;
|
||||
13;
|
||||
|
||||
friend void swap(FlightMetadata& a, FlightMetadata& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2267,7 +2419,7 @@ class IntervalMonthDayNano final :
|
||||
&_IntervalMonthDayNano_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
13;
|
||||
14;
|
||||
|
||||
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2437,7 +2589,7 @@ class Decimal128 final :
|
||||
&_Decimal128_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
14;
|
||||
15;
|
||||
|
||||
friend void swap(Decimal128& a, Decimal128& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2601,7 +2753,7 @@ class ColumnDataTypeExtension final :
|
||||
&_ColumnDataTypeExtension_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
15;
|
||||
16;
|
||||
|
||||
friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2770,7 +2922,7 @@ class DecimalTypeExtension final :
|
||||
&_DecimalTypeExtension_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
16;
|
||||
17;
|
||||
|
||||
friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4117,6 +4269,30 @@ inline void Metrics::set_allocated_metrics(std::string* metrics) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// ExpireAfter
|
||||
|
||||
// int64 value = 1;
|
||||
inline void ExpireAfter::clear_value() {
|
||||
_impl_.value_ = int64_t{0};
|
||||
}
|
||||
inline int64_t ExpireAfter::_internal_value() const {
|
||||
return _impl_.value_;
|
||||
}
|
||||
inline int64_t ExpireAfter::value() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.ExpireAfter.value)
|
||||
return _internal_value();
|
||||
}
|
||||
inline void ExpireAfter::_internal_set_value(int64_t value) {
|
||||
|
||||
_impl_.value_ = value;
|
||||
}
|
||||
inline void ExpireAfter::set_value(int64_t value) {
|
||||
_internal_set_value(value);
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.ExpireAfter.value)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// FlightMetadata
|
||||
|
||||
// .greptime.v1.AffectedRows affected_rows = 1;
|
||||
@@ -4573,6 +4749,8 @@ inline void DecimalTypeExtension::set_scale(int32_t value) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
+117
-119
@@ -53,10 +53,10 @@ PROTOBUF_CONSTEXPR CreateFlowExpr::CreateFlowExpr(
|
||||
, /*decltype(_impl_.flow_options_)*/{::_pbi::ConstantInitialized()}
|
||||
, /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.flow_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.expire_when_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.sql_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.sink_table_name_)*/nullptr
|
||||
, /*decltype(_impl_.expire_after_)*/nullptr
|
||||
, /*decltype(_impl_.or_replace_)*/false
|
||||
, /*decltype(_impl_.create_if_not_exists_)*/false
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
@@ -444,7 +444,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.sink_table_name_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.or_replace_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.create_if_not_exists_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.expire_when_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.expire_after_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.comment_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.sql_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowExpr, _impl_.flow_options_),
|
||||
@@ -730,92 +730,93 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
|
||||
"_flow\030\t \001(\0132\031.greptime.v1.DropFlowExprH\000"
|
||||
"\0222\n\013create_view\030\n \001(\0132\033.greptime.v1.Crea"
|
||||
"teViewExprH\000\022.\n\tdrop_view\030\013 \001(\0132\031.grepti"
|
||||
"me.v1.DropViewExprH\000B\006\n\004expr\"\373\002\n\016CreateF"
|
||||
"me.v1.DropViewExprH\000B\006\n\004expr\"\226\003\n\016CreateF"
|
||||
"lowExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tflow_na"
|
||||
"me\030\002 \001(\t\0222\n\022source_table_names\030\003 \003(\0132\026.g"
|
||||
"reptime.v1.TableName\022/\n\017sink_table_name\030"
|
||||
"\004 \001(\0132\026.greptime.v1.TableName\022\022\n\nor_repl"
|
||||
"ace\030\005 \001(\010\022\034\n\024create_if_not_exists\030\006 \001(\010\022"
|
||||
"\023\n\013expire_when\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t\022\013\n"
|
||||
"\003sql\030\t \001(\t\022B\n\014flow_options\030\n \003(\0132,.grept"
|
||||
"ime.v1.CreateFlowExpr.FlowOptionsEntry\0322"
|
||||
"\n\020FlowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
|
||||
"\030\002 \001(\t:\0028\001\"u\n\014DropFlowExpr\022\024\n\014catalog_na"
|
||||
"me\030\001 \001(\t\022\021\n\tflow_name\030\002 \001(\t\022$\n\007flow_id\030\003"
|
||||
" \001(\0132\023.greptime.v1.FlowId\022\026\n\016drop_if_exi"
|
||||
"sts\030\005 \001(\010\"\226\001\n\016CreateViewExpr\022\024\n\014catalog_"
|
||||
"name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\021\n\tview_"
|
||||
"name\030\003 \001(\t\022\024\n\014logical_plan\030\004 \001(\014\022\034\n\024crea"
|
||||
"te_if_not_exists\030\005 \001(\010\022\022\n\nor_replace\030\006 \001"
|
||||
"(\010\"\213\001\n\014DropViewExpr\022\024\n\014catalog_name\030\001 \001("
|
||||
"\t\022\023\n\013schema_name\030\002 \001(\t\022\021\n\tview_name\030\003 \001("
|
||||
"\t\022%\n\007view_id\030\004 \001(\0132\024.greptime.v1.TableId"
|
||||
"\022\026\n\016drop_if_exists\030\005 \001(\010\"\207\003\n\017CreateTable"
|
||||
"Expr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_nam"
|
||||
"e\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc\030\004 \001("
|
||||
"\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v1.Col"
|
||||
"umnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014primary_ke"
|
||||
"ys\030\007 \003(\t\022\034\n\024create_if_not_exists\030\010 \001(\010\022E"
|
||||
"\n\rtable_options\030\t \003(\0132..greptime.v1.Crea"
|
||||
"teTableExpr.TableOptionsEntry\022&\n\010table_i"
|
||||
"d\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006engine\030"
|
||||
"\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001 \001(\t\022"
|
||||
"\r\n\005value\030\002 \001(\t:\0028\001\"\245\002\n\tAlterExpr\022\024\n\014cata"
|
||||
"log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nt"
|
||||
"able_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001(\0132\027.g"
|
||||
"reptime.v1.AddColumnsH\000\0220\n\014drop_columns\030"
|
||||
"\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220\n\014ren"
|
||||
"ame_table\030\006 \001(\0132\030.greptime.v1.RenameTabl"
|
||||
"eH\000\022=\n\023change_column_types\030\007 \001(\0132\036.grept"
|
||||
"ime.v1.ChangeColumnTypesH\000B\006\n\004kind\"\216\001\n\rD"
|
||||
"ropTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc"
|
||||
"hema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010t"
|
||||
"able_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016d"
|
||||
"rop_if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseEx"
|
||||
"pr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030"
|
||||
"\002 \001(\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007o"
|
||||
"ptions\030\004 \003(\0132,.greptime.v1.CreateDatabas"
|
||||
"eExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke"
|
||||
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTa"
|
||||
"bleExpr\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.TableId\"U\n\020DropDa"
|
||||
"tabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sche"
|
||||
"ma_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n"
|
||||
"\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026.grept"
|
||||
"ime.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_"
|
||||
"columns\030\001 \003(\0132\027.greptime.v1.DropColumn\"O"
|
||||
"\n\021ChangeColumnTypes\022:\n\023change_column_typ"
|
||||
"es\030\001 \003(\0132\035.greptime.v1.ChangeColumnType\""
|
||||
"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"i"
|
||||
"\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti"
|
||||
"me.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.grep"
|
||||
"time.v1.AddColumnLocation\"\236\001\n\020ChangeColu"
|
||||
"mnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013target_ty"
|
||||
"pe\030\002 \001(\0162\033.greptime.v1.ColumnDataType\022C\n"
|
||||
"\025target_type_extension\030\003 \001(\0132$.greptime."
|
||||
"v1.ColumnDataTypeExtension\"\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\"\377\001\n\tColumnDef\022\014\n\004nam"
|
||||
"e\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\022"
|
||||
"default_constraint\030\004 \001(\014\0220\n\rsemantic_typ"
|
||||
"e\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007co"
|
||||
"mment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\0132"
|
||||
"$.greptime.v1.ColumnDataTypeExtension\"\230\001"
|
||||
"\n\021AddColumnLocation\022B\n\rlocation_type\030\001 \001"
|
||||
"(\0162+.greptime.v1.AddColumnLocation.Locat"
|
||||
"ionType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014Lo"
|
||||
"cationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.g"
|
||||
"reptime.v1B\003DdlZ5github.com/GreptimeTeam"
|
||||
"/greptime-proto/go/greptime/v1b\006proto3"
|
||||
".\n\014expire_after\030\007 \001(\0132\030.greptime.v1.Expi"
|
||||
"reAfter\022\017\n\007comment\030\010 \001(\t\022\013\n\003sql\030\t \001(\t\022B\n"
|
||||
"\014flow_options\030\n \003(\0132,.greptime.v1.Create"
|
||||
"FlowExpr.FlowOptionsEntry\0322\n\020FlowOptions"
|
||||
"Entry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n"
|
||||
"\014DropFlowExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tf"
|
||||
"low_name\030\002 \001(\t\022$\n\007flow_id\030\003 \001(\0132\023.grepti"
|
||||
"me.v1.FlowId\022\026\n\016drop_if_exists\030\005 \001(\010\"\226\001\n"
|
||||
"\016CreateViewExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n"
|
||||
"\013schema_name\030\002 \001(\t\022\021\n\tview_name\030\003 \001(\t\022\024\n"
|
||||
"\014logical_plan\030\004 \001(\014\022\034\n\024create_if_not_exi"
|
||||
"sts\030\005 \001(\010\022\022\n\nor_replace\030\006 \001(\010\"\213\001\n\014DropVi"
|
||||
"ewExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_n"
|
||||
"ame\030\002 \001(\t\022\021\n\tview_name\030\003 \001(\t\022%\n\007view_id\030"
|
||||
"\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_e"
|
||||
"xists\030\005 \001(\010\"\207\003\n\017CreateTableExpr\022\024\n\014catal"
|
||||
"og_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\nta"
|
||||
"ble_name\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022+\n\013column_d"
|
||||
"efs\030\005 \003(\0132\026.greptime.v1.ColumnDef\022\022\n\ntim"
|
||||
"e_index\030\006 \001(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024c"
|
||||
"reate_if_not_exists\030\010 \001(\010\022E\n\rtable_optio"
|
||||
"ns\030\t \003(\0132..greptime.v1.CreateTableExpr.T"
|
||||
"ableOptionsEntry\022&\n\010table_id\030\n \001(\0132\024.gre"
|
||||
"ptime.v1.TableId\022\016\n\006engine\030\014 \001(\t\0323\n\021Tabl"
|
||||
"eOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001("
|
||||
"\t:\0028\001\"\245\002\n\tAlterExpr\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\013add_columns\030\004 \001(\0132\027.greptime.v1.Ad"
|
||||
"dColumnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030.grept"
|
||||
"ime.v1.DropColumnsH\000\0220\n\014rename_table\030\006 \001"
|
||||
"(\0132\030.greptime.v1.RenameTableH\000\022=\n\023change"
|
||||
"_column_types\030\007 \001(\0132\036.greptime.v1.Change"
|
||||
"ColumnTypesH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\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(\013"
|
||||
"2\024.greptime.v1.TableId\022\026\n\016drop_if_exists"
|
||||
"\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog"
|
||||
"_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024crea"
|
||||
"te_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132"
|
||||
",.greptime.v1.CreateDatabaseExpr.Options"
|
||||
"Entry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005va"
|
||||
"lue\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014ca"
|
||||
"talog_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.gr"
|
||||
"eptime.v1.TableId\"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_exists\030\003 \001(\010\"9\n\nAddColumns\022+"
|
||||
"\n\013add_columns\030\001 \003(\0132\026.greptime.v1.AddCol"
|
||||
"umn\"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\013"
|
||||
"2\027.greptime.v1.DropColumn\"O\n\021ChangeColum"
|
||||
"nTypes\022:\n\023change_column_types\030\001 \003(\0132\035.gr"
|
||||
"eptime.v1.ChangeColumnType\"%\n\013RenameTabl"
|
||||
"e\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*"
|
||||
"\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.ColumnD"
|
||||
"ef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.AddCo"
|
||||
"lumnLocation\"\236\001\n\020ChangeColumnType\022\023\n\013col"
|
||||
"umn_name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.gr"
|
||||
"eptime.v1.ColumnDataType\022C\n\025target_type_"
|
||||
"extension\030\003 \001(\0132$.greptime.v1.ColumnData"
|
||||
"TypeExtension\"\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\"\377\001\n\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tda"
|
||||
"ta_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy"
|
||||
"pe\022\023\n\013is_nullable\030\003 \001(\010\022\032\n\022default_const"
|
||||
"raint\030\004 \001(\014\0220\n\rsemantic_type\030\005 \001(\0162\031.gre"
|
||||
"ptime.v1.SemanticType\022\017\n\007comment\030\006 \001(\t\022@"
|
||||
"\n\022datatype_extension\030\007 \001(\0132$.greptime.v1"
|
||||
".ColumnDataTypeExtension\"\230\001\n\021AddColumnLo"
|
||||
"cation\022B\n\rlocation_type\030\001 \001(\0162+.greptime"
|
||||
".v1.AddColumnLocation.LocationType\022\031\n\021af"
|
||||
"ter_column_name\030\002 \001(\t\"$\n\014LocationType\022\t\n"
|
||||
"\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io.greptime.v1B\003D"
|
||||
"dlZ5github.com/GreptimeTeam/greptime-pro"
|
||||
"to/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, 3678, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
||||
false, false, 3705, 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, 25,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
|
||||
@@ -1582,12 +1583,17 @@ void CreateFlowExpr_FlowOptionsEntry_DoNotUse::MergeFrom(const CreateFlowExpr_Fl
|
||||
class CreateFlowExpr::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::TableName& sink_table_name(const CreateFlowExpr* msg);
|
||||
static const ::greptime::v1::ExpireAfter& expire_after(const CreateFlowExpr* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::TableName&
|
||||
CreateFlowExpr::_Internal::sink_table_name(const CreateFlowExpr* msg) {
|
||||
return *msg->_impl_.sink_table_name_;
|
||||
}
|
||||
const ::greptime::v1::ExpireAfter&
|
||||
CreateFlowExpr::_Internal::expire_after(const CreateFlowExpr* msg) {
|
||||
return *msg->_impl_.expire_after_;
|
||||
}
|
||||
void CreateFlowExpr::clear_source_table_names() {
|
||||
_impl_.source_table_names_.Clear();
|
||||
}
|
||||
@@ -1597,6 +1603,12 @@ void CreateFlowExpr::clear_sink_table_name() {
|
||||
}
|
||||
_impl_.sink_table_name_ = nullptr;
|
||||
}
|
||||
void CreateFlowExpr::clear_expire_after() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.expire_after_ != nullptr) {
|
||||
delete _impl_.expire_after_;
|
||||
}
|
||||
_impl_.expire_after_ = nullptr;
|
||||
}
|
||||
CreateFlowExpr::CreateFlowExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -1614,10 +1626,10 @@ CreateFlowExpr::CreateFlowExpr(const CreateFlowExpr& from)
|
||||
, /*decltype(_impl_.flow_options_)*/{}
|
||||
, decltype(_impl_.catalog_name_){}
|
||||
, decltype(_impl_.flow_name_){}
|
||||
, decltype(_impl_.expire_when_){}
|
||||
, decltype(_impl_.comment_){}
|
||||
, decltype(_impl_.sql_){}
|
||||
, decltype(_impl_.sink_table_name_){nullptr}
|
||||
, decltype(_impl_.expire_after_){nullptr}
|
||||
, decltype(_impl_.or_replace_){}
|
||||
, decltype(_impl_.create_if_not_exists_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
@@ -1640,14 +1652,6 @@ CreateFlowExpr::CreateFlowExpr(const CreateFlowExpr& from)
|
||||
_this->_impl_.flow_name_.Set(from._internal_flow_name(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
_impl_.expire_when_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.expire_when_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (!from._internal_expire_when().empty()) {
|
||||
_this->_impl_.expire_when_.Set(from._internal_expire_when(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
_impl_.comment_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.comment_.Set("", GetArenaForAllocation());
|
||||
@@ -1667,6 +1671,9 @@ CreateFlowExpr::CreateFlowExpr(const CreateFlowExpr& from)
|
||||
if (from._internal_has_sink_table_name()) {
|
||||
_this->_impl_.sink_table_name_ = new ::greptime::v1::TableName(*from._impl_.sink_table_name_);
|
||||
}
|
||||
if (from._internal_has_expire_after()) {
|
||||
_this->_impl_.expire_after_ = new ::greptime::v1::ExpireAfter(*from._impl_.expire_after_);
|
||||
}
|
||||
::memcpy(&_impl_.or_replace_, &from._impl_.or_replace_,
|
||||
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.create_if_not_exists_) -
|
||||
reinterpret_cast<char*>(&_impl_.or_replace_)) + sizeof(_impl_.create_if_not_exists_));
|
||||
@@ -1682,10 +1689,10 @@ inline void CreateFlowExpr::SharedCtor(
|
||||
, /*decltype(_impl_.flow_options_)*/{::_pbi::ArenaInitialized(), arena}
|
||||
, decltype(_impl_.catalog_name_){}
|
||||
, decltype(_impl_.flow_name_){}
|
||||
, decltype(_impl_.expire_when_){}
|
||||
, decltype(_impl_.comment_){}
|
||||
, decltype(_impl_.sql_){}
|
||||
, decltype(_impl_.sink_table_name_){nullptr}
|
||||
, decltype(_impl_.expire_after_){nullptr}
|
||||
, decltype(_impl_.or_replace_){false}
|
||||
, decltype(_impl_.create_if_not_exists_){false}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
@@ -1698,10 +1705,6 @@ inline void CreateFlowExpr::SharedCtor(
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.flow_name_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.expire_when_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.expire_when_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.comment_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.comment_.Set("", GetArenaForAllocation());
|
||||
@@ -1729,10 +1732,10 @@ inline void CreateFlowExpr::SharedDtor() {
|
||||
_impl_.flow_options_.~MapField();
|
||||
_impl_.catalog_name_.Destroy();
|
||||
_impl_.flow_name_.Destroy();
|
||||
_impl_.expire_when_.Destroy();
|
||||
_impl_.comment_.Destroy();
|
||||
_impl_.sql_.Destroy();
|
||||
if (this != internal_default_instance()) delete _impl_.sink_table_name_;
|
||||
if (this != internal_default_instance()) delete _impl_.expire_after_;
|
||||
}
|
||||
|
||||
void CreateFlowExpr::ArenaDtor(void* object) {
|
||||
@@ -1753,13 +1756,16 @@ void CreateFlowExpr::Clear() {
|
||||
_impl_.flow_options_.Clear();
|
||||
_impl_.catalog_name_.ClearToEmpty();
|
||||
_impl_.flow_name_.ClearToEmpty();
|
||||
_impl_.expire_when_.ClearToEmpty();
|
||||
_impl_.comment_.ClearToEmpty();
|
||||
_impl_.sql_.ClearToEmpty();
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.sink_table_name_ != nullptr) {
|
||||
delete _impl_.sink_table_name_;
|
||||
}
|
||||
_impl_.sink_table_name_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.expire_after_ != nullptr) {
|
||||
delete _impl_.expire_after_;
|
||||
}
|
||||
_impl_.expire_after_ = nullptr;
|
||||
::memset(&_impl_.or_replace_, 0, static_cast<size_t>(
|
||||
reinterpret_cast<char*>(&_impl_.create_if_not_exists_) -
|
||||
reinterpret_cast<char*>(&_impl_.or_replace_)) + sizeof(_impl_.create_if_not_exists_));
|
||||
@@ -1829,13 +1835,11 @@ const char* CreateFlowExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// string expire_when = 7;
|
||||
// .greptime.v1.ExpireAfter expire_after = 7;
|
||||
case 7:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 58)) {
|
||||
auto str = _internal_mutable_expire_when();
|
||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||
ptr = ctx->ParseMessage(_internal_mutable_expire_after(), ptr);
|
||||
CHK_(ptr);
|
||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.CreateFlowExpr.expire_when"));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
@@ -1948,14 +1952,11 @@ uint8_t* CreateFlowExpr::_InternalSerialize(
|
||||
target = ::_pbi::WireFormatLite::WriteBoolToArray(6, this->_internal_create_if_not_exists(), target);
|
||||
}
|
||||
|
||||
// string expire_when = 7;
|
||||
if (!this->_internal_expire_when().empty()) {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->_internal_expire_when().data(), static_cast<int>(this->_internal_expire_when().length()),
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||
"greptime.v1.CreateFlowExpr.expire_when");
|
||||
target = stream->WriteStringMaybeAliased(
|
||||
7, this->_internal_expire_when(), target);
|
||||
// .greptime.v1.ExpireAfter expire_after = 7;
|
||||
if (this->_internal_has_expire_after()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(7, _Internal::expire_after(this),
|
||||
_Internal::expire_after(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// string comment = 8;
|
||||
@@ -2054,13 +2055,6 @@ size_t CreateFlowExpr::ByteSizeLong() const {
|
||||
this->_internal_flow_name());
|
||||
}
|
||||
|
||||
// string expire_when = 7;
|
||||
if (!this->_internal_expire_when().empty()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||
this->_internal_expire_when());
|
||||
}
|
||||
|
||||
// string comment = 8;
|
||||
if (!this->_internal_comment().empty()) {
|
||||
total_size += 1 +
|
||||
@@ -2082,6 +2076,13 @@ size_t CreateFlowExpr::ByteSizeLong() const {
|
||||
*_impl_.sink_table_name_);
|
||||
}
|
||||
|
||||
// .greptime.v1.ExpireAfter expire_after = 7;
|
||||
if (this->_internal_has_expire_after()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.expire_after_);
|
||||
}
|
||||
|
||||
// bool or_replace = 5;
|
||||
if (this->_internal_or_replace() != 0) {
|
||||
total_size += 1 + 1;
|
||||
@@ -2118,9 +2119,6 @@ void CreateFlowExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
|
||||
if (!from._internal_flow_name().empty()) {
|
||||
_this->_internal_set_flow_name(from._internal_flow_name());
|
||||
}
|
||||
if (!from._internal_expire_when().empty()) {
|
||||
_this->_internal_set_expire_when(from._internal_expire_when());
|
||||
}
|
||||
if (!from._internal_comment().empty()) {
|
||||
_this->_internal_set_comment(from._internal_comment());
|
||||
}
|
||||
@@ -2131,6 +2129,10 @@ void CreateFlowExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
|
||||
_this->_internal_mutable_sink_table_name()->::greptime::v1::TableName::MergeFrom(
|
||||
from._internal_sink_table_name());
|
||||
}
|
||||
if (from._internal_has_expire_after()) {
|
||||
_this->_internal_mutable_expire_after()->::greptime::v1::ExpireAfter::MergeFrom(
|
||||
from._internal_expire_after());
|
||||
}
|
||||
if (from._internal_or_replace() != 0) {
|
||||
_this->_internal_set_or_replace(from._internal_or_replace());
|
||||
}
|
||||
@@ -2166,10 +2168,6 @@ void CreateFlowExpr::InternalSwap(CreateFlowExpr* other) {
|
||||
&_impl_.flow_name_, lhs_arena,
|
||||
&other->_impl_.flow_name_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&_impl_.expire_when_, lhs_arena,
|
||||
&other->_impl_.expire_when_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&_impl_.comment_, lhs_arena,
|
||||
&other->_impl_.comment_, rhs_arena
|
||||
|
||||
+94
-55
@@ -691,10 +691,10 @@ class CreateFlowExpr final :
|
||||
kFlowOptionsFieldNumber = 10,
|
||||
kCatalogNameFieldNumber = 1,
|
||||
kFlowNameFieldNumber = 2,
|
||||
kExpireWhenFieldNumber = 7,
|
||||
kCommentFieldNumber = 8,
|
||||
kSqlFieldNumber = 9,
|
||||
kSinkTableNameFieldNumber = 4,
|
||||
kExpireAfterFieldNumber = 7,
|
||||
kOrReplaceFieldNumber = 5,
|
||||
kCreateIfNotExistsFieldNumber = 6,
|
||||
};
|
||||
@@ -761,20 +761,6 @@ class CreateFlowExpr final :
|
||||
std::string* _internal_mutable_flow_name();
|
||||
public:
|
||||
|
||||
// string expire_when = 7;
|
||||
void clear_expire_when();
|
||||
const std::string& expire_when() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_expire_when(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_expire_when();
|
||||
PROTOBUF_NODISCARD std::string* release_expire_when();
|
||||
void set_allocated_expire_when(std::string* expire_when);
|
||||
private:
|
||||
const std::string& _internal_expire_when() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_expire_when(const std::string& value);
|
||||
std::string* _internal_mutable_expire_when();
|
||||
public:
|
||||
|
||||
// string comment = 8;
|
||||
void clear_comment();
|
||||
const std::string& comment() const;
|
||||
@@ -821,6 +807,24 @@ class CreateFlowExpr final :
|
||||
::greptime::v1::TableName* sink_table_name);
|
||||
::greptime::v1::TableName* unsafe_arena_release_sink_table_name();
|
||||
|
||||
// .greptime.v1.ExpireAfter expire_after = 7;
|
||||
bool has_expire_after() const;
|
||||
private:
|
||||
bool _internal_has_expire_after() const;
|
||||
public:
|
||||
void clear_expire_after();
|
||||
const ::greptime::v1::ExpireAfter& expire_after() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::ExpireAfter* release_expire_after();
|
||||
::greptime::v1::ExpireAfter* mutable_expire_after();
|
||||
void set_allocated_expire_after(::greptime::v1::ExpireAfter* expire_after);
|
||||
private:
|
||||
const ::greptime::v1::ExpireAfter& _internal_expire_after() const;
|
||||
::greptime::v1::ExpireAfter* _internal_mutable_expire_after();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_expire_after(
|
||||
::greptime::v1::ExpireAfter* expire_after);
|
||||
::greptime::v1::ExpireAfter* unsafe_arena_release_expire_after();
|
||||
|
||||
// bool or_replace = 5;
|
||||
void clear_or_replace();
|
||||
bool or_replace() const;
|
||||
@@ -855,10 +859,10 @@ class CreateFlowExpr final :
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> flow_options_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr flow_name_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expire_when_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_;
|
||||
::greptime::v1::TableName* sink_table_name_;
|
||||
::greptime::v1::ExpireAfter* expire_after_;
|
||||
bool or_replace_;
|
||||
bool create_if_not_exists_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
@@ -5812,54 +5816,89 @@ inline void CreateFlowExpr::set_create_if_not_exists(bool value) {
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.CreateFlowExpr.create_if_not_exists)
|
||||
}
|
||||
|
||||
// string expire_when = 7;
|
||||
inline void CreateFlowExpr::clear_expire_when() {
|
||||
_impl_.expire_when_.ClearToEmpty();
|
||||
// .greptime.v1.ExpireAfter expire_after = 7;
|
||||
inline bool CreateFlowExpr::_internal_has_expire_after() const {
|
||||
return this != internal_default_instance() && _impl_.expire_after_ != nullptr;
|
||||
}
|
||||
inline const std::string& CreateFlowExpr::expire_when() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.CreateFlowExpr.expire_when)
|
||||
return _internal_expire_when();
|
||||
inline bool CreateFlowExpr::has_expire_after() const {
|
||||
return _internal_has_expire_after();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void CreateFlowExpr::set_expire_when(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.expire_when_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.CreateFlowExpr.expire_when)
|
||||
inline const ::greptime::v1::ExpireAfter& CreateFlowExpr::_internal_expire_after() const {
|
||||
const ::greptime::v1::ExpireAfter* p = _impl_.expire_after_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::ExpireAfter&>(
|
||||
::greptime::v1::_ExpireAfter_default_instance_);
|
||||
}
|
||||
inline std::string* CreateFlowExpr::mutable_expire_when() {
|
||||
std::string* _s = _internal_mutable_expire_when();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowExpr.expire_when)
|
||||
return _s;
|
||||
inline const ::greptime::v1::ExpireAfter& CreateFlowExpr::expire_after() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.CreateFlowExpr.expire_after)
|
||||
return _internal_expire_after();
|
||||
}
|
||||
inline const std::string& CreateFlowExpr::_internal_expire_when() const {
|
||||
return _impl_.expire_when_.Get();
|
||||
}
|
||||
inline void CreateFlowExpr::_internal_set_expire_when(const std::string& value) {
|
||||
|
||||
_impl_.expire_when_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CreateFlowExpr::_internal_mutable_expire_when() {
|
||||
|
||||
return _impl_.expire_when_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CreateFlowExpr::release_expire_when() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.CreateFlowExpr.expire_when)
|
||||
return _impl_.expire_when_.Release();
|
||||
}
|
||||
inline void CreateFlowExpr::set_allocated_expire_when(std::string* expire_when) {
|
||||
if (expire_when != nullptr) {
|
||||
inline void CreateFlowExpr::unsafe_arena_set_allocated_expire_after(
|
||||
::greptime::v1::ExpireAfter* expire_after) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expire_after_);
|
||||
}
|
||||
_impl_.expire_after_ = expire_after;
|
||||
if (expire_after) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.expire_when_.SetAllocated(expire_when, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.expire_when_.IsDefault()) {
|
||||
_impl_.expire_when_.Set("", GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.CreateFlowExpr.expire_after)
|
||||
}
|
||||
inline ::greptime::v1::ExpireAfter* CreateFlowExpr::release_expire_after() {
|
||||
|
||||
::greptime::v1::ExpireAfter* temp = _impl_.expire_after_;
|
||||
_impl_.expire_after_ = 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_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowExpr.expire_when)
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::ExpireAfter* CreateFlowExpr::unsafe_arena_release_expire_after() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.CreateFlowExpr.expire_after)
|
||||
|
||||
::greptime::v1::ExpireAfter* temp = _impl_.expire_after_;
|
||||
_impl_.expire_after_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::ExpireAfter* CreateFlowExpr::_internal_mutable_expire_after() {
|
||||
|
||||
if (_impl_.expire_after_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::ExpireAfter>(GetArenaForAllocation());
|
||||
_impl_.expire_after_ = p;
|
||||
}
|
||||
return _impl_.expire_after_;
|
||||
}
|
||||
inline ::greptime::v1::ExpireAfter* CreateFlowExpr::mutable_expire_after() {
|
||||
::greptime::v1::ExpireAfter* _msg = _internal_mutable_expire_after();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowExpr.expire_after)
|
||||
return _msg;
|
||||
}
|
||||
inline void CreateFlowExpr::set_allocated_expire_after(::greptime::v1::ExpireAfter* expire_after) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expire_after_);
|
||||
}
|
||||
if (expire_after) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expire_after));
|
||||
if (message_arena != submessage_arena) {
|
||||
expire_after = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, expire_after, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.expire_after_ = expire_after;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowExpr.expire_after)
|
||||
}
|
||||
|
||||
// string comment = 8;
|
||||
|
||||
@@ -132,11 +132,11 @@ PROTOBUF_CONSTEXPR CreateRequest::CreateRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.source_table_ids_)*/{}
|
||||
, /*decltype(_impl_.flow_options_)*/{::_pbi::ConstantInitialized()}
|
||||
, /*decltype(_impl_.expire_when_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.comment_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.sql_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
|
||||
, /*decltype(_impl_.flow_id_)*/nullptr
|
||||
, /*decltype(_impl_.sink_table_name_)*/nullptr
|
||||
, /*decltype(_impl_.expire_after_)*/nullptr
|
||||
, /*decltype(_impl_.create_if_not_exists_)*/false
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct CreateRequestDefaultTypeInternal {
|
||||
@@ -252,7 +252,7 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.source_table_ids_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.sink_table_name_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.create_if_not_exists_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.expire_when_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.expire_after_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.comment_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.sql_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest, _impl_.flow_options_),
|
||||
@@ -313,24 +313,25 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
|
||||
"ime.v1.FlowId\022@\n\textension\030\004 \003(\0132-.grept"
|
||||
"ime.v1.flow.FlowResponse.ExtensionEntry\032"
|
||||
"0\n\016ExtensionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
|
||||
"\002 \001(\014:\0028\001\"\343\002\n\rCreateRequest\022$\n\007flow_id\030\001"
|
||||
"\002 \001(\014:\0028\001\"\376\002\n\rCreateRequest\022$\n\007flow_id\030\001"
|
||||
" \001(\0132\023.greptime.v1.FlowId\022.\n\020source_tabl"
|
||||
"e_ids\030\002 \003(\0132\024.greptime.v1.TableId\022/\n\017sin"
|
||||
"k_table_name\030\003 \001(\0132\026.greptime.v1.TableNa"
|
||||
"me\022\034\n\024create_if_not_exists\030\004 \001(\010\022\023\n\013expi"
|
||||
"re_when\030\005 \001(\t\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 "
|
||||
"\001(\t\022F\n\014flow_options\030\010 \003(\01320.greptime.v1."
|
||||
"flow.CreateRequest.FlowOptionsEntry\0322\n\020F"
|
||||
"lowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
|
||||
"\001(\t:\0028\001\"3\n\013DropRequest\022$\n\007flow_id\030\001 \001(\0132"
|
||||
"\023.greptime.v1.FlowId2\264\001\n\004Flow\022S\n\022HandleC"
|
||||
"reateRemove\022\035.greptime.v1.flow.FlowReque"
|
||||
"st\032\036.greptime.v1.flow.FlowResponse\022W\n\023Ha"
|
||||
"ndleMirrorRequest\022 .greptime.v1.flow.Ins"
|
||||
"ertRequests\032\036.greptime.v1.flow.FlowRespo"
|
||||
"nseBY\n\023io.greptime.v1.flowB\006ServerZ:gith"
|
||||
"ub.com/GreptimeTeam/greptime-proto/go/gr"
|
||||
"eptime/v1/flowb\006proto3"
|
||||
"me\022\034\n\024create_if_not_exists\030\004 \001(\010\022.\n\014expi"
|
||||
"re_after\030\005 \001(\0132\030.greptime.v1.ExpireAfter"
|
||||
"\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_o"
|
||||
"ptions\030\010 \003(\01320.greptime.v1.flow.CreateRe"
|
||||
"quest.FlowOptionsEntry\0322\n\020FlowOptionsEnt"
|
||||
"ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"3\n\013Dr"
|
||||
"opRequest\022$\n\007flow_id\030\001 \001(\0132\023.greptime.v1"
|
||||
".FlowId2\264\001\n\004Flow\022S\n\022HandleCreateRemove\022\035"
|
||||
".greptime.v1.flow.FlowRequest\032\036.greptime"
|
||||
".v1.flow.FlowResponse\022W\n\023HandleMirrorReq"
|
||||
"uest\022 .greptime.v1.flow.InsertRequests\032\036"
|
||||
".greptime.v1.flow.FlowResponseBY\n\023io.gre"
|
||||
"ptime.v1.flowB\006ServerZ:github.com/Grepti"
|
||||
"meTeam/greptime-proto/go/greptime/v1/flo"
|
||||
"wb\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -339,7 +340,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflo
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = {
|
||||
false, false, 1582, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||
false, false, 1609, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||
"greptime/v1/flow/server.proto",
|
||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 10,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets,
|
||||
@@ -1764,6 +1765,7 @@ class CreateRequest::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::FlowId& flow_id(const CreateRequest* msg);
|
||||
static const ::greptime::v1::TableName& sink_table_name(const CreateRequest* msg);
|
||||
static const ::greptime::v1::ExpireAfter& expire_after(const CreateRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::FlowId&
|
||||
@@ -1774,6 +1776,10 @@ const ::greptime::v1::TableName&
|
||||
CreateRequest::_Internal::sink_table_name(const CreateRequest* msg) {
|
||||
return *msg->_impl_.sink_table_name_;
|
||||
}
|
||||
const ::greptime::v1::ExpireAfter&
|
||||
CreateRequest::_Internal::expire_after(const CreateRequest* msg) {
|
||||
return *msg->_impl_.expire_after_;
|
||||
}
|
||||
void CreateRequest::clear_flow_id() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
|
||||
delete _impl_.flow_id_;
|
||||
@@ -1789,6 +1795,12 @@ void CreateRequest::clear_sink_table_name() {
|
||||
}
|
||||
_impl_.sink_table_name_ = nullptr;
|
||||
}
|
||||
void CreateRequest::clear_expire_after() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.expire_after_ != nullptr) {
|
||||
delete _impl_.expire_after_;
|
||||
}
|
||||
_impl_.expire_after_ = nullptr;
|
||||
}
|
||||
CreateRequest::CreateRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -1804,24 +1816,16 @@ CreateRequest::CreateRequest(const CreateRequest& from)
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.source_table_ids_){from._impl_.source_table_ids_}
|
||||
, /*decltype(_impl_.flow_options_)*/{}
|
||||
, decltype(_impl_.expire_when_){}
|
||||
, decltype(_impl_.comment_){}
|
||||
, decltype(_impl_.sql_){}
|
||||
, decltype(_impl_.flow_id_){nullptr}
|
||||
, decltype(_impl_.sink_table_name_){nullptr}
|
||||
, decltype(_impl_.expire_after_){nullptr}
|
||||
, decltype(_impl_.create_if_not_exists_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_this->_impl_.flow_options_.MergeFrom(from._impl_.flow_options_);
|
||||
_impl_.expire_when_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.expire_when_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (!from._internal_expire_when().empty()) {
|
||||
_this->_impl_.expire_when_.Set(from._internal_expire_when(),
|
||||
_this->GetArenaForAllocation());
|
||||
}
|
||||
_impl_.comment_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.comment_.Set("", GetArenaForAllocation());
|
||||
@@ -1844,6 +1848,9 @@ CreateRequest::CreateRequest(const CreateRequest& from)
|
||||
if (from._internal_has_sink_table_name()) {
|
||||
_this->_impl_.sink_table_name_ = new ::greptime::v1::TableName(*from._impl_.sink_table_name_);
|
||||
}
|
||||
if (from._internal_has_expire_after()) {
|
||||
_this->_impl_.expire_after_ = new ::greptime::v1::ExpireAfter(*from._impl_.expire_after_);
|
||||
}
|
||||
_this->_impl_.create_if_not_exists_ = from._impl_.create_if_not_exists_;
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.CreateRequest)
|
||||
}
|
||||
@@ -1855,18 +1862,14 @@ inline void CreateRequest::SharedCtor(
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.source_table_ids_){arena}
|
||||
, /*decltype(_impl_.flow_options_)*/{::_pbi::ArenaInitialized(), arena}
|
||||
, decltype(_impl_.expire_when_){}
|
||||
, decltype(_impl_.comment_){}
|
||||
, decltype(_impl_.sql_){}
|
||||
, decltype(_impl_.flow_id_){nullptr}
|
||||
, decltype(_impl_.sink_table_name_){nullptr}
|
||||
, decltype(_impl_.expire_after_){nullptr}
|
||||
, decltype(_impl_.create_if_not_exists_){false}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
_impl_.expire_when_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.expire_when_.Set("", GetArenaForAllocation());
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.comment_.InitDefault();
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
_impl_.comment_.Set("", GetArenaForAllocation());
|
||||
@@ -1892,11 +1895,11 @@ inline void CreateRequest::SharedDtor() {
|
||||
_impl_.source_table_ids_.~RepeatedPtrField();
|
||||
_impl_.flow_options_.Destruct();
|
||||
_impl_.flow_options_.~MapField();
|
||||
_impl_.expire_when_.Destroy();
|
||||
_impl_.comment_.Destroy();
|
||||
_impl_.sql_.Destroy();
|
||||
if (this != internal_default_instance()) delete _impl_.flow_id_;
|
||||
if (this != internal_default_instance()) delete _impl_.sink_table_name_;
|
||||
if (this != internal_default_instance()) delete _impl_.expire_after_;
|
||||
}
|
||||
|
||||
void CreateRequest::ArenaDtor(void* object) {
|
||||
@@ -1915,7 +1918,6 @@ void CreateRequest::Clear() {
|
||||
|
||||
_impl_.source_table_ids_.Clear();
|
||||
_impl_.flow_options_.Clear();
|
||||
_impl_.expire_when_.ClearToEmpty();
|
||||
_impl_.comment_.ClearToEmpty();
|
||||
_impl_.sql_.ClearToEmpty();
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
|
||||
@@ -1926,6 +1928,10 @@ void CreateRequest::Clear() {
|
||||
delete _impl_.sink_table_name_;
|
||||
}
|
||||
_impl_.sink_table_name_ = nullptr;
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.expire_after_ != nullptr) {
|
||||
delete _impl_.expire_after_;
|
||||
}
|
||||
_impl_.expire_after_ = nullptr;
|
||||
_impl_.create_if_not_exists_ = false;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
@@ -1973,13 +1979,11 @@ const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// string expire_when = 5;
|
||||
// .greptime.v1.ExpireAfter expire_after = 5;
|
||||
case 5:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
|
||||
auto str = _internal_mutable_expire_when();
|
||||
ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
|
||||
ptr = ctx->ParseMessage(_internal_mutable_expire_after(), ptr);
|
||||
CHK_(ptr);
|
||||
CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.flow.CreateRequest.expire_when"));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
@@ -2073,14 +2077,11 @@ uint8_t* CreateRequest::_InternalSerialize(
|
||||
target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_create_if_not_exists(), target);
|
||||
}
|
||||
|
||||
// string expire_when = 5;
|
||||
if (!this->_internal_expire_when().empty()) {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||
this->_internal_expire_when().data(), static_cast<int>(this->_internal_expire_when().length()),
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||
"greptime.v1.flow.CreateRequest.expire_when");
|
||||
target = stream->WriteStringMaybeAliased(
|
||||
5, this->_internal_expire_when(), target);
|
||||
// .greptime.v1.ExpireAfter expire_after = 5;
|
||||
if (this->_internal_has_expire_after()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(5, _Internal::expire_after(this),
|
||||
_Internal::expire_after(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// string comment = 6;
|
||||
@@ -2165,13 +2166,6 @@ size_t CreateRequest::ByteSizeLong() const {
|
||||
total_size += CreateRequest_FlowOptionsEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
||||
}
|
||||
|
||||
// string expire_when = 5;
|
||||
if (!this->_internal_expire_when().empty()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
|
||||
this->_internal_expire_when());
|
||||
}
|
||||
|
||||
// string comment = 6;
|
||||
if (!this->_internal_comment().empty()) {
|
||||
total_size += 1 +
|
||||
@@ -2200,6 +2194,13 @@ size_t CreateRequest::ByteSizeLong() const {
|
||||
*_impl_.sink_table_name_);
|
||||
}
|
||||
|
||||
// .greptime.v1.ExpireAfter expire_after = 5;
|
||||
if (this->_internal_has_expire_after()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.expire_after_);
|
||||
}
|
||||
|
||||
// bool create_if_not_exists = 4;
|
||||
if (this->_internal_create_if_not_exists() != 0) {
|
||||
total_size += 1 + 1;
|
||||
@@ -2225,9 +2226,6 @@ void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
||||
|
||||
_this->_impl_.source_table_ids_.MergeFrom(from._impl_.source_table_ids_);
|
||||
_this->_impl_.flow_options_.MergeFrom(from._impl_.flow_options_);
|
||||
if (!from._internal_expire_when().empty()) {
|
||||
_this->_internal_set_expire_when(from._internal_expire_when());
|
||||
}
|
||||
if (!from._internal_comment().empty()) {
|
||||
_this->_internal_set_comment(from._internal_comment());
|
||||
}
|
||||
@@ -2242,6 +2240,10 @@ void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
|
||||
_this->_internal_mutable_sink_table_name()->::greptime::v1::TableName::MergeFrom(
|
||||
from._internal_sink_table_name());
|
||||
}
|
||||
if (from._internal_has_expire_after()) {
|
||||
_this->_internal_mutable_expire_after()->::greptime::v1::ExpireAfter::MergeFrom(
|
||||
from._internal_expire_after());
|
||||
}
|
||||
if (from._internal_create_if_not_exists() != 0) {
|
||||
_this->_internal_set_create_if_not_exists(from._internal_create_if_not_exists());
|
||||
}
|
||||
@@ -2266,10 +2268,6 @@ void CreateRequest::InternalSwap(CreateRequest* other) {
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.source_table_ids_.InternalSwap(&other->_impl_.source_table_ids_);
|
||||
_impl_.flow_options_.InternalSwap(&other->_impl_.flow_options_);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&_impl_.expire_when_, lhs_arena,
|
||||
&other->_impl_.expire_when_, rhs_arena
|
||||
);
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
|
||||
&_impl_.comment_, lhs_arena,
|
||||
&other->_impl_.comment_, rhs_arena
|
||||
|
||||
@@ -1250,11 +1250,11 @@ class CreateRequest final :
|
||||
enum : int {
|
||||
kSourceTableIdsFieldNumber = 2,
|
||||
kFlowOptionsFieldNumber = 8,
|
||||
kExpireWhenFieldNumber = 5,
|
||||
kCommentFieldNumber = 6,
|
||||
kSqlFieldNumber = 7,
|
||||
kFlowIdFieldNumber = 1,
|
||||
kSinkTableNameFieldNumber = 3,
|
||||
kExpireAfterFieldNumber = 5,
|
||||
kCreateIfNotExistsFieldNumber = 4,
|
||||
};
|
||||
// repeated .greptime.v1.TableId source_table_ids = 2;
|
||||
@@ -1292,20 +1292,6 @@ class CreateRequest final :
|
||||
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||
mutable_flow_options();
|
||||
|
||||
// string expire_when = 5;
|
||||
void clear_expire_when();
|
||||
const std::string& expire_when() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_expire_when(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_expire_when();
|
||||
PROTOBUF_NODISCARD std::string* release_expire_when();
|
||||
void set_allocated_expire_when(std::string* expire_when);
|
||||
private:
|
||||
const std::string& _internal_expire_when() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_expire_when(const std::string& value);
|
||||
std::string* _internal_mutable_expire_when();
|
||||
public:
|
||||
|
||||
// string comment = 6;
|
||||
void clear_comment();
|
||||
const std::string& comment() const;
|
||||
@@ -1370,6 +1356,24 @@ class CreateRequest final :
|
||||
::greptime::v1::TableName* sink_table_name);
|
||||
::greptime::v1::TableName* unsafe_arena_release_sink_table_name();
|
||||
|
||||
// .greptime.v1.ExpireAfter expire_after = 5;
|
||||
bool has_expire_after() const;
|
||||
private:
|
||||
bool _internal_has_expire_after() const;
|
||||
public:
|
||||
void clear_expire_after();
|
||||
const ::greptime::v1::ExpireAfter& expire_after() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::ExpireAfter* release_expire_after();
|
||||
::greptime::v1::ExpireAfter* mutable_expire_after();
|
||||
void set_allocated_expire_after(::greptime::v1::ExpireAfter* expire_after);
|
||||
private:
|
||||
const ::greptime::v1::ExpireAfter& _internal_expire_after() const;
|
||||
::greptime::v1::ExpireAfter* _internal_mutable_expire_after();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_expire_after(
|
||||
::greptime::v1::ExpireAfter* expire_after);
|
||||
::greptime::v1::ExpireAfter* unsafe_arena_release_expire_after();
|
||||
|
||||
// bool create_if_not_exists = 4;
|
||||
void clear_create_if_not_exists();
|
||||
bool create_if_not_exists() const;
|
||||
@@ -1393,11 +1397,11 @@ class CreateRequest final :
|
||||
std::string, std::string,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> flow_options_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expire_when_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_;
|
||||
::greptime::v1::FlowId* flow_id_;
|
||||
::greptime::v1::TableName* sink_table_name_;
|
||||
::greptime::v1::ExpireAfter* expire_after_;
|
||||
bool create_if_not_exists_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
@@ -2502,54 +2506,89 @@ inline void CreateRequest::set_create_if_not_exists(bool value) {
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.flow.CreateRequest.create_if_not_exists)
|
||||
}
|
||||
|
||||
// string expire_when = 5;
|
||||
inline void CreateRequest::clear_expire_when() {
|
||||
_impl_.expire_when_.ClearToEmpty();
|
||||
// .greptime.v1.ExpireAfter expire_after = 5;
|
||||
inline bool CreateRequest::_internal_has_expire_after() const {
|
||||
return this != internal_default_instance() && _impl_.expire_after_ != nullptr;
|
||||
}
|
||||
inline const std::string& CreateRequest::expire_when() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.expire_when)
|
||||
return _internal_expire_when();
|
||||
inline bool CreateRequest::has_expire_after() const {
|
||||
return _internal_has_expire_after();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void CreateRequest::set_expire_when(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.expire_when_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.flow.CreateRequest.expire_when)
|
||||
inline const ::greptime::v1::ExpireAfter& CreateRequest::_internal_expire_after() const {
|
||||
const ::greptime::v1::ExpireAfter* p = _impl_.expire_after_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::ExpireAfter&>(
|
||||
::greptime::v1::_ExpireAfter_default_instance_);
|
||||
}
|
||||
inline std::string* CreateRequest::mutable_expire_when() {
|
||||
std::string* _s = _internal_mutable_expire_when();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.expire_when)
|
||||
return _s;
|
||||
inline const ::greptime::v1::ExpireAfter& CreateRequest::expire_after() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.expire_after)
|
||||
return _internal_expire_after();
|
||||
}
|
||||
inline const std::string& CreateRequest::_internal_expire_when() const {
|
||||
return _impl_.expire_when_.Get();
|
||||
}
|
||||
inline void CreateRequest::_internal_set_expire_when(const std::string& value) {
|
||||
|
||||
_impl_.expire_when_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CreateRequest::_internal_mutable_expire_when() {
|
||||
|
||||
return _impl_.expire_when_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* CreateRequest::release_expire_when() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.expire_when)
|
||||
return _impl_.expire_when_.Release();
|
||||
}
|
||||
inline void CreateRequest::set_allocated_expire_when(std::string* expire_when) {
|
||||
if (expire_when != nullptr) {
|
||||
inline void CreateRequest::unsafe_arena_set_allocated_expire_after(
|
||||
::greptime::v1::ExpireAfter* expire_after) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expire_after_);
|
||||
}
|
||||
_impl_.expire_after_ = expire_after;
|
||||
if (expire_after) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.expire_when_.SetAllocated(expire_when, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.expire_when_.IsDefault()) {
|
||||
_impl_.expire_when_.Set("", GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.CreateRequest.expire_after)
|
||||
}
|
||||
inline ::greptime::v1::ExpireAfter* CreateRequest::release_expire_after() {
|
||||
|
||||
::greptime::v1::ExpireAfter* temp = _impl_.expire_after_;
|
||||
_impl_.expire_after_ = 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_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.expire_when)
|
||||
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::ExpireAfter* CreateRequest::unsafe_arena_release_expire_after() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.expire_after)
|
||||
|
||||
::greptime::v1::ExpireAfter* temp = _impl_.expire_after_;
|
||||
_impl_.expire_after_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::ExpireAfter* CreateRequest::_internal_mutable_expire_after() {
|
||||
|
||||
if (_impl_.expire_after_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::ExpireAfter>(GetArenaForAllocation());
|
||||
_impl_.expire_after_ = p;
|
||||
}
|
||||
return _impl_.expire_after_;
|
||||
}
|
||||
inline ::greptime::v1::ExpireAfter* CreateRequest::mutable_expire_after() {
|
||||
::greptime::v1::ExpireAfter* _msg = _internal_mutable_expire_after();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.expire_after)
|
||||
return _msg;
|
||||
}
|
||||
inline void CreateRequest::set_allocated_expire_after(::greptime::v1::ExpireAfter* expire_after) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.expire_after_);
|
||||
}
|
||||
if (expire_after) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(expire_after));
|
||||
if (message_arena != submessage_arena) {
|
||||
expire_after = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, expire_after, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.expire_after_ = expire_after;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.CreateRequest.expire_after)
|
||||
}
|
||||
|
||||
// string comment = 6;
|
||||
|
||||
Reference in New Issue
Block a user