feat: add DROP DEFAULT (#246)
Signed-off-by: Yihai Lin <yihai-lin@foxmail.com>
This commit is contained in:
+671
-168
File diff suppressed because it is too large
Load Diff
+548
-32
@@ -111,6 +111,12 @@ extern DropColumnsDefaultTypeInternal _DropColumns_default_instance_;
|
||||
class DropDatabaseExpr;
|
||||
struct DropDatabaseExprDefaultTypeInternal;
|
||||
extern DropDatabaseExprDefaultTypeInternal _DropDatabaseExpr_default_instance_;
|
||||
class DropDefault;
|
||||
struct DropDefaultDefaultTypeInternal;
|
||||
extern DropDefaultDefaultTypeInternal _DropDefault_default_instance_;
|
||||
class DropDefaults;
|
||||
struct DropDefaultsDefaultTypeInternal;
|
||||
extern DropDefaultsDefaultTypeInternal _DropDefaults_default_instance_;
|
||||
class DropFlowExpr;
|
||||
struct DropFlowExprDefaultTypeInternal;
|
||||
extern DropFlowExprDefaultTypeInternal _DropFlowExpr_default_instance_;
|
||||
@@ -209,6 +215,8 @@ template<> ::greptime::v1::DdlRequest* Arena::CreateMaybeMessage<::greptime::v1:
|
||||
template<> ::greptime::v1::DropColumn* Arena::CreateMaybeMessage<::greptime::v1::DropColumn>(Arena*);
|
||||
template<> ::greptime::v1::DropColumns* Arena::CreateMaybeMessage<::greptime::v1::DropColumns>(Arena*);
|
||||
template<> ::greptime::v1::DropDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::DropDatabaseExpr>(Arena*);
|
||||
template<> ::greptime::v1::DropDefault* Arena::CreateMaybeMessage<::greptime::v1::DropDefault>(Arena*);
|
||||
template<> ::greptime::v1::DropDefaults* Arena::CreateMaybeMessage<::greptime::v1::DropDefaults>(Arena*);
|
||||
template<> ::greptime::v1::DropFlowExpr* Arena::CreateMaybeMessage<::greptime::v1::DropFlowExpr>(Arena*);
|
||||
template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*);
|
||||
template<> ::greptime::v1::DropViewExpr* Arena::CreateMaybeMessage<::greptime::v1::DropViewExpr>(Arena*);
|
||||
@@ -2191,6 +2199,7 @@ class AlterTableExpr final :
|
||||
kUnsetTableOptions = 11,
|
||||
kSetIndex = 12,
|
||||
kUnsetIndex = 13,
|
||||
kDropDefaults = 14,
|
||||
KIND_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -2283,6 +2292,7 @@ class AlterTableExpr final :
|
||||
kUnsetTableOptionsFieldNumber = 11,
|
||||
kSetIndexFieldNumber = 12,
|
||||
kUnsetIndexFieldNumber = 13,
|
||||
kDropDefaultsFieldNumber = 14,
|
||||
};
|
||||
// string catalog_name = 1;
|
||||
void clear_catalog_name();
|
||||
@@ -2470,6 +2480,24 @@ class AlterTableExpr final :
|
||||
::greptime::v1::UnsetIndex* unset_index);
|
||||
::greptime::v1::UnsetIndex* unsafe_arena_release_unset_index();
|
||||
|
||||
// .greptime.v1.DropDefaults drop_defaults = 14;
|
||||
bool has_drop_defaults() const;
|
||||
private:
|
||||
bool _internal_has_drop_defaults() const;
|
||||
public:
|
||||
void clear_drop_defaults();
|
||||
const ::greptime::v1::DropDefaults& drop_defaults() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::DropDefaults* release_drop_defaults();
|
||||
::greptime::v1::DropDefaults* mutable_drop_defaults();
|
||||
void set_allocated_drop_defaults(::greptime::v1::DropDefaults* drop_defaults);
|
||||
private:
|
||||
const ::greptime::v1::DropDefaults& _internal_drop_defaults() const;
|
||||
::greptime::v1::DropDefaults* _internal_mutable_drop_defaults();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_drop_defaults(
|
||||
::greptime::v1::DropDefaults* drop_defaults);
|
||||
::greptime::v1::DropDefaults* unsafe_arena_release_drop_defaults();
|
||||
|
||||
void clear_kind();
|
||||
KindCase kind_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.AlterTableExpr)
|
||||
@@ -2483,6 +2511,7 @@ class AlterTableExpr final :
|
||||
void set_has_unset_table_options();
|
||||
void set_has_set_index();
|
||||
void set_has_unset_index();
|
||||
void set_has_drop_defaults();
|
||||
|
||||
inline bool has_kind() const;
|
||||
inline void clear_has_kind();
|
||||
@@ -2505,6 +2534,7 @@ class AlterTableExpr final :
|
||||
::greptime::v1::UnsetTableOptions* unset_table_options_;
|
||||
::greptime::v1::SetIndex* set_index_;
|
||||
::greptime::v1::UnsetIndex* unset_index_;
|
||||
::greptime::v1::DropDefaults* drop_defaults_;
|
||||
} kind_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@@ -2515,6 +2545,159 @@ class AlterTableExpr final :
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class DropDefault final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropDefault) */ {
|
||||
public:
|
||||
inline DropDefault() : DropDefault(nullptr) {}
|
||||
~DropDefault() override;
|
||||
explicit PROTOBUF_CONSTEXPR DropDefault(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
DropDefault(const DropDefault& from);
|
||||
DropDefault(DropDefault&& from) noexcept
|
||||
: DropDefault() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline DropDefault& operator=(const DropDefault& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline DropDefault& operator=(DropDefault&& 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 DropDefault& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const DropDefault* internal_default_instance() {
|
||||
return reinterpret_cast<const DropDefault*>(
|
||||
&_DropDefault_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
|
||||
friend void swap(DropDefault& a, DropDefault& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(DropDefault* 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(DropDefault* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
DropDefault* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<DropDefault>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const DropDefault& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const DropDefault& from) {
|
||||
DropDefault::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(DropDefault* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.DropDefault";
|
||||
}
|
||||
protected:
|
||||
explicit DropDefault(::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 {
|
||||
kColumnNameFieldNumber = 1,
|
||||
};
|
||||
// string column_name = 1;
|
||||
void clear_column_name();
|
||||
const std::string& column_name() const;
|
||||
template <typename ArgT0 = const std::string&, typename... ArgT>
|
||||
void set_column_name(ArgT0&& arg0, ArgT... args);
|
||||
std::string* mutable_column_name();
|
||||
PROTOBUF_NODISCARD std::string* release_column_name();
|
||||
void set_allocated_column_name(std::string* column_name);
|
||||
private:
|
||||
const std::string& _internal_column_name() const;
|
||||
inline PROTOBUF_ALWAYS_INLINE void _internal_set_column_name(const std::string& value);
|
||||
std::string* _internal_mutable_column_name();
|
||||
public:
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.DropDefault)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr column_name_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class SetIndex final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetIndex) */ {
|
||||
public:
|
||||
@@ -2570,7 +2753,7 @@ class SetIndex final :
|
||||
&_SetIndex_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
9;
|
||||
10;
|
||||
|
||||
friend void swap(SetIndex& a, SetIndex& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2788,7 +2971,7 @@ class UnsetIndex final :
|
||||
&_UnsetIndex_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
10;
|
||||
11;
|
||||
|
||||
friend void swap(UnsetIndex& a, UnsetIndex& b) {
|
||||
a.Swap(&b);
|
||||
@@ -2999,7 +3182,7 @@ class DropTableExpr final :
|
||||
&_DropTableExpr_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
11;
|
||||
12;
|
||||
|
||||
friend void swap(DropTableExpr& a, DropTableExpr& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3243,7 +3426,7 @@ class CreateDatabaseExpr final :
|
||||
&_CreateDatabaseExpr_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
13;
|
||||
14;
|
||||
|
||||
friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3449,7 +3632,7 @@ class TruncateTableExpr final :
|
||||
&_TruncateTableExpr_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
14;
|
||||
15;
|
||||
|
||||
friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3654,7 +3837,7 @@ class DropDatabaseExpr final :
|
||||
&_DropDatabaseExpr_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
15;
|
||||
16;
|
||||
|
||||
friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3834,7 +4017,7 @@ class AddColumns final :
|
||||
&_AddColumns_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
16;
|
||||
17;
|
||||
|
||||
friend void swap(AddColumns& a, AddColumns& b) {
|
||||
a.Swap(&b);
|
||||
@@ -3943,6 +4126,163 @@ class AddColumns final :
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class DropDefaults final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropDefaults) */ {
|
||||
public:
|
||||
inline DropDefaults() : DropDefaults(nullptr) {}
|
||||
~DropDefaults() override;
|
||||
explicit PROTOBUF_CONSTEXPR DropDefaults(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
DropDefaults(const DropDefaults& from);
|
||||
DropDefaults(DropDefaults&& from) noexcept
|
||||
: DropDefaults() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline DropDefaults& operator=(const DropDefaults& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline DropDefaults& operator=(DropDefaults&& 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 DropDefaults& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const DropDefaults* internal_default_instance() {
|
||||
return reinterpret_cast<const DropDefaults*>(
|
||||
&_DropDefaults_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
18;
|
||||
|
||||
friend void swap(DropDefaults& a, DropDefaults& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(DropDefaults* 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(DropDefaults* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
DropDefaults* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<DropDefaults>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const DropDefaults& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const DropDefaults& from) {
|
||||
DropDefaults::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(DropDefaults* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.DropDefaults";
|
||||
}
|
||||
protected:
|
||||
explicit DropDefaults(::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 {
|
||||
kDropDefaultsFieldNumber = 1,
|
||||
};
|
||||
// repeated .greptime.v1.DropDefault drop_defaults = 1;
|
||||
int drop_defaults_size() const;
|
||||
private:
|
||||
int _internal_drop_defaults_size() const;
|
||||
public:
|
||||
void clear_drop_defaults();
|
||||
::greptime::v1::DropDefault* mutable_drop_defaults(int index);
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropDefault >*
|
||||
mutable_drop_defaults();
|
||||
private:
|
||||
const ::greptime::v1::DropDefault& _internal_drop_defaults(int index) const;
|
||||
::greptime::v1::DropDefault* _internal_add_drop_defaults();
|
||||
public:
|
||||
const ::greptime::v1::DropDefault& drop_defaults(int index) const;
|
||||
::greptime::v1::DropDefault* add_drop_defaults();
|
||||
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropDefault >&
|
||||
drop_defaults() const;
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.DropDefaults)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropDefault > drop_defaults_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class DropColumns final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropColumns) */ {
|
||||
public:
|
||||
@@ -3991,7 +4331,7 @@ class DropColumns final :
|
||||
&_DropColumns_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
17;
|
||||
19;
|
||||
|
||||
friend void swap(DropColumns& a, DropColumns& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4148,7 +4488,7 @@ class ModifyColumnTypes final :
|
||||
&_ModifyColumnTypes_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
18;
|
||||
20;
|
||||
|
||||
friend void swap(ModifyColumnTypes& a, ModifyColumnTypes& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4305,7 +4645,7 @@ class RenameTable final :
|
||||
&_RenameTable_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
19;
|
||||
21;
|
||||
|
||||
friend void swap(RenameTable& a, RenameTable& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4458,7 +4798,7 @@ class AddColumn final :
|
||||
&_AddColumn_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
20;
|
||||
22;
|
||||
|
||||
friend void swap(AddColumn& a, AddColumn& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4646,7 +4986,7 @@ class ModifyColumnType final :
|
||||
&_ModifyColumnType_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
21;
|
||||
23;
|
||||
|
||||
friend void swap(ModifyColumnType& a, ModifyColumnType& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4830,7 +5170,7 @@ class Option final :
|
||||
&_Option_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
22;
|
||||
24;
|
||||
|
||||
friend void swap(Option& a, Option& b) {
|
||||
a.Swap(&b);
|
||||
@@ -4999,7 +5339,7 @@ class SetTableOptions final :
|
||||
&_SetTableOptions_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
23;
|
||||
25;
|
||||
|
||||
friend void swap(SetTableOptions& a, SetTableOptions& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5156,7 +5496,7 @@ class UnsetTableOptions final :
|
||||
&_UnsetTableOptions_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
24;
|
||||
26;
|
||||
|
||||
friend void swap(UnsetTableOptions& a, UnsetTableOptions& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5319,7 +5659,7 @@ class DropColumn final :
|
||||
&_DropColumn_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
25;
|
||||
27;
|
||||
|
||||
friend void swap(DropColumn& a, DropColumn& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5472,7 +5812,7 @@ class TableId final :
|
||||
&_TableId_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
26;
|
||||
28;
|
||||
|
||||
friend void swap(TableId& a, TableId& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5620,7 +5960,7 @@ class FlowId final :
|
||||
&_FlowId_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
27;
|
||||
29;
|
||||
|
||||
friend void swap(FlowId& a, FlowId& b) {
|
||||
a.Swap(&b);
|
||||
@@ -5768,7 +6108,7 @@ class ColumnDef final :
|
||||
&_ColumnDef_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
28;
|
||||
30;
|
||||
|
||||
friend void swap(ColumnDef& a, ColumnDef& b) {
|
||||
a.Swap(&b);
|
||||
@@ -6026,7 +6366,7 @@ class AddColumnLocation final :
|
||||
&_AddColumnLocation_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
29;
|
||||
31;
|
||||
|
||||
friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
|
||||
a.Swap(&b);
|
||||
@@ -6220,7 +6560,7 @@ class SetFulltext final :
|
||||
&_SetFulltext_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
30;
|
||||
32;
|
||||
|
||||
friend void swap(SetFulltext& a, SetFulltext& b) {
|
||||
a.Swap(&b);
|
||||
@@ -6417,7 +6757,7 @@ class UnsetFulltext final :
|
||||
&_UnsetFulltext_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
31;
|
||||
33;
|
||||
|
||||
friend void swap(UnsetFulltext& a, UnsetFulltext& b) {
|
||||
a.Swap(&b);
|
||||
@@ -6570,7 +6910,7 @@ class SetInverted final :
|
||||
&_SetInverted_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
32;
|
||||
34;
|
||||
|
||||
friend void swap(SetInverted& a, SetInverted& b) {
|
||||
a.Swap(&b);
|
||||
@@ -6723,7 +7063,7 @@ class UnsetInverted final :
|
||||
&_UnsetInverted_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
33;
|
||||
35;
|
||||
|
||||
friend void swap(UnsetInverted& a, UnsetInverted& b) {
|
||||
a.Swap(&b);
|
||||
@@ -6876,7 +7216,7 @@ class SetSkipping final :
|
||||
&_SetSkipping_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
34;
|
||||
36;
|
||||
|
||||
friend void swap(SetSkipping& a, SetSkipping& b) {
|
||||
a.Swap(&b);
|
||||
@@ -7062,7 +7402,7 @@ class UnsetSkipping final :
|
||||
&_UnsetSkipping_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
35;
|
||||
37;
|
||||
|
||||
friend void swap(UnsetSkipping& a, UnsetSkipping& b) {
|
||||
a.Swap(&b);
|
||||
@@ -7221,7 +7561,7 @@ class AlterDatabaseExpr final :
|
||||
&_AlterDatabaseExpr_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
36;
|
||||
38;
|
||||
|
||||
friend void swap(AlterDatabaseExpr& a, AlterDatabaseExpr& b) {
|
||||
a.Swap(&b);
|
||||
@@ -7443,7 +7783,7 @@ class SetDatabaseOptions final :
|
||||
&_SetDatabaseOptions_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
37;
|
||||
39;
|
||||
|
||||
friend void swap(SetDatabaseOptions& a, SetDatabaseOptions& b) {
|
||||
a.Swap(&b);
|
||||
@@ -7600,7 +7940,7 @@ class UnsetDatabaseOptions final :
|
||||
&_UnsetDatabaseOptions_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
38;
|
||||
40;
|
||||
|
||||
friend void swap(UnsetDatabaseOptions& a, UnsetDatabaseOptions& b) {
|
||||
a.Swap(&b);
|
||||
@@ -7819,7 +8159,7 @@ class CreateTriggerExpr final :
|
||||
&_CreateTriggerExpr_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
41;
|
||||
43;
|
||||
|
||||
friend void swap(CreateTriggerExpr& a, CreateTriggerExpr& b) {
|
||||
a.Swap(&b);
|
||||
@@ -8100,7 +8440,7 @@ class NotifyChannel final :
|
||||
&_NotifyChannel_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
42;
|
||||
44;
|
||||
|
||||
friend void swap(NotifyChannel& a, NotifyChannel& b) {
|
||||
a.Swap(&b);
|
||||
@@ -8313,7 +8653,7 @@ class WebhookOptions final :
|
||||
&_WebhookOptions_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
44;
|
||||
46;
|
||||
|
||||
friend void swap(WebhookOptions& a, WebhookOptions& b) {
|
||||
a.Swap(&b);
|
||||
@@ -11949,6 +12289,80 @@ inline ::greptime::v1::UnsetIndex* AlterTableExpr::mutable_unset_index() {
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.DropDefaults drop_defaults = 14;
|
||||
inline bool AlterTableExpr::_internal_has_drop_defaults() const {
|
||||
return kind_case() == kDropDefaults;
|
||||
}
|
||||
inline bool AlterTableExpr::has_drop_defaults() const {
|
||||
return _internal_has_drop_defaults();
|
||||
}
|
||||
inline void AlterTableExpr::set_has_drop_defaults() {
|
||||
_impl_._oneof_case_[0] = kDropDefaults;
|
||||
}
|
||||
inline void AlterTableExpr::clear_drop_defaults() {
|
||||
if (_internal_has_drop_defaults()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.drop_defaults_;
|
||||
}
|
||||
clear_has_kind();
|
||||
}
|
||||
}
|
||||
inline ::greptime::v1::DropDefaults* AlterTableExpr::release_drop_defaults() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.AlterTableExpr.drop_defaults)
|
||||
if (_internal_has_drop_defaults()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::DropDefaults* temp = _impl_.kind_.drop_defaults_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.kind_.drop_defaults_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::DropDefaults& AlterTableExpr::_internal_drop_defaults() const {
|
||||
return _internal_has_drop_defaults()
|
||||
? *_impl_.kind_.drop_defaults_
|
||||
: reinterpret_cast< ::greptime::v1::DropDefaults&>(::greptime::v1::_DropDefaults_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::DropDefaults& AlterTableExpr::drop_defaults() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.AlterTableExpr.drop_defaults)
|
||||
return _internal_drop_defaults();
|
||||
}
|
||||
inline ::greptime::v1::DropDefaults* AlterTableExpr::unsafe_arena_release_drop_defaults() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterTableExpr.drop_defaults)
|
||||
if (_internal_has_drop_defaults()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::DropDefaults* temp = _impl_.kind_.drop_defaults_;
|
||||
_impl_.kind_.drop_defaults_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void AlterTableExpr::unsafe_arena_set_allocated_drop_defaults(::greptime::v1::DropDefaults* drop_defaults) {
|
||||
clear_kind();
|
||||
if (drop_defaults) {
|
||||
set_has_drop_defaults();
|
||||
_impl_.kind_.drop_defaults_ = drop_defaults;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterTableExpr.drop_defaults)
|
||||
}
|
||||
inline ::greptime::v1::DropDefaults* AlterTableExpr::_internal_mutable_drop_defaults() {
|
||||
if (!_internal_has_drop_defaults()) {
|
||||
clear_kind();
|
||||
set_has_drop_defaults();
|
||||
_impl_.kind_.drop_defaults_ = CreateMaybeMessage< ::greptime::v1::DropDefaults >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.kind_.drop_defaults_;
|
||||
}
|
||||
inline ::greptime::v1::DropDefaults* AlterTableExpr::mutable_drop_defaults() {
|
||||
::greptime::v1::DropDefaults* _msg = _internal_mutable_drop_defaults();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.AlterTableExpr.drop_defaults)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
inline bool AlterTableExpr::has_kind() const {
|
||||
return kind_case() != KIND_NOT_SET;
|
||||
}
|
||||
@@ -11960,6 +12374,60 @@ inline AlterTableExpr::KindCase AlterTableExpr::kind_case() const {
|
||||
}
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DropDefault
|
||||
|
||||
// string column_name = 1;
|
||||
inline void DropDefault::clear_column_name() {
|
||||
_impl_.column_name_.ClearToEmpty();
|
||||
}
|
||||
inline const std::string& DropDefault::column_name() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.DropDefault.column_name)
|
||||
return _internal_column_name();
|
||||
}
|
||||
template <typename ArgT0, typename... ArgT>
|
||||
inline PROTOBUF_ALWAYS_INLINE
|
||||
void DropDefault::set_column_name(ArgT0&& arg0, ArgT... args) {
|
||||
|
||||
_impl_.column_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||
// @@protoc_insertion_point(field_set:greptime.v1.DropDefault.column_name)
|
||||
}
|
||||
inline std::string* DropDefault::mutable_column_name() {
|
||||
std::string* _s = _internal_mutable_column_name();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.DropDefault.column_name)
|
||||
return _s;
|
||||
}
|
||||
inline const std::string& DropDefault::_internal_column_name() const {
|
||||
return _impl_.column_name_.Get();
|
||||
}
|
||||
inline void DropDefault::_internal_set_column_name(const std::string& value) {
|
||||
|
||||
_impl_.column_name_.Set(value, GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* DropDefault::_internal_mutable_column_name() {
|
||||
|
||||
return _impl_.column_name_.Mutable(GetArenaForAllocation());
|
||||
}
|
||||
inline std::string* DropDefault::release_column_name() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.DropDefault.column_name)
|
||||
return _impl_.column_name_.Release();
|
||||
}
|
||||
inline void DropDefault::set_allocated_column_name(std::string* column_name) {
|
||||
if (column_name != nullptr) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.column_name_.SetAllocated(column_name, GetArenaForAllocation());
|
||||
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
if (_impl_.column_name_.IsDefault()) {
|
||||
_impl_.column_name_.Set("", GetArenaForAllocation());
|
||||
}
|
||||
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.DropDefault.column_name)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// SetIndex
|
||||
|
||||
// .greptime.v1.SetFulltext fulltext = 1;
|
||||
@@ -13261,6 +13729,50 @@ AddColumns::add_columns() const {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DropDefaults
|
||||
|
||||
// repeated .greptime.v1.DropDefault drop_defaults = 1;
|
||||
inline int DropDefaults::_internal_drop_defaults_size() const {
|
||||
return _impl_.drop_defaults_.size();
|
||||
}
|
||||
inline int DropDefaults::drop_defaults_size() const {
|
||||
return _internal_drop_defaults_size();
|
||||
}
|
||||
inline void DropDefaults::clear_drop_defaults() {
|
||||
_impl_.drop_defaults_.Clear();
|
||||
}
|
||||
inline ::greptime::v1::DropDefault* DropDefaults::mutable_drop_defaults(int index) {
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.DropDefaults.drop_defaults)
|
||||
return _impl_.drop_defaults_.Mutable(index);
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropDefault >*
|
||||
DropDefaults::mutable_drop_defaults() {
|
||||
// @@protoc_insertion_point(field_mutable_list:greptime.v1.DropDefaults.drop_defaults)
|
||||
return &_impl_.drop_defaults_;
|
||||
}
|
||||
inline const ::greptime::v1::DropDefault& DropDefaults::_internal_drop_defaults(int index) const {
|
||||
return _impl_.drop_defaults_.Get(index);
|
||||
}
|
||||
inline const ::greptime::v1::DropDefault& DropDefaults::drop_defaults(int index) const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.DropDefaults.drop_defaults)
|
||||
return _internal_drop_defaults(index);
|
||||
}
|
||||
inline ::greptime::v1::DropDefault* DropDefaults::_internal_add_drop_defaults() {
|
||||
return _impl_.drop_defaults_.Add();
|
||||
}
|
||||
inline ::greptime::v1::DropDefault* DropDefaults::add_drop_defaults() {
|
||||
::greptime::v1::DropDefault* _add = _internal_add_drop_defaults();
|
||||
// @@protoc_insertion_point(field_add:greptime.v1.DropDefaults.drop_defaults)
|
||||
return _add;
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::DropDefault >&
|
||||
DropDefaults::drop_defaults() const {
|
||||
// @@protoc_insertion_point(field_list:greptime.v1.DropDefaults.drop_defaults)
|
||||
return _impl_.drop_defaults_;
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// DropColumns
|
||||
|
||||
// repeated .greptime.v1.DropColumn drop_columns = 1;
|
||||
@@ -16008,6 +16520,10 @@ WebhookOptions::mutable_opts() {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
@@ -687,6 +687,7 @@ const uint32_t TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets[] PR
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.schema_version_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::region::AlterRequest, _impl_.kind_),
|
||||
~0u, // no _has_bits_
|
||||
@@ -819,20 +820,20 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
||||
{ 164, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
|
||||
{ 171, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
|
||||
{ 178, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
|
||||
{ 194, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||
{ 201, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||
{ 208, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||
{ 216, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||
{ 223, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 230, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||
{ 236, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 243, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 253, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 260, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
{ 268, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
|
||||
{ 277, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
|
||||
{ 284, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
|
||||
{ 292, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
|
||||
{ 195, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
|
||||
{ 202, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
|
||||
{ 209, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
|
||||
{ 217, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
|
||||
{ 224, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
|
||||
{ 231, -1, -1, sizeof(::greptime::v1::region::Regular)},
|
||||
{ 237, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
|
||||
{ 244, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
|
||||
{ 254, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
|
||||
{ 261, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
|
||||
{ 269, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
|
||||
{ 278, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
|
||||
{ 285, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
|
||||
{ 293, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
|
||||
};
|
||||
|
||||
static const ::_pb::Message* const file_default_instances[] = {
|
||||
@@ -937,7 +938,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
|
||||
"\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n\treg"
|
||||
"ion_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010request"
|
||||
"s\030\001 \003(\0132 .greptime.v1.region.AlterReques"
|
||||
"t\"\306\003\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n"
|
||||
"t\"\372\003\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(\004\0225\n"
|
||||
"\013add_columns\030\002 \001(\0132\036.greptime.v1.region."
|
||||
"AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037.gre"
|
||||
"ptime.v1.region.DropColumnsH\000\022=\n\023modify_"
|
||||
@@ -947,39 +948,41 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
|
||||
"_table_options\030\t \001(\0132\036.greptime.v1.Unset"
|
||||
"TableOptionsH\000\022*\n\tset_index\030\n \001(\0132\025.grep"
|
||||
"time.v1.SetIndexH\000\022.\n\013unset_index\030\013 \001(\0132"
|
||||
"\027.greptime.v1.UnsetIndexH\000\022\026\n\016schema_ver"
|
||||
"sion\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_"
|
||||
"columns\030\001 \003(\0132\035.greptime.v1.region.AddCo"
|
||||
"lumn\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003("
|
||||
"\0132\036.greptime.v1.region.DropColumn\"v\n\tAdd"
|
||||
"Column\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1"
|
||||
".region.RegionColumnDef\0220\n\010location\030\003 \001("
|
||||
"\0132\036.greptime.v1.AddColumnLocation\"\032\n\nDro"
|
||||
"pColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n"
|
||||
"\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWin"
|
||||
"dow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016CompactR"
|
||||
"equest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001"
|
||||
"(\0132\033.greptime.v1.region.RegularH\000\0229\n\rstr"
|
||||
"ict_window\030\003 \001(\0132 .greptime.v1.region.St"
|
||||
"rictWindowH\000B\t\n\007options\"$\n\017TruncateReque"
|
||||
"st\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDef"
|
||||
"\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
|
||||
"nDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertReq"
|
||||
"uest\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001"
|
||||
"(\0132\025.greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020M"
|
||||
"itoManifestInfo\022\035\n\025data_manifest_version"
|
||||
"\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025data_man"
|
||||
"ifest_version\030\001 \001(\004\022!\n\031metadata_manifest"
|
||||
"_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\tregion"
|
||||
"_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 \001(\0132$."
|
||||
"greptime.v1.region.MitoManifestInfoH\000\022F\n"
|
||||
"\024metric_manifest_info\030\003 \001(\0132&.greptime.v"
|
||||
"1.region.MetricManifestInfoH\000B\017\n\rmanifes"
|
||||
"t_info2Y\n\006Region\022O\n\006Handle\022!.greptime.v1"
|
||||
".region.RegionRequest\032\".greptime.v1.regi"
|
||||
"on.RegionResponseB]\n\025io.greptime.v1.regi"
|
||||
"onB\006ServerZ<github.com/GreptimeTeam/grep"
|
||||
"time-proto/go/greptime/v1/regionb\006proto3"
|
||||
"\027.greptime.v1.UnsetIndexH\000\0222\n\rdrop_defau"
|
||||
"lts\030\014 \001(\0132\031.greptime.v1.DropDefaultsH\000\022\026"
|
||||
"\n\016schema_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddCol"
|
||||
"umns\0222\n\013add_columns\030\001 \003(\0132\035.greptime.v1."
|
||||
"region.AddColumn\"C\n\013DropColumns\0224\n\014drop_"
|
||||
"columns\030\001 \003(\0132\036.greptime.v1.region.DropC"
|
||||
"olumn\"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#"
|
||||
".greptime.v1.region.RegionColumnDef\0220\n\010l"
|
||||
"ocation\030\003 \001(\0132\036.greptime.v1.AddColumnLoc"
|
||||
"ation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014Flu"
|
||||
"shRequest\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\""
|
||||
"&\n\014StrictWindow\022\026\n\016window_seconds\030\001 \001(\003\""
|
||||
"\231\001\n\016CompactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n"
|
||||
"\007regular\030\002 \001(\0132\033.greptime.v1.region.Regu"
|
||||
"larH\000\0229\n\rstrict_window\030\003 \001(\0132 .greptime."
|
||||
"v1.region.StrictWindowH\000B\t\n\007options\"$\n\017T"
|
||||
"runcateRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017Reg"
|
||||
"ionColumnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.grept"
|
||||
"ime.v1.ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021B"
|
||||
"ulkInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022*\n\ta"
|
||||
"rrow_ipc\030\002 \001(\0132\025.greptime.v1.ArrowIpcH\000B"
|
||||
"\006\n\004body\"1\n\020MitoManifestInfo\022\035\n\025data_mani"
|
||||
"fest_version\030\001 \001(\004\"V\n\022MetricManifestInfo"
|
||||
"\022\035\n\025data_manifest_version\030\001 \001(\004\022!\n\031metad"
|
||||
"ata_manifest_version\030\002 \001(\004\"\275\001\n\013SyncReque"
|
||||
"st\022\021\n\tregion_id\030\001 \001(\004\022B\n\022mito_manifest_i"
|
||||
"nfo\030\002 \001(\0132$.greptime.v1.region.MitoManif"
|
||||
"estInfoH\000\022F\n\024metric_manifest_info\030\003 \001(\0132"
|
||||
"&.greptime.v1.region.MetricManifestInfoH"
|
||||
"\000B\017\n\rmanifest_info2Y\n\006Region\022O\n\006Handle\022!"
|
||||
".greptime.v1.region.RegionRequest\032\".grep"
|
||||
"time.v1.region.RegionResponseB]\n\025io.grep"
|
||||
"time.v1.regionB\006ServerZ<github.com/Grept"
|
||||
"imeTeam/greptime-proto/go/greptime/v1/re"
|
||||
"gionb\006proto3"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -988,7 +991,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2freg
|
||||
};
|
||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once;
|
||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto = {
|
||||
false, false, 4280, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
false, false, 4332, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
|
||||
"greptime/v1/region/server.proto",
|
||||
&descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps, 3, 34,
|
||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
|
||||
@@ -5603,6 +5606,7 @@ class AlterRequest::_Internal {
|
||||
static const ::greptime::v1::UnsetTableOptions& unset_table_options(const AlterRequest* msg);
|
||||
static const ::greptime::v1::SetIndex& set_index(const AlterRequest* msg);
|
||||
static const ::greptime::v1::UnsetIndex& unset_index(const AlterRequest* msg);
|
||||
static const ::greptime::v1::DropDefaults& drop_defaults(const AlterRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::region::AddColumns&
|
||||
@@ -5633,6 +5637,10 @@ const ::greptime::v1::UnsetIndex&
|
||||
AlterRequest::_Internal::unset_index(const AlterRequest* msg) {
|
||||
return *msg->_impl_.kind_.unset_index_;
|
||||
}
|
||||
const ::greptime::v1::DropDefaults&
|
||||
AlterRequest::_Internal::drop_defaults(const AlterRequest* msg) {
|
||||
return *msg->_impl_.kind_.drop_defaults_;
|
||||
}
|
||||
void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_kind();
|
||||
@@ -5783,6 +5791,30 @@ void AlterRequest::clear_unset_index() {
|
||||
clear_has_kind();
|
||||
}
|
||||
}
|
||||
void AlterRequest::set_allocated_drop_defaults(::greptime::v1::DropDefaults* drop_defaults) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
clear_kind();
|
||||
if (drop_defaults) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(drop_defaults));
|
||||
if (message_arena != submessage_arena) {
|
||||
drop_defaults = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, drop_defaults, submessage_arena);
|
||||
}
|
||||
set_has_drop_defaults();
|
||||
_impl_.kind_.drop_defaults_ = drop_defaults;
|
||||
}
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.drop_defaults)
|
||||
}
|
||||
void AlterRequest::clear_drop_defaults() {
|
||||
if (_internal_has_drop_defaults()) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.drop_defaults_;
|
||||
}
|
||||
clear_has_kind();
|
||||
}
|
||||
}
|
||||
AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
@@ -5840,6 +5872,11 @@ AlterRequest::AlterRequest(const AlterRequest& from)
|
||||
from._internal_unset_index());
|
||||
break;
|
||||
}
|
||||
case kDropDefaults: {
|
||||
_this->_internal_mutable_drop_defaults()->::greptime::v1::DropDefaults::MergeFrom(
|
||||
from._internal_drop_defaults());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -5926,6 +5963,12 @@ void AlterRequest::clear_kind() {
|
||||
}
|
||||
break;
|
||||
}
|
||||
case kDropDefaults: {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete _impl_.kind_.drop_defaults_;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -6025,6 +6068,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.DropDefaults drop_defaults = 12;
|
||||
case 12:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 98)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_drop_defaults(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -6115,6 +6166,13 @@ uint8_t* AlterRequest::_InternalSerialize(
|
||||
_Internal::unset_index(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.DropDefaults drop_defaults = 12;
|
||||
if (_internal_has_drop_defaults()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(12, _Internal::drop_defaults(this),
|
||||
_Internal::drop_defaults(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||
@@ -6191,6 +6249,13 @@ size_t AlterRequest::ByteSizeLong() const {
|
||||
*_impl_.kind_.unset_index_);
|
||||
break;
|
||||
}
|
||||
// .greptime.v1.DropDefaults drop_defaults = 12;
|
||||
case kDropDefaults: {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.kind_.drop_defaults_);
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
@@ -6255,6 +6320,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
|
||||
from._internal_unset_index());
|
||||
break;
|
||||
}
|
||||
case kDropDefaults: {
|
||||
_this->_internal_mutable_drop_defaults()->::greptime::v1::DropDefaults::MergeFrom(
|
||||
from._internal_drop_defaults());
|
||||
break;
|
||||
}
|
||||
case KIND_NOT_SET: {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -3326,6 +3326,7 @@ class AlterRequest final :
|
||||
kUnsetTableOptions = 9,
|
||||
kSetIndex = 10,
|
||||
kUnsetIndex = 11,
|
||||
kDropDefaults = 12,
|
||||
KIND_NOT_SET = 0,
|
||||
};
|
||||
|
||||
@@ -3416,6 +3417,7 @@ class AlterRequest final :
|
||||
kUnsetTableOptionsFieldNumber = 9,
|
||||
kSetIndexFieldNumber = 10,
|
||||
kUnsetIndexFieldNumber = 11,
|
||||
kDropDefaultsFieldNumber = 12,
|
||||
};
|
||||
// uint64 region_id = 1;
|
||||
void clear_region_id();
|
||||
@@ -3561,6 +3563,24 @@ class AlterRequest final :
|
||||
::greptime::v1::UnsetIndex* unset_index);
|
||||
::greptime::v1::UnsetIndex* unsafe_arena_release_unset_index();
|
||||
|
||||
// .greptime.v1.DropDefaults drop_defaults = 12;
|
||||
bool has_drop_defaults() const;
|
||||
private:
|
||||
bool _internal_has_drop_defaults() const;
|
||||
public:
|
||||
void clear_drop_defaults();
|
||||
const ::greptime::v1::DropDefaults& drop_defaults() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::DropDefaults* release_drop_defaults();
|
||||
::greptime::v1::DropDefaults* mutable_drop_defaults();
|
||||
void set_allocated_drop_defaults(::greptime::v1::DropDefaults* drop_defaults);
|
||||
private:
|
||||
const ::greptime::v1::DropDefaults& _internal_drop_defaults() const;
|
||||
::greptime::v1::DropDefaults* _internal_mutable_drop_defaults();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_drop_defaults(
|
||||
::greptime::v1::DropDefaults* drop_defaults);
|
||||
::greptime::v1::DropDefaults* unsafe_arena_release_drop_defaults();
|
||||
|
||||
void clear_kind();
|
||||
KindCase kind_case() const;
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest)
|
||||
@@ -3573,6 +3593,7 @@ class AlterRequest final :
|
||||
void set_has_unset_table_options();
|
||||
void set_has_set_index();
|
||||
void set_has_unset_index();
|
||||
void set_has_drop_defaults();
|
||||
|
||||
inline bool has_kind() const;
|
||||
inline void clear_has_kind();
|
||||
@@ -3593,6 +3614,7 @@ class AlterRequest final :
|
||||
::greptime::v1::UnsetTableOptions* unset_table_options_;
|
||||
::greptime::v1::SetIndex* set_index_;
|
||||
::greptime::v1::UnsetIndex* unset_index_;
|
||||
::greptime::v1::DropDefaults* drop_defaults_;
|
||||
} kind_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
uint32_t _oneof_case_[1];
|
||||
@@ -8980,6 +9002,72 @@ inline ::greptime::v1::UnsetIndex* AlterRequest::mutable_unset_index() {
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// .greptime.v1.DropDefaults drop_defaults = 12;
|
||||
inline bool AlterRequest::_internal_has_drop_defaults() const {
|
||||
return kind_case() == kDropDefaults;
|
||||
}
|
||||
inline bool AlterRequest::has_drop_defaults() const {
|
||||
return _internal_has_drop_defaults();
|
||||
}
|
||||
inline void AlterRequest::set_has_drop_defaults() {
|
||||
_impl_._oneof_case_[0] = kDropDefaults;
|
||||
}
|
||||
inline ::greptime::v1::DropDefaults* AlterRequest::release_drop_defaults() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.drop_defaults)
|
||||
if (_internal_has_drop_defaults()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::DropDefaults* temp = _impl_.kind_.drop_defaults_;
|
||||
if (GetArenaForAllocation() != nullptr) {
|
||||
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||
}
|
||||
_impl_.kind_.drop_defaults_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline const ::greptime::v1::DropDefaults& AlterRequest::_internal_drop_defaults() const {
|
||||
return _internal_has_drop_defaults()
|
||||
? *_impl_.kind_.drop_defaults_
|
||||
: reinterpret_cast< ::greptime::v1::DropDefaults&>(::greptime::v1::_DropDefaults_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::DropDefaults& AlterRequest::drop_defaults() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.drop_defaults)
|
||||
return _internal_drop_defaults();
|
||||
}
|
||||
inline ::greptime::v1::DropDefaults* AlterRequest::unsafe_arena_release_drop_defaults() {
|
||||
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.drop_defaults)
|
||||
if (_internal_has_drop_defaults()) {
|
||||
clear_has_kind();
|
||||
::greptime::v1::DropDefaults* temp = _impl_.kind_.drop_defaults_;
|
||||
_impl_.kind_.drop_defaults_ = nullptr;
|
||||
return temp;
|
||||
} else {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
inline void AlterRequest::unsafe_arena_set_allocated_drop_defaults(::greptime::v1::DropDefaults* drop_defaults) {
|
||||
clear_kind();
|
||||
if (drop_defaults) {
|
||||
set_has_drop_defaults();
|
||||
_impl_.kind_.drop_defaults_ = drop_defaults;
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.drop_defaults)
|
||||
}
|
||||
inline ::greptime::v1::DropDefaults* AlterRequest::_internal_mutable_drop_defaults() {
|
||||
if (!_internal_has_drop_defaults()) {
|
||||
clear_kind();
|
||||
set_has_drop_defaults();
|
||||
_impl_.kind_.drop_defaults_ = CreateMaybeMessage< ::greptime::v1::DropDefaults >(GetArenaForAllocation());
|
||||
}
|
||||
return _impl_.kind_.drop_defaults_;
|
||||
}
|
||||
inline ::greptime::v1::DropDefaults* AlterRequest::mutable_drop_defaults() {
|
||||
::greptime::v1::DropDefaults* _msg = _internal_mutable_drop_defaults();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.drop_defaults)
|
||||
return _msg;
|
||||
}
|
||||
|
||||
// uint64 schema_version = 4;
|
||||
inline void AlterRequest::clear_schema_version() {
|
||||
_impl_.schema_version_ = uint64_t{0u};
|
||||
|
||||
Reference in New Issue
Block a user