diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index b61086fc..19f8bfe2 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -489,9 +489,22 @@ struct SetDatabaseOptionsDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SetDatabaseOptionsDefaultTypeInternal _SetDatabaseOptions_default_instance_; +PROTOBUF_CONSTEXPR UnsetDatabaseOptions::UnsetDatabaseOptions( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.unset_database_options_)*/{} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct UnsetDatabaseOptionsDefaultTypeInternal { + PROTOBUF_CONSTEXPR UnsetDatabaseOptionsDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~UnsetDatabaseOptionsDefaultTypeInternal() {} + union { + UnsetDatabaseOptions _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UnsetDatabaseOptionsDefaultTypeInternal _UnsetDatabaseOptions_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[31]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[32]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[2]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr; @@ -799,6 +812,7 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterDatabaseExpr, _impl_.catalog_name_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterDatabaseExpr, _impl_.schema_name_), ::_pbi::kInvalidFieldOffsetTag, + ::_pbi::kInvalidFieldOffsetTag, PROTOBUF_FIELD_OFFSET(::greptime::v1::AlterDatabaseExpr, _impl_.kind_), ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::SetDatabaseOptions, _internal_metadata_), @@ -807,6 +821,13 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI ~0u, // no _weak_field_map_ ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::SetDatabaseOptions, _impl_.set_database_options_), + ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetDatabaseOptions, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::UnsetDatabaseOptions, _impl_.unset_database_options_), }; static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { { 0, -1, -1, sizeof(::greptime::v1::DdlRequest)}, @@ -839,7 +860,8 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 277, -1, -1, sizeof(::greptime::v1::SetColumnFulltext)}, { 287, -1, -1, sizeof(::greptime::v1::UnsetColumnFulltext)}, { 294, -1, -1, sizeof(::greptime::v1::AlterDatabaseExpr)}, - { 304, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, + { 305, -1, -1, sizeof(::greptime::v1::SetDatabaseOptions)}, + { 312, -1, -1, sizeof(::greptime::v1::UnsetDatabaseOptions)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -874,6 +896,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_UnsetColumnFulltext_default_instance_._instance, &::greptime::v1::_AlterDatabaseExpr_default_instance_._instance, &::greptime::v1::_SetDatabaseOptions_default_instance_._instance, + &::greptime::v1::_UnsetDatabaseOptions_default_instance_._instance, }; const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = @@ -985,24 +1008,27 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT "\022\016\n\006enable\030\002 \001(\010\022\'\n\010analyzer\030\003 \001(\0162\025.gre" "ptime.v1.Analyzer\022\026\n\016case_sensitive\030\004 \001(" "\010\"*\n\023UnsetColumnFulltext\022\023\n\013column_name\030" - "\001 \001(\t\"\207\001\n\021AlterDatabaseExpr\022\024\n\014catalog_n" + "\001 \001(\t\"\314\001\n\021AlterDatabaseExpr\022\024\n\014catalog_n" "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\?\n\024set_da" - "tabase_options\030\004 \001(\0132\037.greptime.v1.SetDa" - "tabaseOptionsH\000B\006\n\004kind\"L\n\022SetDatabaseOp" - "tions\0226\n\024set_database_options\030\001 \003(\0132\030.gr" - "eptime.v1.AlterOption*$\n\010Analyzer\022\013\n\007ENG" - "LISH\020\000\022\013\n\007CHINESE\020\001BL\n\016io.greptime.v1B\003D" - "dlZ5github.com/GreptimeTeam/greptime-pro" - "to/go/greptime/v1b\006proto3" + "tabase_options\030\003 \001(\0132\037.greptime.v1.SetDa" + "tabaseOptionsH\000\022C\n\026unset_database_option" + "s\030\004 \001(\0132!.greptime.v1.UnsetDatabaseOptio" + "nsH\000B\006\n\004kind\"L\n\022SetDatabaseOptions\0226\n\024se" + "t_database_options\030\001 \003(\0132\030.greptime.v1.A" + "lterOption\"6\n\024UnsetDatabaseOptions\022\036\n\026un" + "set_database_options\030\001 \003(\t*$\n\010Analyzer\022\013" + "\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001BL\n\016io.greptime." + "v1B\003DdlZ5github.com/GreptimeTeam/greptim" + "e-proto/go/greptime/v1b\006proto3" ; static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = { &::descriptor_table_greptime_2fv1_2fcommon_2eproto, }; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { - false, false, 4665, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 4790, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, "greptime/v1/ddl.proto", - &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 31, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 32, schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets, file_level_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto, file_level_service_descriptors_greptime_2fv1_2fddl_2eproto, @@ -10004,12 +10030,17 @@ ::PROTOBUF_NAMESPACE_ID::Metadata UnsetColumnFulltext::GetMetadata() const { class AlterDatabaseExpr::_Internal { public: static const ::greptime::v1::SetDatabaseOptions& set_database_options(const AlterDatabaseExpr* msg); + static const ::greptime::v1::UnsetDatabaseOptions& unset_database_options(const AlterDatabaseExpr* msg); }; const ::greptime::v1::SetDatabaseOptions& AlterDatabaseExpr::_Internal::set_database_options(const AlterDatabaseExpr* msg) { return *msg->_impl_.kind_.set_database_options_; } +const ::greptime::v1::UnsetDatabaseOptions& +AlterDatabaseExpr::_Internal::unset_database_options(const AlterDatabaseExpr* msg) { + return *msg->_impl_.kind_.unset_database_options_; +} void AlterDatabaseExpr::set_allocated_set_database_options(::greptime::v1::SetDatabaseOptions* set_database_options) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); clear_kind(); @@ -10025,6 +10056,21 @@ void AlterDatabaseExpr::set_allocated_set_database_options(::greptime::v1::SetDa } // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterDatabaseExpr.set_database_options) } +void AlterDatabaseExpr::set_allocated_unset_database_options(::greptime::v1::UnsetDatabaseOptions* unset_database_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); + clear_kind(); + if (unset_database_options) { + ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(unset_database_options); + if (message_arena != submessage_arena) { + unset_database_options = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( + message_arena, unset_database_options, submessage_arena); + } + set_has_unset_database_options(); + _impl_.kind_.unset_database_options_ = unset_database_options; + } + // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterDatabaseExpr.unset_database_options) +} AlterDatabaseExpr::AlterDatabaseExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -10065,6 +10111,11 @@ AlterDatabaseExpr::AlterDatabaseExpr(const AlterDatabaseExpr& from) from._internal_set_database_options()); break; } + case kUnsetDatabaseOptions: { + _this->_internal_mutable_unset_database_options()->::greptime::v1::UnsetDatabaseOptions::MergeFrom( + from._internal_unset_database_options()); + break; + } case KIND_NOT_SET: { break; } @@ -10125,6 +10176,12 @@ void AlterDatabaseExpr::clear_kind() { } break; } + case kUnsetDatabaseOptions: { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unset_database_options_; + } + break; + } case KIND_NOT_SET: { break; } @@ -10171,10 +10228,18 @@ const char* AlterDatabaseExpr::_InternalParse(const char* ptr, ::_pbi::ParseCont } else goto handle_unusual; continue; - // .greptime.v1.SetDatabaseOptions set_database_options = 4; + // .greptime.v1.SetDatabaseOptions set_database_options = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + ptr = ctx->ParseMessage(_internal_mutable_set_database_options(), ptr); + CHK_(ptr); + } else + goto handle_unusual; + continue; + // .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { - ptr = ctx->ParseMessage(_internal_mutable_set_database_options(), ptr); + ptr = ctx->ParseMessage(_internal_mutable_unset_database_options(), ptr); CHK_(ptr); } else goto handle_unusual; @@ -10228,13 +10293,20 @@ uint8_t* AlterDatabaseExpr::_InternalSerialize( 2, this->_internal_schema_name(), target); } - // .greptime.v1.SetDatabaseOptions set_database_options = 4; + // .greptime.v1.SetDatabaseOptions set_database_options = 3; if (_internal_has_set_database_options()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: - InternalWriteMessage(4, _Internal::set_database_options(this), + InternalWriteMessage(3, _Internal::set_database_options(this), _Internal::set_database_options(this).GetCachedSize(), target, stream); } + // .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + if (_internal_has_unset_database_options()) { + target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: + InternalWriteMessage(4, _Internal::unset_database_options(this), + _Internal::unset_database_options(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); @@ -10266,13 +10338,20 @@ size_t AlterDatabaseExpr::ByteSizeLong() const { } switch (kind_case()) { - // .greptime.v1.SetDatabaseOptions set_database_options = 4; + // .greptime.v1.SetDatabaseOptions set_database_options = 3; case kSetDatabaseOptions: { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( *_impl_.kind_.set_database_options_); break; } + // .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + case kUnsetDatabaseOptions: { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( + *_impl_.kind_.unset_database_options_); + break; + } case KIND_NOT_SET: { break; } @@ -10307,6 +10386,11 @@ void AlterDatabaseExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, cons from._internal_set_database_options()); break; } + case kUnsetDatabaseOptions: { + _this->_internal_mutable_unset_database_options()->::greptime::v1::UnsetDatabaseOptions::MergeFrom( + from._internal_unset_database_options()); + break; + } case KIND_NOT_SET: { break; } @@ -10533,6 +10617,196 @@ ::PROTOBUF_NAMESPACE_ID::Metadata SetDatabaseOptions::GetMetadata() const { file_level_metadata_greptime_2fv1_2fddl_2eproto[30]); } +// =================================================================== + +class UnsetDatabaseOptions::_Internal { + public: +}; + +UnsetDatabaseOptions::UnsetDatabaseOptions(::PROTOBUF_NAMESPACE_ID::Arena* arena, + bool is_message_owned) + : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { + SharedCtor(arena, is_message_owned); + // @@protoc_insertion_point(arena_constructor:greptime.v1.UnsetDatabaseOptions) +} +UnsetDatabaseOptions::UnsetDatabaseOptions(const UnsetDatabaseOptions& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + UnsetDatabaseOptions* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.unset_database_options_){from._impl_.unset_database_options_} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + // @@protoc_insertion_point(copy_constructor:greptime.v1.UnsetDatabaseOptions) +} + +inline void UnsetDatabaseOptions::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.unset_database_options_){arena} + , /*decltype(_impl_._cached_size_)*/{} + }; +} + +UnsetDatabaseOptions::~UnsetDatabaseOptions() { + // @@protoc_insertion_point(destructor:greptime.v1.UnsetDatabaseOptions) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void UnsetDatabaseOptions::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.unset_database_options_.~RepeatedPtrField(); +} + +void UnsetDatabaseOptions::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void UnsetDatabaseOptions::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.UnsetDatabaseOptions) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.unset_database_options_.Clear(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* UnsetDatabaseOptions::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { +#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure + while (!ctx->Done(&ptr)) { + uint32_t tag; + ptr = ::_pbi::ReadTag(ptr, &tag); + switch (tag >> 3) { + // repeated string unset_database_options = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + ptr -= 1; + do { + ptr += 1; + auto str = _internal_add_unset_database_options(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.UnsetDatabaseOptions.unset_database_options")); + if (!ctx->DataAvailable(ptr)) break; + } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); + } else + goto handle_unusual; + continue; + default: + goto handle_unusual; + } // switch + handle_unusual: + if ((tag == 0) || ((tag & 7) == 4)) { + CHK_(ptr); + ctx->SetLastTag(tag); + goto message_done; + } + ptr = UnknownFieldParse( + tag, + _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), + ptr, ctx); + CHK_(ptr != nullptr); + } // while +message_done: + return ptr; +failure: + ptr = nullptr; + goto message_done; +#undef CHK_ +} + +uint8_t* UnsetDatabaseOptions::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.UnsetDatabaseOptions) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // repeated string unset_database_options = 1; + for (int i = 0, n = this->_internal_unset_database_options_size(); i < n; i++) { + const auto& s = this->_internal_unset_database_options(i); + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + s.data(), static_cast(s.length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.UnsetDatabaseOptions.unset_database_options"); + target = stream->WriteString(1, s, target); + } + + if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { + target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray( + _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream); + } + // @@protoc_insertion_point(serialize_to_array_end:greptime.v1.UnsetDatabaseOptions) + return target; +} + +size_t UnsetDatabaseOptions::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.UnsetDatabaseOptions) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // repeated string unset_database_options = 1; + total_size += 1 * + ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.unset_database_options_.size()); + for (int i = 0, n = _impl_.unset_database_options_.size(); i < n; i++) { + total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + _impl_.unset_database_options_.Get(i)); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UnsetDatabaseOptions::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + UnsetDatabaseOptions::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UnsetDatabaseOptions::GetClassData() const { return &_class_data_; } + + +void UnsetDatabaseOptions::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) { + auto* const _this = static_cast(&to_msg); + auto& from = static_cast(from_msg); + // @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.UnsetDatabaseOptions) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + _this->_impl_.unset_database_options_.MergeFrom(from._impl_.unset_database_options_); + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void UnsetDatabaseOptions::CopyFrom(const UnsetDatabaseOptions& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.UnsetDatabaseOptions) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool UnsetDatabaseOptions::IsInitialized() const { + return true; +} + +void UnsetDatabaseOptions::InternalSwap(UnsetDatabaseOptions* other) { + using std::swap; + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + _impl_.unset_database_options_.InternalSwap(&other->_impl_.unset_database_options_); +} + +::PROTOBUF_NAMESPACE_ID::Metadata UnsetDatabaseOptions::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, + file_level_metadata_greptime_2fv1_2fddl_2eproto[31]); +} + // @@protoc_insertion_point(namespace_scope) } // namespace v1 } // namespace greptime @@ -10661,6 +10935,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::SetDatabaseOptions* Arena::CreateMaybeMessage< ::greptime::v1::SetDatabaseOptions >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::SetDatabaseOptions >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::UnsetDatabaseOptions* +Arena::CreateMaybeMessage< ::greptime::v1::UnsetDatabaseOptions >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::UnsetDatabaseOptions >(arena); +} PROTOBUF_NAMESPACE_CLOSE // @@protoc_insertion_point(global_scope) diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 46851f40..51fd4d57 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -144,6 +144,9 @@ extern TruncateTableExprDefaultTypeInternal _TruncateTableExpr_default_instance_ class UnsetColumnFulltext; struct UnsetColumnFulltextDefaultTypeInternal; extern UnsetColumnFulltextDefaultTypeInternal _UnsetColumnFulltext_default_instance_; +class UnsetDatabaseOptions; +struct UnsetDatabaseOptionsDefaultTypeInternal; +extern UnsetDatabaseOptionsDefaultTypeInternal _UnsetDatabaseOptions_default_instance_; } // namespace v1 } // namespace greptime PROTOBUF_NAMESPACE_OPEN @@ -178,6 +181,7 @@ template<> ::greptime::v1::SetDatabaseOptions* Arena::CreateMaybeMessage<::grept template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); template<> ::greptime::v1::UnsetColumnFulltext* Arena::CreateMaybeMessage<::greptime::v1::UnsetColumnFulltext>(Arena*); +template<> ::greptime::v1::UnsetDatabaseOptions* Arena::CreateMaybeMessage<::greptime::v1::UnsetDatabaseOptions>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { namespace v1 { @@ -5818,7 +5822,8 @@ class AlterDatabaseExpr final : return *internal_default_instance(); } enum KindCase { - kSetDatabaseOptions = 4, + kSetDatabaseOptions = 3, + kUnsetDatabaseOptions = 4, KIND_NOT_SET = 0, }; @@ -5902,7 +5907,8 @@ class AlterDatabaseExpr final : enum : int { kCatalogNameFieldNumber = 1, kSchemaNameFieldNumber = 2, - kSetDatabaseOptionsFieldNumber = 4, + kSetDatabaseOptionsFieldNumber = 3, + kUnsetDatabaseOptionsFieldNumber = 4, }; // string catalog_name = 1; void clear_catalog_name(); @@ -5932,7 +5938,7 @@ class AlterDatabaseExpr final : std::string* _internal_mutable_schema_name(); public: - // .greptime.v1.SetDatabaseOptions set_database_options = 4; + // .greptime.v1.SetDatabaseOptions set_database_options = 3; bool has_set_database_options() const; private: bool _internal_has_set_database_options() const; @@ -5950,12 +5956,31 @@ class AlterDatabaseExpr final : ::greptime::v1::SetDatabaseOptions* set_database_options); ::greptime::v1::SetDatabaseOptions* unsafe_arena_release_set_database_options(); + // .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + bool has_unset_database_options() const; + private: + bool _internal_has_unset_database_options() const; + public: + void clear_unset_database_options(); + const ::greptime::v1::UnsetDatabaseOptions& unset_database_options() const; + PROTOBUF_NODISCARD ::greptime::v1::UnsetDatabaseOptions* release_unset_database_options(); + ::greptime::v1::UnsetDatabaseOptions* mutable_unset_database_options(); + void set_allocated_unset_database_options(::greptime::v1::UnsetDatabaseOptions* unset_database_options); + private: + const ::greptime::v1::UnsetDatabaseOptions& _internal_unset_database_options() const; + ::greptime::v1::UnsetDatabaseOptions* _internal_mutable_unset_database_options(); + public: + void unsafe_arena_set_allocated_unset_database_options( + ::greptime::v1::UnsetDatabaseOptions* unset_database_options); + ::greptime::v1::UnsetDatabaseOptions* unsafe_arena_release_unset_database_options(); + void clear_kind(); KindCase kind_case() const; // @@protoc_insertion_point(class_scope:greptime.v1.AlterDatabaseExpr) private: class _Internal; void set_has_set_database_options(); + void set_has_unset_database_options(); inline bool has_kind() const; inline void clear_has_kind(); @@ -5970,6 +5995,7 @@ class AlterDatabaseExpr final : constexpr KindUnion() : _constinit_{} {} ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_; ::greptime::v1::SetDatabaseOptions* set_database_options_; + ::greptime::v1::UnsetDatabaseOptions* unset_database_options_; } kind_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; uint32_t _oneof_case_[1]; @@ -6135,6 +6161,169 @@ class SetDatabaseOptions final : union { Impl_ _impl_; }; friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; }; +// ------------------------------------------------------------------- + +class UnsetDatabaseOptions final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.UnsetDatabaseOptions) */ { + public: + inline UnsetDatabaseOptions() : UnsetDatabaseOptions(nullptr) {} + ~UnsetDatabaseOptions() override; + explicit PROTOBUF_CONSTEXPR UnsetDatabaseOptions(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + UnsetDatabaseOptions(const UnsetDatabaseOptions& from); + UnsetDatabaseOptions(UnsetDatabaseOptions&& from) noexcept + : UnsetDatabaseOptions() { + *this = ::std::move(from); + } + + inline UnsetDatabaseOptions& operator=(const UnsetDatabaseOptions& from) { + CopyFrom(from); + return *this; + } + inline UnsetDatabaseOptions& operator=(UnsetDatabaseOptions&& 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 UnsetDatabaseOptions& default_instance() { + return *internal_default_instance(); + } + static inline const UnsetDatabaseOptions* internal_default_instance() { + return reinterpret_cast( + &_UnsetDatabaseOptions_default_instance_); + } + static constexpr int kIndexInFileMessages = + 31; + + friend void swap(UnsetDatabaseOptions& a, UnsetDatabaseOptions& b) { + a.Swap(&b); + } + inline void Swap(UnsetDatabaseOptions* 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(UnsetDatabaseOptions* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + UnsetDatabaseOptions* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const UnsetDatabaseOptions& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const UnsetDatabaseOptions& from) { + UnsetDatabaseOptions::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(UnsetDatabaseOptions* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.UnsetDatabaseOptions"; + } + protected: + explicit UnsetDatabaseOptions(::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 { + kUnsetDatabaseOptionsFieldNumber = 1, + }; + // repeated string unset_database_options = 1; + int unset_database_options_size() const; + private: + int _internal_unset_database_options_size() const; + public: + void clear_unset_database_options(); + const std::string& unset_database_options(int index) const; + std::string* mutable_unset_database_options(int index); + void set_unset_database_options(int index, const std::string& value); + void set_unset_database_options(int index, std::string&& value); + void set_unset_database_options(int index, const char* value); + void set_unset_database_options(int index, const char* value, size_t size); + std::string* add_unset_database_options(); + void add_unset_database_options(const std::string& value); + void add_unset_database_options(std::string&& value); + void add_unset_database_options(const char* value); + void add_unset_database_options(const char* value, size_t size); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& unset_database_options() const; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* mutable_unset_database_options(); + private: + const std::string& _internal_unset_database_options(int index) const; + std::string* _internal_add_unset_database_options(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.UnsetDatabaseOptions) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField unset_database_options_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; +}; // =================================================================== @@ -11873,7 +12062,7 @@ inline void AlterDatabaseExpr::set_allocated_schema_name(std::string* schema_nam // @@protoc_insertion_point(field_set_allocated:greptime.v1.AlterDatabaseExpr.schema_name) } -// .greptime.v1.SetDatabaseOptions set_database_options = 4; +// .greptime.v1.SetDatabaseOptions set_database_options = 3; inline bool AlterDatabaseExpr::_internal_has_set_database_options() const { return kind_case() == kSetDatabaseOptions; } @@ -11947,6 +12136,80 @@ inline ::greptime::v1::SetDatabaseOptions* AlterDatabaseExpr::mutable_set_databa return _msg; } +// .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; +inline bool AlterDatabaseExpr::_internal_has_unset_database_options() const { + return kind_case() == kUnsetDatabaseOptions; +} +inline bool AlterDatabaseExpr::has_unset_database_options() const { + return _internal_has_unset_database_options(); +} +inline void AlterDatabaseExpr::set_has_unset_database_options() { + _impl_._oneof_case_[0] = kUnsetDatabaseOptions; +} +inline void AlterDatabaseExpr::clear_unset_database_options() { + if (_internal_has_unset_database_options()) { + if (GetArenaForAllocation() == nullptr) { + delete _impl_.kind_.unset_database_options_; + } + clear_has_kind(); + } +} +inline ::greptime::v1::UnsetDatabaseOptions* AlterDatabaseExpr::release_unset_database_options() { + // @@protoc_insertion_point(field_release:greptime.v1.AlterDatabaseExpr.unset_database_options) + if (_internal_has_unset_database_options()) { + clear_has_kind(); + ::greptime::v1::UnsetDatabaseOptions* temp = _impl_.kind_.unset_database_options_; + if (GetArenaForAllocation() != nullptr) { + temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); + } + _impl_.kind_.unset_database_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline const ::greptime::v1::UnsetDatabaseOptions& AlterDatabaseExpr::_internal_unset_database_options() const { + return _internal_has_unset_database_options() + ? *_impl_.kind_.unset_database_options_ + : reinterpret_cast< ::greptime::v1::UnsetDatabaseOptions&>(::greptime::v1::_UnsetDatabaseOptions_default_instance_); +} +inline const ::greptime::v1::UnsetDatabaseOptions& AlterDatabaseExpr::unset_database_options() const { + // @@protoc_insertion_point(field_get:greptime.v1.AlterDatabaseExpr.unset_database_options) + return _internal_unset_database_options(); +} +inline ::greptime::v1::UnsetDatabaseOptions* AlterDatabaseExpr::unsafe_arena_release_unset_database_options() { + // @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.AlterDatabaseExpr.unset_database_options) + if (_internal_has_unset_database_options()) { + clear_has_kind(); + ::greptime::v1::UnsetDatabaseOptions* temp = _impl_.kind_.unset_database_options_; + _impl_.kind_.unset_database_options_ = nullptr; + return temp; + } else { + return nullptr; + } +} +inline void AlterDatabaseExpr::unsafe_arena_set_allocated_unset_database_options(::greptime::v1::UnsetDatabaseOptions* unset_database_options) { + clear_kind(); + if (unset_database_options) { + set_has_unset_database_options(); + _impl_.kind_.unset_database_options_ = unset_database_options; + } + // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.AlterDatabaseExpr.unset_database_options) +} +inline ::greptime::v1::UnsetDatabaseOptions* AlterDatabaseExpr::_internal_mutable_unset_database_options() { + if (!_internal_has_unset_database_options()) { + clear_kind(); + set_has_unset_database_options(); + _impl_.kind_.unset_database_options_ = CreateMaybeMessage< ::greptime::v1::UnsetDatabaseOptions >(GetArenaForAllocation()); + } + return _impl_.kind_.unset_database_options_; +} +inline ::greptime::v1::UnsetDatabaseOptions* AlterDatabaseExpr::mutable_unset_database_options() { + ::greptime::v1::UnsetDatabaseOptions* _msg = _internal_mutable_unset_database_options(); + // @@protoc_insertion_point(field_mutable:greptime.v1.AlterDatabaseExpr.unset_database_options) + return _msg; +} + inline bool AlterDatabaseExpr::has_kind() const { return kind_case() != KIND_NOT_SET; } @@ -12000,6 +12263,85 @@ SetDatabaseOptions::set_database_options() const { return _impl_.set_database_options_; } +// ------------------------------------------------------------------- + +// UnsetDatabaseOptions + +// repeated string unset_database_options = 1; +inline int UnsetDatabaseOptions::_internal_unset_database_options_size() const { + return _impl_.unset_database_options_.size(); +} +inline int UnsetDatabaseOptions::unset_database_options_size() const { + return _internal_unset_database_options_size(); +} +inline void UnsetDatabaseOptions::clear_unset_database_options() { + _impl_.unset_database_options_.Clear(); +} +inline std::string* UnsetDatabaseOptions::add_unset_database_options() { + std::string* _s = _internal_add_unset_database_options(); + // @@protoc_insertion_point(field_add_mutable:greptime.v1.UnsetDatabaseOptions.unset_database_options) + return _s; +} +inline const std::string& UnsetDatabaseOptions::_internal_unset_database_options(int index) const { + return _impl_.unset_database_options_.Get(index); +} +inline const std::string& UnsetDatabaseOptions::unset_database_options(int index) const { + // @@protoc_insertion_point(field_get:greptime.v1.UnsetDatabaseOptions.unset_database_options) + return _internal_unset_database_options(index); +} +inline std::string* UnsetDatabaseOptions::mutable_unset_database_options(int index) { + // @@protoc_insertion_point(field_mutable:greptime.v1.UnsetDatabaseOptions.unset_database_options) + return _impl_.unset_database_options_.Mutable(index); +} +inline void UnsetDatabaseOptions::set_unset_database_options(int index, const std::string& value) { + _impl_.unset_database_options_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set:greptime.v1.UnsetDatabaseOptions.unset_database_options) +} +inline void UnsetDatabaseOptions::set_unset_database_options(int index, std::string&& value) { + _impl_.unset_database_options_.Mutable(index)->assign(std::move(value)); + // @@protoc_insertion_point(field_set:greptime.v1.UnsetDatabaseOptions.unset_database_options) +} +inline void UnsetDatabaseOptions::set_unset_database_options(int index, const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.unset_database_options_.Mutable(index)->assign(value); + // @@protoc_insertion_point(field_set_char:greptime.v1.UnsetDatabaseOptions.unset_database_options) +} +inline void UnsetDatabaseOptions::set_unset_database_options(int index, const char* value, size_t size) { + _impl_.unset_database_options_.Mutable(index)->assign( + reinterpret_cast(value), size); + // @@protoc_insertion_point(field_set_pointer:greptime.v1.UnsetDatabaseOptions.unset_database_options) +} +inline std::string* UnsetDatabaseOptions::_internal_add_unset_database_options() { + return _impl_.unset_database_options_.Add(); +} +inline void UnsetDatabaseOptions::add_unset_database_options(const std::string& value) { + _impl_.unset_database_options_.Add()->assign(value); + // @@protoc_insertion_point(field_add:greptime.v1.UnsetDatabaseOptions.unset_database_options) +} +inline void UnsetDatabaseOptions::add_unset_database_options(std::string&& value) { + _impl_.unset_database_options_.Add(std::move(value)); + // @@protoc_insertion_point(field_add:greptime.v1.UnsetDatabaseOptions.unset_database_options) +} +inline void UnsetDatabaseOptions::add_unset_database_options(const char* value) { + GOOGLE_DCHECK(value != nullptr); + _impl_.unset_database_options_.Add()->assign(value); + // @@protoc_insertion_point(field_add_char:greptime.v1.UnsetDatabaseOptions.unset_database_options) +} +inline void UnsetDatabaseOptions::add_unset_database_options(const char* value, size_t size) { + _impl_.unset_database_options_.Add()->assign(reinterpret_cast(value), size); + // @@protoc_insertion_point(field_add_pointer:greptime.v1.UnsetDatabaseOptions.unset_database_options) +} +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField& +UnsetDatabaseOptions::unset_database_options() const { + // @@protoc_insertion_point(field_list:greptime.v1.UnsetDatabaseOptions.unset_database_options) + return _impl_.unset_database_options_; +} +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField* +UnsetDatabaseOptions::mutable_unset_database_options() { + // @@protoc_insertion_point(field_mutable_list:greptime.v1.UnsetDatabaseOptions.unset_database_options) + return &_impl_.unset_database_options_; +} + #ifdef __GNUC__ #pragma GCC diagnostic pop #endif // __GNUC__ @@ -12063,6 +12405,8 @@ SetDatabaseOptions::set_database_options() const { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index a12993f5..1f54b5d8 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -2139,6 +2139,7 @@ type AlterDatabaseExpr struct { // Types that are assignable to Kind: // // *AlterDatabaseExpr_SetDatabaseOptions + // *AlterDatabaseExpr_UnsetDatabaseOptions Kind isAlterDatabaseExpr_Kind `protobuf_oneof:"kind"` } @@ -2202,16 +2203,29 @@ func (x *AlterDatabaseExpr) GetSetDatabaseOptions() *SetDatabaseOptions { return nil } +func (x *AlterDatabaseExpr) GetUnsetDatabaseOptions() *UnsetDatabaseOptions { + if x, ok := x.GetKind().(*AlterDatabaseExpr_UnsetDatabaseOptions); ok { + return x.UnsetDatabaseOptions + } + return nil +} + type isAlterDatabaseExpr_Kind interface { isAlterDatabaseExpr_Kind() } type AlterDatabaseExpr_SetDatabaseOptions struct { - SetDatabaseOptions *SetDatabaseOptions `protobuf:"bytes,4,opt,name=set_database_options,json=setDatabaseOptions,proto3,oneof"` + SetDatabaseOptions *SetDatabaseOptions `protobuf:"bytes,3,opt,name=set_database_options,json=setDatabaseOptions,proto3,oneof"` +} + +type AlterDatabaseExpr_UnsetDatabaseOptions struct { + UnsetDatabaseOptions *UnsetDatabaseOptions `protobuf:"bytes,4,opt,name=unset_database_options,json=unsetDatabaseOptions,proto3,oneof"` } func (*AlterDatabaseExpr_SetDatabaseOptions) isAlterDatabaseExpr_Kind() {} +func (*AlterDatabaseExpr_UnsetDatabaseOptions) isAlterDatabaseExpr_Kind() {} + type SetDatabaseOptions struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -2259,6 +2273,53 @@ func (x *SetDatabaseOptions) GetSetDatabaseOptions() []*AlterOption { return nil } +type UnsetDatabaseOptions struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + UnsetDatabaseOptions []string `protobuf:"bytes,1,rep,name=unset_database_options,json=unsetDatabaseOptions,proto3" json:"unset_database_options,omitempty"` +} + +func (x *UnsetDatabaseOptions) Reset() { + *x = UnsetDatabaseOptions{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_ddl_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UnsetDatabaseOptions) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnsetDatabaseOptions) ProtoMessage() {} + +func (x *UnsetDatabaseOptions) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_ddl_proto_msgTypes[28] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnsetDatabaseOptions.ProtoReflect.Descriptor instead. +func (*UnsetDatabaseOptions) Descriptor() ([]byte, []int) { + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{28} +} + +func (x *UnsetDatabaseOptions) GetUnsetDatabaseOptions() []string { + if x != nil { + return x.UnsetDatabaseOptions + } + return nil +} + var File_greptime_v1_ddl_proto protoreflect.FileDescriptor var file_greptime_v1_ddl_proto_rawDesc = []byte{ @@ -2616,32 +2677,43 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x69, 0x76, 0x65, 0x22, 0x36, 0x0a, 0x13, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x74, 0x65, 0x78, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x11, + 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x8f, 0x02, 0x0a, 0x11, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x53, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, - 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, + 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, - 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, - 0x6e, 0x64, 0x22, 0x60, 0x0a, 0x12, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, - 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x12, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x24, 0x0a, 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, - 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, - 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, 0x45, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, - 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, - 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x59, 0x0a, 0x16, 0x75, 0x6e, + 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x48, 0x00, 0x52, + 0x14, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0x60, 0x0a, + 0x12, 0x53, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x4a, 0x0a, 0x14, 0x73, 0x65, 0x74, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, + 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x6c, 0x74, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x12, 0x73, 0x65, 0x74, + 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, + 0x4c, 0x0a, 0x14, 0x55, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x75, 0x6e, 0x73, 0x65, 0x74, + 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x14, 0x75, 0x6e, 0x73, 0x65, 0x74, 0x44, 0x61, + 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2a, 0x24, 0x0a, + 0x08, 0x41, 0x6e, 0x61, 0x6c, 0x79, 0x7a, 0x65, 0x72, 0x12, 0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x47, + 0x4c, 0x49, 0x53, 0x48, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x43, 0x48, 0x49, 0x4e, 0x45, 0x53, + 0x45, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, + 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, + 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2657,7 +2729,7 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte { } var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 31) +var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 32) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (Analyzer)(0), // 0: greptime.v1.Analyzer (AddColumnLocation_LocationType)(0), // 1: greptime.v1.AddColumnLocation.LocationType @@ -2689,15 +2761,16 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (*UnsetColumnFulltext)(nil), // 27: greptime.v1.UnsetColumnFulltext (*AlterDatabaseExpr)(nil), // 28: greptime.v1.AlterDatabaseExpr (*SetDatabaseOptions)(nil), // 29: greptime.v1.SetDatabaseOptions - nil, // 30: greptime.v1.CreateFlowExpr.FlowOptionsEntry - nil, // 31: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 32: greptime.v1.CreateDatabaseExpr.OptionsEntry - (*TableName)(nil), // 33: greptime.v1.TableName - (*ExpireAfter)(nil), // 34: greptime.v1.ExpireAfter - (ColumnDataType)(0), // 35: greptime.v1.ColumnDataType - (*ColumnDataTypeExtension)(nil), // 36: greptime.v1.ColumnDataTypeExtension - (SemanticType)(0), // 37: greptime.v1.SemanticType - (*ColumnOptions)(nil), // 38: greptime.v1.ColumnOptions + (*UnsetDatabaseOptions)(nil), // 30: greptime.v1.UnsetDatabaseOptions + nil, // 31: greptime.v1.CreateFlowExpr.FlowOptionsEntry + nil, // 32: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 33: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*TableName)(nil), // 34: greptime.v1.TableName + (*ExpireAfter)(nil), // 35: greptime.v1.ExpireAfter + (ColumnDataType)(0), // 36: greptime.v1.ColumnDataType + (*ColumnDataTypeExtension)(nil), // 37: greptime.v1.ColumnDataTypeExtension + (SemanticType)(0), // 38: greptime.v1.SemanticType + (*ColumnOptions)(nil), // 39: greptime.v1.ColumnOptions } var file_greptime_v1_ddl_proto_depIdxs = []int32{ 10, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr @@ -2710,15 +2783,15 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 5, // 7: greptime.v1.DdlRequest.create_view:type_name -> greptime.v1.CreateViewExpr 6, // 8: greptime.v1.DdlRequest.drop_view:type_name -> greptime.v1.DropViewExpr 28, // 9: greptime.v1.DdlRequest.alter_database:type_name -> greptime.v1.AlterDatabaseExpr - 33, // 10: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName - 33, // 11: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName - 34, // 12: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter - 30, // 13: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry + 34, // 10: greptime.v1.CreateFlowExpr.source_table_names:type_name -> greptime.v1.TableName + 34, // 11: greptime.v1.CreateFlowExpr.sink_table_name:type_name -> greptime.v1.TableName + 35, // 12: greptime.v1.CreateFlowExpr.expire_after:type_name -> greptime.v1.ExpireAfter + 31, // 13: greptime.v1.CreateFlowExpr.flow_options:type_name -> greptime.v1.CreateFlowExpr.FlowOptionsEntry 23, // 14: greptime.v1.DropFlowExpr.flow_id:type_name -> greptime.v1.FlowId - 33, // 15: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName + 34, // 15: greptime.v1.CreateViewExpr.table_names:type_name -> greptime.v1.TableName 22, // 16: greptime.v1.DropViewExpr.view_id:type_name -> greptime.v1.TableId 24, // 17: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 31, // 18: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 32, // 18: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry 22, // 19: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId 13, // 20: greptime.v1.AlterTableExpr.add_columns:type_name -> greptime.v1.AddColumns 14, // 21: greptime.v1.AlterTableExpr.drop_columns:type_name -> greptime.v1.DropColumns @@ -2728,29 +2801,30 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{ 26, // 25: greptime.v1.AlterTableExpr.set_column_fulltext:type_name -> greptime.v1.SetColumnFulltext 27, // 26: greptime.v1.AlterTableExpr.unset_column_fulltext:type_name -> greptime.v1.UnsetColumnFulltext 22, // 27: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 32, // 28: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 33, // 28: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry 22, // 29: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId 17, // 30: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn 21, // 31: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn 18, // 32: greptime.v1.ModifyColumnTypes.modify_column_types:type_name -> greptime.v1.ModifyColumnType 24, // 33: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef 25, // 34: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation - 35, // 35: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType - 36, // 36: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 36, // 35: greptime.v1.ModifyColumnType.target_type:type_name -> greptime.v1.ColumnDataType + 37, // 36: greptime.v1.ModifyColumnType.target_type_extension:type_name -> greptime.v1.ColumnDataTypeExtension 20, // 37: greptime.v1.ChangeTableOptions.change_table_options:type_name -> greptime.v1.AlterOption - 35, // 38: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType - 37, // 39: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType - 36, // 40: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension - 38, // 41: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions + 36, // 38: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType + 38, // 39: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType + 37, // 40: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension + 39, // 41: greptime.v1.ColumnDef.options:type_name -> greptime.v1.ColumnOptions 1, // 42: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType 0, // 43: greptime.v1.SetColumnFulltext.analyzer:type_name -> greptime.v1.Analyzer 29, // 44: greptime.v1.AlterDatabaseExpr.set_database_options:type_name -> greptime.v1.SetDatabaseOptions - 20, // 45: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.AlterOption - 46, // [46:46] is the sub-list for method output_type - 46, // [46:46] is the sub-list for method input_type - 46, // [46:46] is the sub-list for extension type_name - 46, // [46:46] is the sub-list for extension extendee - 0, // [0:46] is the sub-list for field type_name + 30, // 45: greptime.v1.AlterDatabaseExpr.unset_database_options:type_name -> greptime.v1.UnsetDatabaseOptions + 20, // 46: greptime.v1.SetDatabaseOptions.set_database_options:type_name -> greptime.v1.AlterOption + 47, // [47:47] is the sub-list for method output_type + 47, // [47:47] is the sub-list for method input_type + 47, // [47:47] is the sub-list for extension type_name + 47, // [47:47] is the sub-list for extension extendee + 0, // [0:47] is the sub-list for field type_name } func init() { file_greptime_v1_ddl_proto_init() } @@ -3096,6 +3170,18 @@ func file_greptime_v1_ddl_proto_init() { return nil } } + file_greptime_v1_ddl_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UnsetDatabaseOptions); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_greptime_v1_ddl_proto_msgTypes[0].OneofWrappers = []interface{}{ (*DdlRequest_CreateDatabase)(nil), @@ -3120,6 +3206,7 @@ func file_greptime_v1_ddl_proto_init() { } file_greptime_v1_ddl_proto_msgTypes[26].OneofWrappers = []interface{}{ (*AlterDatabaseExpr_SetDatabaseOptions)(nil), + (*AlterDatabaseExpr_UnsetDatabaseOptions)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -3127,7 +3214,7 @@ func file_greptime_v1_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, NumEnums: 2, - NumMessages: 31, + NumMessages: 32, NumExtensions: 0, NumServices: 0, }, diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index dcc2b12c..dfa784f0 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -30184,20 +30184,35 @@ public interface AlterDatabaseExprOrBuilder extends getSchemaNameBytes(); /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; * @return Whether the setDatabaseOptions field is set. */ boolean hasSetDatabaseOptions(); /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; * @return The setDatabaseOptions. */ io.greptime.v1.Ddl.SetDatabaseOptions getSetDatabaseOptions(); /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ io.greptime.v1.Ddl.SetDatabaseOptionsOrBuilder getSetDatabaseOptionsOrBuilder(); + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + * @return Whether the unsetDatabaseOptions field is set. + */ + boolean hasUnsetDatabaseOptions(); + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + * @return The unsetDatabaseOptions. + */ + io.greptime.v1.Ddl.UnsetDatabaseOptions getUnsetDatabaseOptions(); + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + io.greptime.v1.Ddl.UnsetDatabaseOptionsOrBuilder getUnsetDatabaseOptionsOrBuilder(); + public io.greptime.v1.Ddl.AlterDatabaseExpr.KindCase getKindCase(); } /** @@ -30259,9 +30274,9 @@ private AlterDatabaseExpr( schemaName_ = s; break; } - case 34: { + case 26: { io.greptime.v1.Ddl.SetDatabaseOptions.Builder subBuilder = null; - if (kindCase_ == 4) { + if (kindCase_ == 3) { subBuilder = ((io.greptime.v1.Ddl.SetDatabaseOptions) kind_).toBuilder(); } kind_ = @@ -30270,6 +30285,20 @@ private AlterDatabaseExpr( subBuilder.mergeFrom((io.greptime.v1.Ddl.SetDatabaseOptions) kind_); kind_ = subBuilder.buildPartial(); } + kindCase_ = 3; + break; + } + case 34: { + io.greptime.v1.Ddl.UnsetDatabaseOptions.Builder subBuilder = null; + if (kindCase_ == 4) { + subBuilder = ((io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_).toBuilder(); + } + kind_ = + input.readMessage(io.greptime.v1.Ddl.UnsetDatabaseOptions.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_); + kind_ = subBuilder.buildPartial(); + } kindCase_ = 4; break; } @@ -30312,7 +30341,8 @@ private AlterDatabaseExpr( public enum KindCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SET_DATABASE_OPTIONS(4), + SET_DATABASE_OPTIONS(3), + UNSET_DATABASE_OPTIONS(4), KIND_NOT_SET(0); private final int value; private KindCase(int value) { @@ -30330,7 +30360,8 @@ public static KindCase valueOf(int value) { public static KindCase forNumber(int value) { switch (value) { - case 4: return SET_DATABASE_OPTIONS; + case 3: return SET_DATABASE_OPTIONS; + case 4: return UNSET_DATABASE_OPTIONS; case 0: return KIND_NOT_SET; default: return null; } @@ -30422,37 +30453,68 @@ public java.lang.String getSchemaName() { } } - public static final int SET_DATABASE_OPTIONS_FIELD_NUMBER = 4; + public static final int SET_DATABASE_OPTIONS_FIELD_NUMBER = 3; /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; * @return Whether the setDatabaseOptions field is set. */ @java.lang.Override public boolean hasSetDatabaseOptions() { - return kindCase_ == 4; + return kindCase_ == 3; } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; * @return The setDatabaseOptions. */ @java.lang.Override public io.greptime.v1.Ddl.SetDatabaseOptions getSetDatabaseOptions() { - if (kindCase_ == 4) { + if (kindCase_ == 3) { return (io.greptime.v1.Ddl.SetDatabaseOptions) kind_; } return io.greptime.v1.Ddl.SetDatabaseOptions.getDefaultInstance(); } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ @java.lang.Override public io.greptime.v1.Ddl.SetDatabaseOptionsOrBuilder getSetDatabaseOptionsOrBuilder() { - if (kindCase_ == 4) { + if (kindCase_ == 3) { return (io.greptime.v1.Ddl.SetDatabaseOptions) kind_; } return io.greptime.v1.Ddl.SetDatabaseOptions.getDefaultInstance(); } + public static final int UNSET_DATABASE_OPTIONS_FIELD_NUMBER = 4; + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + * @return Whether the unsetDatabaseOptions field is set. + */ + @java.lang.Override + public boolean hasUnsetDatabaseOptions() { + return kindCase_ == 4; + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + * @return The unsetDatabaseOptions. + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetDatabaseOptions getUnsetDatabaseOptions() { + if (kindCase_ == 4) { + return (io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_; + } + return io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance(); + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetDatabaseOptionsOrBuilder getUnsetDatabaseOptionsOrBuilder() { + if (kindCase_ == 4) { + return (io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_; + } + return io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -30473,8 +30535,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_); } + if (kindCase_ == 3) { + output.writeMessage(3, (io.greptime.v1.Ddl.SetDatabaseOptions) kind_); + } if (kindCase_ == 4) { - output.writeMessage(4, (io.greptime.v1.Ddl.SetDatabaseOptions) kind_); + output.writeMessage(4, (io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_); } unknownFields.writeTo(output); } @@ -30491,9 +30556,13 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_); } + if (kindCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (io.greptime.v1.Ddl.SetDatabaseOptions) kind_); + } if (kindCase_ == 4) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, (io.greptime.v1.Ddl.SetDatabaseOptions) kind_); + .computeMessageSize(4, (io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -30516,10 +30585,14 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getSchemaName())) return false; if (!getKindCase().equals(other.getKindCase())) return false; switch (kindCase_) { - case 4: + case 3: if (!getSetDatabaseOptions() .equals(other.getSetDatabaseOptions())) return false; break; + case 4: + if (!getUnsetDatabaseOptions() + .equals(other.getUnsetDatabaseOptions())) return false; + break; case 0: default: } @@ -30539,10 +30612,14 @@ public int hashCode() { hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; hash = (53 * hash) + getSchemaName().hashCode(); switch (kindCase_) { - case 4: + case 3: hash = (37 * hash) + SET_DATABASE_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getSetDatabaseOptions().hashCode(); break; + case 4: + hash = (37 * hash) + UNSET_DATABASE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUnsetDatabaseOptions().hashCode(); + break; case 0: default: } @@ -30713,13 +30790,20 @@ public io.greptime.v1.Ddl.AlterDatabaseExpr buildPartial() { io.greptime.v1.Ddl.AlterDatabaseExpr result = new io.greptime.v1.Ddl.AlterDatabaseExpr(this); result.catalogName_ = catalogName_; result.schemaName_ = schemaName_; - if (kindCase_ == 4) { + if (kindCase_ == 3) { if (setDatabaseOptionsBuilder_ == null) { result.kind_ = kind_; } else { result.kind_ = setDatabaseOptionsBuilder_.build(); } } + if (kindCase_ == 4) { + if (unsetDatabaseOptionsBuilder_ == null) { + result.kind_ = kind_; + } else { + result.kind_ = unsetDatabaseOptionsBuilder_.build(); + } + } result.kindCase_ = kindCase_; onBuilt(); return result; @@ -30782,6 +30866,10 @@ public Builder mergeFrom(io.greptime.v1.Ddl.AlterDatabaseExpr other) { mergeSetDatabaseOptions(other.getSetDatabaseOptions()); break; } + case UNSET_DATABASE_OPTIONS: { + mergeUnsetDatabaseOptions(other.getUnsetDatabaseOptions()); + break; + } case KIND_NOT_SET: { break; } @@ -30985,33 +31073,33 @@ public Builder setSchemaNameBytes( private com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.Ddl.SetDatabaseOptions, io.greptime.v1.Ddl.SetDatabaseOptions.Builder, io.greptime.v1.Ddl.SetDatabaseOptionsOrBuilder> setDatabaseOptionsBuilder_; /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; * @return Whether the setDatabaseOptions field is set. */ @java.lang.Override public boolean hasSetDatabaseOptions() { - return kindCase_ == 4; + return kindCase_ == 3; } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; * @return The setDatabaseOptions. */ @java.lang.Override public io.greptime.v1.Ddl.SetDatabaseOptions getSetDatabaseOptions() { if (setDatabaseOptionsBuilder_ == null) { - if (kindCase_ == 4) { + if (kindCase_ == 3) { return (io.greptime.v1.Ddl.SetDatabaseOptions) kind_; } return io.greptime.v1.Ddl.SetDatabaseOptions.getDefaultInstance(); } else { - if (kindCase_ == 4) { + if (kindCase_ == 3) { return setDatabaseOptionsBuilder_.getMessage(); } return io.greptime.v1.Ddl.SetDatabaseOptions.getDefaultInstance(); } } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ public Builder setSetDatabaseOptions(io.greptime.v1.Ddl.SetDatabaseOptions value) { if (setDatabaseOptionsBuilder_ == null) { @@ -31023,11 +31111,11 @@ public Builder setSetDatabaseOptions(io.greptime.v1.Ddl.SetDatabaseOptions value } else { setDatabaseOptionsBuilder_.setMessage(value); } - kindCase_ = 4; + kindCase_ = 3; return this; } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ public Builder setSetDatabaseOptions( io.greptime.v1.Ddl.SetDatabaseOptions.Builder builderForValue) { @@ -31037,15 +31125,15 @@ public Builder setSetDatabaseOptions( } else { setDatabaseOptionsBuilder_.setMessage(builderForValue.build()); } - kindCase_ = 4; + kindCase_ = 3; return this; } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ public Builder mergeSetDatabaseOptions(io.greptime.v1.Ddl.SetDatabaseOptions value) { if (setDatabaseOptionsBuilder_ == null) { - if (kindCase_ == 4 && + if (kindCase_ == 3 && kind_ != io.greptime.v1.Ddl.SetDatabaseOptions.getDefaultInstance()) { kind_ = io.greptime.v1.Ddl.SetDatabaseOptions.newBuilder((io.greptime.v1.Ddl.SetDatabaseOptions) kind_) .mergeFrom(value).buildPartial(); @@ -31054,27 +31142,27 @@ public Builder mergeSetDatabaseOptions(io.greptime.v1.Ddl.SetDatabaseOptions val } onChanged(); } else { - if (kindCase_ == 4) { + if (kindCase_ == 3) { setDatabaseOptionsBuilder_.mergeFrom(value); } else { setDatabaseOptionsBuilder_.setMessage(value); } } - kindCase_ = 4; + kindCase_ = 3; return this; } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ public Builder clearSetDatabaseOptions() { if (setDatabaseOptionsBuilder_ == null) { - if (kindCase_ == 4) { + if (kindCase_ == 3) { kindCase_ = 0; kind_ = null; onChanged(); } } else { - if (kindCase_ == 4) { + if (kindCase_ == 3) { kindCase_ = 0; kind_ = null; } @@ -31083,33 +31171,33 @@ public Builder clearSetDatabaseOptions() { return this; } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ public io.greptime.v1.Ddl.SetDatabaseOptions.Builder getSetDatabaseOptionsBuilder() { return getSetDatabaseOptionsFieldBuilder().getBuilder(); } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ @java.lang.Override public io.greptime.v1.Ddl.SetDatabaseOptionsOrBuilder getSetDatabaseOptionsOrBuilder() { - if ((kindCase_ == 4) && (setDatabaseOptionsBuilder_ != null)) { + if ((kindCase_ == 3) && (setDatabaseOptionsBuilder_ != null)) { return setDatabaseOptionsBuilder_.getMessageOrBuilder(); } else { - if (kindCase_ == 4) { + if (kindCase_ == 3) { return (io.greptime.v1.Ddl.SetDatabaseOptions) kind_; } return io.greptime.v1.Ddl.SetDatabaseOptions.getDefaultInstance(); } } /** - * .greptime.v1.SetDatabaseOptions set_database_options = 4; + * .greptime.v1.SetDatabaseOptions set_database_options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< io.greptime.v1.Ddl.SetDatabaseOptions, io.greptime.v1.Ddl.SetDatabaseOptions.Builder, io.greptime.v1.Ddl.SetDatabaseOptionsOrBuilder> getSetDatabaseOptionsFieldBuilder() { if (setDatabaseOptionsBuilder_ == null) { - if (!(kindCase_ == 4)) { + if (!(kindCase_ == 3)) { kind_ = io.greptime.v1.Ddl.SetDatabaseOptions.getDefaultInstance(); } setDatabaseOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< @@ -31119,10 +31207,152 @@ public io.greptime.v1.Ddl.SetDatabaseOptionsOrBuilder getSetDatabaseOptionsOrBui isClean()); kind_ = null; } - kindCase_ = 4; + kindCase_ = 3; onChanged();; return setDatabaseOptionsBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetDatabaseOptions, io.greptime.v1.Ddl.UnsetDatabaseOptions.Builder, io.greptime.v1.Ddl.UnsetDatabaseOptionsOrBuilder> unsetDatabaseOptionsBuilder_; + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + * @return Whether the unsetDatabaseOptions field is set. + */ + @java.lang.Override + public boolean hasUnsetDatabaseOptions() { + return kindCase_ == 4; + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + * @return The unsetDatabaseOptions. + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetDatabaseOptions getUnsetDatabaseOptions() { + if (unsetDatabaseOptionsBuilder_ == null) { + if (kindCase_ == 4) { + return (io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_; + } + return io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance(); + } else { + if (kindCase_ == 4) { + return unsetDatabaseOptionsBuilder_.getMessage(); + } + return io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance(); + } + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + public Builder setUnsetDatabaseOptions(io.greptime.v1.Ddl.UnsetDatabaseOptions value) { + if (unsetDatabaseOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + kind_ = value; + onChanged(); + } else { + unsetDatabaseOptionsBuilder_.setMessage(value); + } + kindCase_ = 4; + return this; + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + public Builder setUnsetDatabaseOptions( + io.greptime.v1.Ddl.UnsetDatabaseOptions.Builder builderForValue) { + if (unsetDatabaseOptionsBuilder_ == null) { + kind_ = builderForValue.build(); + onChanged(); + } else { + unsetDatabaseOptionsBuilder_.setMessage(builderForValue.build()); + } + kindCase_ = 4; + return this; + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + public Builder mergeUnsetDatabaseOptions(io.greptime.v1.Ddl.UnsetDatabaseOptions value) { + if (unsetDatabaseOptionsBuilder_ == null) { + if (kindCase_ == 4 && + kind_ != io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance()) { + kind_ = io.greptime.v1.Ddl.UnsetDatabaseOptions.newBuilder((io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_) + .mergeFrom(value).buildPartial(); + } else { + kind_ = value; + } + onChanged(); + } else { + if (kindCase_ == 4) { + unsetDatabaseOptionsBuilder_.mergeFrom(value); + } else { + unsetDatabaseOptionsBuilder_.setMessage(value); + } + } + kindCase_ = 4; + return this; + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + public Builder clearUnsetDatabaseOptions() { + if (unsetDatabaseOptionsBuilder_ == null) { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + onChanged(); + } + } else { + if (kindCase_ == 4) { + kindCase_ = 0; + kind_ = null; + } + unsetDatabaseOptionsBuilder_.clear(); + } + return this; + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + public io.greptime.v1.Ddl.UnsetDatabaseOptions.Builder getUnsetDatabaseOptionsBuilder() { + return getUnsetDatabaseOptionsFieldBuilder().getBuilder(); + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + @java.lang.Override + public io.greptime.v1.Ddl.UnsetDatabaseOptionsOrBuilder getUnsetDatabaseOptionsOrBuilder() { + if ((kindCase_ == 4) && (unsetDatabaseOptionsBuilder_ != null)) { + return unsetDatabaseOptionsBuilder_.getMessageOrBuilder(); + } else { + if (kindCase_ == 4) { + return (io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_; + } + return io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance(); + } + } + /** + * .greptime.v1.UnsetDatabaseOptions unset_database_options = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetDatabaseOptions, io.greptime.v1.Ddl.UnsetDatabaseOptions.Builder, io.greptime.v1.Ddl.UnsetDatabaseOptionsOrBuilder> + getUnsetDatabaseOptionsFieldBuilder() { + if (unsetDatabaseOptionsBuilder_ == null) { + if (!(kindCase_ == 4)) { + kind_ = io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance(); + } + unsetDatabaseOptionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.greptime.v1.Ddl.UnsetDatabaseOptions, io.greptime.v1.Ddl.UnsetDatabaseOptions.Builder, io.greptime.v1.Ddl.UnsetDatabaseOptionsOrBuilder>( + (io.greptime.v1.Ddl.UnsetDatabaseOptions) kind_, + getParentForChildren(), + isClean()); + kind_ = null; + } + kindCase_ = 4; + onChanged();; + return unsetDatabaseOptionsBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -31971,98 +32201,738 @@ public io.greptime.v1.Ddl.SetDatabaseOptions getDefaultInstanceForType() { } - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DdlRequest_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DdlRequest_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateFlowExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateFlowExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateFlowExpr_FlowOptionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateFlowExpr_FlowOptionsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropFlowExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropFlowExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateViewExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateViewExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropViewExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropViewExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateTableExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateTableExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AlterTableExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AlterTableExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropTableExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropTableExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateDatabaseExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_TruncateTableExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropDatabaseExpr_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AddColumns_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_AddColumns_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_DropColumns_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_DropColumns_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_ModifyColumnTypes_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_ModifyColumnTypes_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_RenameTable_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_RenameTable_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_AddColumn_descriptor; + public interface UnsetDatabaseOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:greptime.v1.UnsetDatabaseOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string unset_database_options = 1; + * @return A list containing the unsetDatabaseOptions. + */ + java.util.List + getUnsetDatabaseOptionsList(); + /** + * repeated string unset_database_options = 1; + * @return The count of unsetDatabaseOptions. + */ + int getUnsetDatabaseOptionsCount(); + /** + * repeated string unset_database_options = 1; + * @param index The index of the element to return. + * @return The unsetDatabaseOptions at the given index. + */ + java.lang.String getUnsetDatabaseOptions(int index); + /** + * repeated string unset_database_options = 1; + * @param index The index of the value to return. + * @return The bytes of the unsetDatabaseOptions at the given index. + */ + com.google.protobuf.ByteString + getUnsetDatabaseOptionsBytes(int index); + } + /** + * Protobuf type {@code greptime.v1.UnsetDatabaseOptions} + */ + public static final class UnsetDatabaseOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.UnsetDatabaseOptions) + UnsetDatabaseOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use UnsetDatabaseOptions.newBuilder() to construct. + private UnsetDatabaseOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UnsetDatabaseOptions() { + unsetDatabaseOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UnsetDatabaseOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private UnsetDatabaseOptions( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + unsetDatabaseOptions_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000001; + } + unsetDatabaseOptions_.add(s); + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + unsetDatabaseOptions_ = unsetDatabaseOptions_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetDatabaseOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetDatabaseOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.UnsetDatabaseOptions.class, io.greptime.v1.Ddl.UnsetDatabaseOptions.Builder.class); + } + + public static final int UNSET_DATABASE_OPTIONS_FIELD_NUMBER = 1; + private com.google.protobuf.LazyStringList unsetDatabaseOptions_; + /** + * repeated string unset_database_options = 1; + * @return A list containing the unsetDatabaseOptions. + */ + public com.google.protobuf.ProtocolStringList + getUnsetDatabaseOptionsList() { + return unsetDatabaseOptions_; + } + /** + * repeated string unset_database_options = 1; + * @return The count of unsetDatabaseOptions. + */ + public int getUnsetDatabaseOptionsCount() { + return unsetDatabaseOptions_.size(); + } + /** + * repeated string unset_database_options = 1; + * @param index The index of the element to return. + * @return The unsetDatabaseOptions at the given index. + */ + public java.lang.String getUnsetDatabaseOptions(int index) { + return unsetDatabaseOptions_.get(index); + } + /** + * repeated string unset_database_options = 1; + * @param index The index of the value to return. + * @return The bytes of the unsetDatabaseOptions at the given index. + */ + public com.google.protobuf.ByteString + getUnsetDatabaseOptionsBytes(int index) { + return unsetDatabaseOptions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < unsetDatabaseOptions_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, unsetDatabaseOptions_.getRaw(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < unsetDatabaseOptions_.size(); i++) { + dataSize += computeStringSizeNoTag(unsetDatabaseOptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnsetDatabaseOptionsList().size(); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof io.greptime.v1.Ddl.UnsetDatabaseOptions)) { + return super.equals(obj); + } + io.greptime.v1.Ddl.UnsetDatabaseOptions other = (io.greptime.v1.Ddl.UnsetDatabaseOptions) obj; + + if (!getUnsetDatabaseOptionsList() + .equals(other.getUnsetDatabaseOptionsList())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getUnsetDatabaseOptionsCount() > 0) { + hash = (37 * hash) + UNSET_DATABASE_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUnsetDatabaseOptionsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Ddl.UnsetDatabaseOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(io.greptime.v1.Ddl.UnsetDatabaseOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code greptime.v1.UnsetDatabaseOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.UnsetDatabaseOptions) + io.greptime.v1.Ddl.UnsetDatabaseOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetDatabaseOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetDatabaseOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Ddl.UnsetDatabaseOptions.class, io.greptime.v1.Ddl.UnsetDatabaseOptions.Builder.class); + } + + // Construct using io.greptime.v1.Ddl.UnsetDatabaseOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + unsetDatabaseOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Ddl.internal_static_greptime_v1_UnsetDatabaseOptions_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Ddl.UnsetDatabaseOptions getDefaultInstanceForType() { + return io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Ddl.UnsetDatabaseOptions build() { + io.greptime.v1.Ddl.UnsetDatabaseOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Ddl.UnsetDatabaseOptions buildPartial() { + io.greptime.v1.Ddl.UnsetDatabaseOptions result = new io.greptime.v1.Ddl.UnsetDatabaseOptions(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + unsetDatabaseOptions_ = unsetDatabaseOptions_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.unsetDatabaseOptions_ = unsetDatabaseOptions_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.greptime.v1.Ddl.UnsetDatabaseOptions) { + return mergeFrom((io.greptime.v1.Ddl.UnsetDatabaseOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Ddl.UnsetDatabaseOptions other) { + if (other == io.greptime.v1.Ddl.UnsetDatabaseOptions.getDefaultInstance()) return this; + if (!other.unsetDatabaseOptions_.isEmpty()) { + if (unsetDatabaseOptions_.isEmpty()) { + unsetDatabaseOptions_ = other.unsetDatabaseOptions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUnsetDatabaseOptionsIsMutable(); + unsetDatabaseOptions_.addAll(other.unsetDatabaseOptions_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.greptime.v1.Ddl.UnsetDatabaseOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Ddl.UnsetDatabaseOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList unsetDatabaseOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureUnsetDatabaseOptionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + unsetDatabaseOptions_ = new com.google.protobuf.LazyStringArrayList(unsetDatabaseOptions_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated string unset_database_options = 1; + * @return A list containing the unsetDatabaseOptions. + */ + public com.google.protobuf.ProtocolStringList + getUnsetDatabaseOptionsList() { + return unsetDatabaseOptions_.getUnmodifiableView(); + } + /** + * repeated string unset_database_options = 1; + * @return The count of unsetDatabaseOptions. + */ + public int getUnsetDatabaseOptionsCount() { + return unsetDatabaseOptions_.size(); + } + /** + * repeated string unset_database_options = 1; + * @param index The index of the element to return. + * @return The unsetDatabaseOptions at the given index. + */ + public java.lang.String getUnsetDatabaseOptions(int index) { + return unsetDatabaseOptions_.get(index); + } + /** + * repeated string unset_database_options = 1; + * @param index The index of the value to return. + * @return The bytes of the unsetDatabaseOptions at the given index. + */ + public com.google.protobuf.ByteString + getUnsetDatabaseOptionsBytes(int index) { + return unsetDatabaseOptions_.getByteString(index); + } + /** + * repeated string unset_database_options = 1; + * @param index The index to set the value at. + * @param value The unsetDatabaseOptions to set. + * @return This builder for chaining. + */ + public Builder setUnsetDatabaseOptions( + int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnsetDatabaseOptionsIsMutable(); + unsetDatabaseOptions_.set(index, value); + onChanged(); + return this; + } + /** + * repeated string unset_database_options = 1; + * @param value The unsetDatabaseOptions to add. + * @return This builder for chaining. + */ + public Builder addUnsetDatabaseOptions( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnsetDatabaseOptionsIsMutable(); + unsetDatabaseOptions_.add(value); + onChanged(); + return this; + } + /** + * repeated string unset_database_options = 1; + * @param values The unsetDatabaseOptions to add. + * @return This builder for chaining. + */ + public Builder addAllUnsetDatabaseOptions( + java.lang.Iterable values) { + ensureUnsetDatabaseOptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, unsetDatabaseOptions_); + onChanged(); + return this; + } + /** + * repeated string unset_database_options = 1; + * @return This builder for chaining. + */ + public Builder clearUnsetDatabaseOptions() { + unsetDatabaseOptions_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * repeated string unset_database_options = 1; + * @param value The bytes of the unsetDatabaseOptions to add. + * @return This builder for chaining. + */ + public Builder addUnsetDatabaseOptionsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnsetDatabaseOptionsIsMutable(); + unsetDatabaseOptions_.add(value); + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:greptime.v1.UnsetDatabaseOptions) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.UnsetDatabaseOptions) + private static final io.greptime.v1.Ddl.UnsetDatabaseOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Ddl.UnsetDatabaseOptions(); + } + + public static io.greptime.v1.Ddl.UnsetDatabaseOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UnsetDatabaseOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UnsetDatabaseOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.greptime.v1.Ddl.UnsetDatabaseOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DdlRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DdlRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateFlowExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateFlowExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateFlowExpr_FlowOptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateFlowExpr_FlowOptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropFlowExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropFlowExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateViewExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateViewExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropViewExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropViewExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateTableExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateTableExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AlterTableExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AlterTableExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropTableExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropTableExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateDatabaseExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_TruncateTableExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropDatabaseExpr_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AddColumns_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_AddColumns_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_DropColumns_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_DropColumns_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_ModifyColumnTypes_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_ModifyColumnTypes_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_RenameTable_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_RenameTable_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_AddColumn_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_AddColumn_fieldAccessorTable; @@ -32126,6 +32996,11 @@ public io.greptime.v1.Ddl.SetDatabaseOptions getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_SetDatabaseOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_UnsetDatabaseOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_UnsetDatabaseOptions_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -32243,15 +33118,18 @@ public io.greptime.v1.Ddl.SetDatabaseOptions getDefaultInstanceForType() { "\022\016\n\006enable\030\002 \001(\010\022\'\n\010analyzer\030\003 \001(\0162\025.gre" + "ptime.v1.Analyzer\022\026\n\016case_sensitive\030\004 \001(" + "\010\"*\n\023UnsetColumnFulltext\022\023\n\013column_name\030" + - "\001 \001(\t\"\207\001\n\021AlterDatabaseExpr\022\024\n\014catalog_n" + + "\001 \001(\t\"\314\001\n\021AlterDatabaseExpr\022\024\n\014catalog_n" + "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022?\n\024set_da" + - "tabase_options\030\004 \001(\0132\037.greptime.v1.SetDa" + - "tabaseOptionsH\000B\006\n\004kind\"L\n\022SetDatabaseOp" + - "tions\0226\n\024set_database_options\030\001 \003(\0132\030.gr" + - "eptime.v1.AlterOption*$\n\010Analyzer\022\013\n\007ENG" + - "LISH\020\000\022\013\n\007CHINESE\020\001BL\n\016io.greptime.v1B\003D" + - "dlZ5github.com/GreptimeTeam/greptime-pro" + - "to/go/greptime/v1b\006proto3" + "tabase_options\030\003 \001(\0132\037.greptime.v1.SetDa" + + "tabaseOptionsH\000\022C\n\026unset_database_option" + + "s\030\004 \001(\0132!.greptime.v1.UnsetDatabaseOptio" + + "nsH\000B\006\n\004kind\"L\n\022SetDatabaseOptions\0226\n\024se" + + "t_database_options\030\001 \003(\0132\030.greptime.v1.A" + + "lterOption\"6\n\024UnsetDatabaseOptions\022\036\n\026un" + + "set_database_options\030\001 \003(\t*$\n\010Analyzer\022\013" + + "\n\007ENGLISH\020\000\022\013\n\007CHINESE\020\001BL\n\016io.greptime." + + "v1B\003DdlZ5github.com/GreptimeTeam/greptim" + + "e-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -32437,13 +33315,19 @@ public io.greptime.v1.Ddl.SetDatabaseOptions getDefaultInstanceForType() { internal_static_greptime_v1_AlterDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AlterDatabaseExpr_descriptor, - new java.lang.String[] { "CatalogName", "SchemaName", "SetDatabaseOptions", "Kind", }); + new java.lang.String[] { "CatalogName", "SchemaName", "SetDatabaseOptions", "UnsetDatabaseOptions", "Kind", }); internal_static_greptime_v1_SetDatabaseOptions_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_greptime_v1_SetDatabaseOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_SetDatabaseOptions_descriptor, new java.lang.String[] { "SetDatabaseOptions", }); + internal_static_greptime_v1_UnsetDatabaseOptions_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_greptime_v1_UnsetDatabaseOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_UnsetDatabaseOptions_descriptor, + new java.lang.String[] { "UnsetDatabaseOptions", }); io.greptime.v1.Common.getDescriptor(); } diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 8f98ad8f..377569b8 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -222,10 +222,15 @@ message AlterDatabaseExpr { string catalog_name = 1; string schema_name = 2; oneof kind { - SetDatabaseOptions set_database_options = 4; + SetDatabaseOptions set_database_options = 3; + UnsetDatabaseOptions unset_database_options = 4; } } message SetDatabaseOptions { repeated AlterOption set_database_options = 1; } + +message UnsetDatabaseOptions { + repeated string unset_database_options = 1; +}