feat: Support SET DEFAULT syntax (#251)

Signed-off-by: Yihai Lin <yihai-lin@foxmail.com>
This commit is contained in:
Lin Yihai
2025-07-29 11:19:12 +08:00
committed by GitHub
parent 7fcaa3e413
commit 3bb33593a7
10 changed files with 4505 additions and 570 deletions
+737 -187
View File
File diff suppressed because it is too large Load Diff
+616 -34
View File
@@ -150,6 +150,12 @@ extern RenameTableDefaultTypeInternal _RenameTable_default_instance_;
class SetDatabaseOptions;
struct SetDatabaseOptionsDefaultTypeInternal;
extern SetDatabaseOptionsDefaultTypeInternal _SetDatabaseOptions_default_instance_;
class SetDefault;
struct SetDefaultDefaultTypeInternal;
extern SetDefaultDefaultTypeInternal _SetDefault_default_instance_;
class SetDefaults;
struct SetDefaultsDefaultTypeInternal;
extern SetDefaultsDefaultTypeInternal _SetDefaults_default_instance_;
class SetFulltext;
struct SetFulltextDefaultTypeInternal;
extern SetFulltextDefaultTypeInternal _SetFulltext_default_instance_;
@@ -237,6 +243,8 @@ template<> ::greptime::v1::NotifyChannel* Arena::CreateMaybeMessage<::greptime::
template<> ::greptime::v1::Option* Arena::CreateMaybeMessage<::greptime::v1::Option>(Arena*);
template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*);
template<> ::greptime::v1::SetDatabaseOptions* Arena::CreateMaybeMessage<::greptime::v1::SetDatabaseOptions>(Arena*);
template<> ::greptime::v1::SetDefault* Arena::CreateMaybeMessage<::greptime::v1::SetDefault>(Arena*);
template<> ::greptime::v1::SetDefaults* Arena::CreateMaybeMessage<::greptime::v1::SetDefaults>(Arena*);
template<> ::greptime::v1::SetFulltext* Arena::CreateMaybeMessage<::greptime::v1::SetFulltext>(Arena*);
template<> ::greptime::v1::SetIndex* Arena::CreateMaybeMessage<::greptime::v1::SetIndex>(Arena*);
template<> ::greptime::v1::SetIndexes* Arena::CreateMaybeMessage<::greptime::v1::SetIndexes>(Arena*);
@@ -2214,6 +2222,7 @@ class AlterTableExpr final :
kDropDefaults = 14,
kSetIndexes = 15,
kUnsetIndexes = 16,
kSetDefaults = 17,
KIND_NOT_SET = 0,
};
@@ -2309,6 +2318,7 @@ class AlterTableExpr final :
kDropDefaultsFieldNumber = 14,
kSetIndexesFieldNumber = 15,
kUnsetIndexesFieldNumber = 16,
kSetDefaultsFieldNumber = 17,
};
// string catalog_name = 1;
void clear_catalog_name();
@@ -2550,6 +2560,24 @@ class AlterTableExpr final :
::greptime::v1::UnsetIndexes* unset_indexes);
::greptime::v1::UnsetIndexes* unsafe_arena_release_unset_indexes();
// .greptime.v1.SetDefaults set_defaults = 17;
bool has_set_defaults() const;
private:
bool _internal_has_set_defaults() const;
public:
void clear_set_defaults();
const ::greptime::v1::SetDefaults& set_defaults() const;
PROTOBUF_NODISCARD ::greptime::v1::SetDefaults* release_set_defaults();
::greptime::v1::SetDefaults* mutable_set_defaults();
void set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults);
private:
const ::greptime::v1::SetDefaults& _internal_set_defaults() const;
::greptime::v1::SetDefaults* _internal_mutable_set_defaults();
public:
void unsafe_arena_set_allocated_set_defaults(
::greptime::v1::SetDefaults* set_defaults);
::greptime::v1::SetDefaults* unsafe_arena_release_set_defaults();
void clear_kind();
KindCase kind_case() const;
// @@protoc_insertion_point(class_scope:greptime.v1.AlterTableExpr)
@@ -2566,6 +2594,7 @@ class AlterTableExpr final :
void set_has_drop_defaults();
void set_has_set_indexes();
void set_has_unset_indexes();
void set_has_set_defaults();
inline bool has_kind() const;
inline void clear_has_kind();
@@ -2591,6 +2620,7 @@ class AlterTableExpr final :
::greptime::v1::DropDefaults* drop_defaults_;
::greptime::v1::SetIndexes* set_indexes_;
::greptime::v1::UnsetIndexes* unset_indexes_;
::greptime::v1::SetDefaults* set_defaults_;
} kind_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
@@ -3068,6 +3098,175 @@ class UnsetIndexes final :
};
// -------------------------------------------------------------------
class SetDefault final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetDefault) */ {
public:
inline SetDefault() : SetDefault(nullptr) {}
~SetDefault() override;
explicit PROTOBUF_CONSTEXPR SetDefault(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
SetDefault(const SetDefault& from);
SetDefault(SetDefault&& from) noexcept
: SetDefault() {
*this = ::std::move(from);
}
inline SetDefault& operator=(const SetDefault& from) {
CopyFrom(from);
return *this;
}
inline SetDefault& operator=(SetDefault&& 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 SetDefault& default_instance() {
return *internal_default_instance();
}
static inline const SetDefault* internal_default_instance() {
return reinterpret_cast<const SetDefault*>(
&_SetDefault_default_instance_);
}
static constexpr int kIndexInFileMessages =
12;
friend void swap(SetDefault& a, SetDefault& b) {
a.Swap(&b);
}
inline void Swap(SetDefault* 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(SetDefault* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
SetDefault* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<SetDefault>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const SetDefault& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const SetDefault& from) {
SetDefault::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(SetDefault* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.SetDefault";
}
protected:
explicit SetDefault(::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,
kDefaultConstraintFieldNumber = 2,
};
// 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:
// bytes default_constraint = 2;
void clear_default_constraint();
const std::string& default_constraint() const;
template <typename ArgT0 = const std::string&, typename... ArgT>
void set_default_constraint(ArgT0&& arg0, ArgT... args);
std::string* mutable_default_constraint();
PROTOBUF_NODISCARD std::string* release_default_constraint();
void set_allocated_default_constraint(std::string* default_constraint);
private:
const std::string& _internal_default_constraint() const;
inline PROTOBUF_ALWAYS_INLINE void _internal_set_default_constraint(const std::string& value);
std::string* _internal_mutable_default_constraint();
public:
// @@protoc_insertion_point(class_scope:greptime.v1.SetDefault)
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_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_constraint_;
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:
@@ -3123,7 +3322,7 @@ class SetIndex final :
&_SetIndex_default_instance_);
}
static constexpr int kIndexInFileMessages =
12;
13;
friend void swap(SetIndex& a, SetIndex& b) {
a.Swap(&b);
@@ -3341,7 +3540,7 @@ class UnsetIndex final :
&_UnsetIndex_default_instance_);
}
static constexpr int kIndexInFileMessages =
13;
14;
friend void swap(UnsetIndex& a, UnsetIndex& b) {
a.Swap(&b);
@@ -3552,7 +3751,7 @@ class DropTableExpr final :
&_DropTableExpr_default_instance_);
}
static constexpr int kIndexInFileMessages =
14;
15;
friend void swap(DropTableExpr& a, DropTableExpr& b) {
a.Swap(&b);
@@ -3796,7 +3995,7 @@ class CreateDatabaseExpr final :
&_CreateDatabaseExpr_default_instance_);
}
static constexpr int kIndexInFileMessages =
16;
17;
friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) {
a.Swap(&b);
@@ -4002,7 +4201,7 @@ class TruncateTableExpr final :
&_TruncateTableExpr_default_instance_);
}
static constexpr int kIndexInFileMessages =
17;
18;
friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) {
a.Swap(&b);
@@ -4207,7 +4406,7 @@ class DropDatabaseExpr final :
&_DropDatabaseExpr_default_instance_);
}
static constexpr int kIndexInFileMessages =
18;
19;
friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) {
a.Swap(&b);
@@ -4387,7 +4586,7 @@ class AddColumns final :
&_AddColumns_default_instance_);
}
static constexpr int kIndexInFileMessages =
19;
20;
friend void swap(AddColumns& a, AddColumns& b) {
a.Swap(&b);
@@ -4544,7 +4743,7 @@ class DropDefaults final :
&_DropDefaults_default_instance_);
}
static constexpr int kIndexInFileMessages =
20;
21;
friend void swap(DropDefaults& a, DropDefaults& b) {
a.Swap(&b);
@@ -4653,6 +4852,163 @@ class DropDefaults final :
};
// -------------------------------------------------------------------
class SetDefaults final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SetDefaults) */ {
public:
inline SetDefaults() : SetDefaults(nullptr) {}
~SetDefaults() override;
explicit PROTOBUF_CONSTEXPR SetDefaults(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
SetDefaults(const SetDefaults& from);
SetDefaults(SetDefaults&& from) noexcept
: SetDefaults() {
*this = ::std::move(from);
}
inline SetDefaults& operator=(const SetDefaults& from) {
CopyFrom(from);
return *this;
}
inline SetDefaults& operator=(SetDefaults&& 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 SetDefaults& default_instance() {
return *internal_default_instance();
}
static inline const SetDefaults* internal_default_instance() {
return reinterpret_cast<const SetDefaults*>(
&_SetDefaults_default_instance_);
}
static constexpr int kIndexInFileMessages =
22;
friend void swap(SetDefaults& a, SetDefaults& b) {
a.Swap(&b);
}
inline void Swap(SetDefaults* 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(SetDefaults* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
SetDefaults* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<SetDefaults>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const SetDefaults& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const SetDefaults& from) {
SetDefaults::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(SetDefaults* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.SetDefaults";
}
protected:
explicit SetDefaults(::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 {
kSetDefaultsFieldNumber = 1,
};
// repeated .greptime.v1.SetDefault set_defaults = 1;
int set_defaults_size() const;
private:
int _internal_set_defaults_size() const;
public:
void clear_set_defaults();
::greptime::v1::SetDefault* mutable_set_defaults(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault >*
mutable_set_defaults();
private:
const ::greptime::v1::SetDefault& _internal_set_defaults(int index) const;
::greptime::v1::SetDefault* _internal_add_set_defaults();
public:
const ::greptime::v1::SetDefault& set_defaults(int index) const;
::greptime::v1::SetDefault* add_set_defaults();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault >&
set_defaults() const;
// @@protoc_insertion_point(class_scope:greptime.v1.SetDefaults)
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::SetDefault > set_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:
@@ -4701,7 +5057,7 @@ class DropColumns final :
&_DropColumns_default_instance_);
}
static constexpr int kIndexInFileMessages =
21;
23;
friend void swap(DropColumns& a, DropColumns& b) {
a.Swap(&b);
@@ -4858,7 +5214,7 @@ class ModifyColumnTypes final :
&_ModifyColumnTypes_default_instance_);
}
static constexpr int kIndexInFileMessages =
22;
24;
friend void swap(ModifyColumnTypes& a, ModifyColumnTypes& b) {
a.Swap(&b);
@@ -5015,7 +5371,7 @@ class RenameTable final :
&_RenameTable_default_instance_);
}
static constexpr int kIndexInFileMessages =
23;
25;
friend void swap(RenameTable& a, RenameTable& b) {
a.Swap(&b);
@@ -5168,7 +5524,7 @@ class AddColumn final :
&_AddColumn_default_instance_);
}
static constexpr int kIndexInFileMessages =
24;
26;
friend void swap(AddColumn& a, AddColumn& b) {
a.Swap(&b);
@@ -5356,7 +5712,7 @@ class ModifyColumnType final :
&_ModifyColumnType_default_instance_);
}
static constexpr int kIndexInFileMessages =
25;
27;
friend void swap(ModifyColumnType& a, ModifyColumnType& b) {
a.Swap(&b);
@@ -5540,7 +5896,7 @@ class Option final :
&_Option_default_instance_);
}
static constexpr int kIndexInFileMessages =
26;
28;
friend void swap(Option& a, Option& b) {
a.Swap(&b);
@@ -5709,7 +6065,7 @@ class SetTableOptions final :
&_SetTableOptions_default_instance_);
}
static constexpr int kIndexInFileMessages =
27;
29;
friend void swap(SetTableOptions& a, SetTableOptions& b) {
a.Swap(&b);
@@ -5866,7 +6222,7 @@ class UnsetTableOptions final :
&_UnsetTableOptions_default_instance_);
}
static constexpr int kIndexInFileMessages =
28;
30;
friend void swap(UnsetTableOptions& a, UnsetTableOptions& b) {
a.Swap(&b);
@@ -6029,7 +6385,7 @@ class DropColumn final :
&_DropColumn_default_instance_);
}
static constexpr int kIndexInFileMessages =
29;
31;
friend void swap(DropColumn& a, DropColumn& b) {
a.Swap(&b);
@@ -6182,7 +6538,7 @@ class TableId final :
&_TableId_default_instance_);
}
static constexpr int kIndexInFileMessages =
30;
32;
friend void swap(TableId& a, TableId& b) {
a.Swap(&b);
@@ -6330,7 +6686,7 @@ class FlowId final :
&_FlowId_default_instance_);
}
static constexpr int kIndexInFileMessages =
31;
33;
friend void swap(FlowId& a, FlowId& b) {
a.Swap(&b);
@@ -6478,7 +6834,7 @@ class ColumnDef final :
&_ColumnDef_default_instance_);
}
static constexpr int kIndexInFileMessages =
32;
34;
friend void swap(ColumnDef& a, ColumnDef& b) {
a.Swap(&b);
@@ -6736,7 +7092,7 @@ class AddColumnLocation final :
&_AddColumnLocation_default_instance_);
}
static constexpr int kIndexInFileMessages =
33;
35;
friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
a.Swap(&b);
@@ -6930,7 +7286,7 @@ class SetFulltext final :
&_SetFulltext_default_instance_);
}
static constexpr int kIndexInFileMessages =
34;
36;
friend void swap(SetFulltext& a, SetFulltext& b) {
a.Swap(&b);
@@ -7149,7 +7505,7 @@ class UnsetFulltext final :
&_UnsetFulltext_default_instance_);
}
static constexpr int kIndexInFileMessages =
35;
37;
friend void swap(UnsetFulltext& a, UnsetFulltext& b) {
a.Swap(&b);
@@ -7302,7 +7658,7 @@ class SetInverted final :
&_SetInverted_default_instance_);
}
static constexpr int kIndexInFileMessages =
36;
38;
friend void swap(SetInverted& a, SetInverted& b) {
a.Swap(&b);
@@ -7455,7 +7811,7 @@ class UnsetInverted final :
&_UnsetInverted_default_instance_);
}
static constexpr int kIndexInFileMessages =
37;
39;
friend void swap(UnsetInverted& a, UnsetInverted& b) {
a.Swap(&b);
@@ -7608,7 +7964,7 @@ class SetSkipping final :
&_SetSkipping_default_instance_);
}
static constexpr int kIndexInFileMessages =
38;
40;
friend void swap(SetSkipping& a, SetSkipping& b) {
a.Swap(&b);
@@ -7805,7 +8161,7 @@ class UnsetSkipping final :
&_UnsetSkipping_default_instance_);
}
static constexpr int kIndexInFileMessages =
39;
41;
friend void swap(UnsetSkipping& a, UnsetSkipping& b) {
a.Swap(&b);
@@ -7964,7 +8320,7 @@ class AlterDatabaseExpr final :
&_AlterDatabaseExpr_default_instance_);
}
static constexpr int kIndexInFileMessages =
40;
42;
friend void swap(AlterDatabaseExpr& a, AlterDatabaseExpr& b) {
a.Swap(&b);
@@ -8186,7 +8542,7 @@ class SetDatabaseOptions final :
&_SetDatabaseOptions_default_instance_);
}
static constexpr int kIndexInFileMessages =
41;
43;
friend void swap(SetDatabaseOptions& a, SetDatabaseOptions& b) {
a.Swap(&b);
@@ -8343,7 +8699,7 @@ class UnsetDatabaseOptions final :
&_UnsetDatabaseOptions_default_instance_);
}
static constexpr int kIndexInFileMessages =
42;
44;
friend void swap(UnsetDatabaseOptions& a, UnsetDatabaseOptions& b) {
a.Swap(&b);
@@ -8562,7 +8918,7 @@ class CreateTriggerExpr final :
&_CreateTriggerExpr_default_instance_);
}
static constexpr int kIndexInFileMessages =
45;
47;
friend void swap(CreateTriggerExpr& a, CreateTriggerExpr& b) {
a.Swap(&b);
@@ -8843,7 +9199,7 @@ class NotifyChannel final :
&_NotifyChannel_default_instance_);
}
static constexpr int kIndexInFileMessages =
46;
48;
friend void swap(NotifyChannel& a, NotifyChannel& b) {
a.Swap(&b);
@@ -9056,7 +9412,7 @@ class WebhookOptions final :
&_WebhookOptions_default_instance_);
}
static constexpr int kIndexInFileMessages =
48;
50;
friend void swap(WebhookOptions& a, WebhookOptions& b) {
a.Swap(&b);
@@ -9235,7 +9591,7 @@ class DropTriggerExpr final :
&_DropTriggerExpr_default_instance_);
}
static constexpr int kIndexInFileMessages =
49;
51;
friend void swap(DropTriggerExpr& a, DropTriggerExpr& b) {
a.Swap(&b);
@@ -13094,6 +13450,80 @@ inline ::greptime::v1::UnsetIndexes* AlterTableExpr::mutable_unset_indexes() {
return _msg;
}
// .greptime.v1.SetDefaults set_defaults = 17;
inline bool AlterTableExpr::_internal_has_set_defaults() const {
return kind_case() == kSetDefaults;
}
inline bool AlterTableExpr::has_set_defaults() const {
return _internal_has_set_defaults();
}
inline void AlterTableExpr::set_has_set_defaults() {
_impl_._oneof_case_[0] = kSetDefaults;
}
inline void AlterTableExpr::clear_set_defaults() {
if (_internal_has_set_defaults()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.set_defaults_;
}
clear_has_kind();
}
}
inline ::greptime::v1::SetDefaults* AlterTableExpr::release_set_defaults() {
// @@protoc_insertion_point(field_release:greptime.v1.AlterTableExpr.set_defaults)
if (_internal_has_set_defaults()) {
clear_has_kind();
::greptime::v1::SetDefaults* temp = _impl_.kind_.set_defaults_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.kind_.set_defaults_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::SetDefaults& AlterTableExpr::_internal_set_defaults() const {
return _internal_has_set_defaults()
? *_impl_.kind_.set_defaults_
: reinterpret_cast< ::greptime::v1::SetDefaults&>(::greptime::v1::_SetDefaults_default_instance_);
}
inline const ::greptime::v1::SetDefaults& AlterTableExpr::set_defaults() const {
// @@protoc_insertion_point(field_get:greptime.v1.AlterTableExpr.set_defaults)
return _internal_set_defaults();
}
inline ::greptime::v1::SetDefaults* AlterTableExpr::unsafe_arena_release_set_defaults() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterTableExpr.set_defaults)
if (_internal_has_set_defaults()) {
clear_has_kind();
::greptime::v1::SetDefaults* temp = _impl_.kind_.set_defaults_;
_impl_.kind_.set_defaults_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AlterTableExpr::unsafe_arena_set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults) {
clear_kind();
if (set_defaults) {
set_has_set_defaults();
_impl_.kind_.set_defaults_ = set_defaults;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterTableExpr.set_defaults)
}
inline ::greptime::v1::SetDefaults* AlterTableExpr::_internal_mutable_set_defaults() {
if (!_internal_has_set_defaults()) {
clear_kind();
set_has_set_defaults();
_impl_.kind_.set_defaults_ = CreateMaybeMessage< ::greptime::v1::SetDefaults >(GetArenaForAllocation());
}
return _impl_.kind_.set_defaults_;
}
inline ::greptime::v1::SetDefaults* AlterTableExpr::mutable_set_defaults() {
::greptime::v1::SetDefaults* _msg = _internal_mutable_set_defaults();
// @@protoc_insertion_point(field_mutable:greptime.v1.AlterTableExpr.set_defaults)
return _msg;
}
inline bool AlterTableExpr::has_kind() const {
return kind_case() != KIND_NOT_SET;
}
@@ -13247,6 +13677,110 @@ UnsetIndexes::unset_indexes() const {
// -------------------------------------------------------------------
// SetDefault
// string column_name = 1;
inline void SetDefault::clear_column_name() {
_impl_.column_name_.ClearToEmpty();
}
inline const std::string& SetDefault::column_name() const {
// @@protoc_insertion_point(field_get:greptime.v1.SetDefault.column_name)
return _internal_column_name();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void SetDefault::set_column_name(ArgT0&& arg0, ArgT... args) {
_impl_.column_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.SetDefault.column_name)
}
inline std::string* SetDefault::mutable_column_name() {
std::string* _s = _internal_mutable_column_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.SetDefault.column_name)
return _s;
}
inline const std::string& SetDefault::_internal_column_name() const {
return _impl_.column_name_.Get();
}
inline void SetDefault::_internal_set_column_name(const std::string& value) {
_impl_.column_name_.Set(value, GetArenaForAllocation());
}
inline std::string* SetDefault::_internal_mutable_column_name() {
return _impl_.column_name_.Mutable(GetArenaForAllocation());
}
inline std::string* SetDefault::release_column_name() {
// @@protoc_insertion_point(field_release:greptime.v1.SetDefault.column_name)
return _impl_.column_name_.Release();
}
inline void SetDefault::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.SetDefault.column_name)
}
// bytes default_constraint = 2;
inline void SetDefault::clear_default_constraint() {
_impl_.default_constraint_.ClearToEmpty();
}
inline const std::string& SetDefault::default_constraint() const {
// @@protoc_insertion_point(field_get:greptime.v1.SetDefault.default_constraint)
return _internal_default_constraint();
}
template <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void SetDefault::set_default_constraint(ArgT0&& arg0, ArgT... args) {
_impl_.default_constraint_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
// @@protoc_insertion_point(field_set:greptime.v1.SetDefault.default_constraint)
}
inline std::string* SetDefault::mutable_default_constraint() {
std::string* _s = _internal_mutable_default_constraint();
// @@protoc_insertion_point(field_mutable:greptime.v1.SetDefault.default_constraint)
return _s;
}
inline const std::string& SetDefault::_internal_default_constraint() const {
return _impl_.default_constraint_.Get();
}
inline void SetDefault::_internal_set_default_constraint(const std::string& value) {
_impl_.default_constraint_.Set(value, GetArenaForAllocation());
}
inline std::string* SetDefault::_internal_mutable_default_constraint() {
return _impl_.default_constraint_.Mutable(GetArenaForAllocation());
}
inline std::string* SetDefault::release_default_constraint() {
// @@protoc_insertion_point(field_release:greptime.v1.SetDefault.default_constraint)
return _impl_.default_constraint_.Release();
}
inline void SetDefault::set_allocated_default_constraint(std::string* default_constraint) {
if (default_constraint != nullptr) {
} else {
}
_impl_.default_constraint_.SetAllocated(default_constraint, GetArenaForAllocation());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (_impl_.default_constraint_.IsDefault()) {
_impl_.default_constraint_.Set("", GetArenaForAllocation());
}
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
// @@protoc_insertion_point(field_set_allocated:greptime.v1.SetDefault.default_constraint)
}
// -------------------------------------------------------------------
// SetIndex
// .greptime.v1.SetFulltext fulltext = 1;
@@ -14592,6 +15126,50 @@ DropDefaults::drop_defaults() const {
// -------------------------------------------------------------------
// SetDefaults
// repeated .greptime.v1.SetDefault set_defaults = 1;
inline int SetDefaults::_internal_set_defaults_size() const {
return _impl_.set_defaults_.size();
}
inline int SetDefaults::set_defaults_size() const {
return _internal_set_defaults_size();
}
inline void SetDefaults::clear_set_defaults() {
_impl_.set_defaults_.Clear();
}
inline ::greptime::v1::SetDefault* SetDefaults::mutable_set_defaults(int index) {
// @@protoc_insertion_point(field_mutable:greptime.v1.SetDefaults.set_defaults)
return _impl_.set_defaults_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault >*
SetDefaults::mutable_set_defaults() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.SetDefaults.set_defaults)
return &_impl_.set_defaults_;
}
inline const ::greptime::v1::SetDefault& SetDefaults::_internal_set_defaults(int index) const {
return _impl_.set_defaults_.Get(index);
}
inline const ::greptime::v1::SetDefault& SetDefaults::set_defaults(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.SetDefaults.set_defaults)
return _internal_set_defaults(index);
}
inline ::greptime::v1::SetDefault* SetDefaults::_internal_add_set_defaults() {
return _impl_.set_defaults_.Add();
}
inline ::greptime::v1::SetDefault* SetDefaults::add_set_defaults() {
::greptime::v1::SetDefault* _add = _internal_add_set_defaults();
// @@protoc_insertion_point(field_add:greptime.v1.SetDefaults.set_defaults)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SetDefault >&
SetDefaults::set_defaults() const {
// @@protoc_insertion_point(field_list:greptime.v1.SetDefaults.set_defaults)
return _impl_.set_defaults_;
}
// -------------------------------------------------------------------
// DropColumns
// repeated .greptime.v1.DropColumn drop_columns = 1;
@@ -17533,6 +18111,10 @@ inline void DropTriggerExpr::set_drop_if_exists(bool value) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+121 -51
View File
@@ -707,6 +707,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_
@@ -846,21 +847,21 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 166, -1, -1, sizeof(::greptime::v1::region::CloseRequest)},
{ 173, -1, -1, sizeof(::greptime::v1::region::AlterRequests)},
{ 180, -1, -1, sizeof(::greptime::v1::region::AlterRequest)},
{ 199, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 206, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 213, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 221, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 228, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 235, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 241, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 248, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 258, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 265, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 273, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 282, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 289, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 297, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 307, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
{ 200, -1, -1, sizeof(::greptime::v1::region::AddColumns)},
{ 207, -1, -1, sizeof(::greptime::v1::region::DropColumns)},
{ 214, -1, -1, sizeof(::greptime::v1::region::AddColumn)},
{ 222, -1, -1, sizeof(::greptime::v1::region::DropColumn)},
{ 229, -1, -1, sizeof(::greptime::v1::region::FlushRequest)},
{ 236, -1, -1, sizeof(::greptime::v1::region::Regular)},
{ 242, -1, -1, sizeof(::greptime::v1::region::StrictWindow)},
{ 249, -1, -1, sizeof(::greptime::v1::region::CompactRequest)},
{ 259, -1, -1, sizeof(::greptime::v1::region::TruncateRequest)},
{ 266, -1, -1, sizeof(::greptime::v1::region::RegionColumnDef)},
{ 274, -1, -1, sizeof(::greptime::v1::region::BulkInsertRequest)},
{ 283, -1, -1, sizeof(::greptime::v1::region::MitoManifestInfo)},
{ 290, -1, -1, sizeof(::greptime::v1::region::MetricManifestInfo)},
{ 298, -1, -1, sizeof(::greptime::v1::region::SyncRequest)},
{ 308, -1, -1, sizeof(::greptime::v1::region::ListMetadataRequest)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -968,7 +969,7 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n"
"\tregion_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010req"
"uests\030\001 \003(\0132 .greptime.v1.region.AlterRe"
"quest\"\336\004\n\014AlterRequest\022\021\n\tregion_id\030\001 \001("
"quest\"\220\005\n\014AlterRequest\022\021\n\tregion_id\030\001 \001("
"\004\0225\n\013add_columns\030\002 \001(\0132\036.greptime.v1.reg"
"ion.AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037"
".greptime.v1.region.DropColumnsH\000\022=\n\023mod"
@@ -982,40 +983,42 @@ const char descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto[] P
"efaults\030\014 \001(\0132\031.greptime.v1.DropDefaults"
"H\000\022.\n\013set_indexes\030\r \001(\0132\027.greptime.v1.Se"
"tIndexesH\000\0222\n\runset_indexes\030\016 \001(\0132\031.grep"
"time.v1.UnsetIndexesH\000\022\026\n\016schema_version"
"\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_colu"
"mns\030\001 \003(\0132\035.greptime.v1.region.AddColumn"
"\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036."
"greptime.v1.region.DropColumn\"v\n\tAddColu"
"mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg"
"ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036."
"greptime.v1.AddColumnLocation\"\032\n\nDropCol"
"umn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\treg"
"ion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022"
"\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016CompactReque"
"st\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033"
".greptime.v1.region.RegularH\000\0229\n\rstrict_"
"window\030\003 \001(\0132 .greptime.v1.region.Strict"
"WindowH\000B\t\n\007options\"$\n\017TruncateRequest\022\021"
"\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\n"
"column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef"
"\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertRequest"
"\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001(\0132\025"
".greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020MitoM"
"anifestInfo\022\035\n\025data_manifest_version\030\001 \001"
"(\004\"V\n\022MetricManifestInfo\022\035\n\025data_manifes"
"t_version\030\001 \001(\004\022!\n\031metadata_manifest_ver"
"sion\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$.grep"
"time.v1.region.MitoManifestInfoH\000\022F\n\024met"
"ric_manifest_info\030\003 \001(\0132&.greptime.v1.re"
"gion.MetricManifestInfoH\000B\017\n\rmanifest_in"
"fo\")\n\023ListMetadataRequest\022\022\n\nregion_ids\030"
"\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.greptime.v1."
"region.RegionRequest\032\".greptime.v1.regio"
"n.RegionResponseB]\n\025io.greptime.v1.regio"
"nB\006ServerZ<github.com/GreptimeTeam/grept"
"ime-proto/go/greptime/v1/regionb\006proto3"
"time.v1.UnsetIndexesH\000\0220\n\014set_defaults\030\017"
" \001(\0132\030.greptime.v1.SetDefaultsH\000\022\026\n\016sche"
"ma_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222"
"\n\013add_columns\030\001 \003(\0132\035.greptime.v1.region"
".AddColumn\"C\n\013DropColumns\0224\n\014drop_column"
"s\030\001 \003(\0132\036.greptime.v1.region.DropColumn\""
"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#.grept"
"ime.v1.region.RegionColumnDef\0220\n\010locatio"
"n\030\003 \001(\0132\036.greptime.v1.AddColumnLocation\""
"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequ"
"est\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014Str"
"ictWindow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Co"
"mpactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regul"
"ar\030\002 \001(\0132\033.greptime.v1.region.RegularH\000\022"
"9\n\rstrict_window\030\003 \001(\0132 .greptime.v1.reg"
"ion.StrictWindowH\000B\t\n\007options\"$\n\017Truncat"
"eRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionCol"
"umnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1"
".ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkIns"
"ertRequest\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_i"
"pc\030\002 \001(\0132\025.greptime.v1.ArrowIpcH\000B\006\n\004bod"
"y\"1\n\020MitoManifestInfo\022\035\n\025data_manifest_v"
"ersion\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025da"
"ta_manifest_version\030\001 \001(\004\022!\n\031metadata_ma"
"nifest_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\t"
"region_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 "
"\001(\0132$.greptime.v1.region.MitoManifestInf"
"oH\000\022F\n\024metric_manifest_info\030\003 \001(\0132&.grep"
"time.v1.region.MetricManifestInfoH\000B\017\n\rm"
"anifest_info\")\n\023ListMetadataRequest\022\022\n\nr"
"egion_ids\030\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.gr"
"eptime.v1.region.RegionRequest\032\".greptim"
"e.v1.region.RegionResponseB]\n\025io.greptim"
"e.v1.regionB\006ServerZ<github.com/Greptime"
"Team/greptime-proto/go/greptime/v1/regio"
"nb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fregion_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -1024,7 +1027,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, 4559, descriptor_table_protodef_greptime_2fv1_2fregion_2fserver_2eproto,
false, false, 4609, 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, 35,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fregion_2fserver_2eproto::offsets,
@@ -5747,6 +5750,7 @@ class AlterRequest::_Internal {
static const ::greptime::v1::DropDefaults& drop_defaults(const AlterRequest* msg);
static const ::greptime::v1::SetIndexes& set_indexes(const AlterRequest* msg);
static const ::greptime::v1::UnsetIndexes& unset_indexes(const AlterRequest* msg);
static const ::greptime::v1::SetDefaults& set_defaults(const AlterRequest* msg);
};
const ::greptime::v1::region::AddColumns&
@@ -5789,6 +5793,10 @@ const ::greptime::v1::UnsetIndexes&
AlterRequest::_Internal::unset_indexes(const AlterRequest* msg) {
return *msg->_impl_.kind_.unset_indexes_;
}
const ::greptime::v1::SetDefaults&
AlterRequest::_Internal::set_defaults(const AlterRequest* msg) {
return *msg->_impl_.kind_.set_defaults_;
}
void AlterRequest::set_allocated_add_columns(::greptime::v1::region::AddColumns* add_columns) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_kind();
@@ -6011,6 +6019,30 @@ void AlterRequest::clear_unset_indexes() {
clear_has_kind();
}
}
void AlterRequest::set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
clear_kind();
if (set_defaults) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(set_defaults));
if (message_arena != submessage_arena) {
set_defaults = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, set_defaults, submessage_arena);
}
set_has_set_defaults();
_impl_.kind_.set_defaults_ = set_defaults;
}
// @@protoc_insertion_point(field_set_allocated:greptime.v1.region.AlterRequest.set_defaults)
}
void AlterRequest::clear_set_defaults() {
if (_internal_has_set_defaults()) {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.set_defaults_;
}
clear_has_kind();
}
}
AlterRequest::AlterRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -6083,6 +6115,11 @@ AlterRequest::AlterRequest(const AlterRequest& from)
from._internal_unset_indexes());
break;
}
case kSetDefaults: {
_this->_internal_mutable_set_defaults()->::greptime::v1::SetDefaults::MergeFrom(
from._internal_set_defaults());
break;
}
case KIND_NOT_SET: {
break;
}
@@ -6187,6 +6224,12 @@ void AlterRequest::clear_kind() {
}
break;
}
case kSetDefaults: {
if (GetArenaForAllocation() == nullptr) {
delete _impl_.kind_.set_defaults_;
}
break;
}
case KIND_NOT_SET: {
break;
}
@@ -6310,6 +6353,14 @@ const char* AlterRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.SetDefaults set_defaults = 15;
case 15:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 122)) {
ptr = ctx->ParseMessage(_internal_mutable_set_defaults(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -6421,6 +6472,13 @@ uint8_t* AlterRequest::_InternalSerialize(
_Internal::unset_indexes(this).GetCachedSize(), target, stream);
}
// .greptime.v1.SetDefaults set_defaults = 15;
if (_internal_has_set_defaults()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(15, _Internal::set_defaults(this),
_Internal::set_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);
@@ -6518,6 +6576,13 @@ size_t AlterRequest::ByteSizeLong() const {
*_impl_.kind_.unset_indexes_);
break;
}
// .greptime.v1.SetDefaults set_defaults = 15;
case kSetDefaults: {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.kind_.set_defaults_);
break;
}
case KIND_NOT_SET: {
break;
}
@@ -6597,6 +6662,11 @@ void AlterRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
from._internal_unset_indexes());
break;
}
case kSetDefaults: {
_this->_internal_mutable_set_defaults()->::greptime::v1::SetDefaults::MergeFrom(
from._internal_set_defaults());
break;
}
case KIND_NOT_SET: {
break;
}
+88
View File
@@ -3371,6 +3371,7 @@ class AlterRequest final :
kDropDefaults = 12,
kSetIndexes = 13,
kUnsetIndexes = 14,
kSetDefaults = 15,
KIND_NOT_SET = 0,
};
@@ -3464,6 +3465,7 @@ class AlterRequest final :
kDropDefaultsFieldNumber = 12,
kSetIndexesFieldNumber = 13,
kUnsetIndexesFieldNumber = 14,
kSetDefaultsFieldNumber = 15,
};
// uint64 region_id = 1;
void clear_region_id();
@@ -3663,6 +3665,24 @@ class AlterRequest final :
::greptime::v1::UnsetIndexes* unset_indexes);
::greptime::v1::UnsetIndexes* unsafe_arena_release_unset_indexes();
// .greptime.v1.SetDefaults set_defaults = 15;
bool has_set_defaults() const;
private:
bool _internal_has_set_defaults() const;
public:
void clear_set_defaults();
const ::greptime::v1::SetDefaults& set_defaults() const;
PROTOBUF_NODISCARD ::greptime::v1::SetDefaults* release_set_defaults();
::greptime::v1::SetDefaults* mutable_set_defaults();
void set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults);
private:
const ::greptime::v1::SetDefaults& _internal_set_defaults() const;
::greptime::v1::SetDefaults* _internal_mutable_set_defaults();
public:
void unsafe_arena_set_allocated_set_defaults(
::greptime::v1::SetDefaults* set_defaults);
::greptime::v1::SetDefaults* unsafe_arena_release_set_defaults();
void clear_kind();
KindCase kind_case() const;
// @@protoc_insertion_point(class_scope:greptime.v1.region.AlterRequest)
@@ -3678,6 +3698,7 @@ class AlterRequest final :
void set_has_drop_defaults();
void set_has_set_indexes();
void set_has_unset_indexes();
void set_has_set_defaults();
inline bool has_kind() const;
inline void clear_has_kind();
@@ -3701,6 +3722,7 @@ class AlterRequest final :
::greptime::v1::DropDefaults* drop_defaults_;
::greptime::v1::SetIndexes* set_indexes_;
::greptime::v1::UnsetIndexes* unset_indexes_;
::greptime::v1::SetDefaults* set_defaults_;
} kind_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
uint32_t _oneof_case_[1];
@@ -9572,6 +9594,72 @@ inline ::greptime::v1::UnsetIndexes* AlterRequest::mutable_unset_indexes() {
return _msg;
}
// .greptime.v1.SetDefaults set_defaults = 15;
inline bool AlterRequest::_internal_has_set_defaults() const {
return kind_case() == kSetDefaults;
}
inline bool AlterRequest::has_set_defaults() const {
return _internal_has_set_defaults();
}
inline void AlterRequest::set_has_set_defaults() {
_impl_._oneof_case_[0] = kSetDefaults;
}
inline ::greptime::v1::SetDefaults* AlterRequest::release_set_defaults() {
// @@protoc_insertion_point(field_release:greptime.v1.region.AlterRequest.set_defaults)
if (_internal_has_set_defaults()) {
clear_has_kind();
::greptime::v1::SetDefaults* temp = _impl_.kind_.set_defaults_;
if (GetArenaForAllocation() != nullptr) {
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
}
_impl_.kind_.set_defaults_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline const ::greptime::v1::SetDefaults& AlterRequest::_internal_set_defaults() const {
return _internal_has_set_defaults()
? *_impl_.kind_.set_defaults_
: reinterpret_cast< ::greptime::v1::SetDefaults&>(::greptime::v1::_SetDefaults_default_instance_);
}
inline const ::greptime::v1::SetDefaults& AlterRequest::set_defaults() const {
// @@protoc_insertion_point(field_get:greptime.v1.region.AlterRequest.set_defaults)
return _internal_set_defaults();
}
inline ::greptime::v1::SetDefaults* AlterRequest::unsafe_arena_release_set_defaults() {
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.region.AlterRequest.set_defaults)
if (_internal_has_set_defaults()) {
clear_has_kind();
::greptime::v1::SetDefaults* temp = _impl_.kind_.set_defaults_;
_impl_.kind_.set_defaults_ = nullptr;
return temp;
} else {
return nullptr;
}
}
inline void AlterRequest::unsafe_arena_set_allocated_set_defaults(::greptime::v1::SetDefaults* set_defaults) {
clear_kind();
if (set_defaults) {
set_has_set_defaults();
_impl_.kind_.set_defaults_ = set_defaults;
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.region.AlterRequest.set_defaults)
}
inline ::greptime::v1::SetDefaults* AlterRequest::_internal_mutable_set_defaults() {
if (!_internal_has_set_defaults()) {
clear_kind();
set_has_set_defaults();
_impl_.kind_.set_defaults_ = CreateMaybeMessage< ::greptime::v1::SetDefaults >(GetArenaForAllocation());
}
return _impl_.kind_.set_defaults_;
}
inline ::greptime::v1::SetDefaults* AlterRequest::mutable_set_defaults() {
::greptime::v1::SetDefaults* _msg = _internal_mutable_set_defaults();
// @@protoc_insertion_point(field_mutable:greptime.v1.region.AlterRequest.set_defaults)
return _msg;
}
// uint64 schema_version = 4;
inline void AlterRequest::clear_schema_version() {
_impl_.schema_version_ = uint64_t{0u};
File diff suppressed because it is too large Load Diff
+143 -122
View File
@@ -1166,6 +1166,7 @@ type AlterRequest struct {
// *AlterRequest_DropDefaults
// *AlterRequest_SetIndexes
// *AlterRequest_UnsetIndexes
// *AlterRequest_SetDefaults
Kind isAlterRequest_Kind `protobuf_oneof:"kind"`
// The version of the schema before applying the alteration.
SchemaVersion uint64 `protobuf:"varint,4,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
@@ -1287,6 +1288,13 @@ func (x *AlterRequest) GetUnsetIndexes() *v1.UnsetIndexes {
return nil
}
func (x *AlterRequest) GetSetDefaults() *v1.SetDefaults {
if x, ok := x.GetKind().(*AlterRequest_SetDefaults); ok {
return x.SetDefaults
}
return nil
}
func (x *AlterRequest) GetSchemaVersion() uint64 {
if x != nil {
return x.SchemaVersion
@@ -1340,6 +1348,10 @@ type AlterRequest_UnsetIndexes struct {
UnsetIndexes *v1.UnsetIndexes `protobuf:"bytes,14,opt,name=unset_indexes,json=unsetIndexes,proto3,oneof"`
}
type AlterRequest_SetDefaults struct {
SetDefaults *v1.SetDefaults `protobuf:"bytes,15,opt,name=set_defaults,json=setDefaults,proto3,oneof"`
}
func (*AlterRequest_AddColumns) isAlterRequest_Kind() {}
func (*AlterRequest_DropColumns) isAlterRequest_Kind() {}
@@ -1360,6 +1372,8 @@ func (*AlterRequest_SetIndexes) isAlterRequest_Kind() {}
func (*AlterRequest_UnsetIndexes) isAlterRequest_Kind() {}
func (*AlterRequest_SetDefaults) isAlterRequest_Kind() {}
type AddColumns struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -2402,7 +2416,7 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{
0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x08,
0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0x85, 0x06, 0x0a, 0x0c, 0x41, 0x6c, 0x74,
0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x22, 0xc4, 0x06, 0x0a, 0x0c, 0x41, 0x6c, 0x74,
0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f,
@@ -2448,109 +2462,113 @@ var file_greptime_v1_region_server_proto_rawDesc = []byte{
0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65,
0x73, 0x48, 0x00, 0x52, 0x0c, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65,
0x73, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d,
0x61, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64,
0x22, 0x4c, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3e,
0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x50,
0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x41, 0x0a,
0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
0x22, 0x8b, 0x01, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x42,
0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f,
0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44,
0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20,
0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
0x22, 0x2b, 0x0a, 0x0c, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20,
0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x09, 0x0a,
0x07, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x22, 0x35, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x69,
0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x69, 0x6e, 0x64,
0x6f, 0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
0x52, 0x0d, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22,
0xba, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
0x37, 0x0a, 0x07, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52,
0x07, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x12, 0x47, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69,
0x63, 0x74, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f,
0x77, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f,
0x77, 0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2e, 0x0a, 0x0f,
0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x73, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x73,
0x12, 0x25, 0x0a, 0x0e, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0d, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,
0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22,
0x4c, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3e, 0x0a,
0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x50, 0x0a,
0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x41, 0x0a, 0x0c,
0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03,
0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22,
0x8b, 0x01, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x42, 0x0a,
0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28,
0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65,
0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74,
0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a,
0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
0x2b, 0x0a, 0x0c, 0x46, 0x6c, 0x75, 0x73, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x0f,
0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12,
0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c,
0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
0x6e, 0x49, 0x64, 0x22, 0x6e, 0x0a, 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, 0x73, 0x65, 0x72,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69,
0x70, 0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48,
0x00, 0x52, 0x08, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62,
0x6f, 0x64, 0x79, 0x22, 0x46, 0x0a, 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66,
0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f,
0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e,
0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69,
0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x12,
0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e,
0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66,
0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56,
0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73,
0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64,
0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12,
0x54, 0x0a, 0x12, 0x6d, 0x69, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x2e, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66,
0x6f, 0x48, 0x00, 0x52, 0x10, 0x6d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73,
0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f,
0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d,
0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x6d,
0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x09, 0x0a, 0x07,
0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x22, 0x35, 0x0a, 0x0c, 0x53, 0x74, 0x72, 0x69, 0x63,
0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x12, 0x25, 0x0a, 0x0e, 0x77, 0x69, 0x6e, 0x64, 0x6f,
0x77, 0x5f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
0x0d, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x53, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0xba,
0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x37,
0x0a, 0x07, 0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32,
0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x48, 0x00, 0x52, 0x07,
0x72, 0x65, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x12, 0x47, 0x0a, 0x0d, 0x73, 0x74, 0x72, 0x69, 0x63,
0x74, 0x5f, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77,
0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x57, 0x69, 0x6e, 0x64, 0x6f, 0x77,
0x42, 0x09, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x2e, 0x0a, 0x0f, 0x54,
0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b,
0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x65, 0x0a, 0x0f, 0x52,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x35,
0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75,
0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f,
0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
0x49, 0x64, 0x22, 0x6e, 0x0a, 0x11, 0x42, 0x75, 0x6c, 0x6b, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x49, 0x64, 0x12, 0x34, 0x0a, 0x09, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x5f, 0x69, 0x70,
0x63, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x48, 0x00,
0x52, 0x08, 0x61, 0x72, 0x72, 0x6f, 0x77, 0x49, 0x70, 0x63, 0x42, 0x06, 0x0a, 0x04, 0x62, 0x6f,
0x64, 0x79, 0x22, 0x46, 0x0a, 0x10, 0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65,
0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d,
0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18,
0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66,
0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x84, 0x01, 0x0a, 0x12, 0x4d,
0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66,
0x6f, 0x42, 0x0f, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e,
0x66, 0x6f, 0x22, 0x34, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x42, 0x5d, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x53, 0x65,
0x72, 0x76, 0x65, 0x72, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d,
0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f,
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x6f, 0x12, 0x32, 0x0a, 0x15, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65,
0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04,
0x52, 0x13, 0x64, 0x61, 0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65,
0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x19, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x17, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
0x74, 0x61, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f,
0x6e, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x53, 0x79, 0x6e, 0x63, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x12, 0x1b, 0x0a, 0x09, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x54,
0x0a, 0x12, 0x6d, 0x69, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f,
0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e,
0x4d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f,
0x48, 0x00, 0x52, 0x10, 0x6d, 0x69, 0x74, 0x6f, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74,
0x49, 0x6e, 0x66, 0x6f, 0x12, 0x5a, 0x0a, 0x14, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x5f, 0x6d,
0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x26, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x4d, 0x61,
0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f, 0x48, 0x00, 0x52, 0x12, 0x6d, 0x65,
0x74, 0x72, 0x69, 0x63, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x49, 0x6e, 0x66, 0x6f,
0x42, 0x0f, 0x0a, 0x0d, 0x6d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x6e, 0x66,
0x6f, 0x22, 0x34, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
0x61, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x67, 0x69,
0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x04, 0x52, 0x09, 0x72, 0x65,
0x67, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x73, 0x32, 0x59, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x12, 0x4f, 0x0a, 0x06, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x21, 0x2e, 0x67, 0x72,
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22,
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67,
0x69, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x42, 0x5d, 0x0a, 0x15, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x42, 0x06, 0x53, 0x65, 0x72,
0x76, 0x65, 0x72, 0x5a, 0x3c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65,
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x69, 0x6f,
0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -2613,9 +2631,10 @@ var file_greptime_v1_region_server_proto_goTypes = []interface{}{
(*v1.DropDefaults)(nil), // 43: greptime.v1.DropDefaults
(*v1.SetIndexes)(nil), // 44: greptime.v1.SetIndexes
(*v1.UnsetIndexes)(nil), // 45: greptime.v1.UnsetIndexes
(*v1.AddColumnLocation)(nil), // 46: greptime.v1.AddColumnLocation
(*v1.ColumnDef)(nil), // 47: greptime.v1.ColumnDef
(*v1.ArrowIpc)(nil), // 48: greptime.v1.ArrowIpc
(*v1.SetDefaults)(nil), // 46: greptime.v1.SetDefaults
(*v1.AddColumnLocation)(nil), // 47: greptime.v1.AddColumnLocation
(*v1.ColumnDef)(nil), // 48: greptime.v1.ColumnDef
(*v1.ArrowIpc)(nil), // 49: greptime.v1.ArrowIpc
}
var file_greptime_v1_region_server_proto_depIdxs = []int32{
31, // 0: greptime.v1.region.RegionRequestHeader.tracing_context:type_name -> greptime.v1.region.RegionRequestHeader.TracingContextEntry
@@ -2660,23 +2679,24 @@ var file_greptime_v1_region_server_proto_depIdxs = []int32{
43, // 39: greptime.v1.region.AlterRequest.drop_defaults:type_name -> greptime.v1.DropDefaults
44, // 40: greptime.v1.region.AlterRequest.set_indexes:type_name -> greptime.v1.SetIndexes
45, // 41: greptime.v1.region.AlterRequest.unset_indexes:type_name -> greptime.v1.UnsetIndexes
18, // 42: greptime.v1.region.AddColumns.add_columns:type_name -> greptime.v1.region.AddColumn
19, // 43: greptime.v1.region.DropColumns.drop_columns:type_name -> greptime.v1.region.DropColumn
25, // 44: greptime.v1.region.AddColumn.column_def:type_name -> greptime.v1.region.RegionColumnDef
46, // 45: greptime.v1.region.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
21, // 46: greptime.v1.region.CompactRequest.regular:type_name -> greptime.v1.region.Regular
22, // 47: greptime.v1.region.CompactRequest.strict_window:type_name -> greptime.v1.region.StrictWindow
47, // 48: greptime.v1.region.RegionColumnDef.column_def:type_name -> greptime.v1.ColumnDef
48, // 49: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc
27, // 50: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo
28, // 51: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo
1, // 52: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest
2, // 53: greptime.v1.region.Region.Handle:output_type -> greptime.v1.region.RegionResponse
53, // [53:54] is the sub-list for method output_type
52, // [52:53] is the sub-list for method input_type
52, // [52:52] is the sub-list for extension type_name
52, // [52:52] is the sub-list for extension extendee
0, // [0:52] is the sub-list for field type_name
46, // 42: greptime.v1.region.AlterRequest.set_defaults:type_name -> greptime.v1.SetDefaults
18, // 43: greptime.v1.region.AddColumns.add_columns:type_name -> greptime.v1.region.AddColumn
19, // 44: greptime.v1.region.DropColumns.drop_columns:type_name -> greptime.v1.region.DropColumn
25, // 45: greptime.v1.region.AddColumn.column_def:type_name -> greptime.v1.region.RegionColumnDef
47, // 46: greptime.v1.region.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
21, // 47: greptime.v1.region.CompactRequest.regular:type_name -> greptime.v1.region.Regular
22, // 48: greptime.v1.region.CompactRequest.strict_window:type_name -> greptime.v1.region.StrictWindow
48, // 49: greptime.v1.region.RegionColumnDef.column_def:type_name -> greptime.v1.ColumnDef
49, // 50: greptime.v1.region.BulkInsertRequest.arrow_ipc:type_name -> greptime.v1.ArrowIpc
27, // 51: greptime.v1.region.SyncRequest.mito_manifest_info:type_name -> greptime.v1.region.MitoManifestInfo
28, // 52: greptime.v1.region.SyncRequest.metric_manifest_info:type_name -> greptime.v1.region.MetricManifestInfo
1, // 53: greptime.v1.region.Region.Handle:input_type -> greptime.v1.region.RegionRequest
2, // 54: greptime.v1.region.Region.Handle:output_type -> greptime.v1.region.RegionResponse
54, // [54:55] is the sub-list for method output_type
53, // [53:54] is the sub-list for method input_type
53, // [53:53] is the sub-list for extension type_name
53, // [53:53] is the sub-list for extension extendee
0, // [0:53] is the sub-list for field type_name
}
func init() { file_greptime_v1_region_server_proto_init() }
@@ -3087,6 +3107,7 @@ func file_greptime_v1_region_server_proto_init() {
(*AlterRequest_DropDefaults)(nil),
(*AlterRequest_SetIndexes)(nil),
(*AlterRequest_UnsetIndexes)(nil),
(*AlterRequest_SetDefaults)(nil),
}
file_greptime_v1_region_server_proto_msgTypes[23].OneofWrappers = []interface{}{
(*CompactRequest_Regular)(nil),
File diff suppressed because it is too large Load Diff
@@ -17462,6 +17462,21 @@ java.lang.String defaultValue);
*/
io.greptime.v1.Ddl.UnsetIndexesOrBuilder getUnsetIndexesOrBuilder();
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
* @return Whether the setDefaults field is set.
*/
boolean hasSetDefaults();
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
* @return The setDefaults.
*/
io.greptime.v1.Ddl.SetDefaults getSetDefaults();
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder();
/**
* <pre>
* The version of the schema before applying the alteration.
@@ -17669,6 +17684,20 @@ java.lang.String defaultValue);
kindCase_ = 14;
break;
}
case 122: {
io.greptime.v1.Ddl.SetDefaults.Builder subBuilder = null;
if (kindCase_ == 15) {
subBuilder = ((io.greptime.v1.Ddl.SetDefaults) kind_).toBuilder();
}
kind_ =
input.readMessage(io.greptime.v1.Ddl.SetDefaults.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom((io.greptime.v1.Ddl.SetDefaults) kind_);
kind_ = subBuilder.buildPartial();
}
kindCase_ = 15;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
@@ -17718,6 +17747,7 @@ java.lang.String defaultValue);
DROP_DEFAULTS(12),
SET_INDEXES(13),
UNSET_INDEXES(14),
SET_DEFAULTS(15),
KIND_NOT_SET(0);
private final int value;
private KindCase(int value) {
@@ -17745,6 +17775,7 @@ java.lang.String defaultValue);
case 12: return DROP_DEFAULTS;
case 13: return SET_INDEXES;
case 14: return UNSET_INDEXES;
case 15: return SET_DEFAULTS;
case 0: return KIND_NOT_SET;
default: return null;
}
@@ -18105,6 +18136,37 @@ java.lang.String defaultValue);
return io.greptime.v1.Ddl.UnsetIndexes.getDefaultInstance();
}
public static final int SET_DEFAULTS_FIELD_NUMBER = 15;
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
* @return Whether the setDefaults field is set.
*/
@java.lang.Override
public boolean hasSetDefaults() {
return kindCase_ == 15;
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
* @return The setDefaults.
*/
@java.lang.Override
public io.greptime.v1.Ddl.SetDefaults getSetDefaults() {
if (kindCase_ == 15) {
return (io.greptime.v1.Ddl.SetDefaults) kind_;
}
return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
@java.lang.Override
public io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder() {
if (kindCase_ == 15) {
return (io.greptime.v1.Ddl.SetDefaults) kind_;
}
return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
}
public static final int SCHEMA_VERSION_FIELD_NUMBER = 4;
private long schemaVersion_;
/**
@@ -18170,6 +18232,9 @@ java.lang.String defaultValue);
if (kindCase_ == 14) {
output.writeMessage(14, (io.greptime.v1.Ddl.UnsetIndexes) kind_);
}
if (kindCase_ == 15) {
output.writeMessage(15, (io.greptime.v1.Ddl.SetDefaults) kind_);
}
unknownFields.writeTo(output);
}
@@ -18227,6 +18292,10 @@ java.lang.String defaultValue);
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, (io.greptime.v1.Ddl.UnsetIndexes) kind_);
}
if (kindCase_ == 15) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, (io.greptime.v1.Ddl.SetDefaults) kind_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -18288,6 +18357,10 @@ java.lang.String defaultValue);
if (!getUnsetIndexes()
.equals(other.getUnsetIndexes())) return false;
break;
case 15:
if (!getSetDefaults()
.equals(other.getSetDefaults())) return false;
break;
case 0:
default:
}
@@ -18349,6 +18422,10 @@ java.lang.String defaultValue);
hash = (37 * hash) + UNSET_INDEXES_FIELD_NUMBER;
hash = (53 * hash) + getUnsetIndexes().hashCode();
break;
case 15:
hash = (37 * hash) + SET_DEFAULTS_FIELD_NUMBER;
hash = (53 * hash) + getSetDefaults().hashCode();
break;
case 0:
default:
}
@@ -18588,6 +18665,13 @@ java.lang.String defaultValue);
result.kind_ = unsetIndexesBuilder_.build();
}
}
if (kindCase_ == 15) {
if (setDefaultsBuilder_ == null) {
result.kind_ = kind_;
} else {
result.kind_ = setDefaultsBuilder_.build();
}
}
result.schemaVersion_ = schemaVersion_;
result.kindCase_ = kindCase_;
onBuilt();
@@ -18685,6 +18769,10 @@ java.lang.String defaultValue);
mergeUnsetIndexes(other.getUnsetIndexes());
break;
}
case SET_DEFAULTS: {
mergeSetDefaults(other.getSetDefaults());
break;
}
case KIND_NOT_SET: {
break;
}
@@ -20256,6 +20344,148 @@ java.lang.String defaultValue);
return unsetIndexesBuilder_;
}
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder> setDefaultsBuilder_;
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
* @return Whether the setDefaults field is set.
*/
@java.lang.Override
public boolean hasSetDefaults() {
return kindCase_ == 15;
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
* @return The setDefaults.
*/
@java.lang.Override
public io.greptime.v1.Ddl.SetDefaults getSetDefaults() {
if (setDefaultsBuilder_ == null) {
if (kindCase_ == 15) {
return (io.greptime.v1.Ddl.SetDefaults) kind_;
}
return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
} else {
if (kindCase_ == 15) {
return setDefaultsBuilder_.getMessage();
}
return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
}
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
public Builder setSetDefaults(io.greptime.v1.Ddl.SetDefaults value) {
if (setDefaultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
onChanged();
} else {
setDefaultsBuilder_.setMessage(value);
}
kindCase_ = 15;
return this;
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
public Builder setSetDefaults(
io.greptime.v1.Ddl.SetDefaults.Builder builderForValue) {
if (setDefaultsBuilder_ == null) {
kind_ = builderForValue.build();
onChanged();
} else {
setDefaultsBuilder_.setMessage(builderForValue.build());
}
kindCase_ = 15;
return this;
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
public Builder mergeSetDefaults(io.greptime.v1.Ddl.SetDefaults value) {
if (setDefaultsBuilder_ == null) {
if (kindCase_ == 15 &&
kind_ != io.greptime.v1.Ddl.SetDefaults.getDefaultInstance()) {
kind_ = io.greptime.v1.Ddl.SetDefaults.newBuilder((io.greptime.v1.Ddl.SetDefaults) kind_)
.mergeFrom(value).buildPartial();
} else {
kind_ = value;
}
onChanged();
} else {
if (kindCase_ == 15) {
setDefaultsBuilder_.mergeFrom(value);
} else {
setDefaultsBuilder_.setMessage(value);
}
}
kindCase_ = 15;
return this;
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
public Builder clearSetDefaults() {
if (setDefaultsBuilder_ == null) {
if (kindCase_ == 15) {
kindCase_ = 0;
kind_ = null;
onChanged();
}
} else {
if (kindCase_ == 15) {
kindCase_ = 0;
kind_ = null;
}
setDefaultsBuilder_.clear();
}
return this;
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
public io.greptime.v1.Ddl.SetDefaults.Builder getSetDefaultsBuilder() {
return getSetDefaultsFieldBuilder().getBuilder();
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
@java.lang.Override
public io.greptime.v1.Ddl.SetDefaultsOrBuilder getSetDefaultsOrBuilder() {
if ((kindCase_ == 15) && (setDefaultsBuilder_ != null)) {
return setDefaultsBuilder_.getMessageOrBuilder();
} else {
if (kindCase_ == 15) {
return (io.greptime.v1.Ddl.SetDefaults) kind_;
}
return io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
}
}
/**
* <code>.greptime.v1.SetDefaults set_defaults = 15;</code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder>
getSetDefaultsFieldBuilder() {
if (setDefaultsBuilder_ == null) {
if (!(kindCase_ == 15)) {
kind_ = io.greptime.v1.Ddl.SetDefaults.getDefaultInstance();
}
setDefaultsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.greptime.v1.Ddl.SetDefaults, io.greptime.v1.Ddl.SetDefaults.Builder, io.greptime.v1.Ddl.SetDefaultsOrBuilder>(
(io.greptime.v1.Ddl.SetDefaults) kind_,
getParentForChildren(),
isClean());
kind_ = null;
}
kindCase_ = 15;
onChanged();;
return setDefaultsBuilder_;
}
private long schemaVersion_ ;
/**
* <pre>
@@ -30749,7 +30979,7 @@ java.lang.String defaultValue);
"(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"!\n\014CloseRequest\022\021\n" +
"\tregion_id\030\001 \001(\004\"C\n\rAlterRequests\0222\n\010req" +
"uests\030\001 \003(\0132 .greptime.v1.region.AlterRe" +
"quest\"\336\004\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(" +
"quest\"\220\005\n\014AlterRequest\022\021\n\tregion_id\030\001 \001(" +
"\004\0225\n\013add_columns\030\002 \001(\0132\036.greptime.v1.reg" +
"ion.AddColumnsH\000\0227\n\014drop_columns\030\003 \001(\0132\037" +
".greptime.v1.region.DropColumnsH\000\022=\n\023mod" +
@@ -30763,40 +30993,42 @@ java.lang.String defaultValue);
"efaults\030\014 \001(\0132\031.greptime.v1.DropDefaults" +
"H\000\022.\n\013set_indexes\030\r \001(\0132\027.greptime.v1.Se" +
"tIndexesH\000\0222\n\runset_indexes\030\016 \001(\0132\031.grep" +
"time.v1.UnsetIndexesH\000\022\026\n\016schema_version" +
"\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222\n\013add_colu" +
"mns\030\001 \003(\0132\035.greptime.v1.region.AddColumn" +
"\"C\n\013DropColumns\0224\n\014drop_columns\030\001 \003(\0132\036." +
"greptime.v1.region.DropColumn\"v\n\tAddColu" +
"mn\0227\n\ncolumn_def\030\001 \001(\0132#.greptime.v1.reg" +
"ion.RegionColumnDef\0220\n\010location\030\003 \001(\0132\036." +
"greptime.v1.AddColumnLocation\"\032\n\nDropCol" +
"umn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequest\022\021\n\treg" +
"ion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014StrictWindow\022" +
"\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016CompactReque" +
"st\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regular\030\002 \001(\0132\033" +
".greptime.v1.region.RegularH\000\0229\n\rstrict_" +
"window\030\003 \001(\0132 .greptime.v1.region.Strict" +
"WindowH\000B\t\n\007options\"$\n\017TruncateRequest\022\021" +
"\n\tregion_id\030\001 \001(\004\"P\n\017RegionColumnDef\022*\n\n" +
"column_def\030\001 \001(\0132\026.greptime.v1.ColumnDef" +
"\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkInsertRequest" +
"\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_ipc\030\002 \001(\0132\025" +
".greptime.v1.ArrowIpcH\000B\006\n\004body\"1\n\020MitoM" +
"anifestInfo\022\035\n\025data_manifest_version\030\001 \001" +
"(\004\"V\n\022MetricManifestInfo\022\035\n\025data_manifes" +
"t_version\030\001 \001(\004\022!\n\031metadata_manifest_ver" +
"sion\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$.grep" +
"time.v1.region.MitoManifestInfoH\000\022F\n\024met" +
"ric_manifest_info\030\003 \001(\0132&.greptime.v1.re" +
"gion.MetricManifestInfoH\000B\017\n\rmanifest_in" +
"fo\")\n\023ListMetadataRequest\022\022\n\nregion_ids\030" +
"\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.greptime.v1." +
"region.RegionRequest\032\".greptime.v1.regio" +
"n.RegionResponseB]\n\025io.greptime.v1.regio" +
"nB\006ServerZ<github.com/GreptimeTeam/grept" +
"ime-proto/go/greptime/v1/regionb\006proto3"
"time.v1.UnsetIndexesH\000\0220\n\014set_defaults\030\017" +
" \001(\0132\030.greptime.v1.SetDefaultsH\000\022\026\n\016sche" +
"ma_version\030\004 \001(\004B\006\n\004kind\"@\n\nAddColumns\0222" +
"\n\013add_columns\030\001 \003(\0132\035.greptime.v1.region" +
".AddColumn\"C\n\013DropColumns\0224\n\014drop_column" +
"s\030\001 \003(\0132\036.greptime.v1.region.DropColumn\"" +
"v\n\tAddColumn\0227\n\ncolumn_def\030\001 \001(\0132#.grept" +
"ime.v1.region.RegionColumnDef\0220\n\010locatio" +
"n\030\003 \001(\0132\036.greptime.v1.AddColumnLocation\"" +
"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"!\n\014FlushRequ" +
"est\022\021\n\tregion_id\030\001 \001(\004\"\t\n\007Regular\"&\n\014Str" +
"ictWindow\022\026\n\016window_seconds\030\001 \001(\003\"\231\001\n\016Co" +
"mpactRequest\022\021\n\tregion_id\030\001 \001(\004\022.\n\007regul" +
"ar\030\002 \001(\0132\033.greptime.v1.region.RegularH\000\022" +
"9\n\rstrict_window\030\003 \001(\0132 .greptime.v1.reg" +
"ion.StrictWindowH\000B\t\n\007options\"$\n\017Truncat" +
"eRequest\022\021\n\tregion_id\030\001 \001(\004\"P\n\017RegionCol" +
"umnDef\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1" +
".ColumnDef\022\021\n\tcolumn_id\030\002 \001(\r\"Z\n\021BulkIns" +
"ertRequest\022\021\n\tregion_id\030\001 \001(\004\022*\n\tarrow_i" +
"pc\030\002 \001(\0132\025.greptime.v1.ArrowIpcH\000B\006\n\004bod" +
"y\"1\n\020MitoManifestInfo\022\035\n\025data_manifest_v" +
"ersion\030\001 \001(\004\"V\n\022MetricManifestInfo\022\035\n\025da" +
"ta_manifest_version\030\001 \001(\004\022!\n\031metadata_ma" +
"nifest_version\030\002 \001(\004\"\275\001\n\013SyncRequest\022\021\n\t" +
"region_id\030\001 \001(\004\022B\n\022mito_manifest_info\030\002 " +
"\001(\0132$.greptime.v1.region.MitoManifestInf" +
"oH\000\022F\n\024metric_manifest_info\030\003 \001(\0132&.grep" +
"time.v1.region.MetricManifestInfoH\000B\017\n\rm" +
"anifest_info\")\n\023ListMetadataRequest\022\022\n\nr" +
"egion_ids\030\001 \003(\0042Y\n\006Region\022O\n\006Handle\022!.gr" +
"eptime.v1.region.RegionRequest\032\".greptim" +
"e.v1.region.RegionResponseB]\n\025io.greptim" +
"e.v1.regionB\006ServerZ<github.com/Greptime" +
"Team/greptime-proto/go/greptime/v1/regio" +
"nb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
@@ -30924,7 +31156,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_region_AlterRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_region_AlterRequest_descriptor,
new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ModifyColumnTypes", "SetTableOptions", "UnsetTableOptions", "SetIndex", "UnsetIndex", "DropDefaults", "SetIndexes", "UnsetIndexes", "SchemaVersion", "Kind", });
new java.lang.String[] { "RegionId", "AddColumns", "DropColumns", "ModifyColumnTypes", "SetTableOptions", "UnsetTableOptions", "SetIndex", "UnsetIndex", "DropDefaults", "SetIndexes", "UnsetIndexes", "SetDefaults", "SchemaVersion", "Kind", });
internal_static_greptime_v1_region_AddColumns_descriptor =
getDescriptor().getMessageTypes().get(16);
internal_static_greptime_v1_region_AddColumns_fieldAccessorTable = new
+11
View File
@@ -119,6 +119,7 @@ message AlterTableExpr {
DropDefaults drop_defaults = 14;
SetIndexes set_indexes = 15;
UnsetIndexes unset_indexes = 16;
SetDefaults set_defaults = 17;
}
}
@@ -134,6 +135,12 @@ message UnsetIndexes {
repeated UnsetIndex unset_indexes = 1;
}
message SetDefault {
string column_name = 1;
// The JSON representation of the default `Expr`.
bytes default_constraint = 2;
}
message SetIndex {
oneof options {
SetFulltext fulltext = 1;
@@ -186,6 +193,10 @@ message DropDefaults {
repeated DropDefault drop_defaults = 1;
}
message SetDefaults {
repeated SetDefault set_defaults = 1;
}
message DropColumns {
repeated DropColumn drop_columns = 1;
}
+1
View File
@@ -165,6 +165,7 @@ message AlterRequest {
DropDefaults drop_defaults = 12;
SetIndexes set_indexes = 13;
UnsetIndexes unset_indexes = 14;
SetDefaults set_defaults = 15;
}
// The version of the schema before applying the alteration.
uint64 schema_version = 4;