feat: flow add eval interval (#273)
* feat: create flow eval interval Signed-off-by: discord9 <discord9@163.com> * fix: eval interval Signed-off-by: discord9 <discord9@163.com> * chore: make all Signed-off-by: discord9 <discord9@163.com> * fix: flow create request Signed-off-by: discord9 <discord9@163.com> * chore: make all Signed-off-by: discord9 <discord9@163.com> * chore: fmt Signed-off-by: discord9 <discord9@163.com> --------- Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -900,6 +900,7 @@ class CreateFlowExpr final :
|
||||
kSqlFieldNumber = 9,
|
||||
kSinkTableNameFieldNumber = 4,
|
||||
kExpireAfterFieldNumber = 7,
|
||||
kEvalIntervalFieldNumber = 11,
|
||||
kOrReplaceFieldNumber = 5,
|
||||
kCreateIfNotExistsFieldNumber = 6,
|
||||
};
|
||||
@@ -1030,6 +1031,24 @@ class CreateFlowExpr final :
|
||||
::greptime::v1::ExpireAfter* expire_after);
|
||||
::greptime::v1::ExpireAfter* unsafe_arena_release_expire_after();
|
||||
|
||||
// .greptime.v1.EvalInterval eval_interval = 11;
|
||||
bool has_eval_interval() const;
|
||||
private:
|
||||
bool _internal_has_eval_interval() const;
|
||||
public:
|
||||
void clear_eval_interval();
|
||||
const ::greptime::v1::EvalInterval& eval_interval() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::EvalInterval* release_eval_interval();
|
||||
::greptime::v1::EvalInterval* mutable_eval_interval();
|
||||
void set_allocated_eval_interval(::greptime::v1::EvalInterval* eval_interval);
|
||||
private:
|
||||
const ::greptime::v1::EvalInterval& _internal_eval_interval() const;
|
||||
::greptime::v1::EvalInterval* _internal_mutable_eval_interval();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_eval_interval(
|
||||
::greptime::v1::EvalInterval* eval_interval);
|
||||
::greptime::v1::EvalInterval* unsafe_arena_release_eval_interval();
|
||||
|
||||
// bool or_replace = 5;
|
||||
void clear_or_replace();
|
||||
bool or_replace() const;
|
||||
@@ -1068,6 +1087,7 @@ class CreateFlowExpr final :
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_;
|
||||
::greptime::v1::TableName* sink_table_name_;
|
||||
::greptime::v1::ExpireAfter* expire_after_;
|
||||
::greptime::v1::EvalInterval* eval_interval_;
|
||||
bool or_replace_;
|
||||
bool create_if_not_exists_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
@@ -10880,6 +10900,91 @@ inline void CreateFlowExpr::set_allocated_expire_after(::greptime::v1::ExpireAft
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowExpr.expire_after)
|
||||
}
|
||||
|
||||
// .greptime.v1.EvalInterval eval_interval = 11;
|
||||
inline bool CreateFlowExpr::_internal_has_eval_interval() const {
|
||||
return this != internal_default_instance() && _impl_.eval_interval_ != nullptr;
|
||||
}
|
||||
inline bool CreateFlowExpr::has_eval_interval() const {
|
||||
return _internal_has_eval_interval();
|
||||
}
|
||||
inline const ::greptime::v1::EvalInterval& CreateFlowExpr::_internal_eval_interval() const {
|
||||
const ::greptime::v1::EvalInterval* p = _impl_.eval_interval_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::EvalInterval&>(
|
||||
::greptime::v1::_EvalInterval_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::EvalInterval& CreateFlowExpr::eval_interval() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.CreateFlowExpr.eval_interval)
|
||||
return _internal_eval_interval();
|
||||
}
|
||||
inline void CreateFlowExpr::unsafe_arena_set_allocated_eval_interval(
|
||||
::greptime::v1::EvalInterval* eval_interval) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.eval_interval_);
|
||||
}
|
||||
_impl_.eval_interval_ = eval_interval;
|
||||
if (eval_interval) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.CreateFlowExpr.eval_interval)
|
||||
}
|
||||
inline ::greptime::v1::EvalInterval* CreateFlowExpr::release_eval_interval() {
|
||||
|
||||
::greptime::v1::EvalInterval* temp = _impl_.eval_interval_;
|
||||
_impl_.eval_interval_ = 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::EvalInterval* CreateFlowExpr::unsafe_arena_release_eval_interval() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.CreateFlowExpr.eval_interval)
|
||||
|
||||
::greptime::v1::EvalInterval* temp = _impl_.eval_interval_;
|
||||
_impl_.eval_interval_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::EvalInterval* CreateFlowExpr::_internal_mutable_eval_interval() {
|
||||
|
||||
if (_impl_.eval_interval_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::EvalInterval>(GetArenaForAllocation());
|
||||
_impl_.eval_interval_ = p;
|
||||
}
|
||||
return _impl_.eval_interval_;
|
||||
}
|
||||
inline ::greptime::v1::EvalInterval* CreateFlowExpr::mutable_eval_interval() {
|
||||
::greptime::v1::EvalInterval* _msg = _internal_mutable_eval_interval();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowExpr.eval_interval)
|
||||
return _msg;
|
||||
}
|
||||
inline void CreateFlowExpr::set_allocated_eval_interval(::greptime::v1::EvalInterval* eval_interval) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.eval_interval_);
|
||||
}
|
||||
if (eval_interval) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(eval_interval));
|
||||
if (message_arena != submessage_arena) {
|
||||
eval_interval = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, eval_interval, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.eval_interval_ = eval_interval;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowExpr.eval_interval)
|
||||
}
|
||||
|
||||
// string comment = 8;
|
||||
inline void CreateFlowExpr::clear_comment() {
|
||||
_impl_.comment_.ClearToEmpty();
|
||||
|
||||
Reference in New Issue
Block a user