diff --git a/c++/greptime/v1/common.pb.cc b/c++/greptime/v1/common.pb.cc index deecfe65..29bae7cc 100644 --- a/c++/greptime/v1/common.pb.cc +++ b/c++/greptime/v1/common.pb.cc @@ -119,6 +119,21 @@ struct TokenDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TokenDefaultTypeInternal _Token_default_instance_; +PROTOBUF_CONSTEXPR TableName::TableName( + ::_pbi::ConstantInitialized): _impl_{ + /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} + , /*decltype(_impl_._cached_size_)*/{}} {} +struct TableNameDefaultTypeInternal { + PROTOBUF_CONSTEXPR TableNameDefaultTypeInternal() + : _instance(::_pbi::ConstantInitialized{}) {} + ~TableNameDefaultTypeInternal() {} + union { + TableName _instance; + }; +}; +PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableNameDefaultTypeInternal _TableName_default_instance_; PROTOBUF_CONSTEXPR AffectedRows::AffectedRows( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.value_)*/0u @@ -218,7 +233,7 @@ struct DecimalTypeExtensionDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[14]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fcommon_2eproto[15]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto[2]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto = nullptr; @@ -285,6 +300,15 @@ const uint32_t TableStruct_greptime_2fv1_2fcommon_2eproto::offsets[] PROTOBUF_SE ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::Token, _impl_.token_), ~0u, // no _has_bits_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::TableName, _internal_metadata_), + ~0u, // no _extensions_ + ~0u, // no _oneof_case_ + ~0u, // no _weak_field_map_ + ~0u, // no _inlined_string_donated_ + PROTOBUF_FIELD_OFFSET(::greptime::v1::TableName, _impl_.catalog_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::TableName, _impl_.schema_name_), + PROTOBUF_FIELD_OFFSET(::greptime::v1::TableName, _impl_.table_name_), + ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::AffectedRows, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -348,13 +372,14 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 37, -1, -1, sizeof(::greptime::v1::AuthHeader)}, { 46, -1, -1, sizeof(::greptime::v1::Basic)}, { 54, -1, -1, sizeof(::greptime::v1::Token)}, - { 61, -1, -1, sizeof(::greptime::v1::AffectedRows)}, - { 68, -1, -1, sizeof(::greptime::v1::Metrics)}, - { 75, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, - { 83, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, - { 92, -1, -1, sizeof(::greptime::v1::Decimal128)}, - { 100, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, - { 108, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, + { 61, -1, -1, sizeof(::greptime::v1::TableName)}, + { 70, -1, -1, sizeof(::greptime::v1::AffectedRows)}, + { 77, -1, -1, sizeof(::greptime::v1::Metrics)}, + { 84, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, + { 92, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, + { 101, -1, -1, sizeof(::greptime::v1::Decimal128)}, + { 109, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, + { 117, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -365,6 +390,7 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_AuthHeader_default_instance_._instance, &::greptime::v1::_Basic_default_instance_._instance, &::greptime::v1::_Token_default_instance_._instance, + &::greptime::v1::_TableName_default_instance_._instance, &::greptime::v1::_AffectedRows_default_instance_._instance, &::greptime::v1::_Metrics_default_instance_._instance, &::greptime::v1::_FlightMetadata_default_instance_._instance, @@ -389,42 +415,43 @@ const char descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto[] PROTOBUF_S "ime.v1.BasicH\000\022#\n\005token\030\002 \001(\0132\022.greptime" ".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u" "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token" - "\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005value" - "\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Fl" - "ightMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.gr" - "eptime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132" - "\024.greptime.v1.Metrics\"I\n\024IntervalMonthDa" - "yNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013n" - "anoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001" - "(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtensio" - "n\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v1.De" - "cimalTypeExtensionH\000B\n\n\010type_ext\"8\n\024Deci" - "malTypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005s" - "cale\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005F" - "IELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType" - "\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005IN" - "T32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022" - "\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007" - "FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DAT" - "E\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022" - "\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_" - "MICROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022" - "\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024" - "\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020" - "\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_D" - "AY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023" - "\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISEC" - "OND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURAT" - "ION_NANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.g" - "reptime.v1B\006CommonZ5github.com/GreptimeT" - "eam/greptime-proto/go/greptime/v1b\006proto" - "3" + "\022\r\n\005token\030\001 \001(\t\"J\n\tTableName\022\024\n\014catalog_" + "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable" + "_name\030\003 \001(\t\"\035\n\014AffectedRows\022\r\n\005value\030\001 \001" + "(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Flight" + "Metadata\0220\n\raffected_rows\030\001 \001(\0132\031.grepti" + "me.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132\024.gr" + "eptime.v1.Metrics\"I\n\024IntervalMonthDayNan" + "o\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanos" + "econds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n" + "\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n" + "\014decimal_type\030\001 \001(\0132!.greptime.v1.Decima" + "lTypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalT" + "ypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale" + "\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD" + "\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType\022\013\n\007" + "BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020" + "\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006U" + "INT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOA" + "T64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022" + "\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025T" + "IMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICR" + "OSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013T" + "IME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TI" + "ME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n" + "\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_T" + "IME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DU" + "RATION_SECOND\020\032\022\030\n\024DURATION_MILLISECOND\020" + "\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURATION_" + "NANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.grept" + "ime.v1B\006CommonZ5github.com/GreptimeTeam/" + "greptime-proto/go/greptime/v1b\006proto3" ; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { - false, false, 1721, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, + false, false, 1797, descriptor_table_protodef_greptime_2fv1_2fcommon_2eproto, "greptime/v1/common.proto", - &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 14, + &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, nullptr, 0, 15, schemas, file_default_instances, TableStruct_greptime_2fv1_2fcommon_2eproto::offsets, file_level_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto, file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto, @@ -2159,6 +2186,309 @@ ::PROTOBUF_NAMESPACE_ID::Metadata Token::GetMetadata() const { // =================================================================== +class TableName::_Internal { + public: +}; + +TableName::TableName(::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.TableName) +} +TableName::TableName(const TableName& from) + : ::PROTOBUF_NAMESPACE_ID::Message() { + TableName* const _this = this; (void)_this; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , /*decltype(_impl_._cached_size_)*/{}}; + + _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_catalog_name().empty()) { + _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), + _this->GetArenaForAllocation()); + } + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_schema_name().empty()) { + _this->_impl_.schema_name_.Set(from._internal_schema_name(), + _this->GetArenaForAllocation()); + } + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (!from._internal_table_name().empty()) { + _this->_impl_.table_name_.Set(from._internal_table_name(), + _this->GetArenaForAllocation()); + } + // @@protoc_insertion_point(copy_constructor:greptime.v1.TableName) +} + +inline void TableName::SharedCtor( + ::_pb::Arena* arena, bool is_message_owned) { + (void)arena; + (void)is_message_owned; + new (&_impl_) Impl_{ + decltype(_impl_.catalog_name_){} + , decltype(_impl_.schema_name_){} + , decltype(_impl_.table_name_){} + , /*decltype(_impl_._cached_size_)*/{} + }; + _impl_.catalog_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.schema_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.InitDefault(); + #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + _impl_.table_name_.Set("", GetArenaForAllocation()); + #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING +} + +TableName::~TableName() { + // @@protoc_insertion_point(destructor:greptime.v1.TableName) + if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { + (void)arena; + return; + } + SharedDtor(); +} + +inline void TableName::SharedDtor() { + GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); + _impl_.catalog_name_.Destroy(); + _impl_.schema_name_.Destroy(); + _impl_.table_name_.Destroy(); +} + +void TableName::SetCachedSize(int size) const { + _impl_._cached_size_.Set(size); +} + +void TableName::Clear() { +// @@protoc_insertion_point(message_clear_start:greptime.v1.TableName) + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + _impl_.catalog_name_.ClearToEmpty(); + _impl_.schema_name_.ClearToEmpty(); + _impl_.table_name_.ClearToEmpty(); + _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); +} + +const char* TableName::_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) { + // string catalog_name = 1; + case 1: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { + auto str = _internal_mutable_catalog_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TableName.catalog_name")); + } else + goto handle_unusual; + continue; + // string schema_name = 2; + case 2: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { + auto str = _internal_mutable_schema_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TableName.schema_name")); + } else + goto handle_unusual; + continue; + // string table_name = 3; + case 3: + if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { + auto str = _internal_mutable_table_name(); + ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); + CHK_(ptr); + CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.TableName.table_name")); + } 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* TableName::_InternalSerialize( + uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { + // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.TableName) + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.TableName.catalog_name"); + target = stream->WriteStringMaybeAliased( + 1, this->_internal_catalog_name(), target); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.TableName.schema_name"); + target = stream->WriteStringMaybeAliased( + 2, this->_internal_schema_name(), target); + } + + // string table_name = 3; + if (!this->_internal_table_name().empty()) { + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( + this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, + "greptime.v1.TableName.table_name"); + target = stream->WriteStringMaybeAliased( + 3, this->_internal_table_name(), 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.TableName) + return target; +} + +size_t TableName::ByteSizeLong() const { +// @@protoc_insertion_point(message_byte_size_start:greptime.v1.TableName) + size_t total_size = 0; + + uint32_t cached_has_bits = 0; + // Prevent compiler warnings about cached_has_bits being unused + (void) cached_has_bits; + + // string catalog_name = 1; + if (!this->_internal_catalog_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_catalog_name()); + } + + // string schema_name = 2; + if (!this->_internal_schema_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_schema_name()); + } + + // string table_name = 3; + if (!this->_internal_table_name().empty()) { + total_size += 1 + + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( + this->_internal_table_name()); + } + + return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); +} + +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TableName::_class_data_ = { + ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, + TableName::MergeImpl +}; +const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TableName::GetClassData() const { return &_class_data_; } + + +void TableName::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.TableName) + GOOGLE_DCHECK_NE(&from, _this); + uint32_t cached_has_bits = 0; + (void) cached_has_bits; + + if (!from._internal_catalog_name().empty()) { + _this->_internal_set_catalog_name(from._internal_catalog_name()); + } + if (!from._internal_schema_name().empty()) { + _this->_internal_set_schema_name(from._internal_schema_name()); + } + if (!from._internal_table_name().empty()) { + _this->_internal_set_table_name(from._internal_table_name()); + } + _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); +} + +void TableName::CopyFrom(const TableName& from) { +// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.TableName) + if (&from == this) return; + Clear(); + MergeFrom(from); +} + +bool TableName::IsInitialized() const { + return true; +} + +void TableName::InternalSwap(TableName* other) { + using std::swap; + auto* lhs_arena = GetArenaForAllocation(); + auto* rhs_arena = other->GetArenaForAllocation(); + _internal_metadata_.InternalSwap(&other->_internal_metadata_); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.catalog_name_, lhs_arena, + &other->_impl_.catalog_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.schema_name_, lhs_arena, + &other->_impl_.schema_name_, rhs_arena + ); + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( + &_impl_.table_name_, lhs_arena, + &other->_impl_.table_name_, rhs_arena + ); +} + +::PROTOBUF_NAMESPACE_ID::Metadata TableName::GetMetadata() const { + return ::_pbi::AssignDescriptors( + &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, + file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]); +} + +// =================================================================== + class AffectedRows::_Internal { public: }; @@ -2332,7 +2662,7 @@ void AffectedRows::InternalSwap(AffectedRows* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AffectedRows::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[7]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]); } // =================================================================== @@ -2530,7 +2860,7 @@ void Metrics::InternalSwap(Metrics* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Metrics::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[8]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]); } // =================================================================== @@ -2769,7 +3099,7 @@ void FlightMetadata::InternalSwap(FlightMetadata* other) { ::PROTOBUF_NAMESPACE_ID::Metadata FlightMetadata::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[9]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]); } // =================================================================== @@ -3004,7 +3334,7 @@ void IntervalMonthDayNano::InternalSwap(IntervalMonthDayNano* other) { ::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[10]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[11]); } // =================================================================== @@ -3215,7 +3545,7 @@ void Decimal128::InternalSwap(Decimal128* other) { ::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[11]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[12]); } // =================================================================== @@ -3462,7 +3792,7 @@ void ColumnDataTypeExtension::InternalSwap(ColumnDataTypeExtension* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[12]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]); } // =================================================================== @@ -3673,7 +4003,7 @@ void DecimalTypeExtension::InternalSwap(DecimalTypeExtension* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fcommon_2eproto[13]); + file_level_metadata_greptime_2fv1_2fcommon_2eproto[14]); } // @@protoc_insertion_point(namespace_scope) @@ -3708,6 +4038,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::Token* Arena::CreateMaybeMessage< ::greptime::v1::Token >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::Token >(arena); } +template<> PROTOBUF_NOINLINE ::greptime::v1::TableName* +Arena::CreateMaybeMessage< ::greptime::v1::TableName >(Arena* arena) { + return Arena::CreateMessageInternal< ::greptime::v1::TableName >(arena); +} template<> PROTOBUF_NOINLINE ::greptime::v1::AffectedRows* Arena::CreateMaybeMessage< ::greptime::v1::AffectedRows >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::AffectedRows >(arena); diff --git a/c++/greptime/v1/common.pb.h b/c++/greptime/v1/common.pb.h index 79727844..75cbd152 100644 --- a/c++/greptime/v1/common.pb.h +++ b/c++/greptime/v1/common.pb.h @@ -89,6 +89,9 @@ extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_; class Status; struct StatusDefaultTypeInternal; extern StatusDefaultTypeInternal _Status_default_instance_; +class TableName; +struct TableNameDefaultTypeInternal; +extern TableNameDefaultTypeInternal _TableName_default_instance_; class Token; struct TokenDefaultTypeInternal; extern TokenDefaultTypeInternal _Token_default_instance_; @@ -108,6 +111,7 @@ template<> ::greptime::v1::RequestHeader* Arena::CreateMaybeMessage<::greptime:: template<> ::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse>(Arena*); template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*); template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(Arena*); +template<> ::greptime::v1::TableName* Arena::CreateMaybeMessage<::greptime::v1::TableName>(Arena*); template<> ::greptime::v1::Token* Arena::CreateMaybeMessage<::greptime::v1::Token>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { @@ -1309,6 +1313,191 @@ class Token final : }; // ------------------------------------------------------------------- +class TableName final : + public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.TableName) */ { + public: + inline TableName() : TableName(nullptr) {} + ~TableName() override; + explicit PROTOBUF_CONSTEXPR TableName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); + + TableName(const TableName& from); + TableName(TableName&& from) noexcept + : TableName() { + *this = ::std::move(from); + } + + inline TableName& operator=(const TableName& from) { + CopyFrom(from); + return *this; + } + inline TableName& operator=(TableName&& 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 TableName& default_instance() { + return *internal_default_instance(); + } + static inline const TableName* internal_default_instance() { + return reinterpret_cast( + &_TableName_default_instance_); + } + static constexpr int kIndexInFileMessages = + 7; + + friend void swap(TableName& a, TableName& b) { + a.Swap(&b); + } + inline void Swap(TableName* 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(TableName* other) { + if (other == this) return; + GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); + InternalSwap(other); + } + + // implements Message ---------------------------------------------- + + TableName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { + return CreateMaybeMessage(arena); + } + using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; + void CopyFrom(const TableName& from); + using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; + void MergeFrom( const TableName& from) { + TableName::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(TableName* other); + + private: + friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; + static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { + return "greptime.v1.TableName"; + } + protected: + explicit TableName(::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 { + kCatalogNameFieldNumber = 1, + kSchemaNameFieldNumber = 2, + kTableNameFieldNumber = 3, + }; + // string catalog_name = 1; + void clear_catalog_name(); + const std::string& catalog_name() const; + template + void set_catalog_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_catalog_name(); + PROTOBUF_NODISCARD std::string* release_catalog_name(); + void set_allocated_catalog_name(std::string* catalog_name); + private: + const std::string& _internal_catalog_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); + std::string* _internal_mutable_catalog_name(); + public: + + // string schema_name = 2; + void clear_schema_name(); + const std::string& schema_name() const; + template + void set_schema_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_schema_name(); + PROTOBUF_NODISCARD std::string* release_schema_name(); + void set_allocated_schema_name(std::string* schema_name); + private: + const std::string& _internal_schema_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); + std::string* _internal_mutable_schema_name(); + public: + + // string table_name = 3; + void clear_table_name(); + const std::string& table_name() const; + template + void set_table_name(ArgT0&& arg0, ArgT... args); + std::string* mutable_table_name(); + PROTOBUF_NODISCARD std::string* release_table_name(); + void set_allocated_table_name(std::string* table_name); + private: + const std::string& _internal_table_name() const; + inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); + std::string* _internal_mutable_table_name(); + public: + + // @@protoc_insertion_point(class_scope:greptime.v1.TableName) + private: + class _Internal; + + template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; + typedef void InternalArenaConstructable_; + typedef void DestructorSkippable_; + struct Impl_ { + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; + ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; + mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; + }; + union { Impl_ _impl_; }; + friend struct ::TableStruct_greptime_2fv1_2fcommon_2eproto; +}; +// ------------------------------------------------------------------- + class AffectedRows final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AffectedRows) */ { public: @@ -1357,7 +1546,7 @@ class AffectedRows final : &_AffectedRows_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 8; friend void swap(AffectedRows& a, AffectedRows& b) { a.Swap(&b); @@ -1505,7 +1694,7 @@ class Metrics final : &_Metrics_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 9; friend void swap(Metrics& a, Metrics& b) { a.Swap(&b); @@ -1658,7 +1847,7 @@ class FlightMetadata final : &_FlightMetadata_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 10; friend void swap(FlightMetadata& a, FlightMetadata& b) { a.Swap(&b); @@ -1835,7 +2024,7 @@ class IntervalMonthDayNano final : &_IntervalMonthDayNano_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 11; friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) { a.Swap(&b); @@ -2005,7 +2194,7 @@ class Decimal128 final : &_Decimal128_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 12; friend void swap(Decimal128& a, Decimal128& b) { a.Swap(&b); @@ -2169,7 +2358,7 @@ class ColumnDataTypeExtension final : &_ColumnDataTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 13; friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) { a.Swap(&b); @@ -2338,7 +2527,7 @@ class DecimalTypeExtension final : &_DecimalTypeExtension_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 14; friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) { a.Swap(&b); @@ -3268,6 +3457,160 @@ inline void Token::set_allocated_token(std::string* token) { // ------------------------------------------------------------------- +// TableName + +// string catalog_name = 1; +inline void TableName::clear_catalog_name() { + _impl_.catalog_name_.ClearToEmpty(); +} +inline const std::string& TableName::catalog_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.TableName.catalog_name) + return _internal_catalog_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TableName::set_catalog_name(ArgT0&& arg0, ArgT... args) { + + _impl_.catalog_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.TableName.catalog_name) +} +inline std::string* TableName::mutable_catalog_name() { + std::string* _s = _internal_mutable_catalog_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.TableName.catalog_name) + return _s; +} +inline const std::string& TableName::_internal_catalog_name() const { + return _impl_.catalog_name_.Get(); +} +inline void TableName::_internal_set_catalog_name(const std::string& value) { + + _impl_.catalog_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* TableName::_internal_mutable_catalog_name() { + + return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* TableName::release_catalog_name() { + // @@protoc_insertion_point(field_release:greptime.v1.TableName.catalog_name) + return _impl_.catalog_name_.Release(); +} +inline void TableName::set_allocated_catalog_name(std::string* catalog_name) { + if (catalog_name != nullptr) { + + } else { + + } + _impl_.catalog_name_.SetAllocated(catalog_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.catalog_name_.IsDefault()) { + _impl_.catalog_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.TableName.catalog_name) +} + +// string schema_name = 2; +inline void TableName::clear_schema_name() { + _impl_.schema_name_.ClearToEmpty(); +} +inline const std::string& TableName::schema_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.TableName.schema_name) + return _internal_schema_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TableName::set_schema_name(ArgT0&& arg0, ArgT... args) { + + _impl_.schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.TableName.schema_name) +} +inline std::string* TableName::mutable_schema_name() { + std::string* _s = _internal_mutable_schema_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.TableName.schema_name) + return _s; +} +inline const std::string& TableName::_internal_schema_name() const { + return _impl_.schema_name_.Get(); +} +inline void TableName::_internal_set_schema_name(const std::string& value) { + + _impl_.schema_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* TableName::_internal_mutable_schema_name() { + + return _impl_.schema_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* TableName::release_schema_name() { + // @@protoc_insertion_point(field_release:greptime.v1.TableName.schema_name) + return _impl_.schema_name_.Release(); +} +inline void TableName::set_allocated_schema_name(std::string* schema_name) { + if (schema_name != nullptr) { + + } else { + + } + _impl_.schema_name_.SetAllocated(schema_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.schema_name_.IsDefault()) { + _impl_.schema_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.TableName.schema_name) +} + +// string table_name = 3; +inline void TableName::clear_table_name() { + _impl_.table_name_.ClearToEmpty(); +} +inline const std::string& TableName::table_name() const { + // @@protoc_insertion_point(field_get:greptime.v1.TableName.table_name) + return _internal_table_name(); +} +template +inline PROTOBUF_ALWAYS_INLINE +void TableName::set_table_name(ArgT0&& arg0, ArgT... args) { + + _impl_.table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); + // @@protoc_insertion_point(field_set:greptime.v1.TableName.table_name) +} +inline std::string* TableName::mutable_table_name() { + std::string* _s = _internal_mutable_table_name(); + // @@protoc_insertion_point(field_mutable:greptime.v1.TableName.table_name) + return _s; +} +inline const std::string& TableName::_internal_table_name() const { + return _impl_.table_name_.Get(); +} +inline void TableName::_internal_set_table_name(const std::string& value) { + + _impl_.table_name_.Set(value, GetArenaForAllocation()); +} +inline std::string* TableName::_internal_mutable_table_name() { + + return _impl_.table_name_.Mutable(GetArenaForAllocation()); +} +inline std::string* TableName::release_table_name() { + // @@protoc_insertion_point(field_release:greptime.v1.TableName.table_name) + return _impl_.table_name_.Release(); +} +inline void TableName::set_allocated_table_name(std::string* table_name) { + if (table_name != nullptr) { + + } else { + + } + _impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation()); +#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING + if (_impl_.table_name_.IsDefault()) { + _impl_.table_name_.Set("", GetArenaForAllocation()); + } +#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING + // @@protoc_insertion_point(field_set_allocated:greptime.v1.TableName.table_name) +} + +// ------------------------------------------------------------------- + // AffectedRows // uint32 value = 1; @@ -3796,6 +4139,8 @@ inline void DecimalTypeExtension::set_scale(int32_t value) { // ------------------------------------------------------------------- +// ------------------------------------------------------------------- + // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/ddl.pb.cc b/c++/greptime/v1/ddl.pb.cc index 228c94f8..3c47ac4f 100644 --- a/c++/greptime/v1/ddl.pb.cc +++ b/c++/greptime/v1/ddl.pb.cc @@ -69,20 +69,6 @@ struct CreateFlowTaskExprDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlowTaskExprDefaultTypeInternal _CreateFlowTaskExpr_default_instance_; -PROTOBUF_CONSTEXPR SchemaScopedTableName::SchemaScopedTableName( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct SchemaScopedTableNameDefaultTypeInternal { - PROTOBUF_CONSTEXPR SchemaScopedTableNameDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~SchemaScopedTableNameDefaultTypeInternal() {} - union { - SchemaScopedTableName _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SchemaScopedTableNameDefaultTypeInternal _SchemaScopedTableName_default_instance_; PROTOBUF_CONSTEXPR DropFlowTaskExpr::DropFlowTaskExpr( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} @@ -337,7 +323,7 @@ struct AddColumnLocationDefaultTypeInternal { PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_; } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[21]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[20]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fddl_2eproto = nullptr; @@ -383,14 +369,6 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.sql_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.task_options_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::SchemaScopedTableName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::SchemaScopedTableName, _impl_.schema_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::SchemaScopedTableName, _impl_.table_name_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowTaskExpr, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -557,31 +535,29 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 0, -1, -1, sizeof(::greptime::v1::DdlRequest)}, { 14, 22, -1, sizeof(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse)}, { 24, -1, -1, sizeof(::greptime::v1::CreateFlowTaskExpr)}, - { 40, -1, -1, sizeof(::greptime::v1::SchemaScopedTableName)}, - { 48, -1, -1, sizeof(::greptime::v1::DropFlowTaskExpr)}, - { 56, 64, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, - { 66, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, - { 83, -1, -1, sizeof(::greptime::v1::AlterExpr)}, - { 96, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, - { 107, 115, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, - { 117, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, - { 127, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, - { 137, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, - { 146, -1, -1, sizeof(::greptime::v1::AddColumns)}, - { 153, -1, -1, sizeof(::greptime::v1::DropColumns)}, - { 160, -1, -1, sizeof(::greptime::v1::RenameTable)}, - { 167, -1, -1, sizeof(::greptime::v1::AddColumn)}, - { 175, -1, -1, sizeof(::greptime::v1::DropColumn)}, - { 182, -1, -1, sizeof(::greptime::v1::TableId)}, - { 189, -1, -1, sizeof(::greptime::v1::ColumnDef)}, - { 202, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, + { 40, -1, -1, sizeof(::greptime::v1::DropFlowTaskExpr)}, + { 48, 56, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, + { 58, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, + { 75, -1, -1, sizeof(::greptime::v1::AlterExpr)}, + { 88, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, + { 99, 107, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, + { 109, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, + { 119, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, + { 129, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, + { 138, -1, -1, sizeof(::greptime::v1::AddColumns)}, + { 145, -1, -1, sizeof(::greptime::v1::DropColumns)}, + { 152, -1, -1, sizeof(::greptime::v1::RenameTable)}, + { 159, -1, -1, sizeof(::greptime::v1::AddColumn)}, + { 167, -1, -1, sizeof(::greptime::v1::DropColumn)}, + { 174, -1, -1, sizeof(::greptime::v1::TableId)}, + { 181, -1, -1, sizeof(::greptime::v1::ColumnDef)}, + { 194, -1, -1, sizeof(::greptime::v1::AddColumnLocation)}, }; static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::_DdlRequest_default_instance_._instance, &::greptime::v1::_CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateFlowTaskExpr_default_instance_._instance, - &::greptime::v1::_SchemaScopedTableName_default_instance_._instance, &::greptime::v1::_DropFlowTaskExpr_default_instance_._instance, &::greptime::v1::_CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateTableExpr_default_instance_._instance, @@ -613,80 +589,78 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT ".TruncateTableExprH\000\022;\n\020create_flow_task" "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" "\000\0227\n\016drop_flow_task\030\t \001(\0132\035.greptime.v1." - "DropFlowTaskExprH\000B\006\n\004expr\"\233\003\n\022CreateFlo" + "DropFlowTaskExprH\000B\006\n\004expr\"\203\003\n\022CreateFlo" "wTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_" - "name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003(\0132\"" - ".greptime.v1.SchemaScopedTableName\022;\n\017si" - "nk_table_name\030\004 \001(\0132\".greptime.v1.Schema" - "ScopedTableName\022\022\n\nor_replace\030\005 \001(\010\022\034\n\024c" - "reate_if_not_exists\030\006 \001(\010\022\023\n\013expire_when" - "\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t\022\013\n\003sql\030\t \001(\t\022F\n\014" - "task_options\030\n \003(\01320.greptime.v1.CreateF" - "lowTaskExpr.TaskOptionsEntry\0322\n\020TaskOpti" - "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" - "\"@\n\025SchemaScopedTableName\022\023\n\013schema_name" - "\030\001 \001(\t\022\022\n\ntable_name\030\002 \001(\t\";\n\020DropFlowTa" - "skExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_nam" - "e\030\002 \001(\t\"\207\003\n\017CreateTableExpr\022\024\n\014catalog_n" - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" - "name\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022+\n\013column_defs\030" - "\005 \003(\0132\026.greptime.v1.ColumnDef\022\022\n\ntime_in" - "dex\030\006 \001(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024creat" - "e_if_not_exists\030\010 \001(\010\022E\n\rtable_options\030\t" - " \003(\0132..greptime.v1.CreateTableExpr.Table" - "OptionsEntry\022&\n\010table_id\030\n \001(\0132\024.greptim" - "e.v1.TableId\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOpt" - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" - "\001\"\346\001\n\tAlterExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n" - "\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022." - "\n\013add_columns\030\004 \001(\0132\027.greptime.v1.AddCol" - "umnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030.greptime." - "v1.DropColumnsH\000\0220\n\014rename_table\030\006 \001(\0132\030" - ".greptime.v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rD" - "ropTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc" - "hema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010t" - "able_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016d" - "rop_if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseEx" + "name\030\002 \001(\t\0222\n\022source_table_names\030\003 \003(\0132\026" + ".greptime.v1.TableName\022/\n\017sink_table_nam" + "e\030\004 \001(\0132\026.greptime.v1.TableName\022\022\n\nor_re" + "place\030\005 \001(\010\022\034\n\024create_if_not_exists\030\006 \001(" + "\010\022\023\n\013expire_when\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t\022" + "\013\n\003sql\030\t \001(\t\022F\n\014task_options\030\n \003(\01320.gre" + "ptime.v1.CreateFlowTaskExpr.TaskOptionsE" + "ntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\";\n\020DropFlowTaskExpr\022\024\n\014" + "catalog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003" + "\n\017CreateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022" + "\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t" + "\022\014\n\004desc\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.gr" + "eptime.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022" + "\024\n\014primary_keys\030\007 \003(\t\022\034\n\024create_if_not_e" + "xists\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..gre" + "ptime.v1.CreateTableExpr.TableOptionsEnt" + "ry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Table" + "Id\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022" + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlte" + "rExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na" + "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_colu" + "mns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014" + "drop_columns\030\005 \001(\0132\030.greptime.v1.DropCol" + "umnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime." + "v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableEx" "pr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030" - "\002 \001(\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007o" - "ptions\030\004 \003(\0132,.greptime.v1.CreateDatabas" - "eExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTa" - "bleExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_" - "name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_" - "id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020DropDa" - "tabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sche" - "ma_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n" - "\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026.grept" - "ime.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_" - "columns\030\001 \003(\0132\027.greptime.v1.DropColumn\"%" - "\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n" - "\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptim" - "e.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.grept" - "ime.v1.AddColumnLocation\"\032\n\nDropColumn\022\014" - "\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\t" - "ColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001" - "(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is_nu" - "llable\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014" - "\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Se" - "manticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_" - "extension\030\007 \001(\0132$.greptime.v1.ColumnData" - "TypeExtension\"\230\001\n\021AddColumnLocation\022B\n\rl" - "ocation_type\030\001 \001(\0162+.greptime.v1.AddColu" - "mnLocation.LocationType\022\031\n\021after_column_" - "name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n" - "\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github." - "com/GreptimeTeam/greptime-proto/go/grept" - "ime/v1b\006proto3" + "\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 " + "\001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exi" + "sts\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014cata" + "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024c" + "reate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003" + "(\0132,.greptime.v1.CreateDatabaseExpr.Opti" + "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n" + "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" + "\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024" + ".greptime.v1.TableId\"U\n\020DropDatabaseExpr" + "\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 " + "\001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumn" + "s\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.Add" + "Column\"<\n\013DropColumns\022-\n\014drop_columns\030\001 " + "\003(\0132\027.greptime.v1.DropColumn\"%\n\013RenameTa" + "ble\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn" + "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum" + "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add" + "ColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001" + "(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022" + "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept" + "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001" + "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant" + "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType" + "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030" + "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens" + "ion\"\230\001\n\021AddColumnLocation\022B\n\rlocation_ty" + "pe\030\001 \001(\0162+.greptime.v1.AddColumnLocation" + ".LocationType\022\031\n\021after_column_name\030\002 \001(\t" + "\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL" + "\n\016io.greptime.v1B\003DdlZ5github.com/Grepti" + "meTeam/greptime-proto/go/greptime/v1b\006pr" + "oto3" ; 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, 3014, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto, + false, false, 2924, 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, 21, + &descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 20, 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, @@ -1334,13 +1308,22 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse:: class CreateFlowTaskExpr::_Internal { public: - static const ::greptime::v1::SchemaScopedTableName& sink_table_name(const CreateFlowTaskExpr* msg); + static const ::greptime::v1::TableName& sink_table_name(const CreateFlowTaskExpr* msg); }; -const ::greptime::v1::SchemaScopedTableName& +const ::greptime::v1::TableName& CreateFlowTaskExpr::_Internal::sink_table_name(const CreateFlowTaskExpr* msg) { return *msg->_impl_.sink_table_name_; } +void CreateFlowTaskExpr::clear_source_table_names() { + _impl_.source_table_names_.Clear(); +} +void CreateFlowTaskExpr::clear_sink_table_name() { + if (GetArenaForAllocation() == nullptr && _impl_.sink_table_name_ != nullptr) { + delete _impl_.sink_table_name_; + } + _impl_.sink_table_name_ = nullptr; +} CreateFlowTaskExpr::CreateFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned) : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { @@ -1409,7 +1392,7 @@ CreateFlowTaskExpr::CreateFlowTaskExpr(const CreateFlowTaskExpr& from) _this->GetArenaForAllocation()); } if (from._internal_has_sink_table_name()) { - _this->_impl_.sink_table_name_ = new ::greptime::v1::SchemaScopedTableName(*from._impl_.sink_table_name_); + _this->_impl_.sink_table_name_ = new ::greptime::v1::TableName(*from._impl_.sink_table_name_); } ::memcpy(&_impl_.or_replace_, &from._impl_.or_replace_, static_cast(reinterpret_cast(&_impl_.create_if_not_exists_) - @@ -1536,7 +1519,7 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; - // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + // repeated .greptime.v1.TableName source_table_names = 3; case 3: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { ptr -= 1; @@ -1549,7 +1532,7 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon } else goto handle_unusual; continue; - // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + // .greptime.v1.TableName sink_table_name = 4; case 4: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 34)) { ptr = ctx->ParseMessage(_internal_mutable_sink_table_name(), ptr); @@ -1665,7 +1648,7 @@ uint8_t* CreateFlowTaskExpr::_InternalSerialize( 2, this->_internal_task_name(), target); } - // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + // repeated .greptime.v1.TableName source_table_names = 3; for (unsigned i = 0, n = static_cast(this->_internal_source_table_names_size()); i < n; i++) { const auto& repfield = this->_internal_source_table_names(i); @@ -1673,7 +1656,7 @@ uint8_t* CreateFlowTaskExpr::_InternalSerialize( InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream); } - // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + // .greptime.v1.TableName sink_table_name = 4; if (this->_internal_has_sink_table_name()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(4, _Internal::sink_table_name(this), @@ -1768,7 +1751,7 @@ size_t CreateFlowTaskExpr::ByteSizeLong() const { // Prevent compiler warnings about cached_has_bits being unused (void) cached_has_bits; - // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + // repeated .greptime.v1.TableName source_table_names = 3; total_size += 1UL * this->_internal_source_table_names_size(); for (const auto& msg : this->_impl_.source_table_names_) { total_size += @@ -1819,7 +1802,7 @@ size_t CreateFlowTaskExpr::ByteSizeLong() const { this->_internal_sql()); } - // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + // .greptime.v1.TableName sink_table_name = 4; if (this->_internal_has_sink_table_name()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( @@ -1872,7 +1855,7 @@ void CreateFlowTaskExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, con _this->_internal_set_sql(from._internal_sql()); } if (from._internal_has_sink_table_name()) { - _this->_internal_mutable_sink_table_name()->::greptime::v1::SchemaScopedTableName::MergeFrom( + _this->_internal_mutable_sink_table_name()->::greptime::v1::TableName::MergeFrom( from._internal_sink_table_name()); } if (from._internal_or_replace() != 0) { @@ -1938,259 +1921,6 @@ ::PROTOBUF_NAMESPACE_ID::Metadata CreateFlowTaskExpr::GetMetadata() const { // =================================================================== -class SchemaScopedTableName::_Internal { - public: -}; - -SchemaScopedTableName::SchemaScopedTableName(::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.SchemaScopedTableName) -} -SchemaScopedTableName::SchemaScopedTableName(const SchemaScopedTableName& from) - : ::PROTOBUF_NAMESPACE_ID::Message() { - SchemaScopedTableName* const _this = this; (void)_this; - new (&_impl_) Impl_{ - decltype(_impl_.schema_name_){} - , decltype(_impl_.table_name_){} - , /*decltype(_impl_._cached_size_)*/{}}; - - _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); - _impl_.schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_schema_name().empty()) { - _this->_impl_.schema_name_.Set(from._internal_schema_name(), - _this->GetArenaForAllocation()); - } - _impl_.table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_table_name().empty()) { - _this->_impl_.table_name_.Set(from._internal_table_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.SchemaScopedTableName) -} - -inline void SchemaScopedTableName::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.schema_name_){} - , decltype(_impl_.table_name_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -SchemaScopedTableName::~SchemaScopedTableName() { - // @@protoc_insertion_point(destructor:greptime.v1.SchemaScopedTableName) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void SchemaScopedTableName::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.schema_name_.Destroy(); - _impl_.table_name_.Destroy(); -} - -void SchemaScopedTableName::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void SchemaScopedTableName::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.SchemaScopedTableName) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.schema_name_.ClearToEmpty(); - _impl_.table_name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* SchemaScopedTableName::_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) { - // string schema_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_schema_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.SchemaScopedTableName.schema_name")); - } else - goto handle_unusual; - continue; - // string table_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_table_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.SchemaScopedTableName.table_name")); - } 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* SchemaScopedTableName::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.SchemaScopedTableName) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string schema_name = 1; - if (!this->_internal_schema_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.SchemaScopedTableName.schema_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_schema_name(), target); - } - - // string table_name = 2; - if (!this->_internal_table_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.SchemaScopedTableName.table_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_table_name(), 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.SchemaScopedTableName) - return target; -} - -size_t SchemaScopedTableName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.SchemaScopedTableName) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string schema_name = 1; - if (!this->_internal_schema_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_schema_name()); - } - - // string table_name = 2; - if (!this->_internal_table_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_table_name()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SchemaScopedTableName::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - SchemaScopedTableName::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SchemaScopedTableName::GetClassData() const { return &_class_data_; } - - -void SchemaScopedTableName::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.SchemaScopedTableName) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_schema_name().empty()) { - _this->_internal_set_schema_name(from._internal_schema_name()); - } - if (!from._internal_table_name().empty()) { - _this->_internal_set_table_name(from._internal_table_name()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void SchemaScopedTableName::CopyFrom(const SchemaScopedTableName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.SchemaScopedTableName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool SchemaScopedTableName::IsInitialized() const { - return true; -} - -void SchemaScopedTableName::InternalSwap(SchemaScopedTableName* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.schema_name_, lhs_arena, - &other->_impl_.schema_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.table_name_, lhs_arena, - &other->_impl_.table_name_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata SchemaScopedTableName::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[3]); -} - -// =================================================================== - class DropFlowTaskExpr::_Internal { public: }; @@ -2439,7 +2169,7 @@ void DropFlowTaskExpr::InternalSwap(DropFlowTaskExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropFlowTaskExpr::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[4]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[3]); } // =================================================================== @@ -2453,7 +2183,7 @@ void CreateTableExpr_TableOptionsEntry_DoNotUse::MergeFrom(const CreateTableExpr ::PROTOBUF_NAMESPACE_ID::Metadata CreateTableExpr_TableOptionsEntry_DoNotUse::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[5]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[4]); } // =================================================================== @@ -3120,7 +2850,7 @@ void CreateTableExpr::InternalSwap(CreateTableExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateTableExpr::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[6]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[5]); } // =================================================================== @@ -3635,7 +3365,7 @@ void AlterExpr::InternalSwap(AlterExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AlterExpr::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[7]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[6]); } // =================================================================== @@ -4011,7 +3741,7 @@ void DropTableExpr::InternalSwap(DropTableExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropTableExpr::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[8]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[7]); } // =================================================================== @@ -4025,7 +3755,7 @@ void CreateDatabaseExpr_OptionsEntry_DoNotUse::MergeFrom(const CreateDatabaseExp ::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr_OptionsEntry_DoNotUse::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[9]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[8]); } // =================================================================== @@ -4373,7 +4103,7 @@ void CreateDatabaseExpr::InternalSwap(CreateDatabaseExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr::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[10]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[9]); } // =================================================================== @@ -4718,7 +4448,7 @@ void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::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[11]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[10]); } // =================================================================== @@ -4998,7 +4728,7 @@ void DropDatabaseExpr::InternalSwap(DropDatabaseExpr* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseExpr::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[12]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[11]); } // =================================================================== @@ -5183,7 +4913,7 @@ void AddColumns::InternalSwap(AddColumns* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::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[13]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[12]); } // =================================================================== @@ -5368,7 +5098,7 @@ void DropColumns::InternalSwap(DropColumns* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::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[14]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[13]); } // =================================================================== @@ -5571,7 +5301,7 @@ void RenameTable::InternalSwap(RenameTable* other) { ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::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[15]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[14]); } // =================================================================== @@ -5810,7 +5540,7 @@ void AddColumn::InternalSwap(AddColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::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[16]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[15]); } // =================================================================== @@ -6013,7 +5743,7 @@ void DropColumn::InternalSwap(DropColumn* other) { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::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[17]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[16]); } // =================================================================== @@ -6191,7 +5921,7 @@ void TableId::InternalSwap(TableId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TableId::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[18]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[17]); } // =================================================================== @@ -6626,7 +6356,7 @@ void ColumnDef::InternalSwap(ColumnDef* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::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[19]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[18]); } // =================================================================== @@ -6859,7 +6589,7 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::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[20]); + file_level_metadata_greptime_2fv1_2fddl_2eproto[19]); } // @@protoc_insertion_point(namespace_scope) @@ -6878,10 +6608,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::CreateFlowTaskExpr* Arena::CreateMaybeMessage< ::greptime::v1::CreateFlowTaskExpr >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::CreateFlowTaskExpr >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::SchemaScopedTableName* -Arena::CreateMaybeMessage< ::greptime::v1::SchemaScopedTableName >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::SchemaScopedTableName >(arena); -} template<> PROTOBUF_NOINLINE ::greptime::v1::DropFlowTaskExpr* Arena::CreateMaybeMessage< ::greptime::v1::DropFlowTaskExpr >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::DropFlowTaskExpr >(arena); diff --git a/c++/greptime/v1/ddl.pb.h b/c++/greptime/v1/ddl.pb.h index 968595db..f4667459 100644 --- a/c++/greptime/v1/ddl.pb.h +++ b/c++/greptime/v1/ddl.pb.h @@ -105,9 +105,6 @@ extern DropTableExprDefaultTypeInternal _DropTableExpr_default_instance_; class RenameTable; struct RenameTableDefaultTypeInternal; extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; -class SchemaScopedTableName; -struct SchemaScopedTableNameDefaultTypeInternal; -extern SchemaScopedTableNameDefaultTypeInternal _SchemaScopedTableName_default_instance_; class TableId; struct TableIdDefaultTypeInternal; extern TableIdDefaultTypeInternal _TableId_default_instance_; @@ -135,7 +132,6 @@ template<> ::greptime::v1::DropDatabaseExpr* Arena::CreateMaybeMessage<::greptim template<> ::greptime::v1::DropFlowTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::DropFlowTaskExpr>(Arena*); template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*); template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*); -template<> ::greptime::v1::SchemaScopedTableName* Arena::CreateMaybeMessage<::greptime::v1::SchemaScopedTableName>(Arena*); template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); PROTOBUF_NAMESPACE_CLOSE @@ -638,22 +634,22 @@ class CreateFlowTaskExpr final : kOrReplaceFieldNumber = 5, kCreateIfNotExistsFieldNumber = 6, }; - // repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + // repeated .greptime.v1.TableName source_table_names = 3; int source_table_names_size() const; private: int _internal_source_table_names_size() const; public: void clear_source_table_names(); - ::greptime::v1::SchemaScopedTableName* mutable_source_table_names(int index); - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >* + ::greptime::v1::TableName* mutable_source_table_names(int index); + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >* mutable_source_table_names(); private: - const ::greptime::v1::SchemaScopedTableName& _internal_source_table_names(int index) const; - ::greptime::v1::SchemaScopedTableName* _internal_add_source_table_names(); + const ::greptime::v1::TableName& _internal_source_table_names(int index) const; + ::greptime::v1::TableName* _internal_add_source_table_names(); public: - const ::greptime::v1::SchemaScopedTableName& source_table_names(int index) const; - ::greptime::v1::SchemaScopedTableName* add_source_table_names(); - const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >& + const ::greptime::v1::TableName& source_table_names(int index) const; + ::greptime::v1::TableName* add_source_table_names(); + const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >& source_table_names() const; // map task_options = 10; @@ -743,23 +739,23 @@ class CreateFlowTaskExpr final : std::string* _internal_mutable_sql(); public: - // .greptime.v1.SchemaScopedTableName sink_table_name = 4; + // .greptime.v1.TableName sink_table_name = 4; bool has_sink_table_name() const; private: bool _internal_has_sink_table_name() const; public: void clear_sink_table_name(); - const ::greptime::v1::SchemaScopedTableName& sink_table_name() const; - PROTOBUF_NODISCARD ::greptime::v1::SchemaScopedTableName* release_sink_table_name(); - ::greptime::v1::SchemaScopedTableName* mutable_sink_table_name(); - void set_allocated_sink_table_name(::greptime::v1::SchemaScopedTableName* sink_table_name); + const ::greptime::v1::TableName& sink_table_name() const; + PROTOBUF_NODISCARD ::greptime::v1::TableName* release_sink_table_name(); + ::greptime::v1::TableName* mutable_sink_table_name(); + void set_allocated_sink_table_name(::greptime::v1::TableName* sink_table_name); private: - const ::greptime::v1::SchemaScopedTableName& _internal_sink_table_name() const; - ::greptime::v1::SchemaScopedTableName* _internal_mutable_sink_table_name(); + const ::greptime::v1::TableName& _internal_sink_table_name() const; + ::greptime::v1::TableName* _internal_mutable_sink_table_name(); public: void unsafe_arena_set_allocated_sink_table_name( - ::greptime::v1::SchemaScopedTableName* sink_table_name); - ::greptime::v1::SchemaScopedTableName* unsafe_arena_release_sink_table_name(); + ::greptime::v1::TableName* sink_table_name); + ::greptime::v1::TableName* unsafe_arena_release_sink_table_name(); // bool or_replace = 5; void clear_or_replace(); @@ -787,7 +783,7 @@ class CreateFlowTaskExpr final : typedef void InternalArenaConstructable_; typedef void DestructorSkippable_; struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName > source_table_names_; + ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName > source_table_names_; ::PROTOBUF_NAMESPACE_ID::internal::MapField< CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse, std::string, std::string, @@ -798,7 +794,7 @@ class CreateFlowTaskExpr final : ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expire_when_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_; - ::greptime::v1::SchemaScopedTableName* sink_table_name_; + ::greptime::v1::TableName* sink_table_name_; bool or_replace_; bool create_if_not_exists_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; @@ -808,175 +804,6 @@ class CreateFlowTaskExpr final : }; // ------------------------------------------------------------------- -class SchemaScopedTableName final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.SchemaScopedTableName) */ { - public: - inline SchemaScopedTableName() : SchemaScopedTableName(nullptr) {} - ~SchemaScopedTableName() override; - explicit PROTOBUF_CONSTEXPR SchemaScopedTableName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - SchemaScopedTableName(const SchemaScopedTableName& from); - SchemaScopedTableName(SchemaScopedTableName&& from) noexcept - : SchemaScopedTableName() { - *this = ::std::move(from); - } - - inline SchemaScopedTableName& operator=(const SchemaScopedTableName& from) { - CopyFrom(from); - return *this; - } - inline SchemaScopedTableName& operator=(SchemaScopedTableName&& 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 SchemaScopedTableName& default_instance() { - return *internal_default_instance(); - } - static inline const SchemaScopedTableName* internal_default_instance() { - return reinterpret_cast( - &_SchemaScopedTableName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 3; - - friend void swap(SchemaScopedTableName& a, SchemaScopedTableName& b) { - a.Swap(&b); - } - inline void Swap(SchemaScopedTableName* 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(SchemaScopedTableName* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - SchemaScopedTableName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const SchemaScopedTableName& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const SchemaScopedTableName& from) { - SchemaScopedTableName::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(SchemaScopedTableName* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.SchemaScopedTableName"; - } - protected: - explicit SchemaScopedTableName(::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 { - kSchemaNameFieldNumber = 1, - kTableNameFieldNumber = 2, - }; - // string schema_name = 1; - void clear_schema_name(); - const std::string& schema_name() const; - template - void set_schema_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_schema_name(); - PROTOBUF_NODISCARD std::string* release_schema_name(); - void set_allocated_schema_name(std::string* schema_name); - private: - const std::string& _internal_schema_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); - std::string* _internal_mutable_schema_name(); - public: - - // string table_name = 2; - void clear_table_name(); - const std::string& table_name() const; - template - void set_table_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_table_name(); - PROTOBUF_NODISCARD std::string* release_table_name(); - void set_allocated_table_name(std::string* table_name); - private: - const std::string& _internal_table_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); - std::string* _internal_mutable_table_name(); - public: - - // @@protoc_insertion_point(class_scope:greptime.v1.SchemaScopedTableName) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto; -}; -// ------------------------------------------------------------------- - class DropFlowTaskExpr final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropFlowTaskExpr) */ { public: @@ -1025,7 +852,7 @@ class DropFlowTaskExpr final : &_DropFlowTaskExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 4; + 3; friend void swap(DropFlowTaskExpr& a, DropFlowTaskExpr& b) { a.Swap(&b); @@ -1222,7 +1049,7 @@ class CreateTableExpr final : &_CreateTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 6; + 5; friend void swap(CreateTableExpr& a, CreateTableExpr& b) { a.Swap(&b); @@ -1565,7 +1392,7 @@ class AlterExpr final : &_AlterExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 6; friend void swap(AlterExpr& a, AlterExpr& b) { a.Swap(&b); @@ -1824,7 +1651,7 @@ class DropTableExpr final : &_DropTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 7; friend void swap(DropTableExpr& a, DropTableExpr& b) { a.Swap(&b); @@ -2068,7 +1895,7 @@ class CreateDatabaseExpr final : &_CreateDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 10; + 9; friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) { a.Swap(&b); @@ -2274,7 +2101,7 @@ class TruncateTableExpr final : &_TruncateTableExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 11; + 10; friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) { a.Swap(&b); @@ -2479,7 +2306,7 @@ class DropDatabaseExpr final : &_DropDatabaseExpr_default_instance_); } static constexpr int kIndexInFileMessages = - 12; + 11; friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) { a.Swap(&b); @@ -2659,7 +2486,7 @@ class AddColumns final : &_AddColumns_default_instance_); } static constexpr int kIndexInFileMessages = - 13; + 12; friend void swap(AddColumns& a, AddColumns& b) { a.Swap(&b); @@ -2816,7 +2643,7 @@ class DropColumns final : &_DropColumns_default_instance_); } static constexpr int kIndexInFileMessages = - 14; + 13; friend void swap(DropColumns& a, DropColumns& b) { a.Swap(&b); @@ -2973,7 +2800,7 @@ class RenameTable final : &_RenameTable_default_instance_); } static constexpr int kIndexInFileMessages = - 15; + 14; friend void swap(RenameTable& a, RenameTable& b) { a.Swap(&b); @@ -3126,7 +2953,7 @@ class AddColumn final : &_AddColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 16; + 15; friend void swap(AddColumn& a, AddColumn& b) { a.Swap(&b); @@ -3303,7 +3130,7 @@ class DropColumn final : &_DropColumn_default_instance_); } static constexpr int kIndexInFileMessages = - 17; + 16; friend void swap(DropColumn& a, DropColumn& b) { a.Swap(&b); @@ -3456,7 +3283,7 @@ class TableId final : &_TableId_default_instance_); } static constexpr int kIndexInFileMessages = - 18; + 17; friend void swap(TableId& a, TableId& b) { a.Swap(&b); @@ -3604,7 +3431,7 @@ class ColumnDef final : &_ColumnDef_default_instance_); } static constexpr int kIndexInFileMessages = - 19; + 18; friend void swap(ColumnDef& a, ColumnDef& b) { a.Swap(&b); @@ -3842,7 +3669,7 @@ class AddColumnLocation final : &_AddColumnLocation_default_instance_); } static constexpr int kIndexInFileMessages = - 20; + 19; friend void swap(AddColumnLocation& a, AddColumnLocation& b) { a.Swap(&b); @@ -4630,70 +4457,61 @@ inline void CreateFlowTaskExpr::set_allocated_task_name(std::string* task_name) // @@protoc_insertion_point(field_set_allocated:greptime.v1.CreateFlowTaskExpr.task_name) } -// repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; +// repeated .greptime.v1.TableName source_table_names = 3; inline int CreateFlowTaskExpr::_internal_source_table_names_size() const { return _impl_.source_table_names_.size(); } inline int CreateFlowTaskExpr::source_table_names_size() const { return _internal_source_table_names_size(); } -inline void CreateFlowTaskExpr::clear_source_table_names() { - _impl_.source_table_names_.Clear(); -} -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::mutable_source_table_names(int index) { +inline ::greptime::v1::TableName* CreateFlowTaskExpr::mutable_source_table_names(int index) { // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.source_table_names) return _impl_.source_table_names_.Mutable(index); } -inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >* +inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >* CreateFlowTaskExpr::mutable_source_table_names() { // @@protoc_insertion_point(field_mutable_list:greptime.v1.CreateFlowTaskExpr.source_table_names) return &_impl_.source_table_names_; } -inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::_internal_source_table_names(int index) const { +inline const ::greptime::v1::TableName& CreateFlowTaskExpr::_internal_source_table_names(int index) const { return _impl_.source_table_names_.Get(index); } -inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::source_table_names(int index) const { +inline const ::greptime::v1::TableName& CreateFlowTaskExpr::source_table_names(int index) const { // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.source_table_names) return _internal_source_table_names(index); } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::_internal_add_source_table_names() { +inline ::greptime::v1::TableName* CreateFlowTaskExpr::_internal_add_source_table_names() { return _impl_.source_table_names_.Add(); } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::add_source_table_names() { - ::greptime::v1::SchemaScopedTableName* _add = _internal_add_source_table_names(); +inline ::greptime::v1::TableName* CreateFlowTaskExpr::add_source_table_names() { + ::greptime::v1::TableName* _add = _internal_add_source_table_names(); // @@protoc_insertion_point(field_add:greptime.v1.CreateFlowTaskExpr.source_table_names) return _add; } -inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >& +inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >& CreateFlowTaskExpr::source_table_names() const { // @@protoc_insertion_point(field_list:greptime.v1.CreateFlowTaskExpr.source_table_names) return _impl_.source_table_names_; } -// .greptime.v1.SchemaScopedTableName sink_table_name = 4; +// .greptime.v1.TableName sink_table_name = 4; inline bool CreateFlowTaskExpr::_internal_has_sink_table_name() const { return this != internal_default_instance() && _impl_.sink_table_name_ != nullptr; } inline bool CreateFlowTaskExpr::has_sink_table_name() const { return _internal_has_sink_table_name(); } -inline void CreateFlowTaskExpr::clear_sink_table_name() { - if (GetArenaForAllocation() == nullptr && _impl_.sink_table_name_ != nullptr) { - delete _impl_.sink_table_name_; - } - _impl_.sink_table_name_ = nullptr; -} -inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::_internal_sink_table_name() const { - const ::greptime::v1::SchemaScopedTableName* p = _impl_.sink_table_name_; - return p != nullptr ? *p : reinterpret_cast( - ::greptime::v1::_SchemaScopedTableName_default_instance_); +inline const ::greptime::v1::TableName& CreateFlowTaskExpr::_internal_sink_table_name() const { + const ::greptime::v1::TableName* p = _impl_.sink_table_name_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_TableName_default_instance_); } -inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::sink_table_name() const { +inline const ::greptime::v1::TableName& CreateFlowTaskExpr::sink_table_name() const { // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.sink_table_name) return _internal_sink_table_name(); } inline void CreateFlowTaskExpr::unsafe_arena_set_allocated_sink_table_name( - ::greptime::v1::SchemaScopedTableName* sink_table_name) { + ::greptime::v1::TableName* sink_table_name) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sink_table_name_); } @@ -4705,9 +4523,9 @@ inline void CreateFlowTaskExpr::unsafe_arena_set_allocated_sink_table_name( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.CreateFlowTaskExpr.sink_table_name) } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::release_sink_table_name() { +inline ::greptime::v1::TableName* CreateFlowTaskExpr::release_sink_table_name() { - ::greptime::v1::SchemaScopedTableName* temp = _impl_.sink_table_name_; + ::greptime::v1::TableName* temp = _impl_.sink_table_name_; _impl_.sink_table_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); @@ -4720,34 +4538,35 @@ inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::release_sink_t #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::unsafe_arena_release_sink_table_name() { +inline ::greptime::v1::TableName* CreateFlowTaskExpr::unsafe_arena_release_sink_table_name() { // @@protoc_insertion_point(field_release:greptime.v1.CreateFlowTaskExpr.sink_table_name) - ::greptime::v1::SchemaScopedTableName* temp = _impl_.sink_table_name_; + ::greptime::v1::TableName* temp = _impl_.sink_table_name_; _impl_.sink_table_name_ = nullptr; return temp; } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::_internal_mutable_sink_table_name() { +inline ::greptime::v1::TableName* CreateFlowTaskExpr::_internal_mutable_sink_table_name() { if (_impl_.sink_table_name_ == nullptr) { - auto* p = CreateMaybeMessage<::greptime::v1::SchemaScopedTableName>(GetArenaForAllocation()); + auto* p = CreateMaybeMessage<::greptime::v1::TableName>(GetArenaForAllocation()); _impl_.sink_table_name_ = p; } return _impl_.sink_table_name_; } -inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::mutable_sink_table_name() { - ::greptime::v1::SchemaScopedTableName* _msg = _internal_mutable_sink_table_name(); +inline ::greptime::v1::TableName* CreateFlowTaskExpr::mutable_sink_table_name() { + ::greptime::v1::TableName* _msg = _internal_mutable_sink_table_name(); // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.sink_table_name) return _msg; } -inline void CreateFlowTaskExpr::set_allocated_sink_table_name(::greptime::v1::SchemaScopedTableName* sink_table_name) { +inline void CreateFlowTaskExpr::set_allocated_sink_table_name(::greptime::v1::TableName* sink_table_name) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { - delete _impl_.sink_table_name_; + delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sink_table_name_); } if (sink_table_name) { ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = - ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(sink_table_name); + ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena( + reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(sink_table_name)); if (message_arena != submessage_arena) { sink_table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( message_arena, sink_table_name, submessage_arena); @@ -4981,110 +4800,6 @@ CreateFlowTaskExpr::mutable_task_options() { // ------------------------------------------------------------------- -// SchemaScopedTableName - -// string schema_name = 1; -inline void SchemaScopedTableName::clear_schema_name() { - _impl_.schema_name_.ClearToEmpty(); -} -inline const std::string& SchemaScopedTableName::schema_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.SchemaScopedTableName.schema_name) - return _internal_schema_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void SchemaScopedTableName::set_schema_name(ArgT0&& arg0, ArgT... args) { - - _impl_.schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.SchemaScopedTableName.schema_name) -} -inline std::string* SchemaScopedTableName::mutable_schema_name() { - std::string* _s = _internal_mutable_schema_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.SchemaScopedTableName.schema_name) - return _s; -} -inline const std::string& SchemaScopedTableName::_internal_schema_name() const { - return _impl_.schema_name_.Get(); -} -inline void SchemaScopedTableName::_internal_set_schema_name(const std::string& value) { - - _impl_.schema_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* SchemaScopedTableName::_internal_mutable_schema_name() { - - return _impl_.schema_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* SchemaScopedTableName::release_schema_name() { - // @@protoc_insertion_point(field_release:greptime.v1.SchemaScopedTableName.schema_name) - return _impl_.schema_name_.Release(); -} -inline void SchemaScopedTableName::set_allocated_schema_name(std::string* schema_name) { - if (schema_name != nullptr) { - - } else { - - } - _impl_.schema_name_.SetAllocated(schema_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.schema_name_.IsDefault()) { - _impl_.schema_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.SchemaScopedTableName.schema_name) -} - -// string table_name = 2; -inline void SchemaScopedTableName::clear_table_name() { - _impl_.table_name_.ClearToEmpty(); -} -inline const std::string& SchemaScopedTableName::table_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.SchemaScopedTableName.table_name) - return _internal_table_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void SchemaScopedTableName::set_table_name(ArgT0&& arg0, ArgT... args) { - - _impl_.table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.SchemaScopedTableName.table_name) -} -inline std::string* SchemaScopedTableName::mutable_table_name() { - std::string* _s = _internal_mutable_table_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.SchemaScopedTableName.table_name) - return _s; -} -inline const std::string& SchemaScopedTableName::_internal_table_name() const { - return _impl_.table_name_.Get(); -} -inline void SchemaScopedTableName::_internal_set_table_name(const std::string& value) { - - _impl_.table_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* SchemaScopedTableName::_internal_mutable_table_name() { - - return _impl_.table_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* SchemaScopedTableName::release_table_name() { - // @@protoc_insertion_point(field_release:greptime.v1.SchemaScopedTableName.table_name) - return _impl_.table_name_.Release(); -} -inline void SchemaScopedTableName::set_allocated_table_name(std::string* table_name) { - if (table_name != nullptr) { - - } else { - - } - _impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.table_name_.IsDefault()) { - _impl_.table_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.SchemaScopedTableName.table_name) -} - -// ------------------------------------------------------------------- - // DropFlowTaskExpr // string catalog_name = 1; @@ -7737,8 +7452,6 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/meta/common.pb.cc b/c++/greptime/v1/meta/common.pb.cc index 0daeeed0..2f72ce47 100644 --- a/c++/greptime/v1/meta/common.pb.cc +++ b/c++/greptime/v1/meta/common.pb.cc @@ -107,21 +107,6 @@ struct TableIdDefaultTypeInternal { }; }; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableIdDefaultTypeInternal _TableId_default_instance_; -PROTOBUF_CONSTEXPR TableName::TableName( - ::_pbi::ConstantInitialized): _impl_{ - /*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.schema_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_.table_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} - , /*decltype(_impl_._cached_size_)*/{}} {} -struct TableNameDefaultTypeInternal { - PROTOBUF_CONSTEXPR TableNameDefaultTypeInternal() - : _instance(::_pbi::ConstantInitialized{}) {} - ~TableNameDefaultTypeInternal() {} - union { - TableName _instance; - }; -}; -PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableNameDefaultTypeInternal _TableName_default_instance_; PROTOBUF_CONSTEXPR TimeInterval::TimeInterval( ::_pbi::ConstantInitialized): _impl_{ /*decltype(_impl_.start_timestamp_millis_)*/int64_t{0} @@ -166,7 +151,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT } // namespace meta } // namespace v1 } // namespace greptime -static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[10]; +static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[9]; static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto[1]; static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto = nullptr; @@ -225,15 +210,6 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT ~0u, // no _inlined_string_donated_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableId, _impl_.id_), ~0u, // no _has_bits_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableName, _internal_metadata_), - ~0u, // no _extensions_ - ~0u, // no _oneof_case_ - ~0u, // no _weak_field_map_ - ~0u, // no _inlined_string_donated_ - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableName, _impl_.catalog_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableName, _impl_.schema_name_), - PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableName, _impl_.table_name_), - ~0u, // no _has_bits_ PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TimeInterval, _internal_metadata_), ~0u, // no _extensions_ ~0u, // no _oneof_case_ @@ -264,10 +240,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode { 30, -1, -1, sizeof(::greptime::v1::meta::Error)}, { 38, -1, -1, sizeof(::greptime::v1::meta::Peer)}, { 46, -1, -1, sizeof(::greptime::v1::meta::TableId)}, - { 53, -1, -1, sizeof(::greptime::v1::meta::TableName)}, - { 62, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)}, - { 70, -1, -1, sizeof(::greptime::v1::meta::KeyValue)}, - { 78, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)}, + { 53, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)}, + { 61, -1, -1, sizeof(::greptime::v1::meta::KeyValue)}, + { 69, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)}, }; static const ::_pb::Message* const file_default_instances[] = { @@ -277,7 +252,6 @@ static const ::_pb::Message* const file_default_instances[] = { &::greptime::v1::meta::_Error_default_instance_._instance, &::greptime::v1::meta::_Peer_default_instance_._instance, &::greptime::v1::meta::_TableId_default_instance_._instance, - &::greptime::v1::meta::_TableName_default_instance_._instance, &::greptime::v1::meta::_TimeInterval_default_instance_._instance, &::greptime::v1::meta::_KeyValue_default_instance_._instance, &::greptime::v1::meta::_ProcedureId_default_instance_._instance, @@ -296,21 +270,19 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PRO "d\030\002 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met" "a.Error\"&\n\005Error\022\014\n\004code\030\001 \001(\005\022\017\n\007err_ms" "g\030\002 \001(\t\" \n\004Peer\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001(" - "\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"J\n\tTableName\022\024\n" - "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" - "\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026" - "start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time" - "stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 " - "\001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n\003key" - "\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRONTEND" - "\020\001B(from._internal_metadata_); - _impl_.catalog_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.catalog_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_catalog_name().empty()) { - _this->_impl_.catalog_name_.Set(from._internal_catalog_name(), - _this->GetArenaForAllocation()); - } - _impl_.schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_schema_name().empty()) { - _this->_impl_.schema_name_.Set(from._internal_schema_name(), - _this->GetArenaForAllocation()); - } - _impl_.table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (!from._internal_table_name().empty()) { - _this->_impl_.table_name_.Set(from._internal_table_name(), - _this->GetArenaForAllocation()); - } - // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.TableName) -} - -inline void TableName::SharedCtor( - ::_pb::Arena* arena, bool is_message_owned) { - (void)arena; - (void)is_message_owned; - new (&_impl_) Impl_{ - decltype(_impl_.catalog_name_){} - , decltype(_impl_.schema_name_){} - , decltype(_impl_.table_name_){} - , /*decltype(_impl_._cached_size_)*/{} - }; - _impl_.catalog_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.catalog_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.schema_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.InitDefault(); - #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - _impl_.table_name_.Set("", GetArenaForAllocation()); - #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING -} - -TableName::~TableName() { - // @@protoc_insertion_point(destructor:greptime.v1.meta.TableName) - if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) { - (void)arena; - return; - } - SharedDtor(); -} - -inline void TableName::SharedDtor() { - GOOGLE_DCHECK(GetArenaForAllocation() == nullptr); - _impl_.catalog_name_.Destroy(); - _impl_.schema_name_.Destroy(); - _impl_.table_name_.Destroy(); -} - -void TableName::SetCachedSize(int size) const { - _impl_._cached_size_.Set(size); -} - -void TableName::Clear() { -// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.TableName) - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - _impl_.catalog_name_.ClearToEmpty(); - _impl_.schema_name_.ClearToEmpty(); - _impl_.table_name_.ClearToEmpty(); - _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); -} - -const char* TableName::_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) { - // string catalog_name = 1; - case 1: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 10)) { - auto str = _internal_mutable_catalog_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.TableName.catalog_name")); - } else - goto handle_unusual; - continue; - // string schema_name = 2; - case 2: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { - auto str = _internal_mutable_schema_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.TableName.schema_name")); - } else - goto handle_unusual; - continue; - // string table_name = 3; - case 3: - if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 26)) { - auto str = _internal_mutable_table_name(); - ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx); - CHK_(ptr); - CHK_(::_pbi::VerifyUTF8(str, "greptime.v1.meta.TableName.table_name")); - } 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* TableName::_InternalSerialize( - uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { - // @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.TableName) - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - // string catalog_name = 1; - if (!this->_internal_catalog_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_catalog_name().data(), static_cast(this->_internal_catalog_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.meta.TableName.catalog_name"); - target = stream->WriteStringMaybeAliased( - 1, this->_internal_catalog_name(), target); - } - - // string schema_name = 2; - if (!this->_internal_schema_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_schema_name().data(), static_cast(this->_internal_schema_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.meta.TableName.schema_name"); - target = stream->WriteStringMaybeAliased( - 2, this->_internal_schema_name(), target); - } - - // string table_name = 3; - if (!this->_internal_table_name().empty()) { - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( - this->_internal_table_name().data(), static_cast(this->_internal_table_name().length()), - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, - "greptime.v1.meta.TableName.table_name"); - target = stream->WriteStringMaybeAliased( - 3, this->_internal_table_name(), 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.meta.TableName) - return target; -} - -size_t TableName::ByteSizeLong() const { -// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.TableName) - size_t total_size = 0; - - uint32_t cached_has_bits = 0; - // Prevent compiler warnings about cached_has_bits being unused - (void) cached_has_bits; - - // string catalog_name = 1; - if (!this->_internal_catalog_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_catalog_name()); - } - - // string schema_name = 2; - if (!this->_internal_schema_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_schema_name()); - } - - // string table_name = 3; - if (!this->_internal_table_name().empty()) { - total_size += 1 + - ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( - this->_internal_table_name()); - } - - return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_); -} - -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TableName::_class_data_ = { - ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck, - TableName::MergeImpl -}; -const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TableName::GetClassData() const { return &_class_data_; } - - -void TableName::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.meta.TableName) - GOOGLE_DCHECK_NE(&from, _this); - uint32_t cached_has_bits = 0; - (void) cached_has_bits; - - if (!from._internal_catalog_name().empty()) { - _this->_internal_set_catalog_name(from._internal_catalog_name()); - } - if (!from._internal_schema_name().empty()) { - _this->_internal_set_schema_name(from._internal_schema_name()); - } - if (!from._internal_table_name().empty()) { - _this->_internal_set_table_name(from._internal_table_name()); - } - _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); -} - -void TableName::CopyFrom(const TableName& from) { -// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.TableName) - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool TableName::IsInitialized() const { - return true; -} - -void TableName::InternalSwap(TableName* other) { - using std::swap; - auto* lhs_arena = GetArenaForAllocation(); - auto* rhs_arena = other->GetArenaForAllocation(); - _internal_metadata_.InternalSwap(&other->_internal_metadata_); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.catalog_name_, lhs_arena, - &other->_impl_.catalog_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.schema_name_, lhs_arena, - &other->_impl_.schema_name_, rhs_arena - ); - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap( - &_impl_.table_name_, lhs_arena, - &other->_impl_.table_name_, rhs_arena - ); -} - -::PROTOBUF_NAMESPACE_ID::Metadata TableName::GetMetadata() const { - return ::_pbi::AssignDescriptors( - &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[6]); -} - -// =================================================================== - class TimeInterval::_Internal { public: }; @@ -2084,7 +1753,7 @@ void TimeInterval::InternalSwap(TimeInterval* other) { ::PROTOBUF_NAMESPACE_ID::Metadata TimeInterval::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[7]); + file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[6]); } // =================================================================== @@ -2327,7 +1996,7 @@ void KeyValue::InternalSwap(KeyValue* other) { ::PROTOBUF_NAMESPACE_ID::Metadata KeyValue::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[8]); + file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[7]); } // =================================================================== @@ -2525,7 +2194,7 @@ void ProcedureId::InternalSwap(ProcedureId* other) { ::PROTOBUF_NAMESPACE_ID::Metadata ProcedureId::GetMetadata() const { return ::_pbi::AssignDescriptors( &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, - file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[9]); + file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[8]); } // @@protoc_insertion_point(namespace_scope) @@ -2557,10 +2226,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TableId* Arena::CreateMaybeMessage< ::greptime::v1::meta::TableId >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::TableId >(arena); } -template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TableName* -Arena::CreateMaybeMessage< ::greptime::v1::meta::TableName >(Arena* arena) { - return Arena::CreateMessageInternal< ::greptime::v1::meta::TableName >(arena); -} template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TimeInterval* Arena::CreateMaybeMessage< ::greptime::v1::meta::TimeInterval >(Arena* arena) { return Arena::CreateMessageInternal< ::greptime::v1::meta::TimeInterval >(arena); diff --git a/c++/greptime/v1/meta/common.pb.h b/c++/greptime/v1/meta/common.pb.h index 9b2bda90..290dde8a 100644 --- a/c++/greptime/v1/meta/common.pb.h +++ b/c++/greptime/v1/meta/common.pb.h @@ -75,9 +75,6 @@ extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_; class TableId; struct TableIdDefaultTypeInternal; extern TableIdDefaultTypeInternal _TableId_default_instance_; -class TableName; -struct TableNameDefaultTypeInternal; -extern TableNameDefaultTypeInternal _TableName_default_instance_; class TimeInterval; struct TimeIntervalDefaultTypeInternal; extern TimeIntervalDefaultTypeInternal _TimeInterval_default_instance_; @@ -93,7 +90,6 @@ template<> ::greptime::v1::meta::RequestHeader* Arena::CreateMaybeMessage<::grep template<> ::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse>(Arena*); template<> ::greptime::v1::meta::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(Arena*); template<> ::greptime::v1::meta::TableId* Arena::CreateMaybeMessage<::greptime::v1::meta::TableId>(Arena*); -template<> ::greptime::v1::meta::TableName* Arena::CreateMaybeMessage<::greptime::v1::meta::TableName>(Arena*); template<> ::greptime::v1::meta::TimeInterval* Arena::CreateMaybeMessage<::greptime::v1::meta::TimeInterval>(Arena*); PROTOBUF_NAMESPACE_CLOSE namespace greptime { @@ -1017,191 +1013,6 @@ class TableId final : }; // ------------------------------------------------------------------- -class TableName final : - public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.TableName) */ { - public: - inline TableName() : TableName(nullptr) {} - ~TableName() override; - explicit PROTOBUF_CONSTEXPR TableName(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); - - TableName(const TableName& from); - TableName(TableName&& from) noexcept - : TableName() { - *this = ::std::move(from); - } - - inline TableName& operator=(const TableName& from) { - CopyFrom(from); - return *this; - } - inline TableName& operator=(TableName&& 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 TableName& default_instance() { - return *internal_default_instance(); - } - static inline const TableName* internal_default_instance() { - return reinterpret_cast( - &_TableName_default_instance_); - } - static constexpr int kIndexInFileMessages = - 6; - - friend void swap(TableName& a, TableName& b) { - a.Swap(&b); - } - inline void Swap(TableName* 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(TableName* other) { - if (other == this) return; - GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); - InternalSwap(other); - } - - // implements Message ---------------------------------------------- - - TableName* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { - return CreateMaybeMessage(arena); - } - using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; - void CopyFrom(const TableName& from); - using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; - void MergeFrom( const TableName& from) { - TableName::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(TableName* other); - - private: - friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; - static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { - return "greptime.v1.meta.TableName"; - } - protected: - explicit TableName(::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 { - kCatalogNameFieldNumber = 1, - kSchemaNameFieldNumber = 2, - kTableNameFieldNumber = 3, - }; - // string catalog_name = 1; - void clear_catalog_name(); - const std::string& catalog_name() const; - template - void set_catalog_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_catalog_name(); - PROTOBUF_NODISCARD std::string* release_catalog_name(); - void set_allocated_catalog_name(std::string* catalog_name); - private: - const std::string& _internal_catalog_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_catalog_name(const std::string& value); - std::string* _internal_mutable_catalog_name(); - public: - - // string schema_name = 2; - void clear_schema_name(); - const std::string& schema_name() const; - template - void set_schema_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_schema_name(); - PROTOBUF_NODISCARD std::string* release_schema_name(); - void set_allocated_schema_name(std::string* schema_name); - private: - const std::string& _internal_schema_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_schema_name(const std::string& value); - std::string* _internal_mutable_schema_name(); - public: - - // string table_name = 3; - void clear_table_name(); - const std::string& table_name() const; - template - void set_table_name(ArgT0&& arg0, ArgT... args); - std::string* mutable_table_name(); - PROTOBUF_NODISCARD std::string* release_table_name(); - void set_allocated_table_name(std::string* table_name); - private: - const std::string& _internal_table_name() const; - inline PROTOBUF_ALWAYS_INLINE void _internal_set_table_name(const std::string& value); - std::string* _internal_mutable_table_name(); - public: - - // @@protoc_insertion_point(class_scope:greptime.v1.meta.TableName) - private: - class _Internal; - - template friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; - typedef void InternalArenaConstructable_; - typedef void DestructorSkippable_; - struct Impl_ { - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr schema_name_; - ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_name_; - mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; - }; - union { Impl_ _impl_; }; - friend struct ::TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto; -}; -// ------------------------------------------------------------------- - class TimeInterval final : public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.TimeInterval) */ { public: @@ -1250,7 +1061,7 @@ class TimeInterval final : &_TimeInterval_default_instance_); } static constexpr int kIndexInFileMessages = - 7; + 6; friend void swap(TimeInterval& a, TimeInterval& b) { a.Swap(&b); @@ -1409,7 +1220,7 @@ class KeyValue final : &_KeyValue_default_instance_); } static constexpr int kIndexInFileMessages = - 8; + 7; friend void swap(KeyValue& a, KeyValue& b) { a.Swap(&b); @@ -1578,7 +1389,7 @@ class ProcedureId final : &_ProcedureId_default_instance_); } static constexpr int kIndexInFileMessages = - 9; + 8; friend void swap(ProcedureId& a, ProcedureId& b) { a.Swap(&b); @@ -2111,160 +1922,6 @@ inline void TableId::set_id(uint32_t value) { // ------------------------------------------------------------------- -// TableName - -// string catalog_name = 1; -inline void TableName::clear_catalog_name() { - _impl_.catalog_name_.ClearToEmpty(); -} -inline const std::string& TableName::catalog_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.TableName.catalog_name) - return _internal_catalog_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void TableName::set_catalog_name(ArgT0&& arg0, ArgT... args) { - - _impl_.catalog_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.meta.TableName.catalog_name) -} -inline std::string* TableName::mutable_catalog_name() { - std::string* _s = _internal_mutable_catalog_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.TableName.catalog_name) - return _s; -} -inline const std::string& TableName::_internal_catalog_name() const { - return _impl_.catalog_name_.Get(); -} -inline void TableName::_internal_set_catalog_name(const std::string& value) { - - _impl_.catalog_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* TableName::_internal_mutable_catalog_name() { - - return _impl_.catalog_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* TableName::release_catalog_name() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.TableName.catalog_name) - return _impl_.catalog_name_.Release(); -} -inline void TableName::set_allocated_catalog_name(std::string* catalog_name) { - if (catalog_name != nullptr) { - - } else { - - } - _impl_.catalog_name_.SetAllocated(catalog_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.catalog_name_.IsDefault()) { - _impl_.catalog_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.TableName.catalog_name) -} - -// string schema_name = 2; -inline void TableName::clear_schema_name() { - _impl_.schema_name_.ClearToEmpty(); -} -inline const std::string& TableName::schema_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.TableName.schema_name) - return _internal_schema_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void TableName::set_schema_name(ArgT0&& arg0, ArgT... args) { - - _impl_.schema_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.meta.TableName.schema_name) -} -inline std::string* TableName::mutable_schema_name() { - std::string* _s = _internal_mutable_schema_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.TableName.schema_name) - return _s; -} -inline const std::string& TableName::_internal_schema_name() const { - return _impl_.schema_name_.Get(); -} -inline void TableName::_internal_set_schema_name(const std::string& value) { - - _impl_.schema_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* TableName::_internal_mutable_schema_name() { - - return _impl_.schema_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* TableName::release_schema_name() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.TableName.schema_name) - return _impl_.schema_name_.Release(); -} -inline void TableName::set_allocated_schema_name(std::string* schema_name) { - if (schema_name != nullptr) { - - } else { - - } - _impl_.schema_name_.SetAllocated(schema_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.schema_name_.IsDefault()) { - _impl_.schema_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.TableName.schema_name) -} - -// string table_name = 3; -inline void TableName::clear_table_name() { - _impl_.table_name_.ClearToEmpty(); -} -inline const std::string& TableName::table_name() const { - // @@protoc_insertion_point(field_get:greptime.v1.meta.TableName.table_name) - return _internal_table_name(); -} -template -inline PROTOBUF_ALWAYS_INLINE -void TableName::set_table_name(ArgT0&& arg0, ArgT... args) { - - _impl_.table_name_.Set(static_cast(arg0), args..., GetArenaForAllocation()); - // @@protoc_insertion_point(field_set:greptime.v1.meta.TableName.table_name) -} -inline std::string* TableName::mutable_table_name() { - std::string* _s = _internal_mutable_table_name(); - // @@protoc_insertion_point(field_mutable:greptime.v1.meta.TableName.table_name) - return _s; -} -inline const std::string& TableName::_internal_table_name() const { - return _impl_.table_name_.Get(); -} -inline void TableName::_internal_set_table_name(const std::string& value) { - - _impl_.table_name_.Set(value, GetArenaForAllocation()); -} -inline std::string* TableName::_internal_mutable_table_name() { - - return _impl_.table_name_.Mutable(GetArenaForAllocation()); -} -inline std::string* TableName::release_table_name() { - // @@protoc_insertion_point(field_release:greptime.v1.meta.TableName.table_name) - return _impl_.table_name_.Release(); -} -inline void TableName::set_allocated_table_name(std::string* table_name) { - if (table_name != nullptr) { - - } else { - - } - _impl_.table_name_.SetAllocated(table_name, GetArenaForAllocation()); -#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING - if (_impl_.table_name_.IsDefault()) { - _impl_.table_name_.Set("", GetArenaForAllocation()); - } -#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING - // @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.TableName.table_name) -} - -// ------------------------------------------------------------------- - // TimeInterval // int64 start_timestamp_millis = 1; @@ -2484,8 +2141,6 @@ inline void ProcedureId::set_allocated_key(std::string* key) { // ------------------------------------------------------------------- -// ------------------------------------------------------------------- - // @@protoc_insertion_point(namespace_scope) diff --git a/c++/greptime/v1/meta/route.pb.cc b/c++/greptime/v1/meta/route.pb.cc index b2ebd76b..7e266354 100644 --- a/c++/greptime/v1/meta/route.pb.cc +++ b/c++/greptime/v1/meta/route.pb.cc @@ -216,35 +216,36 @@ static const ::_pb::Message* const file_default_instances[] = { const char descriptor_table_protodef_greptime_2fv1_2fmeta_2froute_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = "\n\034greptime/v1/meta/route.proto\022\020greptime" - ".v1.meta\032\035greptime/v1/meta/common.proto\"" - "j\n\nTableRoute\022&\n\005table\030\001 \001(\0132\027.greptime." - "v1.meta.Table\0224\n\rregion_routes\030\002 \003(\0132\035.g" - "reptime.v1.meta.RegionRoute\"q\n\013RegionRou" - "te\022(\n\006region\030\001 \001(\0132\030.greptime.v1.meta.Re" - "gion\022\031\n\021leader_peer_index\030\002 \001(\004\022\035\n\025follo" - "wer_peer_indexes\030\003 \003(\004\"Z\n\005Table\022\n\n\002id\030\001 " - "\001(\004\022/\n\ntable_name\030\002 \001(\0132\033.greptime.v1.me" - "ta.TableName\022\024\n\014table_schema\030\003 \001(\014\"\264\001\n\006R" - "egion\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022.\n\tparti" - "tion\030\003 \001(\0132\033.greptime.v1.meta.Partition\022" - "2\n\005attrs\030d \003(\0132#.greptime.v1.meta.Region" - ".AttrsEntry\032,\n\nAttrsEntry\022\013\n\003key\030\001 \001(\t\022\r" - "\n\005value\030\002 \001(\t:\0028\001\"4\n\tPartition\022\023\n\013column" - "_list\030\001 \003(\014\022\022\n\nvalue_list\030\002 \003(\014\"k\n\017Table" - "RouteValue\022%\n\005peers\030\001 \003(\0132\026.greptime.v1." - "meta.Peer\0221\n\013table_route\030\002 \001(\0132\034.greptim" - "e.v1.meta.TableRouteB_impl_.table_name_; } @@ -794,7 +795,7 @@ Table::Table(const Table& from) _this->GetArenaForAllocation()); } if (from._internal_has_table_name()) { - _this->_impl_.table_name_ = new ::greptime::v1::meta::TableName(*from._impl_.table_name_); + _this->_impl_.table_name_ = new ::greptime::v1::TableName(*from._impl_.table_name_); } _this->_impl_.id_ = from._impl_.id_; // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.Table) @@ -864,7 +865,7 @@ const char* Table::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) { } else goto handle_unusual; continue; - // .greptime.v1.meta.TableName table_name = 2; + // .greptime.v1.TableName table_name = 2; case 2: if (PROTOBUF_PREDICT_TRUE(static_cast(tag) == 18)) { ptr = ctx->ParseMessage(_internal_mutable_table_name(), ptr); @@ -916,7 +917,7 @@ uint8_t* Table::_InternalSerialize( target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_id(), target); } - // .greptime.v1.meta.TableName table_name = 2; + // .greptime.v1.TableName table_name = 2; if (this->_internal_has_table_name()) { target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: InternalWriteMessage(2, _Internal::table_name(this), @@ -952,7 +953,7 @@ size_t Table::ByteSizeLong() const { this->_internal_table_schema()); } - // .greptime.v1.meta.TableName table_name = 2; + // .greptime.v1.TableName table_name = 2; if (this->_internal_has_table_name()) { total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( @@ -986,7 +987,7 @@ void Table::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF _this->_internal_set_table_schema(from._internal_table_schema()); } if (from._internal_has_table_name()) { - _this->_internal_mutable_table_name()->::greptime::v1::meta::TableName::MergeFrom( + _this->_internal_mutable_table_name()->::greptime::v1::TableName::MergeFrom( from._internal_table_name()); } if (from._internal_id() != 0) { diff --git a/c++/greptime/v1/meta/route.pb.h b/c++/greptime/v1/meta/route.pb.h index 7f3c514c..a8dc42b7 100644 --- a/c++/greptime/v1/meta/route.pb.h +++ b/c++/greptime/v1/meta/route.pb.h @@ -34,6 +34,7 @@ #include #include #include "greptime/v1/meta/common.pb.h" +#include "greptime/v1/common.pb.h" // @@protoc_insertion_point(includes) #include #define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fmeta_2froute_2eproto @@ -599,23 +600,23 @@ class Table final : std::string* _internal_mutable_table_schema(); public: - // .greptime.v1.meta.TableName table_name = 2; + // .greptime.v1.TableName table_name = 2; bool has_table_name() const; private: bool _internal_has_table_name() const; public: void clear_table_name(); - const ::greptime::v1::meta::TableName& table_name() const; - PROTOBUF_NODISCARD ::greptime::v1::meta::TableName* release_table_name(); - ::greptime::v1::meta::TableName* mutable_table_name(); - void set_allocated_table_name(::greptime::v1::meta::TableName* table_name); + const ::greptime::v1::TableName& table_name() const; + PROTOBUF_NODISCARD ::greptime::v1::TableName* release_table_name(); + ::greptime::v1::TableName* mutable_table_name(); + void set_allocated_table_name(::greptime::v1::TableName* table_name); private: - const ::greptime::v1::meta::TableName& _internal_table_name() const; - ::greptime::v1::meta::TableName* _internal_mutable_table_name(); + const ::greptime::v1::TableName& _internal_table_name() const; + ::greptime::v1::TableName* _internal_mutable_table_name(); public: void unsafe_arena_set_allocated_table_name( - ::greptime::v1::meta::TableName* table_name); - ::greptime::v1::meta::TableName* unsafe_arena_release_table_name(); + ::greptime::v1::TableName* table_name); + ::greptime::v1::TableName* unsafe_arena_release_table_name(); // uint64 id = 1; void clear_id(); @@ -635,7 +636,7 @@ class Table final : typedef void DestructorSkippable_; struct Impl_ { ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_schema_; - ::greptime::v1::meta::TableName* table_name_; + ::greptime::v1::TableName* table_name_; uint64_t id_; mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; }; @@ -1572,24 +1573,24 @@ inline void Table::set_id(uint64_t value) { // @@protoc_insertion_point(field_set:greptime.v1.meta.Table.id) } -// .greptime.v1.meta.TableName table_name = 2; +// .greptime.v1.TableName table_name = 2; inline bool Table::_internal_has_table_name() const { return this != internal_default_instance() && _impl_.table_name_ != nullptr; } inline bool Table::has_table_name() const { return _internal_has_table_name(); } -inline const ::greptime::v1::meta::TableName& Table::_internal_table_name() const { - const ::greptime::v1::meta::TableName* p = _impl_.table_name_; - return p != nullptr ? *p : reinterpret_cast( - ::greptime::v1::meta::_TableName_default_instance_); +inline const ::greptime::v1::TableName& Table::_internal_table_name() const { + const ::greptime::v1::TableName* p = _impl_.table_name_; + return p != nullptr ? *p : reinterpret_cast( + ::greptime::v1::_TableName_default_instance_); } -inline const ::greptime::v1::meta::TableName& Table::table_name() const { +inline const ::greptime::v1::TableName& Table::table_name() const { // @@protoc_insertion_point(field_get:greptime.v1.meta.Table.table_name) return _internal_table_name(); } inline void Table::unsafe_arena_set_allocated_table_name( - ::greptime::v1::meta::TableName* table_name) { + ::greptime::v1::TableName* table_name) { if (GetArenaForAllocation() == nullptr) { delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_name_); } @@ -1601,9 +1602,9 @@ inline void Table::unsafe_arena_set_allocated_table_name( } // @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.Table.table_name) } -inline ::greptime::v1::meta::TableName* Table::release_table_name() { +inline ::greptime::v1::TableName* Table::release_table_name() { - ::greptime::v1::meta::TableName* temp = _impl_.table_name_; + ::greptime::v1::TableName* temp = _impl_.table_name_; _impl_.table_name_ = nullptr; #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); @@ -1616,27 +1617,27 @@ inline ::greptime::v1::meta::TableName* Table::release_table_name() { #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE return temp; } -inline ::greptime::v1::meta::TableName* Table::unsafe_arena_release_table_name() { +inline ::greptime::v1::TableName* Table::unsafe_arena_release_table_name() { // @@protoc_insertion_point(field_release:greptime.v1.meta.Table.table_name) - ::greptime::v1::meta::TableName* temp = _impl_.table_name_; + ::greptime::v1::TableName* temp = _impl_.table_name_; _impl_.table_name_ = nullptr; return temp; } -inline ::greptime::v1::meta::TableName* Table::_internal_mutable_table_name() { +inline ::greptime::v1::TableName* Table::_internal_mutable_table_name() { if (_impl_.table_name_ == nullptr) { - auto* p = CreateMaybeMessage<::greptime::v1::meta::TableName>(GetArenaForAllocation()); + auto* p = CreateMaybeMessage<::greptime::v1::TableName>(GetArenaForAllocation()); _impl_.table_name_ = p; } return _impl_.table_name_; } -inline ::greptime::v1::meta::TableName* Table::mutable_table_name() { - ::greptime::v1::meta::TableName* _msg = _internal_mutable_table_name(); +inline ::greptime::v1::TableName* Table::mutable_table_name() { + ::greptime::v1::TableName* _msg = _internal_mutable_table_name(); // @@protoc_insertion_point(field_mutable:greptime.v1.meta.Table.table_name) return _msg; } -inline void Table::set_allocated_table_name(::greptime::v1::meta::TableName* table_name) { +inline void Table::set_allocated_table_name(::greptime::v1::TableName* table_name) { ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); if (message_arena == nullptr) { delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_name_); diff --git a/go/greptime/v1/common.pb.go b/go/greptime/v1/common.pb.go index 89b06373..c6cb2c3f 100644 --- a/go/greptime/v1/common.pb.go +++ b/go/greptime/v1/common.pb.go @@ -596,6 +596,69 @@ func (x *Token) GetToken() string { return "" } +type TableName struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"` + SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` + TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` +} + +func (x *TableName) Reset() { + *x = TableName{} + if protoimpl.UnsafeEnabled { + mi := &file_greptime_v1_common_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TableName) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TableName) ProtoMessage() {} + +func (x *TableName) ProtoReflect() protoreflect.Message { + mi := &file_greptime_v1_common_proto_msgTypes[6] + 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 TableName.ProtoReflect.Descriptor instead. +func (*TableName) Descriptor() ([]byte, []int) { + return file_greptime_v1_common_proto_rawDescGZIP(), []int{6} +} + +func (x *TableName) GetCatalogName() string { + if x != nil { + return x.CatalogName + } + return "" +} + +func (x *TableName) GetSchemaName() string { + if x != nil { + return x.SchemaName + } + return "" +} + +func (x *TableName) GetTableName() string { + if x != nil { + return x.TableName + } + return "" +} + type AffectedRows struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -607,7 +670,7 @@ type AffectedRows struct { func (x *AffectedRows) Reset() { *x = AffectedRows{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[6] + mi := &file_greptime_v1_common_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -620,7 +683,7 @@ func (x *AffectedRows) String() string { func (*AffectedRows) ProtoMessage() {} func (x *AffectedRows) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[6] + mi := &file_greptime_v1_common_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -633,7 +696,7 @@ func (x *AffectedRows) ProtoReflect() protoreflect.Message { // Deprecated: Use AffectedRows.ProtoReflect.Descriptor instead. func (*AffectedRows) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{6} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{7} } func (x *AffectedRows) GetValue() uint32 { @@ -654,7 +717,7 @@ type Metrics struct { func (x *Metrics) Reset() { *x = Metrics{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[7] + mi := &file_greptime_v1_common_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -667,7 +730,7 @@ func (x *Metrics) String() string { func (*Metrics) ProtoMessage() {} func (x *Metrics) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[7] + mi := &file_greptime_v1_common_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -680,7 +743,7 @@ func (x *Metrics) ProtoReflect() protoreflect.Message { // Deprecated: Use Metrics.ProtoReflect.Descriptor instead. func (*Metrics) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{7} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{8} } func (x *Metrics) GetMetrics() []byte { @@ -702,7 +765,7 @@ type FlightMetadata struct { func (x *FlightMetadata) Reset() { *x = FlightMetadata{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[8] + mi := &file_greptime_v1_common_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -715,7 +778,7 @@ func (x *FlightMetadata) String() string { func (*FlightMetadata) ProtoMessage() {} func (x *FlightMetadata) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[8] + mi := &file_greptime_v1_common_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -728,7 +791,7 @@ func (x *FlightMetadata) ProtoReflect() protoreflect.Message { // Deprecated: Use FlightMetadata.ProtoReflect.Descriptor instead. func (*FlightMetadata) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{8} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{9} } func (x *FlightMetadata) GetAffectedRows() *AffectedRows { @@ -758,7 +821,7 @@ type IntervalMonthDayNano struct { func (x *IntervalMonthDayNano) Reset() { *x = IntervalMonthDayNano{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[9] + mi := &file_greptime_v1_common_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -771,7 +834,7 @@ func (x *IntervalMonthDayNano) String() string { func (*IntervalMonthDayNano) ProtoMessage() {} func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[9] + mi := &file_greptime_v1_common_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -784,7 +847,7 @@ func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message { // Deprecated: Use IntervalMonthDayNano.ProtoReflect.Descriptor instead. func (*IntervalMonthDayNano) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{9} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{10} } func (x *IntervalMonthDayNano) GetMonths() int32 { @@ -821,7 +884,7 @@ type Decimal128 struct { func (x *Decimal128) Reset() { *x = Decimal128{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[10] + mi := &file_greptime_v1_common_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -834,7 +897,7 @@ func (x *Decimal128) String() string { func (*Decimal128) ProtoMessage() {} func (x *Decimal128) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[10] + mi := &file_greptime_v1_common_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -847,7 +910,7 @@ func (x *Decimal128) ProtoReflect() protoreflect.Message { // Deprecated: Use Decimal128.ProtoReflect.Descriptor instead. func (*Decimal128) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{10} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{11} } func (x *Decimal128) GetHi() int64 { @@ -879,7 +942,7 @@ type ColumnDataTypeExtension struct { func (x *ColumnDataTypeExtension) Reset() { *x = ColumnDataTypeExtension{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[11] + mi := &file_greptime_v1_common_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -892,7 +955,7 @@ func (x *ColumnDataTypeExtension) String() string { func (*ColumnDataTypeExtension) ProtoMessage() {} func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[11] + mi := &file_greptime_v1_common_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -905,7 +968,7 @@ func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead. func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{11} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{12} } func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt { @@ -944,7 +1007,7 @@ type DecimalTypeExtension struct { func (x *DecimalTypeExtension) Reset() { *x = DecimalTypeExtension{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_common_proto_msgTypes[12] + mi := &file_greptime_v1_common_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -957,7 +1020,7 @@ func (x *DecimalTypeExtension) String() string { func (*DecimalTypeExtension) ProtoMessage() {} func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_common_proto_msgTypes[12] + mi := &file_greptime_v1_common_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -970,7 +1033,7 @@ func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { // Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead. func (*DecimalTypeExtension) Descriptor() ([]byte, []int) { - return file_greptime_v1_common_proto_rawDescGZIP(), []int{12} + return file_greptime_v1_common_proto_rawDescGZIP(), []int{13} } func (x *DecimalTypeExtension) GetPrecision() int32 { @@ -1035,7 +1098,14 @@ var file_greptime_v1_common_proto_rawDesc = []byte{ 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x1d, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, - 0x65, 0x6e, 0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, + 0x65, 0x6e, 0x22, 0x6e, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x41, 0x66, 0x66, 0x65, 0x63, 0x74, 0x65, 0x64, 0x52, 0x6f, 0x77, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x74, 0x72, 0x69, 0x63, 0x73, 0x18, 0x01, @@ -1129,7 +1199,7 @@ func file_greptime_v1_common_proto_rawDescGZIP() []byte { } var file_greptime_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 14) +var file_greptime_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 15) var file_greptime_v1_common_proto_goTypes = []interface{}{ (SemanticType)(0), // 0: greptime.v1.SemanticType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType @@ -1139,24 +1209,25 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{ (*AuthHeader)(nil), // 5: greptime.v1.AuthHeader (*Basic)(nil), // 6: greptime.v1.Basic (*Token)(nil), // 7: greptime.v1.Token - (*AffectedRows)(nil), // 8: greptime.v1.AffectedRows - (*Metrics)(nil), // 9: greptime.v1.Metrics - (*FlightMetadata)(nil), // 10: greptime.v1.FlightMetadata - (*IntervalMonthDayNano)(nil), // 11: greptime.v1.IntervalMonthDayNano - (*Decimal128)(nil), // 12: greptime.v1.Decimal128 - (*ColumnDataTypeExtension)(nil), // 13: greptime.v1.ColumnDataTypeExtension - (*DecimalTypeExtension)(nil), // 14: greptime.v1.DecimalTypeExtension - nil, // 15: greptime.v1.RequestHeader.TracingContextEntry + (*TableName)(nil), // 8: greptime.v1.TableName + (*AffectedRows)(nil), // 9: greptime.v1.AffectedRows + (*Metrics)(nil), // 10: greptime.v1.Metrics + (*FlightMetadata)(nil), // 11: greptime.v1.FlightMetadata + (*IntervalMonthDayNano)(nil), // 12: greptime.v1.IntervalMonthDayNano + (*Decimal128)(nil), // 13: greptime.v1.Decimal128 + (*ColumnDataTypeExtension)(nil), // 14: greptime.v1.ColumnDataTypeExtension + (*DecimalTypeExtension)(nil), // 15: greptime.v1.DecimalTypeExtension + nil, // 16: greptime.v1.RequestHeader.TracingContextEntry } var file_greptime_v1_common_proto_depIdxs = []int32{ 5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader - 15, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry + 16, // 1: greptime.v1.RequestHeader.tracing_context:type_name -> greptime.v1.RequestHeader.TracingContextEntry 4, // 2: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status 6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic 7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token - 8, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows - 9, // 6: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics - 14, // 7: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension + 9, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows + 10, // 6: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics + 15, // 7: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension 8, // [8:8] is the sub-list for method output_type 8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for extension type_name @@ -1243,7 +1314,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AffectedRows); i { + switch v := v.(*TableName); i { case 0: return &v.state case 1: @@ -1255,7 +1326,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Metrics); i { + switch v := v.(*AffectedRows); i { case 0: return &v.state case 1: @@ -1267,7 +1338,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*FlightMetadata); i { + switch v := v.(*Metrics); i { case 0: return &v.state case 1: @@ -1279,7 +1350,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*IntervalMonthDayNano); i { + switch v := v.(*FlightMetadata); i { case 0: return &v.state case 1: @@ -1291,7 +1362,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Decimal128); i { + switch v := v.(*IntervalMonthDayNano); i { case 0: return &v.state case 1: @@ -1303,7 +1374,7 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ColumnDataTypeExtension); i { + switch v := v.(*Decimal128); i { case 0: return &v.state case 1: @@ -1315,6 +1386,18 @@ func file_greptime_v1_common_proto_init() { } } file_greptime_v1_common_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ColumnDataTypeExtension); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_greptime_v1_common_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DecimalTypeExtension); i { case 0: return &v.state @@ -1331,7 +1414,7 @@ func file_greptime_v1_common_proto_init() { (*AuthHeader_Basic)(nil), (*AuthHeader_Token)(nil), } - file_greptime_v1_common_proto_msgTypes[11].OneofWrappers = []interface{}{ + file_greptime_v1_common_proto_msgTypes[12].OneofWrappers = []interface{}{ (*ColumnDataTypeExtension_DecimalType)(nil), } type x struct{} @@ -1340,7 +1423,7 @@ func file_greptime_v1_common_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_common_proto_rawDesc, NumEnums: 2, - NumMessages: 14, + NumMessages: 15, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/ddl.pb.go b/go/greptime/v1/ddl.pb.go index 9019919d..bb1a8c65 100644 --- a/go/greptime/v1/ddl.pb.go +++ b/go/greptime/v1/ddl.pb.go @@ -77,7 +77,7 @@ func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber { // Deprecated: Use AddColumnLocation_LocationType.Descriptor instead. func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17, 0} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16, 0} } // "Data Definition Language" requests, that create, modify or delete the @@ -241,16 +241,16 @@ type CreateFlowTaskExpr struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"` - TaskName string `protobuf:"bytes,2,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` - SourceTableNames []*SchemaScopedTableName `protobuf:"bytes,3,rep,name=source_table_names,json=sourceTableNames,proto3" json:"source_table_names,omitempty"` - SinkTableName *SchemaScopedTableName `protobuf:"bytes,4,opt,name=sink_table_name,json=sinkTableName,proto3" json:"sink_table_name,omitempty"` - OrReplace bool `protobuf:"varint,5,opt,name=or_replace,json=orReplace,proto3" json:"or_replace,omitempty"` - CreateIfNotExists bool `protobuf:"varint,6,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"` - ExpireWhen string `protobuf:"bytes,7,opt,name=expire_when,json=expireWhen,proto3" json:"expire_when,omitempty"` - Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"` - Sql string `protobuf:"bytes,9,opt,name=sql,proto3" json:"sql,omitempty"` - TaskOptions map[string]string `protobuf:"bytes,10,rep,name=task_options,json=taskOptions,proto3" json:"task_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"` + TaskName string `protobuf:"bytes,2,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` + SourceTableNames []*TableName `protobuf:"bytes,3,rep,name=source_table_names,json=sourceTableNames,proto3" json:"source_table_names,omitempty"` + SinkTableName *TableName `protobuf:"bytes,4,opt,name=sink_table_name,json=sinkTableName,proto3" json:"sink_table_name,omitempty"` + OrReplace bool `protobuf:"varint,5,opt,name=or_replace,json=orReplace,proto3" json:"or_replace,omitempty"` + CreateIfNotExists bool `protobuf:"varint,6,opt,name=create_if_not_exists,json=createIfNotExists,proto3" json:"create_if_not_exists,omitempty"` + ExpireWhen string `protobuf:"bytes,7,opt,name=expire_when,json=expireWhen,proto3" json:"expire_when,omitempty"` + Comment string `protobuf:"bytes,8,opt,name=comment,proto3" json:"comment,omitempty"` + Sql string `protobuf:"bytes,9,opt,name=sql,proto3" json:"sql,omitempty"` + TaskOptions map[string]string `protobuf:"bytes,10,rep,name=task_options,json=taskOptions,proto3" json:"task_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` } func (x *CreateFlowTaskExpr) Reset() { @@ -299,14 +299,14 @@ func (x *CreateFlowTaskExpr) GetTaskName() string { return "" } -func (x *CreateFlowTaskExpr) GetSourceTableNames() []*SchemaScopedTableName { +func (x *CreateFlowTaskExpr) GetSourceTableNames() []*TableName { if x != nil { return x.SourceTableNames } return nil } -func (x *CreateFlowTaskExpr) GetSinkTableName() *SchemaScopedTableName { +func (x *CreateFlowTaskExpr) GetSinkTableName() *TableName { if x != nil { return x.SinkTableName } @@ -355,62 +355,6 @@ func (x *CreateFlowTaskExpr) GetTaskOptions() map[string]string { return nil } -// Table name -type SchemaScopedTableName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - SchemaName string `protobuf:"bytes,1,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` - TableName string `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` -} - -func (x *SchemaScopedTableName) Reset() { - *x = SchemaScopedTableName{} - if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SchemaScopedTableName) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SchemaScopedTableName) ProtoMessage() {} - -func (x *SchemaScopedTableName) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[2] - 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 SchemaScopedTableName.ProtoReflect.Descriptor instead. -func (*SchemaScopedTableName) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{2} -} - -func (x *SchemaScopedTableName) GetSchemaName() string { - if x != nil { - return x.SchemaName - } - return "" -} - -func (x *SchemaScopedTableName) GetTableName() string { - if x != nil { - return x.TableName - } - return "" -} - // Remove a flow task. type DropFlowTaskExpr struct { state protoimpl.MessageState @@ -424,7 +368,7 @@ type DropFlowTaskExpr struct { func (x *DropFlowTaskExpr) Reset() { *x = DropFlowTaskExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[3] + mi := &file_greptime_v1_ddl_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -437,7 +381,7 @@ func (x *DropFlowTaskExpr) String() string { func (*DropFlowTaskExpr) ProtoMessage() {} func (x *DropFlowTaskExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[3] + mi := &file_greptime_v1_ddl_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -450,7 +394,7 @@ func (x *DropFlowTaskExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use DropFlowTaskExpr.ProtoReflect.Descriptor instead. func (*DropFlowTaskExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{3} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{2} } func (x *DropFlowTaskExpr) GetCatalogName() string { @@ -488,7 +432,7 @@ type CreateTableExpr struct { func (x *CreateTableExpr) Reset() { *x = CreateTableExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[4] + mi := &file_greptime_v1_ddl_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -501,7 +445,7 @@ func (x *CreateTableExpr) String() string { func (*CreateTableExpr) ProtoMessage() {} func (x *CreateTableExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[4] + mi := &file_greptime_v1_ddl_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -514,7 +458,7 @@ func (x *CreateTableExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateTableExpr.ProtoReflect.Descriptor instead. func (*CreateTableExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{4} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{3} } func (x *CreateTableExpr) GetCatalogName() string { @@ -613,7 +557,7 @@ type AlterExpr struct { func (x *AlterExpr) Reset() { *x = AlterExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[5] + mi := &file_greptime_v1_ddl_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -626,7 +570,7 @@ func (x *AlterExpr) String() string { func (*AlterExpr) ProtoMessage() {} func (x *AlterExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[5] + mi := &file_greptime_v1_ddl_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -639,7 +583,7 @@ func (x *AlterExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use AlterExpr.ProtoReflect.Descriptor instead. func (*AlterExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{5} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{4} } func (x *AlterExpr) GetCatalogName() string { @@ -728,7 +672,7 @@ type DropTableExpr struct { func (x *DropTableExpr) Reset() { *x = DropTableExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[6] + mi := &file_greptime_v1_ddl_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -741,7 +685,7 @@ func (x *DropTableExpr) String() string { func (*DropTableExpr) ProtoMessage() {} func (x *DropTableExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[6] + mi := &file_greptime_v1_ddl_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -754,7 +698,7 @@ func (x *DropTableExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use DropTableExpr.ProtoReflect.Descriptor instead. func (*DropTableExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{6} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{5} } func (x *DropTableExpr) GetCatalogName() string { @@ -806,7 +750,7 @@ type CreateDatabaseExpr struct { func (x *CreateDatabaseExpr) Reset() { *x = CreateDatabaseExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[7] + mi := &file_greptime_v1_ddl_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -819,7 +763,7 @@ func (x *CreateDatabaseExpr) String() string { func (*CreateDatabaseExpr) ProtoMessage() {} func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[7] + mi := &file_greptime_v1_ddl_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -832,7 +776,7 @@ func (x *CreateDatabaseExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use CreateDatabaseExpr.ProtoReflect.Descriptor instead. func (*CreateDatabaseExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{6} } func (x *CreateDatabaseExpr) GetCatalogName() string { @@ -877,7 +821,7 @@ type TruncateTableExpr struct { func (x *TruncateTableExpr) Reset() { *x = TruncateTableExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[8] + mi := &file_greptime_v1_ddl_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -890,7 +834,7 @@ func (x *TruncateTableExpr) String() string { func (*TruncateTableExpr) ProtoMessage() {} func (x *TruncateTableExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[8] + mi := &file_greptime_v1_ddl_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -903,7 +847,7 @@ func (x *TruncateTableExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use TruncateTableExpr.ProtoReflect.Descriptor instead. func (*TruncateTableExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7} } func (x *TruncateTableExpr) GetCatalogName() string { @@ -947,7 +891,7 @@ type DropDatabaseExpr struct { func (x *DropDatabaseExpr) Reset() { *x = DropDatabaseExpr{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[9] + mi := &file_greptime_v1_ddl_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -960,7 +904,7 @@ func (x *DropDatabaseExpr) String() string { func (*DropDatabaseExpr) ProtoMessage() {} func (x *DropDatabaseExpr) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[9] + mi := &file_greptime_v1_ddl_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -973,7 +917,7 @@ func (x *DropDatabaseExpr) ProtoReflect() protoreflect.Message { // Deprecated: Use DropDatabaseExpr.ProtoReflect.Descriptor instead. func (*DropDatabaseExpr) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8} } func (x *DropDatabaseExpr) GetCatalogName() string { @@ -1008,7 +952,7 @@ type AddColumns struct { func (x *AddColumns) Reset() { *x = AddColumns{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[10] + mi := &file_greptime_v1_ddl_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1021,7 +965,7 @@ func (x *AddColumns) String() string { func (*AddColumns) ProtoMessage() {} func (x *AddColumns) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[10] + mi := &file_greptime_v1_ddl_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1034,7 +978,7 @@ func (x *AddColumns) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumns.ProtoReflect.Descriptor instead. func (*AddColumns) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9} } func (x *AddColumns) GetAddColumns() []*AddColumn { @@ -1055,7 +999,7 @@ type DropColumns struct { func (x *DropColumns) Reset() { *x = DropColumns{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_ddl_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1068,7 +1012,7 @@ func (x *DropColumns) String() string { func (*DropColumns) ProtoMessage() {} func (x *DropColumns) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[11] + mi := &file_greptime_v1_ddl_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1081,7 +1025,7 @@ func (x *DropColumns) ProtoReflect() protoreflect.Message { // Deprecated: Use DropColumns.ProtoReflect.Descriptor instead. func (*DropColumns) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10} } func (x *DropColumns) GetDropColumns() []*DropColumn { @@ -1102,7 +1046,7 @@ type RenameTable struct { func (x *RenameTable) Reset() { *x = RenameTable{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_ddl_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1115,7 +1059,7 @@ func (x *RenameTable) String() string { func (*RenameTable) ProtoMessage() {} func (x *RenameTable) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[12] + mi := &file_greptime_v1_ddl_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1128,7 +1072,7 @@ func (x *RenameTable) ProtoReflect() protoreflect.Message { // Deprecated: Use RenameTable.ProtoReflect.Descriptor instead. func (*RenameTable) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11} } func (x *RenameTable) GetNewTableName() string { @@ -1150,7 +1094,7 @@ type AddColumn struct { func (x *AddColumn) Reset() { *x = AddColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[13] + mi := &file_greptime_v1_ddl_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1163,7 +1107,7 @@ func (x *AddColumn) String() string { func (*AddColumn) ProtoMessage() {} func (x *AddColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[13] + mi := &file_greptime_v1_ddl_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1176,7 +1120,7 @@ func (x *AddColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumn.ProtoReflect.Descriptor instead. func (*AddColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12} } func (x *AddColumn) GetColumnDef() *ColumnDef { @@ -1204,7 +1148,7 @@ type DropColumn struct { func (x *DropColumn) Reset() { *x = DropColumn{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1217,7 +1161,7 @@ func (x *DropColumn) String() string { func (*DropColumn) ProtoMessage() {} func (x *DropColumn) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[14] + mi := &file_greptime_v1_ddl_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1230,7 +1174,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message { // Deprecated: Use DropColumn.ProtoReflect.Descriptor instead. func (*DropColumn) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13} } func (x *DropColumn) GetName() string { @@ -1251,7 +1195,7 @@ type TableId struct { func (x *TableId) Reset() { *x = TableId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1264,7 +1208,7 @@ func (x *TableId) String() string { func (*TableId) ProtoMessage() {} func (x *TableId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[15] + mi := &file_greptime_v1_ddl_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1277,7 +1221,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message { // Deprecated: Use TableId.ProtoReflect.Descriptor instead. func (*TableId) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14} } func (x *TableId) GetId() uint32 { @@ -1305,7 +1249,7 @@ type ColumnDef struct { func (x *ColumnDef) Reset() { *x = ColumnDef{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1318,7 +1262,7 @@ func (x *ColumnDef) String() string { func (*ColumnDef) ProtoMessage() {} func (x *ColumnDef) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[16] + mi := &file_greptime_v1_ddl_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1331,7 +1275,7 @@ func (x *ColumnDef) ProtoReflect() protoreflect.Message { // Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead. func (*ColumnDef) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{15} } func (x *ColumnDef) GetName() string { @@ -1395,7 +1339,7 @@ type AddColumnLocation struct { func (x *AddColumnLocation) Reset() { *x = AddColumnLocation{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_ddl_proto_msgTypes[17] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1408,7 +1352,7 @@ func (x *AddColumnLocation) String() string { func (*AddColumnLocation) ProtoMessage() {} func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_ddl_proto_msgTypes[17] + mi := &file_greptime_v1_ddl_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1421,7 +1365,7 @@ func (x *AddColumnLocation) ProtoReflect() protoreflect.Message { // Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead. func (*AddColumnLocation) Descriptor() ([]byte, []int) { - return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{17} + return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{16} } func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType { @@ -1475,216 +1419,209 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{ 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x48, 0x00, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x46, 0x6c, - 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x22, 0xa4, + 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x65, 0x78, 0x70, 0x72, 0x22, 0x8c, 0x04, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 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, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, - 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x50, 0x0a, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, + 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x44, 0x0a, 0x12, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, - 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0f, 0x73, 0x69, 0x6e, 0x6b, 0x5f, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, - 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, 0x63, 0x6f, 0x70, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0d, 0x73, 0x69, 0x6e, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x61, - 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, - 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, - 0x73, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x77, 0x68, - 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, - 0x57, 0x68, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, - 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, - 0x12, 0x53, 0x0a, 0x0c, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, - 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x4f, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x70, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x57, 0x0a, 0x15, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x53, - 0x63, 0x6f, 0x70, 0x65, 0x64, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1f, - 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x52, - 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 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, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x61, - 0x6d, 0x65, 0x22, 0x93, 0x04, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, - 0x6c, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, - 0x63, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x37, 0x0a, - 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, - 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x69, - 0x6e, 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, - 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, - 0x5f, 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x69, - 0x6d, 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, - 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x53, 0x0a, 0x0d, 0x74, 0x61, 0x62, - 0x6c, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x2e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, - 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, - 0x16, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x02, 0x0a, 0x09, 0x41, 0x6c, 0x74, - 0x65, 0x72, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x64, 0x64, - 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, - 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, - 0x61, 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, - 0x62, 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, - 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, - 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, - 0x73, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, - 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 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, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, - 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, - 0x73, 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, - 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, + 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x10, 0x73, 0x6f, 0x75, 0x72, 0x63, + 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x12, 0x3e, 0x0a, 0x0f, 0x73, + 0x69, 0x6e, 0x6b, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x0d, 0x73, 0x69, + 0x6e, 0x6b, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x6f, + 0x72, 0x5f, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x09, 0x6f, 0x72, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, + 0x74, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x65, + 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x77, 0x68, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x57, 0x68, 0x65, 0x6e, 0x12, 0x18, 0x0a, 0x07, + 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, + 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x71, 0x6c, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x03, 0x73, 0x71, 0x6c, 0x12, 0x53, 0x0a, 0x0c, 0x74, 0x61, 0x73, 0x6b, + 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, + 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, + 0x61, 0x74, 0x65, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 0x45, 0x78, 0x70, 0x72, 0x2e, + 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x52, 0x0b, 0x74, 0x61, 0x73, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3e, 0x0a, + 0x10, 0x54, 0x61, 0x73, 0x6b, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x52, 0x0a, + 0x10, 0x44, 0x72, 0x6f, 0x70, 0x46, 0x6c, 0x6f, 0x77, 0x54, 0x61, 0x73, 0x6b, 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, 0x1b, 0x0a, 0x09, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x61, 0x73, 0x6b, 0x4e, 0x61, 0x6d, + 0x65, 0x22, 0x93, 0x04, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, + 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x12, 0x37, 0x0a, 0x0b, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, + 0x6e, 0x44, 0x65, 0x66, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x69, 0x6e, + 0x64, 0x65, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x49, + 0x6e, 0x64, 0x65, 0x78, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, + 0x6b, 0x65, 0x79, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x69, 0x6d, + 0x61, 0x72, 0x79, 0x4b, 0x65, 0x79, 0x73, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, + 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, + 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x53, 0x0a, 0x0d, 0x74, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x2e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, + 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x2f, 0x0a, + 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x16, + 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x1a, 0x3f, 0x0a, 0x11, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, - 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21, 0x0a, + 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xb0, 0x02, 0x0a, 0x09, 0x41, 0x6c, 0x74, 0x65, + 0x72, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x73, 0x12, 0x3d, 0x0a, 0x0c, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x74, 0x61, + 0x62, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, + 0x62, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x6b, 0x69, 0x6e, 0x64, 0x22, 0xc9, 0x01, 0x0a, 0x0d, 0x44, + 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, + 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, + 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, + 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x8d, 0x02, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, + 0x65, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, - 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, - 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 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, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, - 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, - 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, - 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, - 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, - 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, - 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, - 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, - 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, - 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, - 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, - 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, - 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, - 0x02, 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, - 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, - 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, - 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, - 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, - 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, - 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, - 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, - 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, - 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, - 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, - 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb7, - 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, + 0x65, 0x12, 0x2f, 0x0a, 0x14, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x66, 0x5f, 0x6e, + 0x6f, 0x74, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x49, 0x66, 0x4e, 0x6f, 0x74, 0x45, 0x78, 0x69, 0x73, + 0x74, 0x73, 0x12, 0x46, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x2c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, + 0x45, 0x78, 0x70, 0x72, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x4f, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, + 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xa7, 0x01, 0x0a, 0x11, 0x54, 0x72, 0x75, 0x6e, 0x63, + 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, + 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 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, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, + 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, + 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, + 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, + 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, + 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, + 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, - 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, - 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, - 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, - 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 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, + 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, + 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, + 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, + 0x54, 0x79, 0x70, 0x65, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, + 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, + 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, + 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, + 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, + 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, + 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, + 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, + 0x74, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, + 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, + 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, + 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, + 0x41, 0x46, 0x54, 0x45, 0x52, 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 ( @@ -1700,58 +1637,58 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte { } var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 21) +var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 20) var file_greptime_v1_ddl_proto_goTypes = []interface{}{ (AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType (*DdlRequest)(nil), // 1: greptime.v1.DdlRequest (*CreateFlowTaskExpr)(nil), // 2: greptime.v1.CreateFlowTaskExpr - (*SchemaScopedTableName)(nil), // 3: greptime.v1.SchemaScopedTableName - (*DropFlowTaskExpr)(nil), // 4: greptime.v1.DropFlowTaskExpr - (*CreateTableExpr)(nil), // 5: greptime.v1.CreateTableExpr - (*AlterExpr)(nil), // 6: greptime.v1.AlterExpr - (*DropTableExpr)(nil), // 7: greptime.v1.DropTableExpr - (*CreateDatabaseExpr)(nil), // 8: greptime.v1.CreateDatabaseExpr - (*TruncateTableExpr)(nil), // 9: greptime.v1.TruncateTableExpr - (*DropDatabaseExpr)(nil), // 10: greptime.v1.DropDatabaseExpr - (*AddColumns)(nil), // 11: greptime.v1.AddColumns - (*DropColumns)(nil), // 12: greptime.v1.DropColumns - (*RenameTable)(nil), // 13: greptime.v1.RenameTable - (*AddColumn)(nil), // 14: greptime.v1.AddColumn - (*DropColumn)(nil), // 15: greptime.v1.DropColumn - (*TableId)(nil), // 16: greptime.v1.TableId - (*ColumnDef)(nil), // 17: greptime.v1.ColumnDef - (*AddColumnLocation)(nil), // 18: greptime.v1.AddColumnLocation - nil, // 19: greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry - nil, // 20: greptime.v1.CreateTableExpr.TableOptionsEntry - nil, // 21: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*DropFlowTaskExpr)(nil), // 3: greptime.v1.DropFlowTaskExpr + (*CreateTableExpr)(nil), // 4: greptime.v1.CreateTableExpr + (*AlterExpr)(nil), // 5: greptime.v1.AlterExpr + (*DropTableExpr)(nil), // 6: greptime.v1.DropTableExpr + (*CreateDatabaseExpr)(nil), // 7: greptime.v1.CreateDatabaseExpr + (*TruncateTableExpr)(nil), // 8: greptime.v1.TruncateTableExpr + (*DropDatabaseExpr)(nil), // 9: greptime.v1.DropDatabaseExpr + (*AddColumns)(nil), // 10: greptime.v1.AddColumns + (*DropColumns)(nil), // 11: greptime.v1.DropColumns + (*RenameTable)(nil), // 12: greptime.v1.RenameTable + (*AddColumn)(nil), // 13: greptime.v1.AddColumn + (*DropColumn)(nil), // 14: greptime.v1.DropColumn + (*TableId)(nil), // 15: greptime.v1.TableId + (*ColumnDef)(nil), // 16: greptime.v1.ColumnDef + (*AddColumnLocation)(nil), // 17: greptime.v1.AddColumnLocation + nil, // 18: greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry + nil, // 19: greptime.v1.CreateTableExpr.TableOptionsEntry + nil, // 20: greptime.v1.CreateDatabaseExpr.OptionsEntry + (*TableName)(nil), // 21: greptime.v1.TableName (ColumnDataType)(0), // 22: greptime.v1.ColumnDataType (SemanticType)(0), // 23: greptime.v1.SemanticType (*ColumnDataTypeExtension)(nil), // 24: greptime.v1.ColumnDataTypeExtension } var file_greptime_v1_ddl_proto_depIdxs = []int32{ - 8, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr - 5, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr - 6, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr - 7, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr - 9, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr + 7, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr + 4, // 1: greptime.v1.DdlRequest.create_table:type_name -> greptime.v1.CreateTableExpr + 5, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr + 6, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr + 8, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr 2, // 5: greptime.v1.DdlRequest.create_flow_task:type_name -> greptime.v1.CreateFlowTaskExpr - 4, // 6: greptime.v1.DdlRequest.drop_flow_task:type_name -> greptime.v1.DropFlowTaskExpr - 3, // 7: greptime.v1.CreateFlowTaskExpr.source_table_names:type_name -> greptime.v1.SchemaScopedTableName - 3, // 8: greptime.v1.CreateFlowTaskExpr.sink_table_name:type_name -> greptime.v1.SchemaScopedTableName - 19, // 9: greptime.v1.CreateFlowTaskExpr.task_options:type_name -> greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry - 17, // 10: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef - 20, // 11: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry - 16, // 12: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId - 11, // 13: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns - 12, // 14: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns - 13, // 15: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable - 16, // 16: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId - 21, // 17: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry - 16, // 18: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId - 14, // 19: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn - 15, // 20: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn - 17, // 21: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef - 18, // 22: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation + 3, // 6: greptime.v1.DdlRequest.drop_flow_task:type_name -> greptime.v1.DropFlowTaskExpr + 21, // 7: greptime.v1.CreateFlowTaskExpr.source_table_names:type_name -> greptime.v1.TableName + 21, // 8: greptime.v1.CreateFlowTaskExpr.sink_table_name:type_name -> greptime.v1.TableName + 18, // 9: greptime.v1.CreateFlowTaskExpr.task_options:type_name -> greptime.v1.CreateFlowTaskExpr.TaskOptionsEntry + 16, // 10: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef + 19, // 11: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry + 15, // 12: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId + 10, // 13: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns + 11, // 14: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns + 12, // 15: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable + 15, // 16: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId + 20, // 17: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry + 15, // 18: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId + 13, // 19: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn + 14, // 20: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn + 16, // 21: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef + 17, // 22: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation 22, // 23: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType 23, // 24: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType 24, // 25: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension @@ -1795,18 +1732,6 @@ func file_greptime_v1_ddl_proto_init() { } } file_greptime_v1_ddl_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SchemaScopedTableName); 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[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DropFlowTaskExpr); i { case 0: return &v.state @@ -1818,7 +1743,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateTableExpr); i { case 0: return &v.state @@ -1830,7 +1755,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AlterExpr); i { case 0: return &v.state @@ -1842,7 +1767,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DropTableExpr); i { case 0: return &v.state @@ -1854,7 +1779,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CreateDatabaseExpr); i { case 0: return &v.state @@ -1866,7 +1791,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TruncateTableExpr); i { case 0: return &v.state @@ -1878,7 +1803,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DropDatabaseExpr); i { case 0: return &v.state @@ -1890,7 +1815,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumns); i { case 0: return &v.state @@ -1902,7 +1827,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DropColumns); i { case 0: return &v.state @@ -1914,7 +1839,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*RenameTable); i { case 0: return &v.state @@ -1926,7 +1851,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumn); i { case 0: return &v.state @@ -1938,7 +1863,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*DropColumn); i { case 0: return &v.state @@ -1950,7 +1875,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TableId); i { case 0: return &v.state @@ -1962,7 +1887,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ColumnDef); i { case 0: return &v.state @@ -1974,7 +1899,7 @@ func file_greptime_v1_ddl_proto_init() { return nil } } - file_greptime_v1_ddl_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_ddl_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AddColumnLocation); i { case 0: return &v.state @@ -1996,7 +1921,7 @@ func file_greptime_v1_ddl_proto_init() { (*DdlRequest_CreateFlowTask)(nil), (*DdlRequest_DropFlowTask)(nil), } - file_greptime_v1_ddl_proto_msgTypes[5].OneofWrappers = []interface{}{ + file_greptime_v1_ddl_proto_msgTypes[4].OneofWrappers = []interface{}{ (*AlterExpr_AddColumns)(nil), (*AlterExpr_DropColumns)(nil), (*AlterExpr_RenameTable)(nil), @@ -2007,7 +1932,7 @@ func file_greptime_v1_ddl_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_ddl_proto_rawDesc, NumEnums: 1, - NumMessages: 21, + NumMessages: 20, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/meta/common.pb.go b/go/greptime/v1/meta/common.pb.go index 5f320558..ce72c3d8 100644 --- a/go/greptime/v1/meta/common.pb.go +++ b/go/greptime/v1/meta/common.pb.go @@ -384,69 +384,6 @@ func (x *TableId) GetId() uint32 { return 0 } -type TableName struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CatalogName string `protobuf:"bytes,1,opt,name=catalog_name,json=catalogName,proto3" json:"catalog_name,omitempty"` - SchemaName string `protobuf:"bytes,2,opt,name=schema_name,json=schemaName,proto3" json:"schema_name,omitempty"` - TableName string `protobuf:"bytes,3,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` -} - -func (x *TableName) Reset() { - *x = TableName{} - if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_common_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TableName) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TableName) ProtoMessage() {} - -func (x *TableName) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_common_proto_msgTypes[5] - 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 TableName.ProtoReflect.Descriptor instead. -func (*TableName) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{5} -} - -func (x *TableName) GetCatalogName() string { - if x != nil { - return x.CatalogName - } - return "" -} - -func (x *TableName) GetSchemaName() string { - if x != nil { - return x.SchemaName - } - return "" -} - -func (x *TableName) GetTableName() string { - if x != nil { - return x.TableName - } - return "" -} - type TimeInterval struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -461,7 +398,7 @@ type TimeInterval struct { func (x *TimeInterval) Reset() { *x = TimeInterval{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_common_proto_msgTypes[6] + mi := &file_greptime_v1_meta_common_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -474,7 +411,7 @@ func (x *TimeInterval) String() string { func (*TimeInterval) ProtoMessage() {} func (x *TimeInterval) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_common_proto_msgTypes[6] + mi := &file_greptime_v1_meta_common_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -487,7 +424,7 @@ func (x *TimeInterval) ProtoReflect() protoreflect.Message { // Deprecated: Use TimeInterval.ProtoReflect.Descriptor instead. func (*TimeInterval) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{6} + return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{5} } func (x *TimeInterval) GetStartTimestampMillis() int64 { @@ -518,7 +455,7 @@ type KeyValue struct { func (x *KeyValue) Reset() { *x = KeyValue{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_common_proto_msgTypes[7] + mi := &file_greptime_v1_meta_common_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -531,7 +468,7 @@ func (x *KeyValue) String() string { func (*KeyValue) ProtoMessage() {} func (x *KeyValue) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_common_proto_msgTypes[7] + mi := &file_greptime_v1_meta_common_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -544,7 +481,7 @@ func (x *KeyValue) ProtoReflect() protoreflect.Message { // Deprecated: Use KeyValue.ProtoReflect.Descriptor instead. func (*KeyValue) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{7} + return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{6} } func (x *KeyValue) GetKey() []byte { @@ -573,7 +510,7 @@ type ProcedureId struct { func (x *ProcedureId) Reset() { *x = ProcedureId{} if protoimpl.UnsafeEnabled { - mi := &file_greptime_v1_meta_common_proto_msgTypes[8] + mi := &file_greptime_v1_meta_common_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -586,7 +523,7 @@ func (x *ProcedureId) String() string { func (*ProcedureId) ProtoMessage() {} func (x *ProcedureId) ProtoReflect() protoreflect.Message { - mi := &file_greptime_v1_meta_common_proto_msgTypes[8] + mi := &file_greptime_v1_meta_common_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -599,7 +536,7 @@ func (x *ProcedureId) ProtoReflect() protoreflect.Message { // Deprecated: Use ProcedureId.ProtoReflect.Descriptor instead. func (*ProcedureId) Descriptor() ([]byte, []int) { - return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{8} + return file_greptime_v1_meta_common_proto_rawDescGZIP(), []int{7} } func (x *ProcedureId) GetKey() []byte { @@ -652,13 +589,6 @@ var file_greptime_v1_meta_common_proto_rawDesc = []byte{ 0x64, 0x12, 0x12, 0x0a, 0x04, 0x61, 0x64, 0x64, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x61, 0x64, 0x64, 0x72, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x6e, 0x0a, 0x09, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 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, 0x1d, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x76, 0x0a, 0x0c, 0x54, 0x69, 0x6d, 0x65, 0x49, 0x6e, 0x74, 0x65, 0x72, 0x76, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x16, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x5f, 0x6d, 0x69, 0x6c, 0x6c, 0x69, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, @@ -694,7 +624,7 @@ func file_greptime_v1_meta_common_proto_rawDescGZIP() []byte { } var file_greptime_v1_meta_common_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_greptime_v1_meta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 10) +var file_greptime_v1_meta_common_proto_msgTypes = make([]protoimpl.MessageInfo, 9) var file_greptime_v1_meta_common_proto_goTypes = []interface{}{ (Role)(0), // 0: greptime.v1.meta.Role (*RequestHeader)(nil), // 1: greptime.v1.meta.RequestHeader @@ -702,21 +632,20 @@ var file_greptime_v1_meta_common_proto_goTypes = []interface{}{ (*Error)(nil), // 3: greptime.v1.meta.Error (*Peer)(nil), // 4: greptime.v1.meta.Peer (*TableId)(nil), // 5: greptime.v1.meta.TableId - (*TableName)(nil), // 6: greptime.v1.meta.TableName - (*TimeInterval)(nil), // 7: greptime.v1.meta.TimeInterval - (*KeyValue)(nil), // 8: greptime.v1.meta.KeyValue - (*ProcedureId)(nil), // 9: greptime.v1.meta.ProcedureId - nil, // 10: greptime.v1.meta.RequestHeader.TracingContextEntry + (*TimeInterval)(nil), // 6: greptime.v1.meta.TimeInterval + (*KeyValue)(nil), // 7: greptime.v1.meta.KeyValue + (*ProcedureId)(nil), // 8: greptime.v1.meta.ProcedureId + nil, // 9: greptime.v1.meta.RequestHeader.TracingContextEntry } var file_greptime_v1_meta_common_proto_depIdxs = []int32{ - 0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role - 10, // 1: greptime.v1.meta.RequestHeader.tracing_context:type_name -> greptime.v1.meta.RequestHeader.TracingContextEntry - 3, // 2: greptime.v1.meta.ResponseHeader.error:type_name -> greptime.v1.meta.Error - 3, // [3:3] is the sub-list for method output_type - 3, // [3:3] is the sub-list for method input_type - 3, // [3:3] is the sub-list for extension type_name - 3, // [3:3] is the sub-list for extension extendee - 0, // [0:3] is the sub-list for field type_name + 0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role + 9, // 1: greptime.v1.meta.RequestHeader.tracing_context:type_name -> greptime.v1.meta.RequestHeader.TracingContextEntry + 3, // 2: greptime.v1.meta.ResponseHeader.error:type_name -> greptime.v1.meta.Error + 3, // [3:3] is the sub-list for method output_type + 3, // [3:3] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name } func init() { file_greptime_v1_meta_common_proto_init() } @@ -786,18 +715,6 @@ func file_greptime_v1_meta_common_proto_init() { } } file_greptime_v1_meta_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TableName); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_greptime_v1_meta_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TimeInterval); i { case 0: return &v.state @@ -809,7 +726,7 @@ func file_greptime_v1_meta_common_proto_init() { return nil } } - file_greptime_v1_meta_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_meta_common_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*KeyValue); i { case 0: return &v.state @@ -821,7 +738,7 @@ func file_greptime_v1_meta_common_proto_init() { return nil } } - file_greptime_v1_meta_common_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_greptime_v1_meta_common_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ProcedureId); i { case 0: return &v.state @@ -840,7 +757,7 @@ func file_greptime_v1_meta_common_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_greptime_v1_meta_common_proto_rawDesc, NumEnums: 1, - NumMessages: 10, + NumMessages: 9, NumExtensions: 0, NumServices: 0, }, diff --git a/go/greptime/v1/meta/route.pb.go b/go/greptime/v1/meta/route.pb.go index dc5dd029..123879fb 100644 --- a/go/greptime/v1/meta/route.pb.go +++ b/go/greptime/v1/meta/route.pb.go @@ -21,6 +21,7 @@ package meta import ( + v1 "github.com/GreptimeTeam/greptime-proto/go/greptime/v1" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" @@ -159,9 +160,9 @@ type Table struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - TableName *TableName `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` - TableSchema []byte `protobuf:"bytes,3,opt,name=table_schema,json=tableSchema,proto3" json:"table_schema,omitempty"` + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + TableName *v1.TableName `protobuf:"bytes,2,opt,name=table_name,json=tableName,proto3" json:"table_name,omitempty"` + TableSchema []byte `protobuf:"bytes,3,opt,name=table_schema,json=tableSchema,proto3" json:"table_schema,omitempty"` } func (x *Table) Reset() { @@ -203,7 +204,7 @@ func (x *Table) GetId() uint64 { return 0 } -func (x *Table) GetTableName() *TableName { +func (x *Table) GetTableName() *v1.TableName { if x != nil { return x.TableName } @@ -409,64 +410,66 @@ var file_greptime_v1_meta_route_proto_rawDesc = []byte{ 0x74, 0x61, 0x2f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x1a, 0x1d, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, - 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, - 0x7f, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x2d, 0x0a, - 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x42, 0x0a, 0x0d, - 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, - 0x74, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, - 0x22, 0x9f, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, - 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, - 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, - 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, - 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, - 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x32, - 0x0a, 0x15, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x13, 0x66, - 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, - 0x65, 0x73, 0x22, 0x76, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x0a, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, - 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x61, - 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x74, - 0x61, 0x62, 0x6c, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xdc, 0x01, 0x0a, 0x06, 0x52, - 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x70, 0x61, 0x72, - 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, - 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x74, 0x74, 0x72, 0x73, 0x18, 0x64, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, - 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x74, - 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x61, 0x74, 0x74, 0x72, 0x73, 0x1a, - 0x38, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4b, 0x0a, 0x09, 0x50, 0x61, 0x72, - 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, - 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6c, - 0x75, 0x6d, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, - 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x7e, 0x0a, 0x0f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, - 0x6f, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x70, 0x65, 0x65, - 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, - 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, - 0x52, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, - 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, - 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, - 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, - 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, - 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, - 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d, + 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x0a, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, + 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, + 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, + 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x0c, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0b, 0x52, + 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, + 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, + 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, + 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50, + 0x65, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x32, 0x0a, 0x15, 0x66, 0x6f, 0x6c, 0x6c, + 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, + 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x13, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, + 0x72, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x22, 0x71, 0x0a, 0x05, + 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, + 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, + 0x65, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, + 0xdc, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, + 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, + 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x74, 0x74, + 0x72, 0x73, 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, + 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, + 0x6f, 0x6e, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x61, + 0x74, 0x74, 0x72, 0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4b, + 0x0a, 0x09, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, + 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, + 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x7e, 0x0a, 0x0f, 0x54, + 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, + 0x0a, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, + 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, + 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x0b, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, + 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, + 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, + 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, + 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -490,14 +493,14 @@ var file_greptime_v1_meta_route_proto_goTypes = []interface{}{ (*Partition)(nil), // 4: greptime.v1.meta.Partition (*TableRouteValue)(nil), // 5: greptime.v1.meta.TableRouteValue nil, // 6: greptime.v1.meta.Region.AttrsEntry - (*TableName)(nil), // 7: greptime.v1.meta.TableName + (*v1.TableName)(nil), // 7: greptime.v1.TableName (*Peer)(nil), // 8: greptime.v1.meta.Peer } var file_greptime_v1_meta_route_proto_depIdxs = []int32{ 2, // 0: greptime.v1.meta.TableRoute.table:type_name -> greptime.v1.meta.Table 1, // 1: greptime.v1.meta.TableRoute.region_routes:type_name -> greptime.v1.meta.RegionRoute 3, // 2: greptime.v1.meta.RegionRoute.region:type_name -> greptime.v1.meta.Region - 7, // 3: greptime.v1.meta.Table.table_name:type_name -> greptime.v1.meta.TableName + 7, // 3: greptime.v1.meta.Table.table_name:type_name -> greptime.v1.TableName 4, // 4: greptime.v1.meta.Region.partition:type_name -> greptime.v1.meta.Partition 6, // 5: greptime.v1.meta.Region.attrs:type_name -> greptime.v1.meta.Region.AttrsEntry 8, // 6: greptime.v1.meta.TableRouteValue.peers:type_name -> greptime.v1.meta.Peer diff --git a/java/src/main/java/greptime/v1/meta/Common.java b/java/src/main/java/greptime/v1/meta/Common.java index 4e880122..bba768e9 100644 --- a/java/src/main/java/greptime/v1/meta/Common.java +++ b/java/src/main/java/greptime/v1/meta/Common.java @@ -3863,876 +3863,6 @@ public greptime.v1.meta.Common.TableId getDefaultInstanceForType() { } - public interface TableNameOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.meta.TableName) - com.google.protobuf.MessageOrBuilder { - - /** - * string catalog_name = 1; - * @return The catalogName. - */ - java.lang.String getCatalogName(); - /** - * string catalog_name = 1; - * @return The bytes for catalogName. - */ - com.google.protobuf.ByteString - getCatalogNameBytes(); - - /** - * string schema_name = 2; - * @return The schemaName. - */ - java.lang.String getSchemaName(); - /** - * string schema_name = 2; - * @return The bytes for schemaName. - */ - com.google.protobuf.ByteString - getSchemaNameBytes(); - - /** - * string table_name = 3; - * @return The tableName. - */ - java.lang.String getTableName(); - /** - * string table_name = 3; - * @return The bytes for tableName. - */ - com.google.protobuf.ByteString - getTableNameBytes(); - } - /** - * Protobuf type {@code greptime.v1.meta.TableName} - */ - public static final class TableName extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.meta.TableName) - TableNameOrBuilder { - private static final long serialVersionUID = 0L; - // Use TableName.newBuilder() to construct. - private TableName(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private TableName() { - catalogName_ = ""; - schemaName_ = ""; - tableName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new TableName(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private TableName( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - - catalogName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - schemaName_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - tableName_ = 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return greptime.v1.meta.Common.internal_static_greptime_v1_meta_TableName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return greptime.v1.meta.Common.internal_static_greptime_v1_meta_TableName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - greptime.v1.meta.Common.TableName.class, greptime.v1.meta.Common.TableName.Builder.class); - } - - public static final int CATALOG_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object catalogName_; - /** - * string catalog_name = 1; - * @return The catalogName. - */ - @java.lang.Override - public java.lang.String getCatalogName() { - java.lang.Object ref = catalogName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalogName_ = s; - return s; - } - } - /** - * string catalog_name = 1; - * @return The bytes for catalogName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getCatalogNameBytes() { - java.lang.Object ref = catalogName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalogName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCHEMA_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object schemaName_; - /** - * string schema_name = 2; - * @return The schemaName. - */ - @java.lang.Override - public java.lang.String getSchemaName() { - java.lang.Object ref = schemaName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaName_ = s; - return s; - } - } - /** - * string schema_name = 2; - * @return The bytes for schemaName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSchemaNameBytes() { - java.lang.Object ref = schemaName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLE_NAME_FIELD_NUMBER = 3; - private volatile java.lang.Object tableName_; - /** - * string table_name = 3; - * @return The tableName. - */ - @java.lang.Override - public java.lang.String getTableName() { - java.lang.Object ref = tableName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tableName_ = s; - return s; - } - } - /** - * string table_name = 3; - * @return The bytes for tableName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTableNameBytes() { - java.lang.Object ref = tableName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_); - } - 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 greptime.v1.meta.Common.TableName)) { - return super.equals(obj); - } - greptime.v1.meta.Common.TableName other = (greptime.v1.meta.Common.TableName) obj; - - if (!getCatalogName() - .equals(other.getCatalogName())) return false; - if (!getSchemaName() - .equals(other.getSchemaName())) return false; - if (!getTableName() - .equals(other.getTableName())) 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(); - hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER; - hash = (53 * hash) + getCatalogName().hashCode(); - hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; - hash = (53 * hash) + getSchemaName().hashCode(); - hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTableName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static greptime.v1.meta.Common.TableName parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.Common.TableName parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.Common.TableName parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.Common.TableName parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.Common.TableName parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static greptime.v1.meta.Common.TableName parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static greptime.v1.meta.Common.TableName parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static greptime.v1.meta.Common.TableName 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 greptime.v1.meta.Common.TableName parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static greptime.v1.meta.Common.TableName 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 greptime.v1.meta.Common.TableName parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static greptime.v1.meta.Common.TableName 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(greptime.v1.meta.Common.TableName 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.meta.TableName} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.meta.TableName) - greptime.v1.meta.Common.TableNameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return greptime.v1.meta.Common.internal_static_greptime_v1_meta_TableName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return greptime.v1.meta.Common.internal_static_greptime_v1_meta_TableName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - greptime.v1.meta.Common.TableName.class, greptime.v1.meta.Common.TableName.Builder.class); - } - - // Construct using greptime.v1.meta.Common.TableName.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(); - catalogName_ = ""; - - schemaName_ = ""; - - tableName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return greptime.v1.meta.Common.internal_static_greptime_v1_meta_TableName_descriptor; - } - - @java.lang.Override - public greptime.v1.meta.Common.TableName getDefaultInstanceForType() { - return greptime.v1.meta.Common.TableName.getDefaultInstance(); - } - - @java.lang.Override - public greptime.v1.meta.Common.TableName build() { - greptime.v1.meta.Common.TableName result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public greptime.v1.meta.Common.TableName buildPartial() { - greptime.v1.meta.Common.TableName result = new greptime.v1.meta.Common.TableName(this); - result.catalogName_ = catalogName_; - result.schemaName_ = schemaName_; - result.tableName_ = tableName_; - 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 greptime.v1.meta.Common.TableName) { - return mergeFrom((greptime.v1.meta.Common.TableName)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(greptime.v1.meta.Common.TableName other) { - if (other == greptime.v1.meta.Common.TableName.getDefaultInstance()) return this; - if (!other.getCatalogName().isEmpty()) { - catalogName_ = other.catalogName_; - onChanged(); - } - if (!other.getSchemaName().isEmpty()) { - schemaName_ = other.schemaName_; - onChanged(); - } - if (!other.getTableName().isEmpty()) { - tableName_ = other.tableName_; - 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 { - greptime.v1.meta.Common.TableName parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (greptime.v1.meta.Common.TableName) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object catalogName_ = ""; - /** - * string catalog_name = 1; - * @return The catalogName. - */ - public java.lang.String getCatalogName() { - java.lang.Object ref = catalogName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - catalogName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string catalog_name = 1; - * @return The bytes for catalogName. - */ - public com.google.protobuf.ByteString - getCatalogNameBytes() { - java.lang.Object ref = catalogName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - catalogName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string catalog_name = 1; - * @param value The catalogName to set. - * @return This builder for chaining. - */ - public Builder setCatalogName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - catalogName_ = value; - onChanged(); - return this; - } - /** - * string catalog_name = 1; - * @return This builder for chaining. - */ - public Builder clearCatalogName() { - - catalogName_ = getDefaultInstance().getCatalogName(); - onChanged(); - return this; - } - /** - * string catalog_name = 1; - * @param value The bytes for catalogName to set. - * @return This builder for chaining. - */ - public Builder setCatalogNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - catalogName_ = value; - onChanged(); - return this; - } - - private java.lang.Object schemaName_ = ""; - /** - * string schema_name = 2; - * @return The schemaName. - */ - public java.lang.String getSchemaName() { - java.lang.Object ref = schemaName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string schema_name = 2; - * @return The bytes for schemaName. - */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { - java.lang.Object ref = schemaName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string schema_name = 2; - * @param value The schemaName to set. - * @return This builder for chaining. - */ - public Builder setSchemaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schemaName_ = value; - onChanged(); - return this; - } - /** - * string schema_name = 2; - * @return This builder for chaining. - */ - public Builder clearSchemaName() { - - schemaName_ = getDefaultInstance().getSchemaName(); - onChanged(); - return this; - } - /** - * string schema_name = 2; - * @param value The bytes for schemaName to set. - * @return This builder for chaining. - */ - public Builder setSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schemaName_ = value; - onChanged(); - return this; - } - - private java.lang.Object tableName_ = ""; - /** - * string table_name = 3; - * @return The tableName. - */ - public java.lang.String getTableName() { - java.lang.Object ref = tableName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tableName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string table_name = 3; - * @return The bytes for tableName. - */ - public com.google.protobuf.ByteString - getTableNameBytes() { - java.lang.Object ref = tableName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string table_name = 3; - * @param value The tableName to set. - * @return This builder for chaining. - */ - public Builder setTableName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tableName_ = value; - onChanged(); - return this; - } - /** - * string table_name = 3; - * @return This builder for chaining. - */ - public Builder clearTableName() { - - tableName_ = getDefaultInstance().getTableName(); - onChanged(); - return this; - } - /** - * string table_name = 3; - * @param value The bytes for tableName to set. - * @return This builder for chaining. - */ - public Builder setTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tableName_ = 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.meta.TableName) - } - - // @@protoc_insertion_point(class_scope:greptime.v1.meta.TableName) - private static final greptime.v1.meta.Common.TableName DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new greptime.v1.meta.Common.TableName(); - } - - public static greptime.v1.meta.Common.TableName getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableName parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new TableName(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 greptime.v1.meta.Common.TableName getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - public interface TimeIntervalOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.meta.TimeInterval) com.google.protobuf.MessageOrBuilder { @@ -6475,11 +5605,6 @@ public greptime.v1.meta.Common.ProcedureId getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_meta_TableId_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_meta_TableName_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_meta_TableName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_meta_TimeInterval_descriptor; private static final @@ -6516,15 +5641,13 @@ public greptime.v1.meta.Common.ProcedureId getDefaultInstanceForType() { "d\030\002 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met" + "a.Error\"&\n\005Error\022\014\n\004code\030\001 \001(\005\022\017\n\007err_ms" + "g\030\002 \001(\t\" \n\004Peer\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001(" + - "\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"J\n\tTableName\022\024\n" + - "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" + - "\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026" + - "start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time" + - "stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 " + - "\001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n\003key" + - "\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRONTEND" + - "\020\001B.greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; * @return Whether the tableName field is set. */ boolean hasTableName(); /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; * @return The tableName. */ - greptime.v1.meta.Common.TableName getTableName(); + io.greptime.v1.Common.TableName getTableName(); /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ - greptime.v1.meta.Common.TableNameOrBuilder getTableNameOrBuilder(); + io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder(); /** * bytes table_schema = 3; @@ -2058,11 +2058,11 @@ private Table( break; } case 18: { - greptime.v1.meta.Common.TableName.Builder subBuilder = null; + io.greptime.v1.Common.TableName.Builder subBuilder = null; if (tableName_ != null) { subBuilder = tableName_.toBuilder(); } - tableName_ = input.readMessage(greptime.v1.meta.Common.TableName.parser(), extensionRegistry); + tableName_ = input.readMessage(io.greptime.v1.Common.TableName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(tableName_); tableName_ = subBuilder.buildPartial(); @@ -2121,9 +2121,9 @@ public long getId() { } public static final int TABLE_NAME_FIELD_NUMBER = 2; - private greptime.v1.meta.Common.TableName tableName_; + private io.greptime.v1.Common.TableName tableName_; /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; * @return Whether the tableName field is set. */ @java.lang.Override @@ -2131,18 +2131,18 @@ public boolean hasTableName() { return tableName_ != null; } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; * @return The tableName. */ @java.lang.Override - public greptime.v1.meta.Common.TableName getTableName() { - return tableName_ == null ? greptime.v1.meta.Common.TableName.getDefaultInstance() : tableName_; + public io.greptime.v1.Common.TableName getTableName() { + return tableName_ == null ? io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_; } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ @java.lang.Override - public greptime.v1.meta.Common.TableNameOrBuilder getTableNameOrBuilder() { + public io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder() { return getTableName(); } @@ -2538,31 +2538,31 @@ public Builder clearId() { return this; } - private greptime.v1.meta.Common.TableName tableName_; + private io.greptime.v1.Common.TableName tableName_; private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.TableName, greptime.v1.meta.Common.TableName.Builder, greptime.v1.meta.Common.TableNameOrBuilder> tableNameBuilder_; + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder> tableNameBuilder_; /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; * @return Whether the tableName field is set. */ public boolean hasTableName() { return tableNameBuilder_ != null || tableName_ != null; } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; * @return The tableName. */ - public greptime.v1.meta.Common.TableName getTableName() { + public io.greptime.v1.Common.TableName getTableName() { if (tableNameBuilder_ == null) { - return tableName_ == null ? greptime.v1.meta.Common.TableName.getDefaultInstance() : tableName_; + return tableName_ == null ? io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_; } else { return tableNameBuilder_.getMessage(); } } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ - public Builder setTableName(greptime.v1.meta.Common.TableName value) { + public Builder setTableName(io.greptime.v1.Common.TableName value) { if (tableNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -2576,10 +2576,10 @@ public Builder setTableName(greptime.v1.meta.Common.TableName value) { return this; } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ public Builder setTableName( - greptime.v1.meta.Common.TableName.Builder builderForValue) { + io.greptime.v1.Common.TableName.Builder builderForValue) { if (tableNameBuilder_ == null) { tableName_ = builderForValue.build(); onChanged(); @@ -2590,13 +2590,13 @@ public Builder setTableName( return this; } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ - public Builder mergeTableName(greptime.v1.meta.Common.TableName value) { + public Builder mergeTableName(io.greptime.v1.Common.TableName value) { if (tableNameBuilder_ == null) { if (tableName_ != null) { tableName_ = - greptime.v1.meta.Common.TableName.newBuilder(tableName_).mergeFrom(value).buildPartial(); + io.greptime.v1.Common.TableName.newBuilder(tableName_).mergeFrom(value).buildPartial(); } else { tableName_ = value; } @@ -2608,7 +2608,7 @@ public Builder mergeTableName(greptime.v1.meta.Common.TableName value) { return this; } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ public Builder clearTableName() { if (tableNameBuilder_ == null) { @@ -2622,33 +2622,33 @@ public Builder clearTableName() { return this; } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ - public greptime.v1.meta.Common.TableName.Builder getTableNameBuilder() { + public io.greptime.v1.Common.TableName.Builder getTableNameBuilder() { onChanged(); return getTableNameFieldBuilder().getBuilder(); } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ - public greptime.v1.meta.Common.TableNameOrBuilder getTableNameOrBuilder() { + public io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder() { if (tableNameBuilder_ != null) { return tableNameBuilder_.getMessageOrBuilder(); } else { return tableName_ == null ? - greptime.v1.meta.Common.TableName.getDefaultInstance() : tableName_; + io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_; } } /** - * .greptime.v1.meta.TableName table_name = 2; + * .greptime.v1.TableName table_name = 2; */ private com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.TableName, greptime.v1.meta.Common.TableName.Builder, greptime.v1.meta.Common.TableNameOrBuilder> + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder> getTableNameFieldBuilder() { if (tableNameBuilder_ == null) { tableNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - greptime.v1.meta.Common.TableName, greptime.v1.meta.Common.TableName.Builder, greptime.v1.meta.Common.TableNameOrBuilder>( + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder>( getTableName(), getParentForChildren(), isClean()); @@ -5768,31 +5768,32 @@ public greptime.v1.meta.Route.TableRouteValue getDefaultInstanceForType() { static { java.lang.String[] descriptorData = { "\n\034greptime/v1/meta/route.proto\022\020greptime" + - ".v1.meta\032\035greptime/v1/meta/common.proto\"" + - "j\n\nTableRoute\022&\n\005table\030\001 \001(\0132\027.greptime." + - "v1.meta.Table\0224\n\rregion_routes\030\002 \003(\0132\035.g" + - "reptime.v1.meta.RegionRoute\"q\n\013RegionRou" + - "te\022(\n\006region\030\001 \001(\0132\030.greptime.v1.meta.Re" + - "gion\022\031\n\021leader_peer_index\030\002 \001(\004\022\035\n\025follo" + - "wer_peer_indexes\030\003 \003(\004\"Z\n\005Table\022\n\n\002id\030\001 " + - "\001(\004\022/\n\ntable_name\030\002 \001(\0132\033.greptime.v1.me" + - "ta.TableName\022\024\n\014table_schema\030\003 \001(\014\"\264\001\n\006R" + - "egion\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022.\n\tparti" + - "tion\030\003 \001(\0132\033.greptime.v1.meta.Partition\022" + - "2\n\005attrs\030d \003(\0132#.greptime.v1.meta.Region" + - ".AttrsEntry\032,\n\nAttrsEntry\022\013\n\003key\030\001 \001(\t\022\r" + - "\n\005value\030\002 \001(\t:\0028\001\"4\n\tPartition\022\023\n\013column" + - "_list\030\001 \003(\014\022\022\n\nvalue_list\030\002 \003(\014\"k\n\017Table" + - "RouteValue\022%\n\005peers\030\001 \003(\0132\026.greptime.v1." + - "meta.Peer\0221\n\013table_route\030\002 \001(\0132\034.greptim" + - "e.v1.meta.TableRouteBstring catalog_name = 1; + * @return The catalogName. + */ + java.lang.String getCatalogName(); + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + com.google.protobuf.ByteString + getCatalogNameBytes(); + + /** + * string schema_name = 2; + * @return The schemaName. + */ + java.lang.String getSchemaName(); + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + com.google.protobuf.ByteString + getSchemaNameBytes(); + + /** + * string table_name = 3; + * @return The tableName. + */ + java.lang.String getTableName(); + /** + * string table_name = 3; + * @return The bytes for tableName. + */ + com.google.protobuf.ByteString + getTableNameBytes(); + } + /** + * Protobuf type {@code greptime.v1.TableName} + */ + public static final class TableName extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:greptime.v1.TableName) + TableNameOrBuilder { + private static final long serialVersionUID = 0L; + // Use TableName.newBuilder() to construct. + private TableName(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TableName() { + catalogName_ = ""; + schemaName_ = ""; + tableName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TableName(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private TableName( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + + catalogName_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + schemaName_ = s; + break; + } + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + + tableName_ = 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_TableName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_TableName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.TableName.class, io.greptime.v1.Common.TableName.Builder.class); + } + + public static final int CATALOG_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object catalogName_; + /** + * string catalog_name = 1; + * @return The catalogName. + */ + @java.lang.Override + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogName_ = s; + return s; + } + } + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCHEMA_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object schemaName_; + /** + * string schema_name = 2; + * @return The schemaName. + */ + @java.lang.Override + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } + } + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TABLE_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object tableName_; + /** + * string table_name = 3; + * @return The tableName. + */ + @java.lang.Override + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } + } + /** + * string table_name = 3; + * @return The bytes for tableName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, tableName_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(catalogName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, catalogName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, schemaName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, tableName_); + } + 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.Common.TableName)) { + return super.equals(obj); + } + io.greptime.v1.Common.TableName other = (io.greptime.v1.Common.TableName) obj; + + if (!getCatalogName() + .equals(other.getCatalogName())) return false; + if (!getSchemaName() + .equals(other.getSchemaName())) return false; + if (!getTableName() + .equals(other.getTableName())) 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(); + hash = (37 * hash) + CATALOG_NAME_FIELD_NUMBER; + hash = (53 * hash) + getCatalogName().hashCode(); + hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; + hash = (53 * hash) + getSchemaName().hashCode(); + hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTableName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.greptime.v1.Common.TableName parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TableName 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.Common.TableName parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TableName 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.Common.TableName parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.greptime.v1.Common.TableName parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.greptime.v1.Common.TableName parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TableName 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.Common.TableName parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TableName 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.Common.TableName parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.greptime.v1.Common.TableName 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.Common.TableName 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.TableName} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:greptime.v1.TableName) + io.greptime.v1.Common.TableNameOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.greptime.v1.Common.internal_static_greptime_v1_TableName_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.greptime.v1.Common.internal_static_greptime_v1_TableName_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.greptime.v1.Common.TableName.class, io.greptime.v1.Common.TableName.Builder.class); + } + + // Construct using io.greptime.v1.Common.TableName.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(); + catalogName_ = ""; + + schemaName_ = ""; + + tableName_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.greptime.v1.Common.internal_static_greptime_v1_TableName_descriptor; + } + + @java.lang.Override + public io.greptime.v1.Common.TableName getDefaultInstanceForType() { + return io.greptime.v1.Common.TableName.getDefaultInstance(); + } + + @java.lang.Override + public io.greptime.v1.Common.TableName build() { + io.greptime.v1.Common.TableName result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.greptime.v1.Common.TableName buildPartial() { + io.greptime.v1.Common.TableName result = new io.greptime.v1.Common.TableName(this); + result.catalogName_ = catalogName_; + result.schemaName_ = schemaName_; + result.tableName_ = tableName_; + 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.Common.TableName) { + return mergeFrom((io.greptime.v1.Common.TableName)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.greptime.v1.Common.TableName other) { + if (other == io.greptime.v1.Common.TableName.getDefaultInstance()) return this; + if (!other.getCatalogName().isEmpty()) { + catalogName_ = other.catalogName_; + onChanged(); + } + if (!other.getSchemaName().isEmpty()) { + schemaName_ = other.schemaName_; + onChanged(); + } + if (!other.getTableName().isEmpty()) { + tableName_ = other.tableName_; + 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.Common.TableName parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.greptime.v1.Common.TableName) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object catalogName_ = ""; + /** + * string catalog_name = 1; + * @return The catalogName. + */ + public java.lang.String getCatalogName() { + java.lang.Object ref = catalogName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + catalogName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string catalog_name = 1; + * @return The bytes for catalogName. + */ + public com.google.protobuf.ByteString + getCatalogNameBytes() { + java.lang.Object ref = catalogName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + catalogName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string catalog_name = 1; + * @param value The catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + catalogName_ = value; + onChanged(); + return this; + } + /** + * string catalog_name = 1; + * @return This builder for chaining. + */ + public Builder clearCatalogName() { + + catalogName_ = getDefaultInstance().getCatalogName(); + onChanged(); + return this; + } + /** + * string catalog_name = 1; + * @param value The bytes for catalogName to set. + * @return This builder for chaining. + */ + public Builder setCatalogNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + catalogName_ = value; + onChanged(); + return this; + } + + private java.lang.Object schemaName_ = ""; + /** + * string schema_name = 2; + * @return The schemaName. + */ + public java.lang.String getSchemaName() { + java.lang.Object ref = schemaName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + schemaName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string schema_name = 2; + * @return The bytes for schemaName. + */ + public com.google.protobuf.ByteString + getSchemaNameBytes() { + java.lang.Object ref = schemaName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + schemaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string schema_name = 2; + * @param value The schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + schemaName_ = value; + onChanged(); + return this; + } + /** + * string schema_name = 2; + * @return This builder for chaining. + */ + public Builder clearSchemaName() { + + schemaName_ = getDefaultInstance().getSchemaName(); + onChanged(); + return this; + } + /** + * string schema_name = 2; + * @param value The bytes for schemaName to set. + * @return This builder for chaining. + */ + public Builder setSchemaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + schemaName_ = value; + onChanged(); + return this; + } + + private java.lang.Object tableName_ = ""; + /** + * string table_name = 3; + * @return The tableName. + */ + public java.lang.String getTableName() { + java.lang.Object ref = tableName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tableName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string table_name = 3; + * @return The bytes for tableName. + */ + public com.google.protobuf.ByteString + getTableNameBytes() { + java.lang.Object ref = tableName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + tableName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string table_name = 3; + * @param value The tableName to set. + * @return This builder for chaining. + */ + public Builder setTableName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + tableName_ = value; + onChanged(); + return this; + } + /** + * string table_name = 3; + * @return This builder for chaining. + */ + public Builder clearTableName() { + + tableName_ = getDefaultInstance().getTableName(); + onChanged(); + return this; + } + /** + * string table_name = 3; + * @param value The bytes for tableName to set. + * @return This builder for chaining. + */ + public Builder setTableNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + tableName_ = 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.TableName) + } + + // @@protoc_insertion_point(class_scope:greptime.v1.TableName) + private static final io.greptime.v1.Common.TableName DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.greptime.v1.Common.TableName(); + } + + public static io.greptime.v1.Common.TableName getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TableName parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new TableName(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.Common.TableName getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + public interface AffectedRowsOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.AffectedRows) com.google.protobuf.MessageOrBuilder { @@ -10191,6 +11061,11 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_Token_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_greptime_v1_TableName_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_greptime_v1_TableName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_AffectedRows_descriptor; private static final @@ -10249,36 +11124,37 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { "ime.v1.BasicH\000\022#\n\005token\030\002 \001(\0132\022.greptime" + ".v1.TokenH\000B\r\n\013auth_scheme\"+\n\005Basic\022\020\n\010u" + "sername\030\001 \001(\t\022\020\n\010password\030\002 \001(\t\"\026\n\005Token" + - "\022\r\n\005token\030\001 \001(\t\"\035\n\014AffectedRows\022\r\n\005value" + - "\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Fl" + - "ightMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.gr" + - "eptime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132" + - "\024.greptime.v1.Metrics\"I\n\024IntervalMonthDa" + - "yNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013n" + - "anoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001" + - "(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtensio" + - "n\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v1.De" + - "cimalTypeExtensionH\000B\n\n\010type_ext\"8\n\024Deci" + - "malTypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005s" + - "cale\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005F" + - "IELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType" + - "\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005IN" + - "T32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022" + - "\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007" + - "FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DAT" + - "E\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022" + - "\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_" + - "MICROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022" + - "\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024" + - "\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020" + - "\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_D" + - "AY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023" + - "\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISEC" + - "OND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURAT" + - "ION_NANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.g" + - "reptime.v1B\006CommonZ5github.com/GreptimeT" + - "eam/greptime-proto/go/greptime/v1b\006proto" + - "3" + "\022\r\n\005token\030\001 \001(\t\"J\n\tTableName\022\024\n\014catalog_" + + "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable" + + "_name\030\003 \001(\t\"\035\n\014AffectedRows\022\r\n\005value\030\001 \001" + + "(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Flight" + + "Metadata\0220\n\raffected_rows\030\001 \001(\0132\031.grepti" + + "me.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132\024.gr" + + "eptime.v1.Metrics\"I\n\024IntervalMonthDayNan" + + "o\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanos" + + "econds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n" + + "\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n" + + "\014decimal_type\030\001 \001(\0132!.greptime.v1.Decima" + + "lTypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalT" + + "ypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale" + + "\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD" + + "\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType\022\013\n\007" + + "BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020" + + "\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006U" + + "INT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOA" + + "T64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022" + + "\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025T" + + "IMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICR" + + "OSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013T" + + "IME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TI" + + "ME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n" + + "\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_T" + + "IME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DU" + + "RATION_SECOND\020\032\022\030\n\024DURATION_MILLISECOND\020" + + "\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURATION_" + + "NANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.grept" + + "ime.v1B\006CommonZ5github.com/GreptimeTeam/" + + "greptime-proto/go/greptime/v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -10326,44 +11202,50 @@ public io.greptime.v1.Common.DecimalTypeExtension getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Token_descriptor, new java.lang.String[] { "Token", }); - internal_static_greptime_v1_AffectedRows_descriptor = + internal_static_greptime_v1_TableName_descriptor = getDescriptor().getMessageTypes().get(6); + internal_static_greptime_v1_TableName_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_greptime_v1_TableName_descriptor, + new java.lang.String[] { "CatalogName", "SchemaName", "TableName", }); + internal_static_greptime_v1_AffectedRows_descriptor = + getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_AffectedRows_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AffectedRows_descriptor, new java.lang.String[] { "Value", }); internal_static_greptime_v1_Metrics_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(8); internal_static_greptime_v1_Metrics_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Metrics_descriptor, new java.lang.String[] { "Metrics", }); internal_static_greptime_v1_FlightMetadata_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(9); internal_static_greptime_v1_FlightMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_FlightMetadata_descriptor, new java.lang.String[] { "AffectedRows", "Metrics", }); internal_static_greptime_v1_IntervalMonthDayNano_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(10); internal_static_greptime_v1_IntervalMonthDayNano_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_IntervalMonthDayNano_descriptor, new java.lang.String[] { "Months", "Days", "Nanoseconds", }); internal_static_greptime_v1_Decimal128_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(11); internal_static_greptime_v1_Decimal128_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_Decimal128_descriptor, new java.lang.String[] { "Hi", "Lo", }); internal_static_greptime_v1_ColumnDataTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(12); internal_static_greptime_v1_ColumnDataTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDataTypeExtension_descriptor, new java.lang.String[] { "DecimalType", "TypeExt", }); internal_static_greptime_v1_DecimalTypeExtension_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_greptime_v1_DecimalTypeExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DecimalTypeExtension_descriptor, diff --git a/java/src/main/java/io/greptime/v1/Ddl.java b/java/src/main/java/io/greptime/v1/Ddl.java index 9d64d7d0..2a49e958 100644 --- a/java/src/main/java/io/greptime/v1/Ddl.java +++ b/java/src/main/java/io/greptime/v1/Ddl.java @@ -2158,43 +2158,43 @@ public interface CreateFlowTaskExprOrBuilder extends getTaskNameBytes(); /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - java.util.List + java.util.List getSourceTableNamesList(); /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index); + io.greptime.v1.Common.TableName getSourceTableNames(int index); /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ int getSourceTableNamesCount(); /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - java.util.List + java.util.List getSourceTableNamesOrBuilderList(); /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + io.greptime.v1.Common.TableNameOrBuilder getSourceTableNamesOrBuilder( int index); /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; * @return Whether the sinkTableName field is set. */ boolean hasSinkTableName(); /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; * @return The sinkTableName. */ - io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName(); + io.greptime.v1.Common.TableName getSinkTableName(); /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ - io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder(); + io.greptime.v1.Common.TableNameOrBuilder getSinkTableNameOrBuilder(); /** * bool or_replace = 5; @@ -2350,19 +2350,19 @@ private CreateFlowTaskExpr( } case 26: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { - sourceTableNames_ = new java.util.ArrayList(); + sourceTableNames_ = new java.util.ArrayList(); mutable_bitField0_ |= 0x00000001; } sourceTableNames_.add( - input.readMessage(io.greptime.v1.Ddl.SchemaScopedTableName.parser(), extensionRegistry)); + input.readMessage(io.greptime.v1.Common.TableName.parser(), extensionRegistry)); break; } case 34: { - io.greptime.v1.Ddl.SchemaScopedTableName.Builder subBuilder = null; + io.greptime.v1.Common.TableName.Builder subBuilder = null; if (sinkTableName_ != null) { subBuilder = sinkTableName_.toBuilder(); } - sinkTableName_ = input.readMessage(io.greptime.v1.Ddl.SchemaScopedTableName.parser(), extensionRegistry); + sinkTableName_ = input.readMessage(io.greptime.v1.Common.TableName.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(sinkTableName_); sinkTableName_ = subBuilder.buildPartial(); @@ -2537,49 +2537,49 @@ public java.lang.String getTaskName() { } public static final int SOURCE_TABLE_NAMES_FIELD_NUMBER = 3; - private java.util.List sourceTableNames_; + private java.util.List sourceTableNames_; /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ @java.lang.Override - public java.util.List getSourceTableNamesList() { + public java.util.List getSourceTableNamesList() { return sourceTableNames_; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ @java.lang.Override - public java.util.List + public java.util.List getSourceTableNamesOrBuilderList() { return sourceTableNames_; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ @java.lang.Override public int getSourceTableNamesCount() { return sourceTableNames_.size(); } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index) { + public io.greptime.v1.Common.TableName getSourceTableNames(int index) { return sourceTableNames_.get(index); } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + public io.greptime.v1.Common.TableNameOrBuilder getSourceTableNamesOrBuilder( int index) { return sourceTableNames_.get(index); } public static final int SINK_TABLE_NAME_FIELD_NUMBER = 4; - private io.greptime.v1.Ddl.SchemaScopedTableName sinkTableName_; + private io.greptime.v1.Common.TableName sinkTableName_; /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; * @return Whether the sinkTableName field is set. */ @java.lang.Override @@ -2587,18 +2587,18 @@ public boolean hasSinkTableName() { return sinkTableName_ != null; } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; * @return The sinkTableName. */ @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName() { - return sinkTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; + public io.greptime.v1.Common.TableName getSinkTableName() { + return sinkTableName_ == null ? io.greptime.v1.Common.TableName.getDefaultInstance() : sinkTableName_; } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder() { + public io.greptime.v1.Common.TableNameOrBuilder getSinkTableNameOrBuilder() { return getSinkTableName(); } @@ -3517,22 +3517,22 @@ public Builder setTaskNameBytes( return this; } - private java.util.List sourceTableNames_ = + private java.util.List sourceTableNames_ = java.util.Collections.emptyList(); private void ensureSourceTableNamesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { - sourceTableNames_ = new java.util.ArrayList(sourceTableNames_); + sourceTableNames_ = new java.util.ArrayList(sourceTableNames_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> sourceTableNamesBuilder_; + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder> sourceTableNamesBuilder_; /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public java.util.List getSourceTableNamesList() { + public java.util.List getSourceTableNamesList() { if (sourceTableNamesBuilder_ == null) { return java.util.Collections.unmodifiableList(sourceTableNames_); } else { @@ -3540,7 +3540,7 @@ public java.util.List getSourceTableNa } } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public int getSourceTableNamesCount() { if (sourceTableNamesBuilder_ == null) { @@ -3550,9 +3550,9 @@ public int getSourceTableNamesCount() { } } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index) { + public io.greptime.v1.Common.TableName getSourceTableNames(int index) { if (sourceTableNamesBuilder_ == null) { return sourceTableNames_.get(index); } else { @@ -3560,10 +3560,10 @@ public io.greptime.v1.Ddl.SchemaScopedTableName getSourceTableNames(int index) { } } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public Builder setSourceTableNames( - int index, io.greptime.v1.Ddl.SchemaScopedTableName value) { + int index, io.greptime.v1.Common.TableName value) { if (sourceTableNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3577,10 +3577,10 @@ public Builder setSourceTableNames( return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public Builder setSourceTableNames( - int index, io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + int index, io.greptime.v1.Common.TableName.Builder builderForValue) { if (sourceTableNamesBuilder_ == null) { ensureSourceTableNamesIsMutable(); sourceTableNames_.set(index, builderForValue.build()); @@ -3591,9 +3591,9 @@ public Builder setSourceTableNames( return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public Builder addSourceTableNames(io.greptime.v1.Ddl.SchemaScopedTableName value) { + public Builder addSourceTableNames(io.greptime.v1.Common.TableName value) { if (sourceTableNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3607,10 +3607,10 @@ public Builder addSourceTableNames(io.greptime.v1.Ddl.SchemaScopedTableName valu return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public Builder addSourceTableNames( - int index, io.greptime.v1.Ddl.SchemaScopedTableName value) { + int index, io.greptime.v1.Common.TableName value) { if (sourceTableNamesBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3624,10 +3624,10 @@ public Builder addSourceTableNames( return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public Builder addSourceTableNames( - io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + io.greptime.v1.Common.TableName.Builder builderForValue) { if (sourceTableNamesBuilder_ == null) { ensureSourceTableNamesIsMutable(); sourceTableNames_.add(builderForValue.build()); @@ -3638,10 +3638,10 @@ public Builder addSourceTableNames( return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public Builder addSourceTableNames( - int index, io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + int index, io.greptime.v1.Common.TableName.Builder builderForValue) { if (sourceTableNamesBuilder_ == null) { ensureSourceTableNamesIsMutable(); sourceTableNames_.add(index, builderForValue.build()); @@ -3652,10 +3652,10 @@ public Builder addSourceTableNames( return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public Builder addAllSourceTableNames( - java.lang.Iterable values) { + java.lang.Iterable values) { if (sourceTableNamesBuilder_ == null) { ensureSourceTableNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( @@ -3667,7 +3667,7 @@ public Builder addAllSourceTableNames( return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public Builder clearSourceTableNames() { if (sourceTableNamesBuilder_ == null) { @@ -3680,7 +3680,7 @@ public Builder clearSourceTableNames() { return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ public Builder removeSourceTableNames(int index) { if (sourceTableNamesBuilder_ == null) { @@ -3693,16 +3693,16 @@ public Builder removeSourceTableNames(int index) { return this; } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public io.greptime.v1.Ddl.SchemaScopedTableName.Builder getSourceTableNamesBuilder( + public io.greptime.v1.Common.TableName.Builder getSourceTableNamesBuilder( int index) { return getSourceTableNamesFieldBuilder().getBuilder(index); } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBuilder( + public io.greptime.v1.Common.TableNameOrBuilder getSourceTableNamesOrBuilder( int index) { if (sourceTableNamesBuilder_ == null) { return sourceTableNames_.get(index); } else { @@ -3710,9 +3710,9 @@ public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBu } } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public java.util.List + public java.util.List getSourceTableNamesOrBuilderList() { if (sourceTableNamesBuilder_ != null) { return sourceTableNamesBuilder_.getMessageOrBuilderList(); @@ -3721,33 +3721,33 @@ public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSourceTableNamesOrBu } } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public io.greptime.v1.Ddl.SchemaScopedTableName.Builder addSourceTableNamesBuilder() { + public io.greptime.v1.Common.TableName.Builder addSourceTableNamesBuilder() { return getSourceTableNamesFieldBuilder().addBuilder( - io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance()); + io.greptime.v1.Common.TableName.getDefaultInstance()); } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public io.greptime.v1.Ddl.SchemaScopedTableName.Builder addSourceTableNamesBuilder( + public io.greptime.v1.Common.TableName.Builder addSourceTableNamesBuilder( int index) { return getSourceTableNamesFieldBuilder().addBuilder( - index, io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance()); + index, io.greptime.v1.Common.TableName.getDefaultInstance()); } /** - * repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; + * repeated .greptime.v1.TableName source_table_names = 3; */ - public java.util.List + public java.util.List getSourceTableNamesBuilderList() { return getSourceTableNamesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder> getSourceTableNamesFieldBuilder() { if (sourceTableNamesBuilder_ == null) { sourceTableNamesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder>( + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder>( sourceTableNames_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), @@ -3757,31 +3757,31 @@ public io.greptime.v1.Ddl.SchemaScopedTableName.Builder addSourceTableNamesBuild return sourceTableNamesBuilder_; } - private io.greptime.v1.Ddl.SchemaScopedTableName sinkTableName_; + private io.greptime.v1.Common.TableName sinkTableName_; private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> sinkTableNameBuilder_; + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder> sinkTableNameBuilder_; /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; * @return Whether the sinkTableName field is set. */ public boolean hasSinkTableName() { return sinkTableNameBuilder_ != null || sinkTableName_ != null; } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; * @return The sinkTableName. */ - public io.greptime.v1.Ddl.SchemaScopedTableName getSinkTableName() { + public io.greptime.v1.Common.TableName getSinkTableName() { if (sinkTableNameBuilder_ == null) { - return sinkTableName_ == null ? io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; + return sinkTableName_ == null ? io.greptime.v1.Common.TableName.getDefaultInstance() : sinkTableName_; } else { return sinkTableNameBuilder_.getMessage(); } } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ - public Builder setSinkTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { + public Builder setSinkTableName(io.greptime.v1.Common.TableName value) { if (sinkTableNameBuilder_ == null) { if (value == null) { throw new NullPointerException(); @@ -3795,10 +3795,10 @@ public Builder setSinkTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) return this; } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ public Builder setSinkTableName( - io.greptime.v1.Ddl.SchemaScopedTableName.Builder builderForValue) { + io.greptime.v1.Common.TableName.Builder builderForValue) { if (sinkTableNameBuilder_ == null) { sinkTableName_ = builderForValue.build(); onChanged(); @@ -3809,13 +3809,13 @@ public Builder setSinkTableName( return this; } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ - public Builder mergeSinkTableName(io.greptime.v1.Ddl.SchemaScopedTableName value) { + public Builder mergeSinkTableName(io.greptime.v1.Common.TableName value) { if (sinkTableNameBuilder_ == null) { if (sinkTableName_ != null) { sinkTableName_ = - io.greptime.v1.Ddl.SchemaScopedTableName.newBuilder(sinkTableName_).mergeFrom(value).buildPartial(); + io.greptime.v1.Common.TableName.newBuilder(sinkTableName_).mergeFrom(value).buildPartial(); } else { sinkTableName_ = value; } @@ -3827,7 +3827,7 @@ public Builder mergeSinkTableName(io.greptime.v1.Ddl.SchemaScopedTableName value return this; } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ public Builder clearSinkTableName() { if (sinkTableNameBuilder_ == null) { @@ -3841,33 +3841,33 @@ public Builder clearSinkTableName() { return this; } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ - public io.greptime.v1.Ddl.SchemaScopedTableName.Builder getSinkTableNameBuilder() { + public io.greptime.v1.Common.TableName.Builder getSinkTableNameBuilder() { onChanged(); return getSinkTableNameFieldBuilder().getBuilder(); } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ - public io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder getSinkTableNameOrBuilder() { + public io.greptime.v1.Common.TableNameOrBuilder getSinkTableNameOrBuilder() { if (sinkTableNameBuilder_ != null) { return sinkTableNameBuilder_.getMessageOrBuilder(); } else { return sinkTableName_ == null ? - io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance() : sinkTableName_; + io.greptime.v1.Common.TableName.getDefaultInstance() : sinkTableName_; } } /** - * .greptime.v1.SchemaScopedTableName sink_table_name = 4; + * .greptime.v1.TableName sink_table_name = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder> + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder> getSinkTableNameFieldBuilder() { if (sinkTableNameBuilder_ == null) { sinkTableNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - io.greptime.v1.Ddl.SchemaScopedTableName, io.greptime.v1.Ddl.SchemaScopedTableName.Builder, io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder>( + io.greptime.v1.Common.TableName, io.greptime.v1.Common.TableName.Builder, io.greptime.v1.Common.TableNameOrBuilder>( getSinkTableName(), getParentForChildren(), isClean()); @@ -4349,734 +4349,6 @@ public io.greptime.v1.Ddl.CreateFlowTaskExpr getDefaultInstanceForType() { } - public interface SchemaScopedTableNameOrBuilder extends - // @@protoc_insertion_point(interface_extends:greptime.v1.SchemaScopedTableName) - com.google.protobuf.MessageOrBuilder { - - /** - * string schema_name = 1; - * @return The schemaName. - */ - java.lang.String getSchemaName(); - /** - * string schema_name = 1; - * @return The bytes for schemaName. - */ - com.google.protobuf.ByteString - getSchemaNameBytes(); - - /** - * string table_name = 2; - * @return The tableName. - */ - java.lang.String getTableName(); - /** - * string table_name = 2; - * @return The bytes for tableName. - */ - com.google.protobuf.ByteString - getTableNameBytes(); - } - /** - *
-   * Table name
-   * 
- * - * Protobuf type {@code greptime.v1.SchemaScopedTableName} - */ - public static final class SchemaScopedTableName extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:greptime.v1.SchemaScopedTableName) - SchemaScopedTableNameOrBuilder { - private static final long serialVersionUID = 0L; - // Use SchemaScopedTableName.newBuilder() to construct. - private SchemaScopedTableName(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SchemaScopedTableName() { - schemaName_ = ""; - tableName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SchemaScopedTableName(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SchemaScopedTableName( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - 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(); - - schemaName_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - tableName_ = 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 { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.SchemaScopedTableName.class, io.greptime.v1.Ddl.SchemaScopedTableName.Builder.class); - } - - public static final int SCHEMA_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object schemaName_; - /** - * string schema_name = 1; - * @return The schemaName. - */ - @java.lang.Override - public java.lang.String getSchemaName() { - java.lang.Object ref = schemaName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaName_ = s; - return s; - } - } - /** - * string schema_name = 1; - * @return The bytes for schemaName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getSchemaNameBytes() { - java.lang.Object ref = schemaName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLE_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object tableName_; - /** - * string table_name = 2; - * @return The tableName. - */ - @java.lang.Override - public java.lang.String getTableName() { - java.lang.Object ref = tableName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tableName_ = s; - return s; - } - } - /** - * string table_name = 2; - * @return The bytes for tableName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTableNameBytes() { - java.lang.Object ref = tableName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - 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 { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, schemaName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, tableName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(schemaName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, schemaName_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(tableName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, tableName_); - } - 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.SchemaScopedTableName)) { - return super.equals(obj); - } - io.greptime.v1.Ddl.SchemaScopedTableName other = (io.greptime.v1.Ddl.SchemaScopedTableName) obj; - - if (!getSchemaName() - .equals(other.getSchemaName())) return false; - if (!getTableName() - .equals(other.getTableName())) 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(); - hash = (37 * hash) + SCHEMA_NAME_FIELD_NUMBER; - hash = (53 * hash) + getSchemaName().hashCode(); - hash = (37 * hash) + TABLE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTableName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.Ddl.SchemaScopedTableName 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.SchemaScopedTableName parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.Ddl.SchemaScopedTableName 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.SchemaScopedTableName parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static io.greptime.v1.Ddl.SchemaScopedTableName parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.greptime.v1.Ddl.SchemaScopedTableName 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.SchemaScopedTableName parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static io.greptime.v1.Ddl.SchemaScopedTableName 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.SchemaScopedTableName parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static io.greptime.v1.Ddl.SchemaScopedTableName 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.SchemaScopedTableName 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; - } - /** - *
-     * Table name
-     * 
- * - * Protobuf type {@code greptime.v1.SchemaScopedTableName} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:greptime.v1.SchemaScopedTableName) - io.greptime.v1.Ddl.SchemaScopedTableNameOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable - .ensureFieldAccessorsInitialized( - io.greptime.v1.Ddl.SchemaScopedTableName.class, io.greptime.v1.Ddl.SchemaScopedTableName.Builder.class); - } - - // Construct using io.greptime.v1.Ddl.SchemaScopedTableName.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(); - schemaName_ = ""; - - tableName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return io.greptime.v1.Ddl.internal_static_greptime_v1_SchemaScopedTableName_descriptor; - } - - @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableName getDefaultInstanceForType() { - return io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance(); - } - - @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableName build() { - io.greptime.v1.Ddl.SchemaScopedTableName result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public io.greptime.v1.Ddl.SchemaScopedTableName buildPartial() { - io.greptime.v1.Ddl.SchemaScopedTableName result = new io.greptime.v1.Ddl.SchemaScopedTableName(this); - result.schemaName_ = schemaName_; - result.tableName_ = tableName_; - 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.SchemaScopedTableName) { - return mergeFrom((io.greptime.v1.Ddl.SchemaScopedTableName)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(io.greptime.v1.Ddl.SchemaScopedTableName other) { - if (other == io.greptime.v1.Ddl.SchemaScopedTableName.getDefaultInstance()) return this; - if (!other.getSchemaName().isEmpty()) { - schemaName_ = other.schemaName_; - onChanged(); - } - if (!other.getTableName().isEmpty()) { - tableName_ = other.tableName_; - 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.SchemaScopedTableName parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (io.greptime.v1.Ddl.SchemaScopedTableName) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object schemaName_ = ""; - /** - * string schema_name = 1; - * @return The schemaName. - */ - public java.lang.String getSchemaName() { - java.lang.Object ref = schemaName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - schemaName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string schema_name = 1; - * @return The bytes for schemaName. - */ - public com.google.protobuf.ByteString - getSchemaNameBytes() { - java.lang.Object ref = schemaName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - schemaName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string schema_name = 1; - * @param value The schemaName to set. - * @return This builder for chaining. - */ - public Builder setSchemaName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - schemaName_ = value; - onChanged(); - return this; - } - /** - * string schema_name = 1; - * @return This builder for chaining. - */ - public Builder clearSchemaName() { - - schemaName_ = getDefaultInstance().getSchemaName(); - onChanged(); - return this; - } - /** - * string schema_name = 1; - * @param value The bytes for schemaName to set. - * @return This builder for chaining. - */ - public Builder setSchemaNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - schemaName_ = value; - onChanged(); - return this; - } - - private java.lang.Object tableName_ = ""; - /** - * string table_name = 2; - * @return The tableName. - */ - public java.lang.String getTableName() { - java.lang.Object ref = tableName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tableName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string table_name = 2; - * @return The bytes for tableName. - */ - public com.google.protobuf.ByteString - getTableNameBytes() { - java.lang.Object ref = tableName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - tableName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string table_name = 2; - * @param value The tableName to set. - * @return This builder for chaining. - */ - public Builder setTableName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - tableName_ = value; - onChanged(); - return this; - } - /** - * string table_name = 2; - * @return This builder for chaining. - */ - public Builder clearTableName() { - - tableName_ = getDefaultInstance().getTableName(); - onChanged(); - return this; - } - /** - * string table_name = 2; - * @param value The bytes for tableName to set. - * @return This builder for chaining. - */ - public Builder setTableNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - tableName_ = 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.SchemaScopedTableName) - } - - // @@protoc_insertion_point(class_scope:greptime.v1.SchemaScopedTableName) - private static final io.greptime.v1.Ddl.SchemaScopedTableName DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new io.greptime.v1.Ddl.SchemaScopedTableName(); - } - - public static io.greptime.v1.Ddl.SchemaScopedTableName getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SchemaScopedTableName parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaScopedTableName(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.SchemaScopedTableName getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - public interface DropFlowTaskExprOrBuilder extends // @@protoc_insertion_point(interface_extends:greptime.v1.DropFlowTaskExpr) com.google.protobuf.MessageOrBuilder { @@ -20256,11 +19528,6 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_fieldAccessorTable; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_greptime_v1_SchemaScopedTableName_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_greptime_v1_DropFlowTaskExpr_descriptor; private static final @@ -20366,71 +19633,69 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { ".TruncateTableExprH\000\022;\n\020create_flow_task" + "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" + "\000\0227\n\016drop_flow_task\030\t \001(\0132\035.greptime.v1." + - "DropFlowTaskExprH\000B\006\n\004expr\"\233\003\n\022CreateFlo" + + "DropFlowTaskExprH\000B\006\n\004expr\"\203\003\n\022CreateFlo" + "wTaskExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_" + - "name\030\002 \001(\t\022>\n\022source_table_names\030\003 \003(\0132\"" + - ".greptime.v1.SchemaScopedTableName\022;\n\017si" + - "nk_table_name\030\004 \001(\0132\".greptime.v1.Schema" + - "ScopedTableName\022\022\n\nor_replace\030\005 \001(\010\022\034\n\024c" + - "reate_if_not_exists\030\006 \001(\010\022\023\n\013expire_when" + - "\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t\022\013\n\003sql\030\t \001(\t\022F\n\014" + - "task_options\030\n \003(\01320.greptime.v1.CreateF" + - "lowTaskExpr.TaskOptionsEntry\0322\n\020TaskOpti" + - "onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" + - "\"@\n\025SchemaScopedTableName\022\023\n\013schema_name" + - "\030\001 \001(\t\022\022\n\ntable_name\030\002 \001(\t\";\n\020DropFlowTa" + - "skExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_nam" + - "e\030\002 \001(\t\"\207\003\n\017CreateTableExpr\022\024\n\014catalog_n" + - "ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" + - "name\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022+\n\013column_defs\030" + - "\005 \003(\0132\026.greptime.v1.ColumnDef\022\022\n\ntime_in" + - "dex\030\006 \001(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024creat" + - "e_if_not_exists\030\010 \001(\010\022E\n\rtable_options\030\t" + - " \003(\0132..greptime.v1.CreateTableExpr.Table" + - "OptionsEntry\022&\n\010table_id\030\n \001(\0132\024.greptim" + - "e.v1.TableId\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOpt" + - "ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"\346\001\n\tAlterExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n" + - "\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022." + - "\n\013add_columns\030\004 \001(\0132\027.greptime.v1.AddCol" + - "umnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030.greptime." + - "v1.DropColumnsH\000\0220\n\014rename_table\030\006 \001(\0132\030" + - ".greptime.v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rD" + - "ropTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc" + - "hema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010t" + - "able_id\030\004 \001(\0132\024.greptime.v1.TableId\022\026\n\016d" + - "rop_if_exists\030\005 \001(\010\"\314\001\n\022CreateDatabaseEx" + + "name\030\002 \001(\t\0222\n\022source_table_names\030\003 \003(\0132\026" + + ".greptime.v1.TableName\022/\n\017sink_table_nam" + + "e\030\004 \001(\0132\026.greptime.v1.TableName\022\022\n\nor_re" + + "place\030\005 \001(\010\022\034\n\024create_if_not_exists\030\006 \001(" + + "\010\022\023\n\013expire_when\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t\022" + + "\013\n\003sql\030\t \001(\t\022F\n\014task_options\030\n \003(\01320.gre" + + "ptime.v1.CreateFlowTaskExpr.TaskOptionsE" + + "ntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\";\n\020DropFlowTaskExpr\022\024\n\014" + + "catalog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003" + + "\n\017CreateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022" + + "\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t" + + "\022\014\n\004desc\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.gr" + + "eptime.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022" + + "\024\n\014primary_keys\030\007 \003(\t\022\034\n\024create_if_not_e" + + "xists\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..gre" + + "ptime.v1.CreateTableExpr.TableOptionsEnt" + + "ry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Table" + + "Id\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022" + + "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlte" + + "rExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na" + + "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_colu" + + "mns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014" + + "drop_columns\030\005 \001(\0132\030.greptime.v1.DropCol" + + "umnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime." + + "v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableEx" + "pr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030" + - "\002 \001(\t\022\034\n\024create_if_not_exists\030\003 \001(\010\022=\n\007o" + - "ptions\030\004 \003(\0132,.greptime.v1.CreateDatabas" + - "eExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" + - "y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTa" + - "bleExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_" + - "name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_" + - "id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020DropDa" + - "tabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sche" + - "ma_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n" + - "\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026.grept" + - "ime.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_" + - "columns\030\001 \003(\0132\027.greptime.v1.DropColumn\"%" + - "\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n" + - "\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptim" + - "e.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.grept" + - "ime.v1.AddColumnLocation\"\032\n\nDropColumn\022\014" + - "\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\t" + - "ColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001" + - "(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is_nu" + - "llable\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014" + - "\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Se" + - "manticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_" + - "extension\030\007 \001(\0132$.greptime.v1.ColumnData" + - "TypeExtension\"\230\001\n\021AddColumnLocation\022B\n\rl" + - "ocation_type\030\001 \001(\0162+.greptime.v1.AddColu" + - "mnLocation.LocationType\022\031\n\021after_column_" + - "name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n" + - "\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github." + - "com/GreptimeTeam/greptime-proto/go/grept" + - "ime/v1b\006proto3" + "\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 " + + "\001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exi" + + "sts\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014cata" + + "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024c" + + "reate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003" + + "(\0132,.greptime.v1.CreateDatabaseExpr.Opti" + + "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n" + + "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" + + "\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024" + + ".greptime.v1.TableId\"U\n\020DropDatabaseExpr" + + "\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 " + + "\001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumn" + + "s\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.Add" + + "Column\"<\n\013DropColumns\022-\n\014drop_columns\030\001 " + + "\003(\0132\027.greptime.v1.DropColumn\"%\n\013RenameTa" + + "ble\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn" + + "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum" + + "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add" + + "ColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001" + + "(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022" + + "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept" + + "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001" + + "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant" + + "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType" + + "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030" + + "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens" + + "ion\"\230\001\n\021AddColumnLocation\022B\n\rlocation_ty" + + "pe\030\001 \001(\0162+.greptime.v1.AddColumnLocation" + + ".LocationType\022\031\n\021after_column_name\030\002 \001(\t" + + "\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL" + + "\n\016io.greptime.v1B\003DdlZ5github.com/Grepti" + + "meTeam/greptime-proto/go/greptime/v1b\006pr" + + "oto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -20455,20 +19720,14 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateFlowTaskExpr_TaskOptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); - internal_static_greptime_v1_SchemaScopedTableName_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_greptime_v1_SchemaScopedTableName_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_greptime_v1_SchemaScopedTableName_descriptor, - new java.lang.String[] { "SchemaName", "TableName", }); internal_static_greptime_v1_DropFlowTaskExpr_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(2); internal_static_greptime_v1_DropFlowTaskExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropFlowTaskExpr_descriptor, new java.lang.String[] { "CatalogName", "TaskName", }); internal_static_greptime_v1_CreateTableExpr_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(3); internal_static_greptime_v1_CreateTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateTableExpr_descriptor, @@ -20480,19 +19739,19 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { internal_static_greptime_v1_CreateTableExpr_TableOptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_AlterExpr_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(4); internal_static_greptime_v1_AlterExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AlterExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "AddColumns", "DropColumns", "RenameTable", "Kind", }); internal_static_greptime_v1_DropTableExpr_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(5); internal_static_greptime_v1_DropTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropTableExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", "DropIfExists", }); internal_static_greptime_v1_CreateDatabaseExpr_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(6); internal_static_greptime_v1_CreateDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_CreateDatabaseExpr_descriptor, @@ -20504,61 +19763,61 @@ public io.greptime.v1.Ddl.AddColumnLocation getDefaultInstanceForType() { internal_static_greptime_v1_CreateDatabaseExpr_OptionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_greptime_v1_TruncateTableExpr_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(7); internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TruncateTableExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", }); internal_static_greptime_v1_DropDatabaseExpr_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(8); internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropDatabaseExpr_descriptor, new java.lang.String[] { "CatalogName", "SchemaName", "DropIfExists", }); internal_static_greptime_v1_AddColumns_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(9); internal_static_greptime_v1_AddColumns_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumns_descriptor, new java.lang.String[] { "AddColumns", }); internal_static_greptime_v1_DropColumns_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(10); internal_static_greptime_v1_DropColumns_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumns_descriptor, new java.lang.String[] { "DropColumns", }); internal_static_greptime_v1_RenameTable_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(11); internal_static_greptime_v1_RenameTable_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_RenameTable_descriptor, new java.lang.String[] { "NewTableName", }); internal_static_greptime_v1_AddColumn_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(12); internal_static_greptime_v1_AddColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumn_descriptor, new java.lang.String[] { "ColumnDef", "Location", }); internal_static_greptime_v1_DropColumn_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(13); internal_static_greptime_v1_DropColumn_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_DropColumn_descriptor, new java.lang.String[] { "Name", }); internal_static_greptime_v1_TableId_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(14); internal_static_greptime_v1_TableId_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_TableId_descriptor, new java.lang.String[] { "Id", }); internal_static_greptime_v1_ColumnDef_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(15); internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_ColumnDef_descriptor, new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", }); internal_static_greptime_v1_AddColumnLocation_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(16); internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_greptime_v1_AddColumnLocation_descriptor, diff --git a/proto/greptime/v1/common.proto b/proto/greptime/v1/common.proto index 3d3ac297..7b28697c 100644 --- a/proto/greptime/v1/common.proto +++ b/proto/greptime/v1/common.proto @@ -58,14 +58,18 @@ message Basic { message Token { string token = 1; } +message TableName { + string catalog_name = 1; + string schema_name = 2; + string table_name = 3; +} + message AffectedRows { uint32 value = 1; } -message Metrics { - bytes metrics = 1; -} +message Metrics { bytes metrics = 1; } -message FlightMetadata { - AffectedRows affected_rows = 1; +message FlightMetadata { + AffectedRows affected_rows = 1; Metrics metrics = 2; } diff --git a/proto/greptime/v1/ddl.proto b/proto/greptime/v1/ddl.proto index 0f4cb69a..f18c16e9 100644 --- a/proto/greptime/v1/ddl.proto +++ b/proto/greptime/v1/ddl.proto @@ -42,8 +42,8 @@ message DdlRequest { message CreateFlowTaskExpr { string catalog_name = 1; string task_name = 2; - repeated SchemaScopedTableName source_table_names = 3; - SchemaScopedTableName sink_table_name = 4; + repeated TableName source_table_names = 3; + TableName sink_table_name = 4; bool or_replace = 5; bool create_if_not_exists = 6; string expire_when = 7; @@ -52,12 +52,6 @@ message CreateFlowTaskExpr { map task_options = 10; } -// Table name -message SchemaScopedTableName { - string schema_name = 1; - string table_name = 2; -} - // Remove a flow task. message DropFlowTaskExpr { string catalog_name = 1; diff --git a/proto/greptime/v1/meta/common.proto b/proto/greptime/v1/meta/common.proto index 3a866be2..149e3c14 100644 --- a/proto/greptime/v1/meta/common.proto +++ b/proto/greptime/v1/meta/common.proto @@ -54,12 +54,6 @@ message Peer { message TableId { uint32 id = 1; } -message TableName { - string catalog_name = 1; - string schema_name = 2; - string table_name = 3; -} - message TimeInterval { // The unix timestamp in millis of the start of this period. int64 start_timestamp_millis = 1; @@ -75,6 +69,4 @@ message KeyValue { } // Procedure identifer -message ProcedureId { - bytes key = 1; -} +message ProcedureId { bytes key = 1; } diff --git a/proto/greptime/v1/meta/route.proto b/proto/greptime/v1/meta/route.proto index d179f664..7166bcae 100644 --- a/proto/greptime/v1/meta/route.proto +++ b/proto/greptime/v1/meta/route.proto @@ -19,6 +19,7 @@ package greptime.v1.meta; option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta"; import "greptime/v1/meta/common.proto"; +import "greptime/v1/common.proto"; message TableRoute { Table table = 1;