refactor: move TableName out of meta common (#152)

Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Ruihang Xia
2024-04-25 20:14:54 +08:00
committed by GitHub
parent d18b1c8b8a
commit 783682fabc
20 changed files with 2689 additions and 4070 deletions
+381 -47
View File
@@ -119,6 +119,21 @@ struct TokenDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TokenDefaultTypeInternal _Token_default_instance_; 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( PROTOBUF_CONSTEXPR AffectedRows::AffectedRows(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.value_)*/0u /*decltype(_impl_.value_)*/0u
@@ -218,7 +233,7 @@ struct DecimalTypeExtensionDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DecimalTypeExtensionDefaultTypeInternal _DecimalTypeExtension_default_instance_;
} // namespace v1 } // namespace v1
} // namespace greptime } // 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 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; 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_ ~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::Token, _impl_.token_), PROTOBUF_FIELD_OFFSET(::greptime::v1::Token, _impl_.token_),
~0u, // no _has_bits_ ~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_), PROTOBUF_FIELD_OFFSET(::greptime::v1::AffectedRows, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
@@ -348,13 +372,14 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 37, -1, -1, sizeof(::greptime::v1::AuthHeader)}, { 37, -1, -1, sizeof(::greptime::v1::AuthHeader)},
{ 46, -1, -1, sizeof(::greptime::v1::Basic)}, { 46, -1, -1, sizeof(::greptime::v1::Basic)},
{ 54, -1, -1, sizeof(::greptime::v1::Token)}, { 54, -1, -1, sizeof(::greptime::v1::Token)},
{ 61, -1, -1, sizeof(::greptime::v1::AffectedRows)}, { 61, -1, -1, sizeof(::greptime::v1::TableName)},
{ 68, -1, -1, sizeof(::greptime::v1::Metrics)}, { 70, -1, -1, sizeof(::greptime::v1::AffectedRows)},
{ 75, -1, -1, sizeof(::greptime::v1::FlightMetadata)}, { 77, -1, -1, sizeof(::greptime::v1::Metrics)},
{ 83, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)}, { 84, -1, -1, sizeof(::greptime::v1::FlightMetadata)},
{ 92, -1, -1, sizeof(::greptime::v1::Decimal128)}, { 92, -1, -1, sizeof(::greptime::v1::IntervalMonthDayNano)},
{ 100, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)}, { 101, -1, -1, sizeof(::greptime::v1::Decimal128)},
{ 108, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)}, { 109, -1, -1, sizeof(::greptime::v1::ColumnDataTypeExtension)},
{ 117, -1, -1, sizeof(::greptime::v1::DecimalTypeExtension)},
}; };
static const ::_pb::Message* const file_default_instances[] = { 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::_AuthHeader_default_instance_._instance,
&::greptime::v1::_Basic_default_instance_._instance, &::greptime::v1::_Basic_default_instance_._instance,
&::greptime::v1::_Token_default_instance_._instance, &::greptime::v1::_Token_default_instance_._instance,
&::greptime::v1::_TableName_default_instance_._instance,
&::greptime::v1::_AffectedRows_default_instance_._instance, &::greptime::v1::_AffectedRows_default_instance_._instance,
&::greptime::v1::_Metrics_default_instance_._instance, &::greptime::v1::_Metrics_default_instance_._instance,
&::greptime::v1::_FlightMetadata_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" "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" ".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" "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" "\022\r\n\005token\030\001 \001(\t\"J\n\tTableName\022\024\n\014catalog_"
"\030\001 \001(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Fl" "name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable"
"ightMetadata\0220\n\raffected_rows\030\001 \001(\0132\031.gr" "_name\030\003 \001(\t\"\035\n\014AffectedRows\022\r\n\005value\030\001 \001"
"eptime.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132" "(\r\"\032\n\007Metrics\022\017\n\007metrics\030\001 \001(\014\"i\n\016Flight"
"\024.greptime.v1.Metrics\"I\n\024IntervalMonthDa" "Metadata\0220\n\raffected_rows\030\001 \001(\0132\031.grepti"
"yNano\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013n" "me.v1.AffectedRows\022%\n\007metrics\030\002 \001(\0132\024.gr"
"anoseconds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001" "eptime.v1.Metrics\"I\n\024IntervalMonthDayNan"
"(\003\022\n\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtensio" "o\022\016\n\006months\030\001 \001(\005\022\014\n\004days\030\002 \001(\005\022\023\n\013nanos"
"n\0229\n\014decimal_type\030\001 \001(\0132!.greptime.v1.De" "econds\030\003 \001(\003\"$\n\nDecimal128\022\n\n\002hi\030\001 \001(\003\022\n"
"cimalTypeExtensionH\000B\n\n\010type_ext\"8\n\024Deci" "\n\002lo\030\002 \001(\003\"`\n\027ColumnDataTypeExtension\0229\n"
"malTypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005s" "\014decimal_type\030\001 \001(\0132!.greptime.v1.Decima"
"cale\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005F" "lTypeExtensionH\000B\n\n\010type_ext\"8\n\024DecimalT"
"IELD\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType" "ypeExtension\022\021\n\tprecision\030\001 \001(\005\022\r\n\005scale"
"\022\013\n\007BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005IN" "\030\002 \001(\005*1\n\014SemanticType\022\007\n\003TAG\020\000\022\t\n\005FIELD"
"T32\020\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022" "\020\001\022\r\n\tTIMESTAMP\020\002*\270\004\n\016ColumnDataType\022\013\n\007"
"\n\n\006UINT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007" "BOOLEAN\020\000\022\010\n\004INT8\020\001\022\t\n\005INT16\020\002\022\t\n\005INT32\020"
"FLOAT64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DAT" "\003\022\t\n\005INT64\020\004\022\t\n\005UINT8\020\005\022\n\n\006UINT16\020\006\022\n\n\006U"
"E\020\r\022\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022" "INT32\020\007\022\n\n\006UINT64\020\010\022\013\n\007FLOAT32\020\t\022\013\n\007FLOA"
"\031\n\025TIMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_" "T64\020\n\022\n\n\006BINARY\020\013\022\n\n\006STRING\020\014\022\010\n\004DATE\020\r\022"
"MICROSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022" "\014\n\010DATETIME\020\016\022\024\n\020TIMESTAMP_SECOND\020\017\022\031\n\025T"
"\017\n\013TIME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024" "IMESTAMP_MILLISECOND\020\020\022\031\n\025TIMESTAMP_MICR"
"\n\020TIME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020" "OSECOND\020\021\022\030\n\024TIMESTAMP_NANOSECOND\020\022\022\017\n\013T"
"\026\022\027\n\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_D" "IME_SECOND\020\023\022\024\n\020TIME_MILLISECOND\020\024\022\024\n\020TI"
"AY_TIME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023" "ME_MICROSECOND\020\025\022\023\n\017TIME_NANOSECOND\020\026\022\027\n"
"\n\017DURATION_SECOND\020\032\022\030\n\024DURATION_MILLISEC" "\023INTERVAL_YEAR_MONTH\020\027\022\025\n\021INTERVAL_DAY_T"
"OND\020\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURAT" "IME\020\030\022\033\n\027INTERVAL_MONTH_DAY_NANO\020\031\022\023\n\017DU"
"ION_NANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.g" "RATION_SECOND\020\032\022\030\n\024DURATION_MILLISECOND\020"
"reptime.v1B\006CommonZ5github.com/GreptimeT" "\033\022\030\n\024DURATION_MICROSECOND\020\034\022\027\n\023DURATION_"
"eam/greptime-proto/go/greptime/v1b\006proto" "NANOSECOND\020\035\022\016\n\nDECIMAL128\020\036BO\n\016io.grept"
"3" "ime.v1B\006CommonZ5github.com/GreptimeTeam/"
"greptime-proto/go/greptime/v1b\006proto3"
; ;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fcommon_2eproto = { 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", "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, 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_metadata_greptime_2fv1_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto, file_level_service_descriptors_greptime_2fv1_2fcommon_2eproto,
@@ -2159,6 +2186,309 @@ void Token::InternalSwap(Token* other) {
// =================================================================== // ===================================================================
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<uint8_t>(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<uint8_t>(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<uint8_t>(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<int>(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<int>(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<int>(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<TableName*>(&to_msg);
auto& from = static_cast<const TableName&>(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 { class AffectedRows::_Internal {
public: public:
}; };
@@ -2332,7 +2662,7 @@ void AffectedRows::InternalSwap(AffectedRows* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AffectedRows::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata AffectedRows::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata Metrics::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata FlightMetadata::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata IntervalMonthDayNano::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata Decimal128::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDataTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata DecimalTypeExtension::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fcommon_2eproto_once, &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) // @@protoc_insertion_point(namespace_scope)
@@ -3708,6 +4038,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::Token*
Arena::CreateMaybeMessage< ::greptime::v1::Token >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::Token >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::Token >(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* template<> PROTOBUF_NOINLINE ::greptime::v1::AffectedRows*
Arena::CreateMaybeMessage< ::greptime::v1::AffectedRows >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::AffectedRows >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::AffectedRows >(arena); return Arena::CreateMessageInternal< ::greptime::v1::AffectedRows >(arena);
+352 -7
View File
@@ -89,6 +89,9 @@ extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_;
class Status; class Status;
struct StatusDefaultTypeInternal; struct StatusDefaultTypeInternal;
extern StatusDefaultTypeInternal _Status_default_instance_; extern StatusDefaultTypeInternal _Status_default_instance_;
class TableName;
struct TableNameDefaultTypeInternal;
extern TableNameDefaultTypeInternal _TableName_default_instance_;
class Token; class Token;
struct TokenDefaultTypeInternal; struct TokenDefaultTypeInternal;
extern TokenDefaultTypeInternal _Token_default_instance_; 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::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::RequestHeader_TracingContextEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*); template<> ::greptime::v1::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::ResponseHeader>(Arena*);
template<> ::greptime::v1::Status* Arena::CreateMaybeMessage<::greptime::v1::Status>(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*); template<> ::greptime::v1::Token* Arena::CreateMaybeMessage<::greptime::v1::Token>(Arena*);
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
namespace greptime { 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<const TableName*>(
&_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<TableName>(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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename T> 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 : class AffectedRows final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AffectedRows) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AffectedRows) */ {
public: public:
@@ -1357,7 +1546,7 @@ class AffectedRows final :
&_AffectedRows_default_instance_); &_AffectedRows_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
7; 8;
friend void swap(AffectedRows& a, AffectedRows& b) { friend void swap(AffectedRows& a, AffectedRows& b) {
a.Swap(&b); a.Swap(&b);
@@ -1505,7 +1694,7 @@ class Metrics final :
&_Metrics_default_instance_); &_Metrics_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
8; 9;
friend void swap(Metrics& a, Metrics& b) { friend void swap(Metrics& a, Metrics& b) {
a.Swap(&b); a.Swap(&b);
@@ -1658,7 +1847,7 @@ class FlightMetadata final :
&_FlightMetadata_default_instance_); &_FlightMetadata_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
9; 10;
friend void swap(FlightMetadata& a, FlightMetadata& b) { friend void swap(FlightMetadata& a, FlightMetadata& b) {
a.Swap(&b); a.Swap(&b);
@@ -1835,7 +2024,7 @@ class IntervalMonthDayNano final :
&_IntervalMonthDayNano_default_instance_); &_IntervalMonthDayNano_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
10; 11;
friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) { friend void swap(IntervalMonthDayNano& a, IntervalMonthDayNano& b) {
a.Swap(&b); a.Swap(&b);
@@ -2005,7 +2194,7 @@ class Decimal128 final :
&_Decimal128_default_instance_); &_Decimal128_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
11; 12;
friend void swap(Decimal128& a, Decimal128& b) { friend void swap(Decimal128& a, Decimal128& b) {
a.Swap(&b); a.Swap(&b);
@@ -2169,7 +2358,7 @@ class ColumnDataTypeExtension final :
&_ColumnDataTypeExtension_default_instance_); &_ColumnDataTypeExtension_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
12; 13;
friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) { friend void swap(ColumnDataTypeExtension& a, ColumnDataTypeExtension& b) {
a.Swap(&b); a.Swap(&b);
@@ -2338,7 +2527,7 @@ class DecimalTypeExtension final :
&_DecimalTypeExtension_default_instance_); &_DecimalTypeExtension_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
13; 14;
friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) { friend void swap(DecimalTypeExtension& a, DecimalTypeExtension& b) {
a.Swap(&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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TableName::set_catalog_name(ArgT0&& arg0, ArgT... args) {
_impl_.catalog_name_.Set(static_cast<ArgT0 &&>(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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TableName::set_schema_name(ArgT0&& arg0, ArgT... args) {
_impl_.schema_name_.Set(static_cast<ArgT0 &&>(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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TableName::set_table_name(ArgT0&& arg0, ArgT... args) {
_impl_.table_name_.Set(static_cast<ArgT0 &&>(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 // AffectedRows
// uint32 value = 1; // uint32 value = 1;
@@ -3796,6 +4139,8 @@ inline void DecimalTypeExtension::set_scale(int32_t value) {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+117 -391
View File
@@ -69,20 +69,6 @@ struct CreateFlowTaskExprDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CreateFlowTaskExprDefaultTypeInternal _CreateFlowTaskExpr_default_instance_; 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( PROTOBUF_CONSTEXPR DropFlowTaskExpr::DropFlowTaskExpr(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}} /*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_; PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_;
} // namespace v1 } // namespace v1
} // namespace greptime } // 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 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; 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_.sql_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.task_options_), PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateFlowTaskExpr, _impl_.task_options_),
~0u, // no _has_bits_ ~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_), PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowTaskExpr, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~0u, // no _oneof_case_
@@ -557,31 +535,29 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 0, -1, -1, sizeof(::greptime::v1::DdlRequest)}, { 0, -1, -1, sizeof(::greptime::v1::DdlRequest)},
{ 14, 22, -1, sizeof(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse)}, { 14, 22, -1, sizeof(::greptime::v1::CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse)},
{ 24, -1, -1, sizeof(::greptime::v1::CreateFlowTaskExpr)}, { 24, -1, -1, sizeof(::greptime::v1::CreateFlowTaskExpr)},
{ 40, -1, -1, sizeof(::greptime::v1::SchemaScopedTableName)}, { 40, -1, -1, sizeof(::greptime::v1::DropFlowTaskExpr)},
{ 48, -1, -1, sizeof(::greptime::v1::DropFlowTaskExpr)}, { 48, 56, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
{ 56, 64, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)}, { 58, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
{ 66, -1, -1, sizeof(::greptime::v1::CreateTableExpr)}, { 75, -1, -1, sizeof(::greptime::v1::AlterExpr)},
{ 83, -1, -1, sizeof(::greptime::v1::AlterExpr)}, { 88, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 96, -1, -1, sizeof(::greptime::v1::DropTableExpr)}, { 99, 107, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 107, 115, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)}, { 109, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 117, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)}, { 119, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 127, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)}, { 129, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
{ 137, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)}, { 138, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 146, -1, -1, sizeof(::greptime::v1::AddColumns)}, { 145, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 153, -1, -1, sizeof(::greptime::v1::DropColumns)}, { 152, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 160, -1, -1, sizeof(::greptime::v1::RenameTable)}, { 159, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 167, -1, -1, sizeof(::greptime::v1::AddColumn)}, { 167, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 175, -1, -1, sizeof(::greptime::v1::DropColumn)}, { 174, -1, -1, sizeof(::greptime::v1::TableId)},
{ 182, -1, -1, sizeof(::greptime::v1::TableId)}, { 181, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 189, -1, -1, sizeof(::greptime::v1::ColumnDef)}, { 194, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
{ 202, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
}; };
static const ::_pb::Message* const file_default_instances[] = { static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_DdlRequest_default_instance_._instance, &::greptime::v1::_DdlRequest_default_instance_._instance,
&::greptime::v1::_CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::_CreateFlowTaskExpr_default_instance_._instance, &::greptime::v1::_CreateFlowTaskExpr_default_instance_._instance,
&::greptime::v1::_SchemaScopedTableName_default_instance_._instance,
&::greptime::v1::_DropFlowTaskExpr_default_instance_._instance, &::greptime::v1::_DropFlowTaskExpr_default_instance_._instance,
&::greptime::v1::_CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_._instance, &::greptime::v1::_CreateTableExpr_TableOptionsEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::_CreateTableExpr_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" ".TruncateTableExprH\000\022;\n\020create_flow_task"
"\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH" "\030\010 \001(\0132\037.greptime.v1.CreateFlowTaskExprH"
"\000\0227\n\016drop_flow_task\030\t \001(\0132\035.greptime.v1." "\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_" "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\"" "name\030\002 \001(\t\0222\n\022source_table_names\030\003 \003(\0132\026"
".greptime.v1.SchemaScopedTableName\022;\n\017si" ".greptime.v1.TableName\022/\n\017sink_table_nam"
"nk_table_name\030\004 \001(\0132\".greptime.v1.Schema" "e\030\004 \001(\0132\026.greptime.v1.TableName\022\022\n\nor_re"
"ScopedTableName\022\022\n\nor_replace\030\005 \001(\010\022\034\n\024c" "place\030\005 \001(\010\022\034\n\024create_if_not_exists\030\006 \001("
"reate_if_not_exists\030\006 \001(\010\022\023\n\013expire_when" "\010\022\023\n\013expire_when\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t\022"
"\030\007 \001(\t\022\017\n\007comment\030\010 \001(\t\022\013\n\003sql\030\t \001(\t\022F\n\014" "\013\n\003sql\030\t \001(\t\022F\n\014task_options\030\n \003(\01320.gre"
"task_options\030\n \003(\01320.greptime.v1.CreateF" "ptime.v1.CreateFlowTaskExpr.TaskOptionsE"
"lowTaskExpr.TaskOptionsEntry\0322\n\020TaskOpti" "ntry\0322\n\020TaskOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
"onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001" "\005value\030\002 \001(\t:\0028\001\";\n\020DropFlowTaskExpr\022\024\n\014"
"\"@\n\025SchemaScopedTableName\022\023\n\013schema_name" "catalog_name\030\001 \001(\t\022\021\n\ttask_name\030\002 \001(\t\"\207\003"
"\030\001 \001(\t\022\022\n\ntable_name\030\002 \001(\t\";\n\020DropFlowTa" "\n\017CreateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022"
"skExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\ttask_nam" "\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t"
"e\030\002 \001(\t\"\207\003\n\017CreateTableExpr\022\024\n\014catalog_n" "\022\014\n\004desc\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.gr"
"ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_" "eptime.v1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022"
"name\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022+\n\013column_defs\030" "\024\n\014primary_keys\030\007 \003(\t\022\034\n\024create_if_not_e"
"\005 \003(\0132\026.greptime.v1.ColumnDef\022\022\n\ntime_in" "xists\030\010 \001(\010\022E\n\rtable_options\030\t \003(\0132..gre"
"dex\030\006 \001(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024creat" "ptime.v1.CreateTableExpr.TableOptionsEnt"
"e_if_not_exists\030\010 \001(\010\022E\n\rtable_options\030\t" "ry\022&\n\010table_id\030\n \001(\0132\024.greptime.v1.Table"
" \003(\0132..greptime.v1.CreateTableExpr.Table" "Id\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOptionsEntry\022"
"OptionsEntry\022&\n\010table_id\030\n \001(\0132\024.greptim" "\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\346\001\n\tAlte"
"e.v1.TableId\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOpt" "rExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_na"
"ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" "me\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_colu"
"\001\"\346\001\n\tAlterExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n" "mns\030\004 \001(\0132\027.greptime.v1.AddColumnsH\000\0220\n\014"
"\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022." "drop_columns\030\005 \001(\0132\030.greptime.v1.DropCol"
"\n\013add_columns\030\004 \001(\0132\027.greptime.v1.AddCol" "umnsH\000\0220\n\014rename_table\030\006 \001(\0132\030.greptime."
"umnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030.greptime." "v1.RenameTableH\000B\006\n\004kind\"\216\001\n\rDropTableEx"
"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"
"pr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030" "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" "\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 "
"ptions\030\004 \003(\0132,.greptime.v1.CreateDatabas" "\001(\0132\024.greptime.v1.TableId\022\026\n\016drop_if_exi"
"eExpr.OptionsEntry\032.\n\014OptionsEntry\022\013\n\003ke" "sts\030\005 \001(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014cata"
"y\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTa" "log_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024c"
"bleExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_" "reate_if_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003"
"name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_" "(\0132,.greptime.v1.CreateDatabaseExpr.Opti"
"id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020DropDa" "onsEntry\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n"
"tabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sche" "\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n"
"ma_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n" "\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t"
"\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026.grept" "\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024"
"ime.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop_" ".greptime.v1.TableId\"U\n\020DropDatabaseExpr"
"columns\030\001 \003(\0132\027.greptime.v1.DropColumn\"%" "\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 "
"\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n" "\001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9\n\nAddColumn"
"\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptim" "s\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1.Add"
"e.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.grept" "Column\"<\n\013DropColumns\022-\n\014drop_columns\030\001 "
"ime.v1.AddColumnLocation\"\032\n\nDropColumn\022\014" "\003(\0132\027.greptime.v1.DropColumn\"%\n\013RenameTa"
"\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\t" "ble\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddColumn"
"ColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001" "\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.Colum"
"(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is_nu" "nDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1.Add"
"llable\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014" "ColumnLocation\"\032\n\nDropColumn\022\014\n\004name\030\001 \001"
"\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.Se" "(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022"
"manticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_" "\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grept"
"extension\030\007 \001(\0132$.greptime.v1.ColumnData" "ime.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001"
"TypeExtension\"\230\001\n\021AddColumnLocation\022B\n\rl" "(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemant"
"ocation_type\030\001 \001(\0162+.greptime.v1.AddColu" "ic_type\030\005 \001(\0162\031.greptime.v1.SemanticType"
"mnLocation.LocationType\022\031\n\021after_column_" "\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030"
"name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n" "\007 \001(\0132$.greptime.v1.ColumnDataTypeExtens"
"\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github." "ion\"\230\001\n\021AddColumnLocation\022B\n\rlocation_ty"
"com/GreptimeTeam/greptime-proto/go/grept" "pe\030\001 \001(\0162+.greptime.v1.AddColumnLocation"
"ime/v1b\006proto3" ".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] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fcommon_2eproto,
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = { 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", "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, 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_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto,
file_level_service_descriptors_greptime_2fv1_2fddl_2eproto, file_level_service_descriptors_greptime_2fv1_2fddl_2eproto,
@@ -1334,13 +1308,22 @@ void CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse::MergeFrom(const CreateFlowTas
class CreateFlowTaskExpr::_Internal { class CreateFlowTaskExpr::_Internal {
public: 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) { CreateFlowTaskExpr::_Internal::sink_table_name(const CreateFlowTaskExpr* msg) {
return *msg->_impl_.sink_table_name_; 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, CreateFlowTaskExpr::CreateFlowTaskExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned) bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) { : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1409,7 +1392,7 @@ CreateFlowTaskExpr::CreateFlowTaskExpr(const CreateFlowTaskExpr& from)
_this->GetArenaForAllocation()); _this->GetArenaForAllocation());
} }
if (from._internal_has_sink_table_name()) { 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_, ::memcpy(&_impl_.or_replace_, &from._impl_.or_replace_,
static_cast<size_t>(reinterpret_cast<char*>(&_impl_.create_if_not_exists_) - static_cast<size_t>(reinterpret_cast<char*>(&_impl_.create_if_not_exists_) -
@@ -1536,7 +1519,7 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; // repeated .greptime.v1.TableName source_table_names = 3;
case 3: case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) { if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr -= 1; ptr -= 1;
@@ -1549,7 +1532,7 @@ const char* CreateFlowTaskExpr::_InternalParse(const char* ptr, ::_pbi::ParseCon
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .greptime.v1.SchemaScopedTableName sink_table_name = 4; // .greptime.v1.TableName sink_table_name = 4;
case 4: case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) { if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
ptr = ctx->ParseMessage(_internal_mutable_sink_table_name(), ptr); ptr = ctx->ParseMessage(_internal_mutable_sink_table_name(), ptr);
@@ -1665,7 +1648,7 @@ uint8_t* CreateFlowTaskExpr::_InternalSerialize(
2, this->_internal_task_name(), target); 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, for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_source_table_names_size()); i < n; i++) { n = static_cast<unsigned>(this->_internal_source_table_names_size()); i < n; i++) {
const auto& repfield = this->_internal_source_table_names(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); 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()) { if (this->_internal_has_sink_table_name()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(4, _Internal::sink_table_name(this), 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 // Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits; (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(); total_size += 1UL * this->_internal_source_table_names_size();
for (const auto& msg : this->_impl_.source_table_names_) { for (const auto& msg : this->_impl_.source_table_names_) {
total_size += total_size +=
@@ -1819,7 +1802,7 @@ size_t CreateFlowTaskExpr::ByteSizeLong() const {
this->_internal_sql()); this->_internal_sql());
} }
// .greptime.v1.SchemaScopedTableName sink_table_name = 4; // .greptime.v1.TableName sink_table_name = 4;
if (this->_internal_has_sink_table_name()) { if (this->_internal_has_sink_table_name()) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( ::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()); _this->_internal_set_sql(from._internal_sql());
} }
if (from._internal_has_sink_table_name()) { 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()); from._internal_sink_table_name());
} }
if (from._internal_or_replace() != 0) { if (from._internal_or_replace() != 0) {
@@ -1938,259 +1921,6 @@ void CreateFlowTaskExpr::InternalSwap(CreateFlowTaskExpr* other) {
// =================================================================== // ===================================================================
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<uint8_t>(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<uint8_t>(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<int>(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<int>(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<SchemaScopedTableName*>(&to_msg);
auto& from = static_cast<const SchemaScopedTableName&>(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 { class DropFlowTaskExpr::_Internal {
public: public:
}; };
@@ -2439,7 +2169,7 @@ void DropFlowTaskExpr::InternalSwap(DropFlowTaskExpr* other) {
::PROTOBUF_NAMESPACE_ID::Metadata DropFlowTaskExpr::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata DropFlowTaskExpr::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata CreateTableExpr_TableOptionsEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata CreateTableExpr::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata AlterExpr::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata DropTableExpr::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr_OptionsEntry_DoNotUse::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata CreateDatabaseExpr::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata TruncateTableExpr::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseExpr::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumns::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumns::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata RenameTable::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumn::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata DropColumn::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once, &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) // @@protoc_insertion_point(namespace_scope)
@@ -6878,10 +6608,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::CreateFlowTaskExpr*
Arena::CreateMaybeMessage< ::greptime::v1::CreateFlowTaskExpr >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::CreateFlowTaskExpr >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::CreateFlowTaskExpr >(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* template<> PROTOBUF_NOINLINE ::greptime::v1::DropFlowTaskExpr*
Arena::CreateMaybeMessage< ::greptime::v1::DropFlowTaskExpr >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::DropFlowTaskExpr >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::DropFlowTaskExpr >(arena); return Arena::CreateMessageInternal< ::greptime::v1::DropFlowTaskExpr >(arena);
+62 -349
View File
@@ -105,9 +105,6 @@ extern DropTableExprDefaultTypeInternal _DropTableExpr_default_instance_;
class RenameTable; class RenameTable;
struct RenameTableDefaultTypeInternal; struct RenameTableDefaultTypeInternal;
extern RenameTableDefaultTypeInternal _RenameTable_default_instance_; extern RenameTableDefaultTypeInternal _RenameTable_default_instance_;
class SchemaScopedTableName;
struct SchemaScopedTableNameDefaultTypeInternal;
extern SchemaScopedTableNameDefaultTypeInternal _SchemaScopedTableName_default_instance_;
class TableId; class TableId;
struct TableIdDefaultTypeInternal; struct TableIdDefaultTypeInternal;
extern TableIdDefaultTypeInternal _TableId_default_instance_; 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::DropFlowTaskExpr* Arena::CreateMaybeMessage<::greptime::v1::DropFlowTaskExpr>(Arena*);
template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*); template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*);
template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(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::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*);
template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*); template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*);
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
@@ -638,22 +634,22 @@ class CreateFlowTaskExpr final :
kOrReplaceFieldNumber = 5, kOrReplaceFieldNumber = 5,
kCreateIfNotExistsFieldNumber = 6, kCreateIfNotExistsFieldNumber = 6,
}; };
// repeated .greptime.v1.SchemaScopedTableName source_table_names = 3; // repeated .greptime.v1.TableName source_table_names = 3;
int source_table_names_size() const; int source_table_names_size() const;
private: private:
int _internal_source_table_names_size() const; int _internal_source_table_names_size() const;
public: public:
void clear_source_table_names(); void clear_source_table_names();
::greptime::v1::SchemaScopedTableName* mutable_source_table_names(int index); ::greptime::v1::TableName* mutable_source_table_names(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >* ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >*
mutable_source_table_names(); mutable_source_table_names();
private: private:
const ::greptime::v1::SchemaScopedTableName& _internal_source_table_names(int index) const; const ::greptime::v1::TableName& _internal_source_table_names(int index) const;
::greptime::v1::SchemaScopedTableName* _internal_add_source_table_names(); ::greptime::v1::TableName* _internal_add_source_table_names();
public: public:
const ::greptime::v1::SchemaScopedTableName& source_table_names(int index) const; const ::greptime::v1::TableName& source_table_names(int index) const;
::greptime::v1::SchemaScopedTableName* add_source_table_names(); ::greptime::v1::TableName* add_source_table_names();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::SchemaScopedTableName >& const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableName >&
source_table_names() const; source_table_names() const;
// map<string, string> task_options = 10; // map<string, string> task_options = 10;
@@ -743,23 +739,23 @@ class CreateFlowTaskExpr final :
std::string* _internal_mutable_sql(); std::string* _internal_mutable_sql();
public: public:
// .greptime.v1.SchemaScopedTableName sink_table_name = 4; // .greptime.v1.TableName sink_table_name = 4;
bool has_sink_table_name() const; bool has_sink_table_name() const;
private: private:
bool _internal_has_sink_table_name() const; bool _internal_has_sink_table_name() const;
public: public:
void clear_sink_table_name(); void clear_sink_table_name();
const ::greptime::v1::SchemaScopedTableName& sink_table_name() const; const ::greptime::v1::TableName& sink_table_name() const;
PROTOBUF_NODISCARD ::greptime::v1::SchemaScopedTableName* release_sink_table_name(); PROTOBUF_NODISCARD ::greptime::v1::TableName* release_sink_table_name();
::greptime::v1::SchemaScopedTableName* mutable_sink_table_name(); ::greptime::v1::TableName* mutable_sink_table_name();
void set_allocated_sink_table_name(::greptime::v1::SchemaScopedTableName* sink_table_name); void set_allocated_sink_table_name(::greptime::v1::TableName* sink_table_name);
private: private:
const ::greptime::v1::SchemaScopedTableName& _internal_sink_table_name() const; const ::greptime::v1::TableName& _internal_sink_table_name() const;
::greptime::v1::SchemaScopedTableName* _internal_mutable_sink_table_name(); ::greptime::v1::TableName* _internal_mutable_sink_table_name();
public: public:
void unsafe_arena_set_allocated_sink_table_name( void unsafe_arena_set_allocated_sink_table_name(
::greptime::v1::SchemaScopedTableName* sink_table_name); ::greptime::v1::TableName* sink_table_name);
::greptime::v1::SchemaScopedTableName* unsafe_arena_release_sink_table_name(); ::greptime::v1::TableName* unsafe_arena_release_sink_table_name();
// bool or_replace = 5; // bool or_replace = 5;
void clear_or_replace(); void clear_or_replace();
@@ -787,7 +783,7 @@ class CreateFlowTaskExpr final :
typedef void InternalArenaConstructable_; typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
struct Impl_ { 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< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse, CreateFlowTaskExpr_TaskOptionsEntry_DoNotUse,
std::string, std::string, std::string, std::string,
@@ -798,7 +794,7 @@ class CreateFlowTaskExpr final :
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expire_when_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expire_when_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_;
::greptime::v1::SchemaScopedTableName* sink_table_name_; ::greptime::v1::TableName* sink_table_name_;
bool or_replace_; bool or_replace_;
bool create_if_not_exists_; bool create_if_not_exists_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; 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<const SchemaScopedTableName*>(
&_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<SchemaScopedTableName>(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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename T> 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 : class DropFlowTaskExpr final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropFlowTaskExpr) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropFlowTaskExpr) */ {
public: public:
@@ -1025,7 +852,7 @@ class DropFlowTaskExpr final :
&_DropFlowTaskExpr_default_instance_); &_DropFlowTaskExpr_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
4; 3;
friend void swap(DropFlowTaskExpr& a, DropFlowTaskExpr& b) { friend void swap(DropFlowTaskExpr& a, DropFlowTaskExpr& b) {
a.Swap(&b); a.Swap(&b);
@@ -1222,7 +1049,7 @@ class CreateTableExpr final :
&_CreateTableExpr_default_instance_); &_CreateTableExpr_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
6; 5;
friend void swap(CreateTableExpr& a, CreateTableExpr& b) { friend void swap(CreateTableExpr& a, CreateTableExpr& b) {
a.Swap(&b); a.Swap(&b);
@@ -1565,7 +1392,7 @@ class AlterExpr final :
&_AlterExpr_default_instance_); &_AlterExpr_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
7; 6;
friend void swap(AlterExpr& a, AlterExpr& b) { friend void swap(AlterExpr& a, AlterExpr& b) {
a.Swap(&b); a.Swap(&b);
@@ -1824,7 +1651,7 @@ class DropTableExpr final :
&_DropTableExpr_default_instance_); &_DropTableExpr_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
8; 7;
friend void swap(DropTableExpr& a, DropTableExpr& b) { friend void swap(DropTableExpr& a, DropTableExpr& b) {
a.Swap(&b); a.Swap(&b);
@@ -2068,7 +1895,7 @@ class CreateDatabaseExpr final :
&_CreateDatabaseExpr_default_instance_); &_CreateDatabaseExpr_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
10; 9;
friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) { friend void swap(CreateDatabaseExpr& a, CreateDatabaseExpr& b) {
a.Swap(&b); a.Swap(&b);
@@ -2274,7 +2101,7 @@ class TruncateTableExpr final :
&_TruncateTableExpr_default_instance_); &_TruncateTableExpr_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
11; 10;
friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) { friend void swap(TruncateTableExpr& a, TruncateTableExpr& b) {
a.Swap(&b); a.Swap(&b);
@@ -2479,7 +2306,7 @@ class DropDatabaseExpr final :
&_DropDatabaseExpr_default_instance_); &_DropDatabaseExpr_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
12; 11;
friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) { friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) {
a.Swap(&b); a.Swap(&b);
@@ -2659,7 +2486,7 @@ class AddColumns final :
&_AddColumns_default_instance_); &_AddColumns_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
13; 12;
friend void swap(AddColumns& a, AddColumns& b) { friend void swap(AddColumns& a, AddColumns& b) {
a.Swap(&b); a.Swap(&b);
@@ -2816,7 +2643,7 @@ class DropColumns final :
&_DropColumns_default_instance_); &_DropColumns_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
14; 13;
friend void swap(DropColumns& a, DropColumns& b) { friend void swap(DropColumns& a, DropColumns& b) {
a.Swap(&b); a.Swap(&b);
@@ -2973,7 +2800,7 @@ class RenameTable final :
&_RenameTable_default_instance_); &_RenameTable_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
15; 14;
friend void swap(RenameTable& a, RenameTable& b) { friend void swap(RenameTable& a, RenameTable& b) {
a.Swap(&b); a.Swap(&b);
@@ -3126,7 +2953,7 @@ class AddColumn final :
&_AddColumn_default_instance_); &_AddColumn_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
16; 15;
friend void swap(AddColumn& a, AddColumn& b) { friend void swap(AddColumn& a, AddColumn& b) {
a.Swap(&b); a.Swap(&b);
@@ -3303,7 +3130,7 @@ class DropColumn final :
&_DropColumn_default_instance_); &_DropColumn_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
17; 16;
friend void swap(DropColumn& a, DropColumn& b) { friend void swap(DropColumn& a, DropColumn& b) {
a.Swap(&b); a.Swap(&b);
@@ -3456,7 +3283,7 @@ class TableId final :
&_TableId_default_instance_); &_TableId_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
18; 17;
friend void swap(TableId& a, TableId& b) { friend void swap(TableId& a, TableId& b) {
a.Swap(&b); a.Swap(&b);
@@ -3604,7 +3431,7 @@ class ColumnDef final :
&_ColumnDef_default_instance_); &_ColumnDef_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
19; 18;
friend void swap(ColumnDef& a, ColumnDef& b) { friend void swap(ColumnDef& a, ColumnDef& b) {
a.Swap(&b); a.Swap(&b);
@@ -3842,7 +3669,7 @@ class AddColumnLocation final :
&_AddColumnLocation_default_instance_); &_AddColumnLocation_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
20; 19;
friend void swap(AddColumnLocation& a, AddColumnLocation& b) { friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
a.Swap(&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) // @@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 { inline int CreateFlowTaskExpr::_internal_source_table_names_size() const {
return _impl_.source_table_names_.size(); return _impl_.source_table_names_.size();
} }
inline int CreateFlowTaskExpr::source_table_names_size() const { inline int CreateFlowTaskExpr::source_table_names_size() const {
return _internal_source_table_names_size(); return _internal_source_table_names_size();
} }
inline void CreateFlowTaskExpr::clear_source_table_names() { inline ::greptime::v1::TableName* CreateFlowTaskExpr::mutable_source_table_names(int index) {
_impl_.source_table_names_.Clear();
}
inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::mutable_source_table_names(int index) {
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.source_table_names) // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.source_table_names)
return _impl_.source_table_names_.Mutable(index); 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() { CreateFlowTaskExpr::mutable_source_table_names() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.CreateFlowTaskExpr.source_table_names) // @@protoc_insertion_point(field_mutable_list:greptime.v1.CreateFlowTaskExpr.source_table_names)
return &_impl_.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); 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) // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.source_table_names)
return _internal_source_table_names(index); 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(); return _impl_.source_table_names_.Add();
} }
inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::add_source_table_names() { inline ::greptime::v1::TableName* CreateFlowTaskExpr::add_source_table_names() {
::greptime::v1::SchemaScopedTableName* _add = _internal_add_source_table_names(); ::greptime::v1::TableName* _add = _internal_add_source_table_names();
// @@protoc_insertion_point(field_add:greptime.v1.CreateFlowTaskExpr.source_table_names) // @@protoc_insertion_point(field_add:greptime.v1.CreateFlowTaskExpr.source_table_names)
return _add; 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 { CreateFlowTaskExpr::source_table_names() const {
// @@protoc_insertion_point(field_list:greptime.v1.CreateFlowTaskExpr.source_table_names) // @@protoc_insertion_point(field_list:greptime.v1.CreateFlowTaskExpr.source_table_names)
return _impl_.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 { inline bool CreateFlowTaskExpr::_internal_has_sink_table_name() const {
return this != internal_default_instance() && _impl_.sink_table_name_ != nullptr; return this != internal_default_instance() && _impl_.sink_table_name_ != nullptr;
} }
inline bool CreateFlowTaskExpr::has_sink_table_name() const { inline bool CreateFlowTaskExpr::has_sink_table_name() const {
return _internal_has_sink_table_name(); return _internal_has_sink_table_name();
} }
inline void CreateFlowTaskExpr::clear_sink_table_name() { inline const ::greptime::v1::TableName& CreateFlowTaskExpr::_internal_sink_table_name() const {
if (GetArenaForAllocation() == nullptr && _impl_.sink_table_name_ != nullptr) { const ::greptime::v1::TableName* p = _impl_.sink_table_name_;
delete _impl_.sink_table_name_; return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::TableName&>(
} ::greptime::v1::_TableName_default_instance_);
_impl_.sink_table_name_ = nullptr;
} }
inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::_internal_sink_table_name() const { inline const ::greptime::v1::TableName& CreateFlowTaskExpr::sink_table_name() const {
const ::greptime::v1::SchemaScopedTableName* p = _impl_.sink_table_name_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::SchemaScopedTableName&>(
::greptime::v1::_SchemaScopedTableName_default_instance_);
}
inline const ::greptime::v1::SchemaScopedTableName& CreateFlowTaskExpr::sink_table_name() const {
// @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.sink_table_name) // @@protoc_insertion_point(field_get:greptime.v1.CreateFlowTaskExpr.sink_table_name)
return _internal_sink_table_name(); return _internal_sink_table_name();
} }
inline void CreateFlowTaskExpr::unsafe_arena_set_allocated_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) { if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sink_table_name_); 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) // @@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; _impl_.sink_table_name_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); 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 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp; 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) // @@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; _impl_.sink_table_name_ = nullptr;
return temp; 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) { 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; _impl_.sink_table_name_ = p;
} }
return _impl_.sink_table_name_; return _impl_.sink_table_name_;
} }
inline ::greptime::v1::SchemaScopedTableName* CreateFlowTaskExpr::mutable_sink_table_name() { inline ::greptime::v1::TableName* CreateFlowTaskExpr::mutable_sink_table_name() {
::greptime::v1::SchemaScopedTableName* _msg = _internal_mutable_sink_table_name(); ::greptime::v1::TableName* _msg = _internal_mutable_sink_table_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.sink_table_name) // @@protoc_insertion_point(field_mutable:greptime.v1.CreateFlowTaskExpr.sink_table_name)
return _msg; 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(); ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) { if (message_arena == nullptr) {
delete _impl_.sink_table_name_; delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.sink_table_name_);
} }
if (sink_table_name) { if (sink_table_name) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = ::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) { if (message_arena != submessage_arena) {
sink_table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( sink_table_name = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, sink_table_name, submessage_arena); 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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void SchemaScopedTableName::set_schema_name(ArgT0&& arg0, ArgT... args) {
_impl_.schema_name_.Set(static_cast<ArgT0 &&>(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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void SchemaScopedTableName::set_table_name(ArgT0&& arg0, ArgT... args) {
_impl_.table_name_.Set(static_cast<ArgT0 &&>(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 // DropFlowTaskExpr
// string catalog_name = 1; // string catalog_name = 1;
@@ -7737,8 +7452,6 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+16 -351
View File
@@ -107,21 +107,6 @@ struct TableIdDefaultTypeInternal {
}; };
}; };
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableIdDefaultTypeInternal _TableId_default_instance_; 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( PROTOBUF_CONSTEXPR TimeInterval::TimeInterval(
::_pbi::ConstantInitialized): _impl_{ ::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.start_timestamp_millis_)*/int64_t{0} /*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 meta
} // namespace v1 } // namespace v1
} // namespace greptime } // 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 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; 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_ ~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableId, _impl_.id_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableId, _impl_.id_),
~0u, // no _has_bits_ ~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_), PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TimeInterval, _internal_metadata_),
~0u, // no _extensions_ ~0u, // no _extensions_
~0u, // no _oneof_case_ ~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)}, { 30, -1, -1, sizeof(::greptime::v1::meta::Error)},
{ 38, -1, -1, sizeof(::greptime::v1::meta::Peer)}, { 38, -1, -1, sizeof(::greptime::v1::meta::Peer)},
{ 46, -1, -1, sizeof(::greptime::v1::meta::TableId)}, { 46, -1, -1, sizeof(::greptime::v1::meta::TableId)},
{ 53, -1, -1, sizeof(::greptime::v1::meta::TableName)}, { 53, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)},
{ 62, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)}, { 61, -1, -1, sizeof(::greptime::v1::meta::KeyValue)},
{ 70, -1, -1, sizeof(::greptime::v1::meta::KeyValue)}, { 69, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)},
{ 78, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)},
}; };
static const ::_pb::Message* const file_default_instances[] = { 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::_Error_default_instance_._instance,
&::greptime::v1::meta::_Peer_default_instance_._instance, &::greptime::v1::meta::_Peer_default_instance_._instance,
&::greptime::v1::meta::_TableId_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::_TimeInterval_default_instance_._instance,
&::greptime::v1::meta::_KeyValue_default_instance_._instance, &::greptime::v1::meta::_KeyValue_default_instance_._instance,
&::greptime::v1::meta::_ProcedureId_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" "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" "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(" "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" "\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"L\n\014TimeInterval"
"\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" "\022\036\n\026start_timestamp_millis\030\001 \001(\003\022\034\n\024end_"
"\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026" "timestamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003ke"
"start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time" "y\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n"
"stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 " "\003key\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRON"
"\001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n\003key" "TEND\020\001B<Z:github.com/GreptimeTeam/grepti"
"\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRONTEND" "me-proto/go/greptime/v1/metab\006proto3"
"\020\001B<Z:github.com/GreptimeTeam/greptime-p"
"roto/go/greptime/v1/metab\006proto3"
; ;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto = {
false, false, 832, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto, false, false, 756, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto,
"greptime/v1/meta/common.proto", "greptime/v1/meta/common.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 10, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 9,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto, file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto, file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
@@ -1575,309 +1547,6 @@ void TableId::InternalSwap(TableId* other) {
// =================================================================== // ===================================================================
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.meta.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.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<uint8_t>(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<uint8_t>(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<uint8_t>(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<int>(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<int>(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<int>(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<TableName*>(&to_msg);
auto& from = static_cast<const TableName&>(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 { class TimeInterval::_Internal {
public: public:
}; };
@@ -2084,7 +1753,7 @@ void TimeInterval::InternalSwap(TimeInterval* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TimeInterval::GetMetadata() const { ::PROTOBUF_NAMESPACE_ID::Metadata TimeInterval::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata KeyValue::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, &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 { ::PROTOBUF_NAMESPACE_ID::Metadata ProcedureId::GetMetadata() const {
return ::_pbi::AssignDescriptors( return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, &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) // @@protoc_insertion_point(namespace_scope)
@@ -2557,10 +2226,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TableId*
Arena::CreateMaybeMessage< ::greptime::v1::meta::TableId >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::meta::TableId >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::TableId >(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* template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TimeInterval*
Arena::CreateMaybeMessage< ::greptime::v1::meta::TimeInterval >(Arena* arena) { Arena::CreateMaybeMessage< ::greptime::v1::meta::TimeInterval >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::TimeInterval >(arena); return Arena::CreateMessageInternal< ::greptime::v1::meta::TimeInterval >(arena);
+3 -348
View File
@@ -75,9 +75,6 @@ extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_;
class TableId; class TableId;
struct TableIdDefaultTypeInternal; struct TableIdDefaultTypeInternal;
extern TableIdDefaultTypeInternal _TableId_default_instance_; extern TableIdDefaultTypeInternal _TableId_default_instance_;
class TableName;
struct TableNameDefaultTypeInternal;
extern TableNameDefaultTypeInternal _TableName_default_instance_;
class TimeInterval; class TimeInterval;
struct TimeIntervalDefaultTypeInternal; struct TimeIntervalDefaultTypeInternal;
extern TimeIntervalDefaultTypeInternal _TimeInterval_default_instance_; 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::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::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(Arena*);
template<> ::greptime::v1::meta::TableId* Arena::CreateMaybeMessage<::greptime::v1::meta::TableId>(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*); template<> ::greptime::v1::meta::TimeInterval* Arena::CreateMaybeMessage<::greptime::v1::meta::TimeInterval>(Arena*);
PROTOBUF_NAMESPACE_CLOSE PROTOBUF_NAMESPACE_CLOSE
namespace greptime { 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<const TableName*>(
&_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<TableName>(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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename ArgT0 = const std::string&, typename... ArgT>
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 <typename T> 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 : class TimeInterval final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.TimeInterval) */ { public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.TimeInterval) */ {
public: public:
@@ -1250,7 +1061,7 @@ class TimeInterval final :
&_TimeInterval_default_instance_); &_TimeInterval_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
7; 6;
friend void swap(TimeInterval& a, TimeInterval& b) { friend void swap(TimeInterval& a, TimeInterval& b) {
a.Swap(&b); a.Swap(&b);
@@ -1409,7 +1220,7 @@ class KeyValue final :
&_KeyValue_default_instance_); &_KeyValue_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
8; 7;
friend void swap(KeyValue& a, KeyValue& b) { friend void swap(KeyValue& a, KeyValue& b) {
a.Swap(&b); a.Swap(&b);
@@ -1578,7 +1389,7 @@ class ProcedureId final :
&_ProcedureId_default_instance_); &_ProcedureId_default_instance_);
} }
static constexpr int kIndexInFileMessages = static constexpr int kIndexInFileMessages =
9; 8;
friend void swap(ProcedureId& a, ProcedureId& b) { friend void swap(ProcedureId& a, ProcedureId& b) {
a.Swap(&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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TableName::set_catalog_name(ArgT0&& arg0, ArgT... args) {
_impl_.catalog_name_.Set(static_cast<ArgT0 &&>(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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TableName::set_schema_name(ArgT0&& arg0, ArgT... args) {
_impl_.schema_name_.Set(static_cast<ArgT0 &&>(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 <typename ArgT0, typename... ArgT>
inline PROTOBUF_ALWAYS_INLINE
void TableName::set_table_name(ArgT0&& arg0, ArgT... args) {
_impl_.table_name_.Set(static_cast<ArgT0 &&>(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 // TimeInterval
// int64 start_timestamp_millis = 1; // int64 start_timestamp_millis = 1;
@@ -2484,8 +2141,6 @@ inline void ProcedureId::set_allocated_key(std::string* key) {
// ------------------------------------------------------------------- // -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope) // @@protoc_insertion_point(namespace_scope)
+31 -30
View File
@@ -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) = const char descriptor_table_protodef_greptime_2fv1_2fmeta_2froute_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\034greptime/v1/meta/route.proto\022\020greptime" "\n\034greptime/v1/meta/route.proto\022\020greptime"
".v1.meta\032\035greptime/v1/meta/common.proto\"" ".v1.meta\032\035greptime/v1/meta/common.proto\032"
"j\n\nTableRoute\022&\n\005table\030\001 \001(\0132\027.greptime." "\030greptime/v1/common.proto\"j\n\nTableRoute\022"
"v1.meta.Table\0224\n\rregion_routes\030\002 \003(\0132\035.g" "&\n\005table\030\001 \001(\0132\027.greptime.v1.meta.Table\022"
"reptime.v1.meta.RegionRoute\"q\n\013RegionRou" "4\n\rregion_routes\030\002 \003(\0132\035.greptime.v1.met"
"te\022(\n\006region\030\001 \001(\0132\030.greptime.v1.meta.Re" "a.RegionRoute\"q\n\013RegionRoute\022(\n\006region\030\001"
"gion\022\031\n\021leader_peer_index\030\002 \001(\004\022\035\n\025follo" " \001(\0132\030.greptime.v1.meta.Region\022\031\n\021leader"
"wer_peer_indexes\030\003 \003(\004\"Z\n\005Table\022\n\n\002id\030\001 " "_peer_index\030\002 \001(\004\022\035\n\025follower_peer_index"
"\001(\004\022/\n\ntable_name\030\002 \001(\0132\033.greptime.v1.me" "es\030\003 \003(\004\"U\n\005Table\022\n\n\002id\030\001 \001(\004\022*\n\ntable_n"
"ta.TableName\022\024\n\014table_schema\030\003 \001(\014\"\264\001\n\006R" "ame\030\002 \001(\0132\026.greptime.v1.TableName\022\024\n\014tab"
"egion\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022.\n\tparti" "le_schema\030\003 \001(\014\"\264\001\n\006Region\022\n\n\002id\030\001 \001(\004\022\014"
"tion\030\003 \001(\0132\033.greptime.v1.meta.Partition\022" "\n\004name\030\002 \001(\t\022.\n\tpartition\030\003 \001(\0132\033.grepti"
"2\n\005attrs\030d \003(\0132#.greptime.v1.meta.Region" "me.v1.meta.Partition\0222\n\005attrs\030d \003(\0132#.gr"
".AttrsEntry\032,\n\nAttrsEntry\022\013\n\003key\030\001 \001(\t\022\r" "eptime.v1.meta.Region.AttrsEntry\032,\n\nAttr"
"\n\005value\030\002 \001(\t:\0028\001\"4\n\tPartition\022\023\n\013column" "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"4"
"_list\030\001 \003(\014\022\022\n\nvalue_list\030\002 \003(\014\"k\n\017Table" "\n\tPartition\022\023\n\013column_list\030\001 \003(\014\022\022\n\nvalu"
"RouteValue\022%\n\005peers\030\001 \003(\0132\026.greptime.v1." "e_list\030\002 \003(\014\"k\n\017TableRouteValue\022%\n\005peers"
"meta.Peer\0221\n\013table_route\030\002 \001(\0132\034.greptim" "\030\001 \003(\0132\026.greptime.v1.meta.Peer\0221\n\013table_"
"e.v1.meta.TableRouteB<Z:github.com/Grept" "route\030\002 \001(\0132\034.greptime.v1.meta.TableRout"
"imeTeam/greptime-proto/go/greptime/v1/me" "eB<Z:github.com/GreptimeTeam/greptime-pr"
"tab\006proto3" "oto/go/greptime/v1/metab\006proto3"
; ;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_deps[1] = { static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_deps[2] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
&::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto, &::descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto,
}; };
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once; static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto = { const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto = {
false, false, 810, descriptor_table_protodef_greptime_2fv1_2fmeta_2froute_2eproto, false, false, 831, descriptor_table_protodef_greptime_2fv1_2fmeta_2froute_2eproto,
"greptime/v1/meta/route.proto", "greptime/v1/meta/route.proto",
&descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_deps, 1, 7, &descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2froute_2eproto_deps, 2, 7,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2froute_2eproto::offsets, schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2froute_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2froute_2eproto, file_level_metadata_greptime_2fv1_2fmeta_2froute_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2froute_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2froute_2eproto, file_level_service_descriptors_greptime_2fv1_2fmeta_2froute_2eproto,
@@ -756,10 +757,10 @@ void RegionRoute::InternalSwap(RegionRoute* other) {
class Table::_Internal { class Table::_Internal {
public: public:
static const ::greptime::v1::meta::TableName& table_name(const Table* msg); static const ::greptime::v1::TableName& table_name(const Table* msg);
}; };
const ::greptime::v1::meta::TableName& const ::greptime::v1::TableName&
Table::_Internal::table_name(const Table* msg) { Table::_Internal::table_name(const Table* msg) {
return *msg->_impl_.table_name_; return *msg->_impl_.table_name_;
} }
@@ -794,7 +795,7 @@ Table::Table(const Table& from)
_this->GetArenaForAllocation()); _this->GetArenaForAllocation());
} }
if (from._internal_has_table_name()) { 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_; _this->_impl_.id_ = from._impl_.id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.Table) // @@protoc_insertion_point(copy_constructor:greptime.v1.meta.Table)
@@ -864,7 +865,7 @@ const char* Table::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
} else } else
goto handle_unusual; goto handle_unusual;
continue; continue;
// .greptime.v1.meta.TableName table_name = 2; // .greptime.v1.TableName table_name = 2;
case 2: case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) { if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_table_name(), ptr); 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); 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()) { if (this->_internal_has_table_name()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(2, _Internal::table_name(this), InternalWriteMessage(2, _Internal::table_name(this),
@@ -952,7 +953,7 @@ size_t Table::ByteSizeLong() const {
this->_internal_table_schema()); this->_internal_table_schema());
} }
// .greptime.v1.meta.TableName table_name = 2; // .greptime.v1.TableName table_name = 2;
if (this->_internal_has_table_name()) { if (this->_internal_has_table_name()) {
total_size += 1 + total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( ::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()); _this->_internal_set_table_schema(from._internal_table_schema());
} }
if (from._internal_has_table_name()) { 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()); from._internal_table_name());
} }
if (from._internal_id() != 0) { if (from._internal_id() != 0) {
+27 -26
View File
@@ -34,6 +34,7 @@
#include <google/protobuf/map_field_inl.h> #include <google/protobuf/map_field_inl.h>
#include <google/protobuf/unknown_field_set.h> #include <google/protobuf/unknown_field_set.h>
#include "greptime/v1/meta/common.pb.h" #include "greptime/v1/meta/common.pb.h"
#include "greptime/v1/common.pb.h"
// @@protoc_insertion_point(includes) // @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc> #include <google/protobuf/port_def.inc>
#define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fmeta_2froute_2eproto #define PROTOBUF_INTERNAL_EXPORT_greptime_2fv1_2fmeta_2froute_2eproto
@@ -599,23 +600,23 @@ class Table final :
std::string* _internal_mutable_table_schema(); std::string* _internal_mutable_table_schema();
public: public:
// .greptime.v1.meta.TableName table_name = 2; // .greptime.v1.TableName table_name = 2;
bool has_table_name() const; bool has_table_name() const;
private: private:
bool _internal_has_table_name() const; bool _internal_has_table_name() const;
public: public:
void clear_table_name(); void clear_table_name();
const ::greptime::v1::meta::TableName& table_name() const; const ::greptime::v1::TableName& table_name() const;
PROTOBUF_NODISCARD ::greptime::v1::meta::TableName* release_table_name(); PROTOBUF_NODISCARD ::greptime::v1::TableName* release_table_name();
::greptime::v1::meta::TableName* mutable_table_name(); ::greptime::v1::TableName* mutable_table_name();
void set_allocated_table_name(::greptime::v1::meta::TableName* table_name); void set_allocated_table_name(::greptime::v1::TableName* table_name);
private: private:
const ::greptime::v1::meta::TableName& _internal_table_name() const; const ::greptime::v1::TableName& _internal_table_name() const;
::greptime::v1::meta::TableName* _internal_mutable_table_name(); ::greptime::v1::TableName* _internal_mutable_table_name();
public: public:
void unsafe_arena_set_allocated_table_name( void unsafe_arena_set_allocated_table_name(
::greptime::v1::meta::TableName* table_name); ::greptime::v1::TableName* table_name);
::greptime::v1::meta::TableName* unsafe_arena_release_table_name(); ::greptime::v1::TableName* unsafe_arena_release_table_name();
// uint64 id = 1; // uint64 id = 1;
void clear_id(); void clear_id();
@@ -635,7 +636,7 @@ class Table final :
typedef void DestructorSkippable_; typedef void DestructorSkippable_;
struct Impl_ { struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_schema_; ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr table_schema_;
::greptime::v1::meta::TableName* table_name_; ::greptime::v1::TableName* table_name_;
uint64_t id_; uint64_t id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; 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) // @@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 { inline bool Table::_internal_has_table_name() const {
return this != internal_default_instance() && _impl_.table_name_ != nullptr; return this != internal_default_instance() && _impl_.table_name_ != nullptr;
} }
inline bool Table::has_table_name() const { inline bool Table::has_table_name() const {
return _internal_has_table_name(); return _internal_has_table_name();
} }
inline const ::greptime::v1::meta::TableName& Table::_internal_table_name() const { inline const ::greptime::v1::TableName& Table::_internal_table_name() const {
const ::greptime::v1::meta::TableName* p = _impl_.table_name_; const ::greptime::v1::TableName* p = _impl_.table_name_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::TableName&>( return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::TableName&>(
::greptime::v1::meta::_TableName_default_instance_); ::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) // @@protoc_insertion_point(field_get:greptime.v1.meta.Table.table_name)
return _internal_table_name(); return _internal_table_name();
} }
inline void Table::unsafe_arena_set_allocated_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) { if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_name_); 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) // @@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; _impl_.table_name_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); 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 #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp; 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) // @@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; _impl_.table_name_ = nullptr;
return temp; 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) { if (_impl_.table_name_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::meta::TableName>(GetArenaForAllocation()); auto* p = CreateMaybeMessage<::greptime::v1::TableName>(GetArenaForAllocation());
_impl_.table_name_ = p; _impl_.table_name_ = p;
} }
return _impl_.table_name_; return _impl_.table_name_;
} }
inline ::greptime::v1::meta::TableName* Table::mutable_table_name() { inline ::greptime::v1::TableName* Table::mutable_table_name() {
::greptime::v1::meta::TableName* _msg = _internal_mutable_table_name(); ::greptime::v1::TableName* _msg = _internal_mutable_table_name();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.Table.table_name) // @@protoc_insertion_point(field_mutable:greptime.v1.meta.Table.table_name)
return _msg; 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(); ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) { if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_name_); delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_name_);
+126 -43
View File
@@ -596,6 +596,69 @@ func (x *Token) GetToken() string {
return "" 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 { type AffectedRows struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -607,7 +670,7 @@ type AffectedRows struct {
func (x *AffectedRows) Reset() { func (x *AffectedRows) Reset() {
*x = AffectedRows{} *x = AffectedRows{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -620,7 +683,7 @@ func (x *AffectedRows) String() string {
func (*AffectedRows) ProtoMessage() {} func (*AffectedRows) ProtoMessage() {}
func (x *AffectedRows) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -633,7 +696,7 @@ func (x *AffectedRows) ProtoReflect() protoreflect.Message {
// Deprecated: Use AffectedRows.ProtoReflect.Descriptor instead. // Deprecated: Use AffectedRows.ProtoReflect.Descriptor instead.
func (*AffectedRows) Descriptor() ([]byte, []int) { 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 { func (x *AffectedRows) GetValue() uint32 {
@@ -654,7 +717,7 @@ type Metrics struct {
func (x *Metrics) Reset() { func (x *Metrics) Reset() {
*x = Metrics{} *x = Metrics{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -667,7 +730,7 @@ func (x *Metrics) String() string {
func (*Metrics) ProtoMessage() {} func (*Metrics) ProtoMessage() {}
func (x *Metrics) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -680,7 +743,7 @@ func (x *Metrics) ProtoReflect() protoreflect.Message {
// Deprecated: Use Metrics.ProtoReflect.Descriptor instead. // Deprecated: Use Metrics.ProtoReflect.Descriptor instead.
func (*Metrics) Descriptor() ([]byte, []int) { 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 { func (x *Metrics) GetMetrics() []byte {
@@ -702,7 +765,7 @@ type FlightMetadata struct {
func (x *FlightMetadata) Reset() { func (x *FlightMetadata) Reset() {
*x = FlightMetadata{} *x = FlightMetadata{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -715,7 +778,7 @@ func (x *FlightMetadata) String() string {
func (*FlightMetadata) ProtoMessage() {} func (*FlightMetadata) ProtoMessage() {}
func (x *FlightMetadata) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -728,7 +791,7 @@ func (x *FlightMetadata) ProtoReflect() protoreflect.Message {
// Deprecated: Use FlightMetadata.ProtoReflect.Descriptor instead. // Deprecated: Use FlightMetadata.ProtoReflect.Descriptor instead.
func (*FlightMetadata) Descriptor() ([]byte, []int) { 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 { func (x *FlightMetadata) GetAffectedRows() *AffectedRows {
@@ -758,7 +821,7 @@ type IntervalMonthDayNano struct {
func (x *IntervalMonthDayNano) Reset() { func (x *IntervalMonthDayNano) Reset() {
*x = IntervalMonthDayNano{} *x = IntervalMonthDayNano{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -771,7 +834,7 @@ func (x *IntervalMonthDayNano) String() string {
func (*IntervalMonthDayNano) ProtoMessage() {} func (*IntervalMonthDayNano) ProtoMessage() {}
func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -784,7 +847,7 @@ func (x *IntervalMonthDayNano) ProtoReflect() protoreflect.Message {
// Deprecated: Use IntervalMonthDayNano.ProtoReflect.Descriptor instead. // Deprecated: Use IntervalMonthDayNano.ProtoReflect.Descriptor instead.
func (*IntervalMonthDayNano) Descriptor() ([]byte, []int) { 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 { func (x *IntervalMonthDayNano) GetMonths() int32 {
@@ -821,7 +884,7 @@ type Decimal128 struct {
func (x *Decimal128) Reset() { func (x *Decimal128) Reset() {
*x = Decimal128{} *x = Decimal128{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -834,7 +897,7 @@ func (x *Decimal128) String() string {
func (*Decimal128) ProtoMessage() {} func (*Decimal128) ProtoMessage() {}
func (x *Decimal128) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -847,7 +910,7 @@ func (x *Decimal128) ProtoReflect() protoreflect.Message {
// Deprecated: Use Decimal128.ProtoReflect.Descriptor instead. // Deprecated: Use Decimal128.ProtoReflect.Descriptor instead.
func (*Decimal128) Descriptor() ([]byte, []int) { 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 { func (x *Decimal128) GetHi() int64 {
@@ -879,7 +942,7 @@ type ColumnDataTypeExtension struct {
func (x *ColumnDataTypeExtension) Reset() { func (x *ColumnDataTypeExtension) Reset() {
*x = ColumnDataTypeExtension{} *x = ColumnDataTypeExtension{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -892,7 +955,7 @@ func (x *ColumnDataTypeExtension) String() string {
func (*ColumnDataTypeExtension) ProtoMessage() {} func (*ColumnDataTypeExtension) ProtoMessage() {}
func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -905,7 +968,7 @@ func (x *ColumnDataTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead. // Deprecated: Use ColumnDataTypeExtension.ProtoReflect.Descriptor instead.
func (*ColumnDataTypeExtension) Descriptor() ([]byte, []int) { 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 { func (m *ColumnDataTypeExtension) GetTypeExt() isColumnDataTypeExtension_TypeExt {
@@ -944,7 +1007,7 @@ type DecimalTypeExtension struct {
func (x *DecimalTypeExtension) Reset() { func (x *DecimalTypeExtension) Reset() {
*x = DecimalTypeExtension{} *x = DecimalTypeExtension{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -957,7 +1020,7 @@ func (x *DecimalTypeExtension) String() string {
func (*DecimalTypeExtension) ProtoMessage() {} func (*DecimalTypeExtension) ProtoMessage() {}
func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -970,7 +1033,7 @@ func (x *DecimalTypeExtension) ProtoReflect() protoreflect.Message {
// Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead. // Deprecated: Use DecimalTypeExtension.ProtoReflect.Descriptor instead.
func (*DecimalTypeExtension) Descriptor() ([]byte, []int) { 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 { 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, 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, 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, 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, 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, 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, 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_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{}{ var file_greptime_v1_common_proto_goTypes = []interface{}{
(SemanticType)(0), // 0: greptime.v1.SemanticType (SemanticType)(0), // 0: greptime.v1.SemanticType
(ColumnDataType)(0), // 1: greptime.v1.ColumnDataType (ColumnDataType)(0), // 1: greptime.v1.ColumnDataType
@@ -1139,24 +1209,25 @@ var file_greptime_v1_common_proto_goTypes = []interface{}{
(*AuthHeader)(nil), // 5: greptime.v1.AuthHeader (*AuthHeader)(nil), // 5: greptime.v1.AuthHeader
(*Basic)(nil), // 6: greptime.v1.Basic (*Basic)(nil), // 6: greptime.v1.Basic
(*Token)(nil), // 7: greptime.v1.Token (*Token)(nil), // 7: greptime.v1.Token
(*AffectedRows)(nil), // 8: greptime.v1.AffectedRows (*TableName)(nil), // 8: greptime.v1.TableName
(*Metrics)(nil), // 9: greptime.v1.Metrics (*AffectedRows)(nil), // 9: greptime.v1.AffectedRows
(*FlightMetadata)(nil), // 10: greptime.v1.FlightMetadata (*Metrics)(nil), // 10: greptime.v1.Metrics
(*IntervalMonthDayNano)(nil), // 11: greptime.v1.IntervalMonthDayNano (*FlightMetadata)(nil), // 11: greptime.v1.FlightMetadata
(*Decimal128)(nil), // 12: greptime.v1.Decimal128 (*IntervalMonthDayNano)(nil), // 12: greptime.v1.IntervalMonthDayNano
(*ColumnDataTypeExtension)(nil), // 13: greptime.v1.ColumnDataTypeExtension (*Decimal128)(nil), // 13: greptime.v1.Decimal128
(*DecimalTypeExtension)(nil), // 14: greptime.v1.DecimalTypeExtension (*ColumnDataTypeExtension)(nil), // 14: greptime.v1.ColumnDataTypeExtension
nil, // 15: greptime.v1.RequestHeader.TracingContextEntry (*DecimalTypeExtension)(nil), // 15: greptime.v1.DecimalTypeExtension
nil, // 16: greptime.v1.RequestHeader.TracingContextEntry
} }
var file_greptime_v1_common_proto_depIdxs = []int32{ var file_greptime_v1_common_proto_depIdxs = []int32{
5, // 0: greptime.v1.RequestHeader.authorization:type_name -> greptime.v1.AuthHeader 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 4, // 2: greptime.v1.ResponseHeader.status:type_name -> greptime.v1.Status
6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic 6, // 3: greptime.v1.AuthHeader.basic:type_name -> greptime.v1.Basic
7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token 7, // 4: greptime.v1.AuthHeader.token:type_name -> greptime.v1.Token
8, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows 9, // 5: greptime.v1.FlightMetadata.affected_rows:type_name -> greptime.v1.AffectedRows
9, // 6: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics 10, // 6: greptime.v1.FlightMetadata.metrics:type_name -> greptime.v1.Metrics
14, // 7: greptime.v1.ColumnDataTypeExtension.decimal_type:type_name -> greptime.v1.DecimalTypeExtension 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 output_type
8, // [8:8] is the sub-list for method input_type 8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name 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{} { 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: case 0:
return &v.state return &v.state
case 1: 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{} { 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: case 0:
return &v.state return &v.state
case 1: 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{} { 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: case 0:
return &v.state return &v.state
case 1: 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{} { 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: case 0:
return &v.state return &v.state
case 1: 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{} { 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: case 0:
return &v.state return &v.state
case 1: 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{} { 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: case 0:
return &v.state return &v.state
case 1: 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{} { 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 { switch v := v.(*DecimalTypeExtension); i {
case 0: case 0:
return &v.state return &v.state
@@ -1331,7 +1414,7 @@ func file_greptime_v1_common_proto_init() {
(*AuthHeader_Basic)(nil), (*AuthHeader_Basic)(nil),
(*AuthHeader_Token)(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), (*ColumnDataTypeExtension_DecimalType)(nil),
} }
type x struct{} type x struct{}
@@ -1340,7 +1423,7 @@ func file_greptime_v1_common_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_common_proto_rawDesc, RawDescriptor: file_greptime_v1_common_proto_rawDesc,
NumEnums: 2, NumEnums: 2,
NumMessages: 14, NumMessages: 15,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
+300 -375
View File
File diff suppressed because it is too large Load Diff
+18 -101
View File
@@ -384,69 +384,6 @@ func (x *TableId) GetId() uint32 {
return 0 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 { type TimeInterval struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
@@ -461,7 +398,7 @@ type TimeInterval struct {
func (x *TimeInterval) Reset() { func (x *TimeInterval) Reset() {
*x = TimeInterval{} *x = TimeInterval{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -474,7 +411,7 @@ func (x *TimeInterval) String() string {
func (*TimeInterval) ProtoMessage() {} func (*TimeInterval) ProtoMessage() {}
func (x *TimeInterval) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -487,7 +424,7 @@ func (x *TimeInterval) ProtoReflect() protoreflect.Message {
// Deprecated: Use TimeInterval.ProtoReflect.Descriptor instead. // Deprecated: Use TimeInterval.ProtoReflect.Descriptor instead.
func (*TimeInterval) Descriptor() ([]byte, []int) { 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 { func (x *TimeInterval) GetStartTimestampMillis() int64 {
@@ -518,7 +455,7 @@ type KeyValue struct {
func (x *KeyValue) Reset() { func (x *KeyValue) Reset() {
*x = KeyValue{} *x = KeyValue{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -531,7 +468,7 @@ func (x *KeyValue) String() string {
func (*KeyValue) ProtoMessage() {} func (*KeyValue) ProtoMessage() {}
func (x *KeyValue) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -544,7 +481,7 @@ func (x *KeyValue) ProtoReflect() protoreflect.Message {
// Deprecated: Use KeyValue.ProtoReflect.Descriptor instead. // Deprecated: Use KeyValue.ProtoReflect.Descriptor instead.
func (*KeyValue) Descriptor() ([]byte, []int) { 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 { func (x *KeyValue) GetKey() []byte {
@@ -573,7 +510,7 @@ type ProcedureId struct {
func (x *ProcedureId) Reset() { func (x *ProcedureId) Reset() {
*x = ProcedureId{} *x = ProcedureId{}
if protoimpl.UnsafeEnabled { 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 := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
@@ -586,7 +523,7 @@ func (x *ProcedureId) String() string {
func (*ProcedureId) ProtoMessage() {} func (*ProcedureId) ProtoMessage() {}
func (x *ProcedureId) ProtoReflect() protoreflect.Message { 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 { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
@@ -599,7 +536,7 @@ func (x *ProcedureId) ProtoReflect() protoreflect.Message {
// Deprecated: Use ProcedureId.ProtoReflect.Descriptor instead. // Deprecated: Use ProcedureId.ProtoReflect.Descriptor instead.
func (*ProcedureId) Descriptor() ([]byte, []int) { 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 { 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, 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, 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, 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, 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, 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, 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_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{}{ var file_greptime_v1_meta_common_proto_goTypes = []interface{}{
(Role)(0), // 0: greptime.v1.meta.Role (Role)(0), // 0: greptime.v1.meta.Role
(*RequestHeader)(nil), // 1: greptime.v1.meta.RequestHeader (*RequestHeader)(nil), // 1: greptime.v1.meta.RequestHeader
@@ -702,15 +632,14 @@ var file_greptime_v1_meta_common_proto_goTypes = []interface{}{
(*Error)(nil), // 3: greptime.v1.meta.Error (*Error)(nil), // 3: greptime.v1.meta.Error
(*Peer)(nil), // 4: greptime.v1.meta.Peer (*Peer)(nil), // 4: greptime.v1.meta.Peer
(*TableId)(nil), // 5: greptime.v1.meta.TableId (*TableId)(nil), // 5: greptime.v1.meta.TableId
(*TableName)(nil), // 6: greptime.v1.meta.TableName (*TimeInterval)(nil), // 6: greptime.v1.meta.TimeInterval
(*TimeInterval)(nil), // 7: greptime.v1.meta.TimeInterval (*KeyValue)(nil), // 7: greptime.v1.meta.KeyValue
(*KeyValue)(nil), // 8: greptime.v1.meta.KeyValue (*ProcedureId)(nil), // 8: greptime.v1.meta.ProcedureId
(*ProcedureId)(nil), // 9: greptime.v1.meta.ProcedureId nil, // 9: greptime.v1.meta.RequestHeader.TracingContextEntry
nil, // 10: greptime.v1.meta.RequestHeader.TracingContextEntry
} }
var file_greptime_v1_meta_common_proto_depIdxs = []int32{ var file_greptime_v1_meta_common_proto_depIdxs = []int32{
0, // 0: greptime.v1.meta.RequestHeader.role:type_name -> greptime.v1.meta.Role 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 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, // 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 output_type
3, // [3:3] is the sub-list for method input_type 3, // [3:3] is the sub-list for method input_type
@@ -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{} { 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 { switch v := v.(*TimeInterval); i {
case 0: case 0:
return &v.state return &v.state
@@ -809,7 +726,7 @@ func file_greptime_v1_meta_common_proto_init() {
return nil 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 { switch v := v.(*KeyValue); i {
case 0: case 0:
return &v.state return &v.state
@@ -821,7 +738,7 @@ func file_greptime_v1_meta_common_proto_init() {
return nil 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 { switch v := v.(*ProcedureId); i {
case 0: case 0:
return &v.state return &v.state
@@ -840,7 +757,7 @@ func file_greptime_v1_meta_common_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_greptime_v1_meta_common_proto_rawDesc, RawDescriptor: file_greptime_v1_meta_common_proto_rawDesc,
NumEnums: 1, NumEnums: 1,
NumMessages: 10, NumMessages: 9,
NumExtensions: 0, NumExtensions: 0,
NumServices: 0, NumServices: 0,
}, },
+65 -62
View File
@@ -21,6 +21,7 @@
package meta package meta
import ( import (
v1 "github.com/GreptimeTeam/greptime-proto/go/greptime/v1"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect" reflect "reflect"
@@ -160,7 +161,7 @@ type Table struct {
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` 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"` 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"` TableSchema []byte `protobuf:"bytes,3,opt,name=table_schema,json=tableSchema,proto3" json:"table_schema,omitempty"`
} }
@@ -203,7 +204,7 @@ func (x *Table) GetId() uint64 {
return 0 return 0
} }
func (x *Table) GetTableName() *TableName { func (x *Table) GetTableName() *v1.TableName {
if x != nil { if x != nil {
return x.TableName 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, 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, 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, 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, 0x74, 0x61, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
0x7f, 0x0a, 0x0a, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x18, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6d,
0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7f, 0x0a, 0x0a, 0x54, 0x61, 0x62,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x2d, 0x0a, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52,
0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x05, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e,
0x74, 0x65, 0x52, 0x0c, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x22, 0x9f, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x0c, 0x72, 0x65,
0x12, 0x30, 0x0a, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x73, 0x22, 0x9f, 0x01, 0x0a, 0x0b, 0x52,
0x32, 0x18, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x12, 0x30, 0x0a, 0x06, 0x72, 0x65,
0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x67, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x72, 0x65,
0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65,
0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x67, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x11,
0x65, 0x61, 0x64, 0x65, 0x72, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x32, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65,
0x0a, 0x15, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0f, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x50,
0x69, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x13, 0x66, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x32, 0x0a, 0x15, 0x66, 0x6f, 0x6c, 0x6c,
0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x72, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x6f, 0x77, 0x65, 0x72, 0x5f, 0x70, 0x65, 0x65, 0x72, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x65,
0x65, 0x73, 0x22, 0x76, 0x0a, 0x05, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x04, 0x52, 0x13, 0x66, 0x6f, 0x6c, 0x6c, 0x6f, 0x77, 0x65,
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x3a, 0x0a, 0x0a, 0x74, 0x72, 0x50, 0x65, 0x65, 0x72, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x65, 0x73, 0x22, 0x71, 0x0a, 0x05,
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x35, 0x0a, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e,
0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x09, 0x74, 0x61, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70,
0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d,
0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0b, 0x74, 0x65, 0x52, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a, 0x0c,
0x61, 0x62, 0x6c, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22, 0xdc, 0x01, 0x0a, 0x06, 0x52, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x18, 0x03, 0x20, 0x01,
0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x28, 0x0c, 0x52, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x22,
0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0xdc, 0x01, 0x0a, 0x06, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x39,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,
0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x74, 0x74, 0x72, 0x73, 0x18, 0x64, 0x20, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09,
0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x05, 0x61, 0x74, 0x74,
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x74, 0x72, 0x73, 0x18, 0x64, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x61, 0x74, 0x74, 0x72, 0x73, 0x1a, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x67, 0x69,
0x38, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x6f, 0x6e, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x05, 0x61,
0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x74, 0x74, 0x72, 0x73, 0x1a, 0x38, 0x0a, 0x0a, 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74,
0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4b, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x4b,
0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x0a, 0x09, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1f, 0x0a, 0x0b, 0x63,
0x75, 0x6d, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0c,
0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x7e, 0x0a, 0x0f, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0c,
0x6f, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c, 0x0a, 0x05, 0x70, 0x65, 0x65, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x7e, 0x0a, 0x0f, 0x54,
0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2c,
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x0a, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e,
0x52, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x2e, 0x50, 0x65, 0x65, 0x72, 0x52, 0x05, 0x70, 0x65, 0x65, 0x72, 0x73, 0x12, 0x3d, 0x0a, 0x0b,
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x52,
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x0a, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x52, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x3c, 0x5a, 0x3a, 0x67,
0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69,
0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d,
0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 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 ( var (
@@ -490,14 +493,14 @@ var file_greptime_v1_meta_route_proto_goTypes = []interface{}{
(*Partition)(nil), // 4: greptime.v1.meta.Partition (*Partition)(nil), // 4: greptime.v1.meta.Partition
(*TableRouteValue)(nil), // 5: greptime.v1.meta.TableRouteValue (*TableRouteValue)(nil), // 5: greptime.v1.meta.TableRouteValue
nil, // 6: greptime.v1.meta.Region.AttrsEntry 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 (*Peer)(nil), // 8: greptime.v1.meta.Peer
} }
var file_greptime_v1_meta_route_proto_depIdxs = []int32{ var file_greptime_v1_meta_route_proto_depIdxs = []int32{
2, // 0: greptime.v1.meta.TableRoute.table:type_name -> greptime.v1.meta.Table 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 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 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 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 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 8, // 6: greptime.v1.meta.TableRouteValue.peers:type_name -> greptime.v1.meta.Peer
+10 -893
View File
@@ -3863,876 +3863,6 @@ java.lang.String defaultValue);
} }
public interface TableNameOrBuilder extends
// @@protoc_insertion_point(interface_extends:greptime.v1.meta.TableName)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string catalog_name = 1;</code>
* @return The catalogName.
*/
java.lang.String getCatalogName();
/**
* <code>string catalog_name = 1;</code>
* @return The bytes for catalogName.
*/
com.google.protobuf.ByteString
getCatalogNameBytes();
/**
* <code>string schema_name = 2;</code>
* @return The schemaName.
*/
java.lang.String getSchemaName();
/**
* <code>string schema_name = 2;</code>
* @return The bytes for schemaName.
*/
com.google.protobuf.ByteString
getSchemaNameBytes();
/**
* <code>string table_name = 3;</code>
* @return The tableName.
*/
java.lang.String getTableName();
/**
* <code>string table_name = 3;</code>
* @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_;
/**
* <code>string catalog_name = 1;</code>
* @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;
}
}
/**
* <code>string catalog_name = 1;</code>
* @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_;
/**
* <code>string schema_name = 2;</code>
* @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;
}
}
/**
* <code>string schema_name = 2;</code>
* @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_;
/**
* <code>string table_name = 3;</code>
* @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;
}
}
/**
* <code>string table_name = 3;</code>
* @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<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_ = "";
/**
* <code>string catalog_name = 1;</code>
* @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;
}
}
/**
* <code>string catalog_name = 1;</code>
* @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;
}
}
/**
* <code>string catalog_name = 1;</code>
* @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;
}
/**
* <code>string catalog_name = 1;</code>
* @return This builder for chaining.
*/
public Builder clearCatalogName() {
catalogName_ = getDefaultInstance().getCatalogName();
onChanged();
return this;
}
/**
* <code>string catalog_name = 1;</code>
* @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_ = "";
/**
* <code>string schema_name = 2;</code>
* @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;
}
}
/**
* <code>string schema_name = 2;</code>
* @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;
}
}
/**
* <code>string schema_name = 2;</code>
* @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;
}
/**
* <code>string schema_name = 2;</code>
* @return This builder for chaining.
*/
public Builder clearSchemaName() {
schemaName_ = getDefaultInstance().getSchemaName();
onChanged();
return this;
}
/**
* <code>string schema_name = 2;</code>
* @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_ = "";
/**
* <code>string table_name = 3;</code>
* @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;
}
}
/**
* <code>string table_name = 3;</code>
* @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;
}
}
/**
* <code>string table_name = 3;</code>
* @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;
}
/**
* <code>string table_name = 3;</code>
* @return This builder for chaining.
*/
public Builder clearTableName() {
tableName_ = getDefaultInstance().getTableName();
onChanged();
return this;
}
/**
* <code>string table_name = 3;</code>
* @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<TableName>
PARSER = new com.google.protobuf.AbstractParser<TableName>() {
@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<TableName> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TableName> getParserForType() {
return PARSER;
}
@java.lang.Override
public greptime.v1.meta.Common.TableName getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface TimeIntervalOrBuilder extends public interface TimeIntervalOrBuilder extends
// @@protoc_insertion_point(interface_extends:greptime.v1.meta.TimeInterval) // @@protoc_insertion_point(interface_extends:greptime.v1.meta.TimeInterval)
com.google.protobuf.MessageOrBuilder { com.google.protobuf.MessageOrBuilder {
@@ -6475,11 +5605,6 @@ java.lang.String defaultValue);
private static final private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_greptime_v1_meta_TableId_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 private static final com.google.protobuf.Descriptors.Descriptor
internal_static_greptime_v1_meta_TimeInterval_descriptor; internal_static_greptime_v1_meta_TimeInterval_descriptor;
private static final private static final
@@ -6516,15 +5641,13 @@ java.lang.String defaultValue);
"d\030\002 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met" + "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" + "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(" + "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" + "\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"L\n\014TimeInterval" +
"\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t" + "\022\036\n\026start_timestamp_millis\030\001 \001(\003\022\034\n\024end_" +
"\022\022\n\ntable_name\030\003 \001(\t\"L\n\014TimeInterval\022\036\n\026" + "timestamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003ke" +
"start_timestamp_millis\030\001 \001(\003\022\034\n\024end_time" + "y\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n" +
"stamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003key\030\001 " + "\003key\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRON" +
"\001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n\003key" + "TEND\020\001B<Z:github.com/GreptimeTeam/grepti" +
"\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRONTEND" + "me-proto/go/greptime/v1/metab\006proto3"
"\020\001B<Z:github.com/GreptimeTeam/greptime-p" +
"roto/go/greptime/v1/metab\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
@@ -6566,26 +5689,20 @@ java.lang.String defaultValue);
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_meta_TableId_descriptor, internal_static_greptime_v1_meta_TableId_descriptor,
new java.lang.String[] { "Id", }); new java.lang.String[] { "Id", });
internal_static_greptime_v1_meta_TableName_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_greptime_v1_meta_TableName_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_meta_TableName_descriptor,
new java.lang.String[] { "CatalogName", "SchemaName", "TableName", });
internal_static_greptime_v1_meta_TimeInterval_descriptor = internal_static_greptime_v1_meta_TimeInterval_descriptor =
getDescriptor().getMessageTypes().get(6); getDescriptor().getMessageTypes().get(5);
internal_static_greptime_v1_meta_TimeInterval_fieldAccessorTable = new internal_static_greptime_v1_meta_TimeInterval_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_meta_TimeInterval_descriptor, internal_static_greptime_v1_meta_TimeInterval_descriptor,
new java.lang.String[] { "StartTimestampMillis", "EndTimestampMillis", }); new java.lang.String[] { "StartTimestampMillis", "EndTimestampMillis", });
internal_static_greptime_v1_meta_KeyValue_descriptor = internal_static_greptime_v1_meta_KeyValue_descriptor =
getDescriptor().getMessageTypes().get(7); getDescriptor().getMessageTypes().get(6);
internal_static_greptime_v1_meta_KeyValue_fieldAccessorTable = new internal_static_greptime_v1_meta_KeyValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_meta_KeyValue_descriptor, internal_static_greptime_v1_meta_KeyValue_descriptor,
new java.lang.String[] { "Key", "Value", }); new java.lang.String[] { "Key", "Value", });
internal_static_greptime_v1_meta_ProcedureId_descriptor = internal_static_greptime_v1_meta_ProcedureId_descriptor =
getDescriptor().getMessageTypes().get(8); getDescriptor().getMessageTypes().get(7);
internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable = new internal_static_greptime_v1_meta_ProcedureId_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_greptime_v1_meta_ProcedureId_descriptor, internal_static_greptime_v1_meta_ProcedureId_descriptor,
+58 -56
View File
@@ -1986,19 +1986,19 @@ public final class Route {
long getId(); long getId();
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
* @return Whether the tableName field is set. * @return Whether the tableName field is set.
*/ */
boolean hasTableName(); boolean hasTableName();
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
* @return The tableName. * @return The tableName.
*/ */
greptime.v1.meta.Common.TableName getTableName(); io.greptime.v1.Common.TableName getTableName();
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
greptime.v1.meta.Common.TableNameOrBuilder getTableNameOrBuilder(); io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder();
/** /**
* <code>bytes table_schema = 3;</code> * <code>bytes table_schema = 3;</code>
@@ -2058,11 +2058,11 @@ public final class Route {
break; break;
} }
case 18: { case 18: {
greptime.v1.meta.Common.TableName.Builder subBuilder = null; io.greptime.v1.Common.TableName.Builder subBuilder = null;
if (tableName_ != null) { if (tableName_ != null) {
subBuilder = tableName_.toBuilder(); 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) { if (subBuilder != null) {
subBuilder.mergeFrom(tableName_); subBuilder.mergeFrom(tableName_);
tableName_ = subBuilder.buildPartial(); tableName_ = subBuilder.buildPartial();
@@ -2121,9 +2121,9 @@ public final class Route {
} }
public static final int TABLE_NAME_FIELD_NUMBER = 2; public static final int TABLE_NAME_FIELD_NUMBER = 2;
private greptime.v1.meta.Common.TableName tableName_; private io.greptime.v1.Common.TableName tableName_;
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
* @return Whether the tableName field is set. * @return Whether the tableName field is set.
*/ */
@java.lang.Override @java.lang.Override
@@ -2131,18 +2131,18 @@ public final class Route {
return tableName_ != null; return tableName_ != null;
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
* @return The tableName. * @return The tableName.
*/ */
@java.lang.Override @java.lang.Override
public greptime.v1.meta.Common.TableName getTableName() { public io.greptime.v1.Common.TableName getTableName() {
return tableName_ == null ? greptime.v1.meta.Common.TableName.getDefaultInstance() : tableName_; return tableName_ == null ? io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_;
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
@java.lang.Override @java.lang.Override
public greptime.v1.meta.Common.TableNameOrBuilder getTableNameOrBuilder() { public io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder() {
return getTableName(); return getTableName();
} }
@@ -2538,31 +2538,31 @@ public final class Route {
return this; return this;
} }
private greptime.v1.meta.Common.TableName tableName_; private io.greptime.v1.Common.TableName tableName_;
private com.google.protobuf.SingleFieldBuilderV3< 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_;
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
* @return Whether the tableName field is set. * @return Whether the tableName field is set.
*/ */
public boolean hasTableName() { public boolean hasTableName() {
return tableNameBuilder_ != null || tableName_ != null; return tableNameBuilder_ != null || tableName_ != null;
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
* @return The tableName. * @return The tableName.
*/ */
public greptime.v1.meta.Common.TableName getTableName() { public io.greptime.v1.Common.TableName getTableName() {
if (tableNameBuilder_ == null) { if (tableNameBuilder_ == null) {
return tableName_ == null ? greptime.v1.meta.Common.TableName.getDefaultInstance() : tableName_; return tableName_ == null ? io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_;
} else { } else {
return tableNameBuilder_.getMessage(); return tableNameBuilder_.getMessage();
} }
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
public Builder setTableName(greptime.v1.meta.Common.TableName value) { public Builder setTableName(io.greptime.v1.Common.TableName value) {
if (tableNameBuilder_ == null) { if (tableNameBuilder_ == null) {
if (value == null) { if (value == null) {
throw new NullPointerException(); throw new NullPointerException();
@@ -2576,10 +2576,10 @@ public final class Route {
return this; return this;
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
public Builder setTableName( public Builder setTableName(
greptime.v1.meta.Common.TableName.Builder builderForValue) { io.greptime.v1.Common.TableName.Builder builderForValue) {
if (tableNameBuilder_ == null) { if (tableNameBuilder_ == null) {
tableName_ = builderForValue.build(); tableName_ = builderForValue.build();
onChanged(); onChanged();
@@ -2590,13 +2590,13 @@ public final class Route {
return this; return this;
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
public Builder mergeTableName(greptime.v1.meta.Common.TableName value) { public Builder mergeTableName(io.greptime.v1.Common.TableName value) {
if (tableNameBuilder_ == null) { if (tableNameBuilder_ == null) {
if (tableName_ != null) { if (tableName_ != null) {
tableName_ = tableName_ =
greptime.v1.meta.Common.TableName.newBuilder(tableName_).mergeFrom(value).buildPartial(); io.greptime.v1.Common.TableName.newBuilder(tableName_).mergeFrom(value).buildPartial();
} else { } else {
tableName_ = value; tableName_ = value;
} }
@@ -2608,7 +2608,7 @@ public final class Route {
return this; return this;
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
public Builder clearTableName() { public Builder clearTableName() {
if (tableNameBuilder_ == null) { if (tableNameBuilder_ == null) {
@@ -2622,33 +2622,33 @@ public final class Route {
return this; return this;
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
public greptime.v1.meta.Common.TableName.Builder getTableNameBuilder() { public io.greptime.v1.Common.TableName.Builder getTableNameBuilder() {
onChanged(); onChanged();
return getTableNameFieldBuilder().getBuilder(); return getTableNameFieldBuilder().getBuilder();
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
public greptime.v1.meta.Common.TableNameOrBuilder getTableNameOrBuilder() { public io.greptime.v1.Common.TableNameOrBuilder getTableNameOrBuilder() {
if (tableNameBuilder_ != null) { if (tableNameBuilder_ != null) {
return tableNameBuilder_.getMessageOrBuilder(); return tableNameBuilder_.getMessageOrBuilder();
} else { } else {
return tableName_ == null ? return tableName_ == null ?
greptime.v1.meta.Common.TableName.getDefaultInstance() : tableName_; io.greptime.v1.Common.TableName.getDefaultInstance() : tableName_;
} }
} }
/** /**
* <code>.greptime.v1.meta.TableName table_name = 2;</code> * <code>.greptime.v1.TableName table_name = 2;</code>
*/ */
private com.google.protobuf.SingleFieldBuilderV3< 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() { getTableNameFieldBuilder() {
if (tableNameBuilder_ == null) { if (tableNameBuilder_ == null) {
tableNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< 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(), getTableName(),
getParentForChildren(), getParentForChildren(),
isClean()); isClean());
@@ -5768,31 +5768,32 @@ java.lang.String defaultValue);
static { static {
java.lang.String[] descriptorData = { java.lang.String[] descriptorData = {
"\n\034greptime/v1/meta/route.proto\022\020greptime" + "\n\034greptime/v1/meta/route.proto\022\020greptime" +
".v1.meta\032\035greptime/v1/meta/common.proto\"" + ".v1.meta\032\035greptime/v1/meta/common.proto\032" +
"j\n\nTableRoute\022&\n\005table\030\001 \001(\0132\027.greptime." + "\030greptime/v1/common.proto\"j\n\nTableRoute\022" +
"v1.meta.Table\0224\n\rregion_routes\030\002 \003(\0132\035.g" + "&\n\005table\030\001 \001(\0132\027.greptime.v1.meta.Table\022" +
"reptime.v1.meta.RegionRoute\"q\n\013RegionRou" + "4\n\rregion_routes\030\002 \003(\0132\035.greptime.v1.met" +
"te\022(\n\006region\030\001 \001(\0132\030.greptime.v1.meta.Re" + "a.RegionRoute\"q\n\013RegionRoute\022(\n\006region\030\001" +
"gion\022\031\n\021leader_peer_index\030\002 \001(\004\022\035\n\025follo" + " \001(\0132\030.greptime.v1.meta.Region\022\031\n\021leader" +
"wer_peer_indexes\030\003 \003(\004\"Z\n\005Table\022\n\n\002id\030\001 " + "_peer_index\030\002 \001(\004\022\035\n\025follower_peer_index" +
"\001(\004\022/\n\ntable_name\030\002 \001(\0132\033.greptime.v1.me" + "es\030\003 \003(\004\"U\n\005Table\022\n\n\002id\030\001 \001(\004\022*\n\ntable_n" +
"ta.TableName\022\024\n\014table_schema\030\003 \001(\014\"\264\001\n\006R" + "ame\030\002 \001(\0132\026.greptime.v1.TableName\022\024\n\014tab" +
"egion\022\n\n\002id\030\001 \001(\004\022\014\n\004name\030\002 \001(\t\022.\n\tparti" + "le_schema\030\003 \001(\014\"\264\001\n\006Region\022\n\n\002id\030\001 \001(\004\022\014" +
"tion\030\003 \001(\0132\033.greptime.v1.meta.Partition\022" + "\n\004name\030\002 \001(\t\022.\n\tpartition\030\003 \001(\0132\033.grepti" +
"2\n\005attrs\030d \003(\0132#.greptime.v1.meta.Region" + "me.v1.meta.Partition\0222\n\005attrs\030d \003(\0132#.gr" +
".AttrsEntry\032,\n\nAttrsEntry\022\013\n\003key\030\001 \001(\t\022\r" + "eptime.v1.meta.Region.AttrsEntry\032,\n\nAttr" +
"\n\005value\030\002 \001(\t:\0028\001\"4\n\tPartition\022\023\n\013column" + "sEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"4" +
"_list\030\001 \003(\014\022\022\n\nvalue_list\030\002 \003(\014\"k\n\017Table" + "\n\tPartition\022\023\n\013column_list\030\001 \003(\014\022\022\n\nvalu" +
"RouteValue\022%\n\005peers\030\001 \003(\0132\026.greptime.v1." + "e_list\030\002 \003(\014\"k\n\017TableRouteValue\022%\n\005peers" +
"meta.Peer\0221\n\013table_route\030\002 \001(\0132\034.greptim" + "\030\001 \003(\0132\026.greptime.v1.meta.Peer\0221\n\013table_" +
"e.v1.meta.TableRouteB<Z:github.com/Grept" + "route\030\002 \001(\0132\034.greptime.v1.meta.TableRout" +
"imeTeam/greptime-proto/go/greptime/v1/me" + "eB<Z:github.com/GreptimeTeam/greptime-pr" +
"tab\006proto3" "oto/go/greptime/v1/metab\006proto3"
}; };
descriptor = com.google.protobuf.Descriptors.FileDescriptor descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData, .internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] { new com.google.protobuf.Descriptors.FileDescriptor[] {
greptime.v1.meta.Common.getDescriptor(), greptime.v1.meta.Common.getDescriptor(),
io.greptime.v1.Common.getDescriptor(),
}); });
internal_static_greptime_v1_meta_TableRoute_descriptor = internal_static_greptime_v1_meta_TableRoute_descriptor =
getDescriptor().getMessageTypes().get(0); getDescriptor().getMessageTypes().get(0);
@@ -5837,6 +5838,7 @@ java.lang.String defaultValue);
internal_static_greptime_v1_meta_TableRouteValue_descriptor, internal_static_greptime_v1_meta_TableRouteValue_descriptor,
new java.lang.String[] { "Peers", "TableRoute", }); new java.lang.String[] { "Peers", "TableRoute", });
greptime.v1.meta.Common.getDescriptor(); greptime.v1.meta.Common.getDescriptor();
io.greptime.v1.Common.getDescriptor();
} }
// @@protoc_insertion_point(outer_class_scope) // @@protoc_insertion_point(outer_class_scope)
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+7 -3
View File
@@ -58,11 +58,15 @@ message Basic {
message Token { string token = 1; } 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 AffectedRows { uint32 value = 1; }
message Metrics { message Metrics { bytes metrics = 1; }
bytes metrics = 1;
}
message FlightMetadata { message FlightMetadata {
AffectedRows affected_rows = 1; AffectedRows affected_rows = 1;
+2 -8
View File
@@ -42,8 +42,8 @@ message DdlRequest {
message CreateFlowTaskExpr { message CreateFlowTaskExpr {
string catalog_name = 1; string catalog_name = 1;
string task_name = 2; string task_name = 2;
repeated SchemaScopedTableName source_table_names = 3; repeated TableName source_table_names = 3;
SchemaScopedTableName sink_table_name = 4; TableName sink_table_name = 4;
bool or_replace = 5; bool or_replace = 5;
bool create_if_not_exists = 6; bool create_if_not_exists = 6;
string expire_when = 7; string expire_when = 7;
@@ -52,12 +52,6 @@ message CreateFlowTaskExpr {
map<string, string> task_options = 10; map<string, string> task_options = 10;
} }
// Table name
message SchemaScopedTableName {
string schema_name = 1;
string table_name = 2;
}
// Remove a flow task. // Remove a flow task.
message DropFlowTaskExpr { message DropFlowTaskExpr {
string catalog_name = 1; string catalog_name = 1;
+1 -9
View File
@@ -54,12 +54,6 @@ message Peer {
message TableId { uint32 id = 1; } message TableId { uint32 id = 1; }
message TableName {
string catalog_name = 1;
string schema_name = 2;
string table_name = 3;
}
message TimeInterval { message TimeInterval {
// The unix timestamp in millis of the start of this period. // The unix timestamp in millis of the start of this period.
int64 start_timestamp_millis = 1; int64 start_timestamp_millis = 1;
@@ -75,6 +69,4 @@ message KeyValue {
} }
// Procedure identifer // Procedure identifer
message ProcedureId { message ProcedureId { bytes key = 1; }
bytes key = 1;
}
+1
View File
@@ -19,6 +19,7 @@ package greptime.v1.meta;
option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta"; option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta";
import "greptime/v1/meta/common.proto"; import "greptime/v1/meta/common.proto";
import "greptime/v1/common.proto";
message TableRoute { message TableRoute {
Table table = 1; Table table = 1;