feat: add drop database expr (#139)
This commit is contained in:
+353
-41
@@ -146,6 +146,21 @@ struct TruncateTableExprDefaultTypeInternal {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateTableExprDefaultTypeInternal _TruncateTableExpr_default_instance_;
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateTableExprDefaultTypeInternal _TruncateTableExpr_default_instance_;
|
||||||
|
PROTOBUF_CONSTEXPR DropDatabaseExpr::DropDatabaseExpr(
|
||||||
|
::_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_.drop_if_exists_)*/false
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
|
struct DropDatabaseExprDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR DropDatabaseExprDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~DropDatabaseExprDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
DropDatabaseExpr _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropDatabaseExprDefaultTypeInternal _DropDatabaseExpr_default_instance_;
|
||||||
PROTOBUF_CONSTEXPR AddColumns::AddColumns(
|
PROTOBUF_CONSTEXPR AddColumns::AddColumns(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.add_columns_)*/{}
|
/*decltype(_impl_.add_columns_)*/{}
|
||||||
@@ -260,7 +275,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[16];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[17];
|
||||||
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;
|
||||||
|
|
||||||
@@ -358,6 +373,15 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_name_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_name_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::TruncateTableExpr, _impl_.table_id_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDatabaseExpr, _internal_metadata_),
|
||||||
|
~0u, // no _extensions_
|
||||||
|
~0u, // no _oneof_case_
|
||||||
|
~0u, // no _weak_field_map_
|
||||||
|
~0u, // no _inlined_string_donated_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDatabaseExpr, _impl_.catalog_name_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDatabaseExpr, _impl_.schema_name_),
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropDatabaseExpr, _impl_.drop_if_exists_),
|
||||||
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumns, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::AddColumns, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
~0u, // no _oneof_case_
|
~0u, // no _oneof_case_
|
||||||
@@ -431,14 +455,15 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
|||||||
{ 63, 71, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
{ 63, 71, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
|
||||||
{ 73, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
{ 73, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
|
||||||
{ 82, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
{ 82, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
|
||||||
{ 92, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
{ 92, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
|
||||||
{ 99, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
{ 101, -1, -1, sizeof(::greptime::v1::AddColumns)},
|
||||||
{ 106, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
{ 108, -1, -1, sizeof(::greptime::v1::DropColumns)},
|
||||||
{ 113, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
{ 115, -1, -1, sizeof(::greptime::v1::RenameTable)},
|
||||||
{ 121, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
{ 122, -1, -1, sizeof(::greptime::v1::AddColumn)},
|
||||||
{ 128, -1, -1, sizeof(::greptime::v1::TableId)},
|
{ 130, -1, -1, sizeof(::greptime::v1::DropColumn)},
|
||||||
{ 135, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
{ 137, -1, -1, sizeof(::greptime::v1::TableId)},
|
||||||
{ 148, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
{ 144, -1, -1, sizeof(::greptime::v1::ColumnDef)},
|
||||||
|
{ 157, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -450,6 +475,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|||||||
&::greptime::v1::_CreateDatabaseExpr_OptionsEntry_DoNotUse_default_instance_._instance,
|
&::greptime::v1::_CreateDatabaseExpr_OptionsEntry_DoNotUse_default_instance_._instance,
|
||||||
&::greptime::v1::_CreateDatabaseExpr_default_instance_._instance,
|
&::greptime::v1::_CreateDatabaseExpr_default_instance_._instance,
|
||||||
&::greptime::v1::_TruncateTableExpr_default_instance_._instance,
|
&::greptime::v1::_TruncateTableExpr_default_instance_._instance,
|
||||||
|
&::greptime::v1::_DropDatabaseExpr_default_instance_._instance,
|
||||||
&::greptime::v1::_AddColumns_default_instance_._instance,
|
&::greptime::v1::_AddColumns_default_instance_._instance,
|
||||||
&::greptime::v1::_DropColumns_default_instance_._instance,
|
&::greptime::v1::_DropColumns_default_instance_._instance,
|
||||||
&::greptime::v1::_RenameTable_default_instance_._instance,
|
&::greptime::v1::_RenameTable_default_instance_._instance,
|
||||||
@@ -496,37 +522,39 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
|
|||||||
"ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateT"
|
"ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateT"
|
||||||
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema"
|
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema"
|
||||||
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table"
|
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table"
|
||||||
"_id\030\004 \001(\0132\024.greptime.v1.TableId\"9\n\nAddCo"
|
"_id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020DropD"
|
||||||
"lumns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1"
|
"atabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sch"
|
||||||
".AddColumn\"<\n\013DropColumns\022-\n\014drop_column"
|
"ema_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9"
|
||||||
"s\030\001 \003(\0132\027.greptime.v1.DropColumn\"%\n\013Rena"
|
"\n\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026.grep"
|
||||||
"meTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCo"
|
"time.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop"
|
||||||
"lumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.C"
|
"_columns\030\001 \003(\0132\027.greptime.v1.DropColumn\""
|
||||||
"olumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1"
|
"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"i"
|
||||||
".AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name"
|
"\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti"
|
||||||
"\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumn"
|
"me.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.grep"
|
||||||
"Def\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.g"
|
"time.v1.AddColumnLocation\"\032\n\nDropColumn\022"
|
||||||
"reptime.v1.ColumnDataType\022\023\n\013is_nullable"
|
"\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n"
|
||||||
"\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rse"
|
"\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 "
|
||||||
"mantic_type\030\005 \001(\0162\031.greptime.v1.Semantic"
|
"\001(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is_n"
|
||||||
"Type\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extens"
|
"ullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001("
|
||||||
"ion\030\007 \001(\0132$.greptime.v1.ColumnDataTypeEx"
|
"\014\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.S"
|
||||||
"tension\"\230\001\n\021AddColumnLocation\022B\n\rlocatio"
|
"emanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype"
|
||||||
"n_type\030\001 \001(\0162+.greptime.v1.AddColumnLoca"
|
"_extension\030\007 \001(\0132$.greptime.v1.ColumnDat"
|
||||||
"tion.LocationType\022\031\n\021after_column_name\030\002"
|
"aTypeExtension\"\230\001\n\021AddColumnLocation\022B\n\r"
|
||||||
" \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER"
|
"location_type\030\001 \001(\0162+.greptime.v1.AddCol"
|
||||||
"\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gr"
|
"umnLocation.LocationType\022\031\n\021after_column"
|
||||||
"eptimeTeam/greptime-proto/go/greptime/v1"
|
"_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t"
|
||||||
"b\006proto3"
|
"\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github"
|
||||||
|
".com/GreptimeTeam/greptime-proto/go/grep"
|
||||||
|
"time/v1b\006proto3"
|
||||||
;
|
;
|
||||||
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, 2248, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
|
false, false, 2335, 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, 16,
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 17,
|
||||||
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,
|
||||||
@@ -3271,6 +3299,286 @@ void TruncateTableExpr::InternalSwap(TruncateTableExpr* other) {
|
|||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
class DropDatabaseExpr::_Internal {
|
||||||
|
public:
|
||||||
|
};
|
||||||
|
|
||||||
|
DropDatabaseExpr::DropDatabaseExpr(::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.DropDatabaseExpr)
|
||||||
|
}
|
||||||
|
DropDatabaseExpr::DropDatabaseExpr(const DropDatabaseExpr& from)
|
||||||
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
|
DropDatabaseExpr* const _this = this; (void)_this;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.catalog_name_){}
|
||||||
|
, decltype(_impl_.schema_name_){}
|
||||||
|
, decltype(_impl_.drop_if_exists_){}
|
||||||
|
, /*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());
|
||||||
|
}
|
||||||
|
_this->_impl_.drop_if_exists_ = from._impl_.drop_if_exists_;
|
||||||
|
// @@protoc_insertion_point(copy_constructor:greptime.v1.DropDatabaseExpr)
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void DropDatabaseExpr::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_.drop_if_exists_){false}
|
||||||
|
, /*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
|
||||||
|
}
|
||||||
|
|
||||||
|
DropDatabaseExpr::~DropDatabaseExpr() {
|
||||||
|
// @@protoc_insertion_point(destructor:greptime.v1.DropDatabaseExpr)
|
||||||
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
|
(void)arena;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SharedDtor();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void DropDatabaseExpr::SharedDtor() {
|
||||||
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
_impl_.catalog_name_.Destroy();
|
||||||
|
_impl_.schema_name_.Destroy();
|
||||||
|
}
|
||||||
|
|
||||||
|
void DropDatabaseExpr::SetCachedSize(int size) const {
|
||||||
|
_impl_._cached_size_.Set(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DropDatabaseExpr::Clear() {
|
||||||
|
// @@protoc_insertion_point(message_clear_start:greptime.v1.DropDatabaseExpr)
|
||||||
|
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_.drop_if_exists_ = false;
|
||||||
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* DropDatabaseExpr::_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.DropDatabaseExpr.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.DropDatabaseExpr.schema_name"));
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
// bool drop_if_exists = 3;
|
||||||
|
case 3:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
|
||||||
|
_impl_.drop_if_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
default:
|
||||||
|
goto handle_unusual;
|
||||||
|
} // switch
|
||||||
|
handle_unusual:
|
||||||
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||||
|
CHK_(ptr);
|
||||||
|
ctx->SetLastTag(tag);
|
||||||
|
goto message_done;
|
||||||
|
}
|
||||||
|
ptr = UnknownFieldParse(
|
||||||
|
tag,
|
||||||
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||||
|
ptr, ctx);
|
||||||
|
CHK_(ptr != nullptr);
|
||||||
|
} // while
|
||||||
|
message_done:
|
||||||
|
return ptr;
|
||||||
|
failure:
|
||||||
|
ptr = nullptr;
|
||||||
|
goto message_done;
|
||||||
|
#undef CHK_
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t* DropDatabaseExpr::_InternalSerialize(
|
||||||
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.DropDatabaseExpr)
|
||||||
|
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.DropDatabaseExpr.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.DropDatabaseExpr.schema_name");
|
||||||
|
target = stream->WriteStringMaybeAliased(
|
||||||
|
2, this->_internal_schema_name(), target);
|
||||||
|
}
|
||||||
|
|
||||||
|
// bool drop_if_exists = 3;
|
||||||
|
if (this->_internal_drop_if_exists() != 0) {
|
||||||
|
target = stream->EnsureSpace(target);
|
||||||
|
target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_drop_if_exists(), 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.DropDatabaseExpr)
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t DropDatabaseExpr::ByteSizeLong() const {
|
||||||
|
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.DropDatabaseExpr)
|
||||||
|
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());
|
||||||
|
}
|
||||||
|
|
||||||
|
// bool drop_if_exists = 3;
|
||||||
|
if (this->_internal_drop_if_exists() != 0) {
|
||||||
|
total_size += 1 + 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
|
}
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropDatabaseExpr::_class_data_ = {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||||
|
DropDatabaseExpr::MergeImpl
|
||||||
|
};
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropDatabaseExpr::GetClassData() const { return &_class_data_; }
|
||||||
|
|
||||||
|
|
||||||
|
void DropDatabaseExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||||
|
auto* const _this = static_cast<DropDatabaseExpr*>(&to_msg);
|
||||||
|
auto& from = static_cast<const DropDatabaseExpr&>(from_msg);
|
||||||
|
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.DropDatabaseExpr)
|
||||||
|
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_drop_if_exists() != 0) {
|
||||||
|
_this->_internal_set_drop_if_exists(from._internal_drop_if_exists());
|
||||||
|
}
|
||||||
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DropDatabaseExpr::CopyFrom(const DropDatabaseExpr& from) {
|
||||||
|
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.DropDatabaseExpr)
|
||||||
|
if (&from == this) return;
|
||||||
|
Clear();
|
||||||
|
MergeFrom(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DropDatabaseExpr::IsInitialized() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DropDatabaseExpr::InternalSwap(DropDatabaseExpr* 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
|
||||||
|
);
|
||||||
|
swap(_impl_.drop_if_exists_, other->_impl_.drop_if_exists_);
|
||||||
|
}
|
||||||
|
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseExpr::GetMetadata() const {
|
||||||
|
return ::_pbi::AssignDescriptors(
|
||||||
|
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
|
||||||
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[8]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
class AddColumns::_Internal {
|
class AddColumns::_Internal {
|
||||||
public:
|
public:
|
||||||
};
|
};
|
||||||
@@ -3451,7 +3759,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[8]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[9]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3636,7 +3944,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[9]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[10]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -3839,7 +4147,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[10]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[11]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4078,7 +4386,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[11]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[12]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4281,7 +4589,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[12]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[13]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4459,7 +4767,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[13]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[14]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -4894,7 +5202,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[14]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[15]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -5127,7 +5435,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[15]);
|
file_level_metadata_greptime_2fv1_2fddl_2eproto[16]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
@@ -5166,6 +5474,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::TruncateTableExpr*
|
|||||||
Arena::CreateMaybeMessage< ::greptime::v1::TruncateTableExpr >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::TruncateTableExpr >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::TruncateTableExpr >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::TruncateTableExpr >(arena);
|
||||||
}
|
}
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::DropDatabaseExpr*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::DropDatabaseExpr >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::DropDatabaseExpr >(arena);
|
||||||
|
}
|
||||||
template<> PROTOBUF_NOINLINE ::greptime::v1::AddColumns*
|
template<> PROTOBUF_NOINLINE ::greptime::v1::AddColumns*
|
||||||
Arena::CreateMaybeMessage< ::greptime::v1::AddColumns >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::AddColumns >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::AddColumns >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::AddColumns >(arena);
|
||||||
|
|||||||
+318
-8
@@ -87,6 +87,9 @@ extern DropColumnDefaultTypeInternal _DropColumn_default_instance_;
|
|||||||
class DropColumns;
|
class DropColumns;
|
||||||
struct DropColumnsDefaultTypeInternal;
|
struct DropColumnsDefaultTypeInternal;
|
||||||
extern DropColumnsDefaultTypeInternal _DropColumns_default_instance_;
|
extern DropColumnsDefaultTypeInternal _DropColumns_default_instance_;
|
||||||
|
class DropDatabaseExpr;
|
||||||
|
struct DropDatabaseExprDefaultTypeInternal;
|
||||||
|
extern DropDatabaseExprDefaultTypeInternal _DropDatabaseExpr_default_instance_;
|
||||||
class DropTableExpr;
|
class DropTableExpr;
|
||||||
struct DropTableExprDefaultTypeInternal;
|
struct DropTableExprDefaultTypeInternal;
|
||||||
extern DropTableExprDefaultTypeInternal _DropTableExpr_default_instance_;
|
extern DropTableExprDefaultTypeInternal _DropTableExpr_default_instance_;
|
||||||
@@ -114,6 +117,7 @@ template<> ::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse* Arena::Cr
|
|||||||
template<> ::greptime::v1::DdlRequest* Arena::CreateMaybeMessage<::greptime::v1::DdlRequest>(Arena*);
|
template<> ::greptime::v1::DdlRequest* Arena::CreateMaybeMessage<::greptime::v1::DdlRequest>(Arena*);
|
||||||
template<> ::greptime::v1::DropColumn* Arena::CreateMaybeMessage<::greptime::v1::DropColumn>(Arena*);
|
template<> ::greptime::v1::DropColumn* Arena::CreateMaybeMessage<::greptime::v1::DropColumn>(Arena*);
|
||||||
template<> ::greptime::v1::DropColumns* Arena::CreateMaybeMessage<::greptime::v1::DropColumns>(Arena*);
|
template<> ::greptime::v1::DropColumns* Arena::CreateMaybeMessage<::greptime::v1::DropColumns>(Arena*);
|
||||||
|
template<> ::greptime::v1::DropDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::DropDatabaseExpr>(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::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*);
|
template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*);
|
||||||
@@ -1680,6 +1684,186 @@ class TruncateTableExpr final :
|
|||||||
};
|
};
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
class DropDatabaseExpr final :
|
||||||
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.DropDatabaseExpr) */ {
|
||||||
|
public:
|
||||||
|
inline DropDatabaseExpr() : DropDatabaseExpr(nullptr) {}
|
||||||
|
~DropDatabaseExpr() override;
|
||||||
|
explicit PROTOBUF_CONSTEXPR DropDatabaseExpr(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
|
||||||
|
DropDatabaseExpr(const DropDatabaseExpr& from);
|
||||||
|
DropDatabaseExpr(DropDatabaseExpr&& from) noexcept
|
||||||
|
: DropDatabaseExpr() {
|
||||||
|
*this = ::std::move(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline DropDatabaseExpr& operator=(const DropDatabaseExpr& from) {
|
||||||
|
CopyFrom(from);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
inline DropDatabaseExpr& operator=(DropDatabaseExpr&& 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 DropDatabaseExpr& default_instance() {
|
||||||
|
return *internal_default_instance();
|
||||||
|
}
|
||||||
|
static inline const DropDatabaseExpr* internal_default_instance() {
|
||||||
|
return reinterpret_cast<const DropDatabaseExpr*>(
|
||||||
|
&_DropDatabaseExpr_default_instance_);
|
||||||
|
}
|
||||||
|
static constexpr int kIndexInFileMessages =
|
||||||
|
8;
|
||||||
|
|
||||||
|
friend void swap(DropDatabaseExpr& a, DropDatabaseExpr& b) {
|
||||||
|
a.Swap(&b);
|
||||||
|
}
|
||||||
|
inline void Swap(DropDatabaseExpr* 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(DropDatabaseExpr* other) {
|
||||||
|
if (other == this) return;
|
||||||
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||||
|
InternalSwap(other);
|
||||||
|
}
|
||||||
|
|
||||||
|
// implements Message ----------------------------------------------
|
||||||
|
|
||||||
|
DropDatabaseExpr* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||||
|
return CreateMaybeMessage<DropDatabaseExpr>(arena);
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||||
|
void CopyFrom(const DropDatabaseExpr& from);
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
void MergeFrom( const DropDatabaseExpr& from) {
|
||||||
|
DropDatabaseExpr::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(DropDatabaseExpr* other);
|
||||||
|
|
||||||
|
private:
|
||||||
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||||
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||||
|
return "greptime.v1.DropDatabaseExpr";
|
||||||
|
}
|
||||||
|
protected:
|
||||||
|
explicit DropDatabaseExpr(::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,
|
||||||
|
kDropIfExistsFieldNumber = 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:
|
||||||
|
|
||||||
|
// bool drop_if_exists = 3;
|
||||||
|
void clear_drop_if_exists();
|
||||||
|
bool drop_if_exists() const;
|
||||||
|
void set_drop_if_exists(bool value);
|
||||||
|
private:
|
||||||
|
bool _internal_drop_if_exists() const;
|
||||||
|
void _internal_set_drop_if_exists(bool value);
|
||||||
|
public:
|
||||||
|
|
||||||
|
// @@protoc_insertion_point(class_scope:greptime.v1.DropDatabaseExpr)
|
||||||
|
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_;
|
||||||
|
bool drop_if_exists_;
|
||||||
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
|
};
|
||||||
|
union { Impl_ _impl_; };
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
|
||||||
|
};
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
class AddColumns final :
|
class AddColumns final :
|
||||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddColumns) */ {
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.AddColumns) */ {
|
||||||
public:
|
public:
|
||||||
@@ -1728,7 +1912,7 @@ class AddColumns final :
|
|||||||
&_AddColumns_default_instance_);
|
&_AddColumns_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
8;
|
9;
|
||||||
|
|
||||||
friend void swap(AddColumns& a, AddColumns& b) {
|
friend void swap(AddColumns& a, AddColumns& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1885,7 +2069,7 @@ class DropColumns final :
|
|||||||
&_DropColumns_default_instance_);
|
&_DropColumns_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
9;
|
10;
|
||||||
|
|
||||||
friend void swap(DropColumns& a, DropColumns& b) {
|
friend void swap(DropColumns& a, DropColumns& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2042,7 +2226,7 @@ class RenameTable final :
|
|||||||
&_RenameTable_default_instance_);
|
&_RenameTable_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
10;
|
11;
|
||||||
|
|
||||||
friend void swap(RenameTable& a, RenameTable& b) {
|
friend void swap(RenameTable& a, RenameTable& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2195,7 +2379,7 @@ class AddColumn final :
|
|||||||
&_AddColumn_default_instance_);
|
&_AddColumn_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
11;
|
12;
|
||||||
|
|
||||||
friend void swap(AddColumn& a, AddColumn& b) {
|
friend void swap(AddColumn& a, AddColumn& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2372,7 +2556,7 @@ class DropColumn final :
|
|||||||
&_DropColumn_default_instance_);
|
&_DropColumn_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
12;
|
13;
|
||||||
|
|
||||||
friend void swap(DropColumn& a, DropColumn& b) {
|
friend void swap(DropColumn& a, DropColumn& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2525,7 +2709,7 @@ class TableId final :
|
|||||||
&_TableId_default_instance_);
|
&_TableId_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
13;
|
14;
|
||||||
|
|
||||||
friend void swap(TableId& a, TableId& b) {
|
friend void swap(TableId& a, TableId& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2673,7 +2857,7 @@ class ColumnDef final :
|
|||||||
&_ColumnDef_default_instance_);
|
&_ColumnDef_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
14;
|
15;
|
||||||
|
|
||||||
friend void swap(ColumnDef& a, ColumnDef& b) {
|
friend void swap(ColumnDef& a, ColumnDef& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2911,7 +3095,7 @@ class AddColumnLocation final :
|
|||||||
&_AddColumnLocation_default_instance_);
|
&_AddColumnLocation_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
15;
|
16;
|
||||||
|
|
||||||
friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
|
friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -5005,6 +5189,130 @@ inline void TruncateTableExpr::set_allocated_table_id(::greptime::v1::TableId* t
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// DropDatabaseExpr
|
||||||
|
|
||||||
|
// string catalog_name = 1;
|
||||||
|
inline void DropDatabaseExpr::clear_catalog_name() {
|
||||||
|
_impl_.catalog_name_.ClearToEmpty();
|
||||||
|
}
|
||||||
|
inline const std::string& DropDatabaseExpr::catalog_name() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.DropDatabaseExpr.catalog_name)
|
||||||
|
return _internal_catalog_name();
|
||||||
|
}
|
||||||
|
template <typename ArgT0, typename... ArgT>
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
|
void DropDatabaseExpr::set_catalog_name(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
|
_impl_.catalog_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
|
// @@protoc_insertion_point(field_set:greptime.v1.DropDatabaseExpr.catalog_name)
|
||||||
|
}
|
||||||
|
inline std::string* DropDatabaseExpr::mutable_catalog_name() {
|
||||||
|
std::string* _s = _internal_mutable_catalog_name();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.DropDatabaseExpr.catalog_name)
|
||||||
|
return _s;
|
||||||
|
}
|
||||||
|
inline const std::string& DropDatabaseExpr::_internal_catalog_name() const {
|
||||||
|
return _impl_.catalog_name_.Get();
|
||||||
|
}
|
||||||
|
inline void DropDatabaseExpr::_internal_set_catalog_name(const std::string& value) {
|
||||||
|
|
||||||
|
_impl_.catalog_name_.Set(value, GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* DropDatabaseExpr::_internal_mutable_catalog_name() {
|
||||||
|
|
||||||
|
return _impl_.catalog_name_.Mutable(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* DropDatabaseExpr::release_catalog_name() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.DropDatabaseExpr.catalog_name)
|
||||||
|
return _impl_.catalog_name_.Release();
|
||||||
|
}
|
||||||
|
inline void DropDatabaseExpr::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.DropDatabaseExpr.catalog_name)
|
||||||
|
}
|
||||||
|
|
||||||
|
// string schema_name = 2;
|
||||||
|
inline void DropDatabaseExpr::clear_schema_name() {
|
||||||
|
_impl_.schema_name_.ClearToEmpty();
|
||||||
|
}
|
||||||
|
inline const std::string& DropDatabaseExpr::schema_name() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.DropDatabaseExpr.schema_name)
|
||||||
|
return _internal_schema_name();
|
||||||
|
}
|
||||||
|
template <typename ArgT0, typename... ArgT>
|
||||||
|
inline PROTOBUF_ALWAYS_INLINE
|
||||||
|
void DropDatabaseExpr::set_schema_name(ArgT0&& arg0, ArgT... args) {
|
||||||
|
|
||||||
|
_impl_.schema_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
|
||||||
|
// @@protoc_insertion_point(field_set:greptime.v1.DropDatabaseExpr.schema_name)
|
||||||
|
}
|
||||||
|
inline std::string* DropDatabaseExpr::mutable_schema_name() {
|
||||||
|
std::string* _s = _internal_mutable_schema_name();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.DropDatabaseExpr.schema_name)
|
||||||
|
return _s;
|
||||||
|
}
|
||||||
|
inline const std::string& DropDatabaseExpr::_internal_schema_name() const {
|
||||||
|
return _impl_.schema_name_.Get();
|
||||||
|
}
|
||||||
|
inline void DropDatabaseExpr::_internal_set_schema_name(const std::string& value) {
|
||||||
|
|
||||||
|
_impl_.schema_name_.Set(value, GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* DropDatabaseExpr::_internal_mutable_schema_name() {
|
||||||
|
|
||||||
|
return _impl_.schema_name_.Mutable(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
inline std::string* DropDatabaseExpr::release_schema_name() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.DropDatabaseExpr.schema_name)
|
||||||
|
return _impl_.schema_name_.Release();
|
||||||
|
}
|
||||||
|
inline void DropDatabaseExpr::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.DropDatabaseExpr.schema_name)
|
||||||
|
}
|
||||||
|
|
||||||
|
// bool drop_if_exists = 3;
|
||||||
|
inline void DropDatabaseExpr::clear_drop_if_exists() {
|
||||||
|
_impl_.drop_if_exists_ = false;
|
||||||
|
}
|
||||||
|
inline bool DropDatabaseExpr::_internal_drop_if_exists() const {
|
||||||
|
return _impl_.drop_if_exists_;
|
||||||
|
}
|
||||||
|
inline bool DropDatabaseExpr::drop_if_exists() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.DropDatabaseExpr.drop_if_exists)
|
||||||
|
return _internal_drop_if_exists();
|
||||||
|
}
|
||||||
|
inline void DropDatabaseExpr::_internal_set_drop_if_exists(bool value) {
|
||||||
|
|
||||||
|
_impl_.drop_if_exists_ = value;
|
||||||
|
}
|
||||||
|
inline void DropDatabaseExpr::set_drop_if_exists(bool value) {
|
||||||
|
_internal_set_drop_if_exists(value);
|
||||||
|
// @@protoc_insertion_point(field_set:greptime.v1.DropDatabaseExpr.drop_if_exists)
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// AddColumns
|
// AddColumns
|
||||||
|
|
||||||
// repeated .greptime.v1.AddColumn add_columns = 1;
|
// repeated .greptime.v1.AddColumn add_columns = 1;
|
||||||
@@ -5813,6 +6121,8 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
|
|||||||
+316
-28
@@ -116,6 +116,19 @@ struct TruncateTableTaskDefaultTypeInternal {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateTableTaskDefaultTypeInternal _TruncateTableTask_default_instance_;
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TruncateTableTaskDefaultTypeInternal _TruncateTableTask_default_instance_;
|
||||||
|
PROTOBUF_CONSTEXPR DropDatabaseTask::DropDatabaseTask(
|
||||||
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
|
/*decltype(_impl_.drop_database_)*/nullptr
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
|
struct DropDatabaseTaskDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR DropDatabaseTaskDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~DropDatabaseTaskDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
DropDatabaseTask _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropDatabaseTaskDefaultTypeInternal _DropDatabaseTask_default_instance_;
|
||||||
PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest(
|
PROTOBUF_CONSTEXPR DdlTaskRequest::DdlTaskRequest(
|
||||||
::_pbi::ConstantInitialized): _impl_{
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
/*decltype(_impl_.header_)*/nullptr
|
/*decltype(_impl_.header_)*/nullptr
|
||||||
@@ -150,7 +163,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_2fddl_2eproto[9];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[10];
|
||||||
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto[1];
|
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto[1];
|
||||||
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto = nullptr;
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto = nullptr;
|
||||||
|
|
||||||
@@ -207,6 +220,13 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
|
|||||||
~0u, // no _inlined_string_donated_
|
~0u, // no _inlined_string_donated_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TruncateTableTask, _impl_.truncate_table_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TruncateTableTask, _impl_.truncate_table_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DropDatabaseTask, _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::DropDatabaseTask, _impl_.drop_database_),
|
||||||
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _internal_metadata_),
|
||||||
~0u, // no _extensions_
|
~0u, // no _extensions_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_._oneof_case_[0]),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_._oneof_case_[0]),
|
||||||
@@ -220,6 +240,7 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets[] PROTOBU
|
|||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.task_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskRequest, _impl_.task_),
|
||||||
~0u, // no _has_bits_
|
~0u, // no _has_bits_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::DdlTaskResponse, _internal_metadata_),
|
||||||
@@ -240,8 +261,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
|||||||
{ 30, -1, -1, sizeof(::greptime::v1::meta::AlterTableTask)},
|
{ 30, -1, -1, sizeof(::greptime::v1::meta::AlterTableTask)},
|
||||||
{ 37, -1, -1, sizeof(::greptime::v1::meta::AlterTableTasks)},
|
{ 37, -1, -1, sizeof(::greptime::v1::meta::AlterTableTasks)},
|
||||||
{ 44, -1, -1, sizeof(::greptime::v1::meta::TruncateTableTask)},
|
{ 44, -1, -1, sizeof(::greptime::v1::meta::TruncateTableTask)},
|
||||||
{ 51, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)},
|
{ 51, -1, -1, sizeof(::greptime::v1::meta::DropDatabaseTask)},
|
||||||
{ 66, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
|
{ 58, -1, -1, sizeof(::greptime::v1::meta::DdlTaskRequest)},
|
||||||
|
{ 74, -1, -1, sizeof(::greptime::v1::meta::DdlTaskResponse)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -252,6 +274,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|||||||
&::greptime::v1::meta::_AlterTableTask_default_instance_._instance,
|
&::greptime::v1::meta::_AlterTableTask_default_instance_._instance,
|
||||||
&::greptime::v1::meta::_AlterTableTasks_default_instance_._instance,
|
&::greptime::v1::meta::_AlterTableTasks_default_instance_._instance,
|
||||||
&::greptime::v1::meta::_TruncateTableTask_default_instance_._instance,
|
&::greptime::v1::meta::_TruncateTableTask_default_instance_._instance,
|
||||||
|
&::greptime::v1::meta::_DropDatabaseTask_default_instance_._instance,
|
||||||
&::greptime::v1::meta::_DdlTaskRequest_default_instance_._instance,
|
&::greptime::v1::meta::_DdlTaskRequest_default_instance_._instance,
|
||||||
&::greptime::v1::meta::_DdlTaskResponse_default_instance_._instance,
|
&::greptime::v1::meta::_DdlTaskResponse_default_instance_._instance,
|
||||||
};
|
};
|
||||||
@@ -274,27 +297,31 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB
|
|||||||
"sks\030\001 \003(\0132 .greptime.v1.meta.AlterTableT"
|
"sks\030\001 \003(\0132 .greptime.v1.meta.AlterTableT"
|
||||||
"ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab"
|
"ask\"K\n\021TruncateTableTask\0226\n\016truncate_tab"
|
||||||
"le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr"
|
"le\030\001 \001(\0132\036.greptime.v1.TruncateTableExpr"
|
||||||
"\"\207\004\n\016DdlTaskRequest\022/\n\006header\030\001 \001(\0132\037.gr"
|
"\"H\n\020DropDatabaseTask\0224\n\rdrop_database\030\001 "
|
||||||
"eptime.v1.meta.RequestHeader\022>\n\021create_t"
|
"\001(\0132\035.greptime.v1.DropDatabaseExpr\"\311\004\n\016D"
|
||||||
"able_task\030\002 \001(\0132!.greptime.v1.meta.Creat"
|
"dlTaskRequest\022/\n\006header\030\001 \001(\0132\037.greptime"
|
||||||
"eTableTaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037."
|
".v1.meta.RequestHeader\022>\n\021create_table_t"
|
||||||
"greptime.v1.meta.DropTableTaskH\000\022<\n\020alte"
|
"ask\030\002 \001(\0132!.greptime.v1.meta.CreateTable"
|
||||||
"r_table_task\030\004 \001(\0132 .greptime.v1.meta.Al"
|
"TaskH\000\022:\n\017drop_table_task\030\003 \001(\0132\037.grepti"
|
||||||
"terTableTaskH\000\022B\n\023truncate_table_task\030\005 "
|
"me.v1.meta.DropTableTaskH\000\022<\n\020alter_tabl"
|
||||||
"\001(\0132#.greptime.v1.meta.TruncateTableTask"
|
"e_task\030\004 \001(\0132 .greptime.v1.meta.AlterTab"
|
||||||
"H\000\022@\n\022create_table_tasks\030\006 \001(\0132\".greptim"
|
"leTaskH\000\022B\n\023truncate_table_task\030\005 \001(\0132#."
|
||||||
"e.v1.meta.CreateTableTasksH\000\022<\n\020drop_tab"
|
"greptime.v1.meta.TruncateTableTaskH\000\022@\n\022"
|
||||||
"le_tasks\030\007 \001(\0132 .greptime.v1.meta.DropTa"
|
"create_table_tasks\030\006 \001(\0132\".greptime.v1.m"
|
||||||
"bleTasksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!."
|
"eta.CreateTableTasksH\000\022<\n\020drop_table_tas"
|
||||||
"greptime.v1.meta.AlterTableTasksH\000B\006\n\004ta"
|
"ks\030\007 \001(\0132 .greptime.v1.meta.DropTableTas"
|
||||||
"sk\"\312\001\n\017DdlTaskResponse\0220\n\006header\030\001 \001(\0132 "
|
"ksH\000\022>\n\021alter_table_tasks\030\010 \001(\0132!.grepti"
|
||||||
".greptime.v1.meta.ResponseHeader\022*\n\003pid\030"
|
"me.v1.meta.AlterTableTasksH\000\022@\n\022drop_dat"
|
||||||
"\002 \001(\0132\035.greptime.v1.meta.ProcedureId\022+\n\010"
|
"abase_task\030\t \001(\0132\".greptime.v1.meta.Drop"
|
||||||
"table_id\030\004 \001(\0132\031.greptime.v1.meta.TableI"
|
"DatabaseTaskH\000B\006\n\004task\"\312\001\n\017DdlTaskRespon"
|
||||||
"d\022,\n\ttable_ids\030\005 \003(\0132\031.greptime.v1.meta."
|
"se\0220\n\006header\030\001 \001(\0132 .greptime.v1.meta.Re"
|
||||||
"TableId*#\n\013DdlTaskType\022\n\n\006Create\020\000\022\010\n\004Dr"
|
"sponseHeader\022*\n\003pid\030\002 \001(\0132\035.greptime.v1."
|
||||||
"op\020\001B<Z:github.com/GreptimeTeam/greptime"
|
"meta.ProcedureId\022+\n\010table_id\030\004 \001(\0132\031.gre"
|
||||||
"-proto/go/greptime/v1/metab\006proto3"
|
"ptime.v1.meta.TableId\022,\n\ttable_ids\030\005 \003(\013"
|
||||||
|
"2\031.greptime.v1.meta.TableId*#\n\013DdlTaskTy"
|
||||||
|
"pe\022\n\n\006Create\020\000\022\010\n\004Drop\020\001B<Z:github.com/G"
|
||||||
|
"reptimeTeam/greptime-proto/go/greptime/v"
|
||||||
|
"1/metab\006proto3"
|
||||||
;
|
;
|
||||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[3] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[3] = {
|
||||||
&::descriptor_table_greptime_2fv1_2fddl_2eproto,
|
&::descriptor_table_greptime_2fv1_2fddl_2eproto,
|
||||||
@@ -303,9 +330,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmet
|
|||||||
};
|
};
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto = {
|
||||||
false, false, 1514, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
|
false, false, 1654, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||||
"greptime/v1/meta/ddl.proto",
|
"greptime/v1/meta/ddl.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 3, 9,
|
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 3, 10,
|
||||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets,
|
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
|
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||||
file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
|
file_level_service_descriptors_greptime_2fv1_2fmeta_2fddl_2eproto,
|
||||||
@@ -1771,6 +1798,205 @@ void TruncateTableTask::InternalSwap(TruncateTableTask* other) {
|
|||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
class DropDatabaseTask::_Internal {
|
||||||
|
public:
|
||||||
|
static const ::greptime::v1::DropDatabaseExpr& drop_database(const DropDatabaseTask* msg);
|
||||||
|
};
|
||||||
|
|
||||||
|
const ::greptime::v1::DropDatabaseExpr&
|
||||||
|
DropDatabaseTask::_Internal::drop_database(const DropDatabaseTask* msg) {
|
||||||
|
return *msg->_impl_.drop_database_;
|
||||||
|
}
|
||||||
|
void DropDatabaseTask::clear_drop_database() {
|
||||||
|
if (GetArenaForAllocation() == nullptr && _impl_.drop_database_ != nullptr) {
|
||||||
|
delete _impl_.drop_database_;
|
||||||
|
}
|
||||||
|
_impl_.drop_database_ = nullptr;
|
||||||
|
}
|
||||||
|
DropDatabaseTask::DropDatabaseTask(::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.DropDatabaseTask)
|
||||||
|
}
|
||||||
|
DropDatabaseTask::DropDatabaseTask(const DropDatabaseTask& from)
|
||||||
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
|
DropDatabaseTask* const _this = this; (void)_this;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.drop_database_){nullptr}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
|
|
||||||
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
if (from._internal_has_drop_database()) {
|
||||||
|
_this->_impl_.drop_database_ = new ::greptime::v1::DropDatabaseExpr(*from._impl_.drop_database_);
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void DropDatabaseTask::SharedCtor(
|
||||||
|
::_pb::Arena* arena, bool is_message_owned) {
|
||||||
|
(void)arena;
|
||||||
|
(void)is_message_owned;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.drop_database_){nullptr}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
DropDatabaseTask::~DropDatabaseTask() {
|
||||||
|
// @@protoc_insertion_point(destructor:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
|
(void)arena;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SharedDtor();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void DropDatabaseTask::SharedDtor() {
|
||||||
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
if (this != internal_default_instance()) delete _impl_.drop_database_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DropDatabaseTask::SetCachedSize(int size) const {
|
||||||
|
_impl_._cached_size_.Set(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DropDatabaseTask::Clear() {
|
||||||
|
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
if (GetArenaForAllocation() == nullptr && _impl_.drop_database_ != nullptr) {
|
||||||
|
delete _impl_.drop_database_;
|
||||||
|
}
|
||||||
|
_impl_.drop_database_ = nullptr;
|
||||||
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* DropDatabaseTask::_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) {
|
||||||
|
// .greptime.v1.DropDatabaseExpr drop_database = 1;
|
||||||
|
case 1:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||||
|
ptr = ctx->ParseMessage(_internal_mutable_drop_database(), ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
|
default:
|
||||||
|
goto handle_unusual;
|
||||||
|
} // switch
|
||||||
|
handle_unusual:
|
||||||
|
if ((tag == 0) || ((tag & 7) == 4)) {
|
||||||
|
CHK_(ptr);
|
||||||
|
ctx->SetLastTag(tag);
|
||||||
|
goto message_done;
|
||||||
|
}
|
||||||
|
ptr = UnknownFieldParse(
|
||||||
|
tag,
|
||||||
|
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
|
||||||
|
ptr, ctx);
|
||||||
|
CHK_(ptr != nullptr);
|
||||||
|
} // while
|
||||||
|
message_done:
|
||||||
|
return ptr;
|
||||||
|
failure:
|
||||||
|
ptr = nullptr;
|
||||||
|
goto message_done;
|
||||||
|
#undef CHK_
|
||||||
|
}
|
||||||
|
|
||||||
|
uint8_t* DropDatabaseTask::_InternalSerialize(
|
||||||
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// .greptime.v1.DropDatabaseExpr drop_database = 1;
|
||||||
|
if (this->_internal_has_drop_database()) {
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(1, _Internal::drop_database(this),
|
||||||
|
_Internal::drop_database(this).GetCachedSize(), target, stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
|
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||||
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t DropDatabaseTask::ByteSizeLong() const {
|
||||||
|
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
size_t total_size = 0;
|
||||||
|
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// .greptime.v1.DropDatabaseExpr drop_database = 1;
|
||||||
|
if (this->_internal_has_drop_database()) {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
|
*_impl_.drop_database_);
|
||||||
|
}
|
||||||
|
|
||||||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
|
}
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DropDatabaseTask::_class_data_ = {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||||
|
DropDatabaseTask::MergeImpl
|
||||||
|
};
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DropDatabaseTask::GetClassData() const { return &_class_data_; }
|
||||||
|
|
||||||
|
|
||||||
|
void DropDatabaseTask::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||||
|
auto* const _this = static_cast<DropDatabaseTask*>(&to_msg);
|
||||||
|
auto& from = static_cast<const DropDatabaseTask&>(from_msg);
|
||||||
|
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
GOOGLE_DCHECK_NE(&from, _this);
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
if (from._internal_has_drop_database()) {
|
||||||
|
_this->_internal_mutable_drop_database()->::greptime::v1::DropDatabaseExpr::MergeFrom(
|
||||||
|
from._internal_drop_database());
|
||||||
|
}
|
||||||
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
}
|
||||||
|
|
||||||
|
void DropDatabaseTask::CopyFrom(const DropDatabaseTask& from) {
|
||||||
|
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
if (&from == this) return;
|
||||||
|
Clear();
|
||||||
|
MergeFrom(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool DropDatabaseTask::IsInitialized() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void DropDatabaseTask::InternalSwap(DropDatabaseTask* other) {
|
||||||
|
using std::swap;
|
||||||
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
|
swap(_impl_.drop_database_, other->_impl_.drop_database_);
|
||||||
|
}
|
||||||
|
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata DropDatabaseTask::GetMetadata() const {
|
||||||
|
return ::_pbi::AssignDescriptors(
|
||||||
|
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
|
||||||
|
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[7]);
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
class DdlTaskRequest::_Internal {
|
class DdlTaskRequest::_Internal {
|
||||||
public:
|
public:
|
||||||
static const ::greptime::v1::meta::RequestHeader& header(const DdlTaskRequest* msg);
|
static const ::greptime::v1::meta::RequestHeader& header(const DdlTaskRequest* msg);
|
||||||
@@ -1781,6 +2007,7 @@ class DdlTaskRequest::_Internal {
|
|||||||
static const ::greptime::v1::meta::CreateTableTasks& create_table_tasks(const DdlTaskRequest* msg);
|
static const ::greptime::v1::meta::CreateTableTasks& create_table_tasks(const DdlTaskRequest* msg);
|
||||||
static const ::greptime::v1::meta::DropTableTasks& drop_table_tasks(const DdlTaskRequest* msg);
|
static const ::greptime::v1::meta::DropTableTasks& drop_table_tasks(const DdlTaskRequest* msg);
|
||||||
static const ::greptime::v1::meta::AlterTableTasks& alter_table_tasks(const DdlTaskRequest* msg);
|
static const ::greptime::v1::meta::AlterTableTasks& alter_table_tasks(const DdlTaskRequest* msg);
|
||||||
|
static const ::greptime::v1::meta::DropDatabaseTask& drop_database_task(const DdlTaskRequest* msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ::greptime::v1::meta::RequestHeader&
|
const ::greptime::v1::meta::RequestHeader&
|
||||||
@@ -1815,6 +2042,10 @@ const ::greptime::v1::meta::AlterTableTasks&
|
|||||||
DdlTaskRequest::_Internal::alter_table_tasks(const DdlTaskRequest* msg) {
|
DdlTaskRequest::_Internal::alter_table_tasks(const DdlTaskRequest* msg) {
|
||||||
return *msg->_impl_.task_.alter_table_tasks_;
|
return *msg->_impl_.task_.alter_table_tasks_;
|
||||||
}
|
}
|
||||||
|
const ::greptime::v1::meta::DropDatabaseTask&
|
||||||
|
DdlTaskRequest::_Internal::drop_database_task(const DdlTaskRequest* msg) {
|
||||||
|
return *msg->_impl_.task_.drop_database_task_;
|
||||||
|
}
|
||||||
void DdlTaskRequest::clear_header() {
|
void DdlTaskRequest::clear_header() {
|
||||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||||
delete _impl_.header_;
|
delete _impl_.header_;
|
||||||
@@ -1926,6 +2157,21 @@ void DdlTaskRequest::set_allocated_alter_table_tasks(::greptime::v1::meta::Alter
|
|||||||
}
|
}
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_table_tasks)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.alter_table_tasks)
|
||||||
}
|
}
|
||||||
|
void DdlTaskRequest::set_allocated_drop_database_task(::greptime::v1::meta::DropDatabaseTask* drop_database_task) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
|
clear_task();
|
||||||
|
if (drop_database_task) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(drop_database_task);
|
||||||
|
if (message_arena != submessage_arena) {
|
||||||
|
drop_database_task = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||||
|
message_arena, drop_database_task, submessage_arena);
|
||||||
|
}
|
||||||
|
set_has_drop_database_task();
|
||||||
|
_impl_.task_.drop_database_task_ = drop_database_task;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_database_task)
|
||||||
|
}
|
||||||
DdlTaskRequest::DdlTaskRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
DdlTaskRequest::DdlTaskRequest(::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) {
|
||||||
@@ -1982,6 +2228,11 @@ DdlTaskRequest::DdlTaskRequest(const DdlTaskRequest& from)
|
|||||||
from._internal_alter_table_tasks());
|
from._internal_alter_table_tasks());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kDropDatabaseTask: {
|
||||||
|
_this->_internal_mutable_drop_database_task()->::greptime::v1::meta::DropDatabaseTask::MergeFrom(
|
||||||
|
from._internal_drop_database_task());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case TASK_NOT_SET: {
|
case TASK_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2068,6 +2319,12 @@ void DdlTaskRequest::clear_task() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kDropDatabaseTask: {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.task_.drop_database_task_;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case TASK_NOT_SET: {
|
case TASK_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2160,6 +2417,14 @@ const char* DdlTaskRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
|
// .greptime.v1.meta.DropDatabaseTask drop_database_task = 9;
|
||||||
|
case 9:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
|
||||||
|
ptr = ctx->ParseMessage(_internal_mutable_drop_database_task(), ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
default:
|
default:
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
} // switch
|
} // switch
|
||||||
@@ -2245,6 +2510,13 @@ uint8_t* DdlTaskRequest::_InternalSerialize(
|
|||||||
_Internal::alter_table_tasks(this).GetCachedSize(), target, stream);
|
_Internal::alter_table_tasks(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.meta.DropDatabaseTask drop_database_task = 9;
|
||||||
|
if (_internal_has_drop_database_task()) {
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(9, _Internal::drop_database_task(this),
|
||||||
|
_Internal::drop_database_task(this).GetCachedSize(), target, stream);
|
||||||
|
}
|
||||||
|
|
||||||
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||||
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||||
@@ -2318,6 +2590,13 @@ size_t DdlTaskRequest::ByteSizeLong() const {
|
|||||||
*_impl_.task_.alter_table_tasks_);
|
*_impl_.task_.alter_table_tasks_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// .greptime.v1.meta.DropDatabaseTask drop_database_task = 9;
|
||||||
|
case kDropDatabaseTask: {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
|
*_impl_.task_.drop_database_task_);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case TASK_NOT_SET: {
|
case TASK_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2380,6 +2659,11 @@ void DdlTaskRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const :
|
|||||||
from._internal_alter_table_tasks());
|
from._internal_alter_table_tasks());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kDropDatabaseTask: {
|
||||||
|
_this->_internal_mutable_drop_database_task()->::greptime::v1::meta::DropDatabaseTask::MergeFrom(
|
||||||
|
from._internal_drop_database_task());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case TASK_NOT_SET: {
|
case TASK_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2409,7 +2693,7 @@ void DdlTaskRequest::InternalSwap(DdlTaskRequest* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskRequest::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskRequest::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[7]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[8]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
@@ -2744,7 +3028,7 @@ void DdlTaskResponse::InternalSwap(DdlTaskResponse* other) {
|
|||||||
::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskResponse::GetMetadata() const {
|
::PROTOBUF_NAMESPACE_ID::Metadata DdlTaskResponse::GetMetadata() const {
|
||||||
return ::_pbi::AssignDescriptors(
|
return ::_pbi::AssignDescriptors(
|
||||||
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
|
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once,
|
||||||
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[8]);
|
file_level_metadata_greptime_2fv1_2fmeta_2fddl_2eproto[9]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
@@ -2780,6 +3064,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TruncateTableTask*
|
|||||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::TruncateTableTask >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::meta::TruncateTableTask >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::TruncateTableTask >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::meta::TruncateTableTask >(arena);
|
||||||
}
|
}
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DropDatabaseTask*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::meta::DropDatabaseTask >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::meta::DropDatabaseTask >(arena);
|
||||||
|
}
|
||||||
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskRequest*
|
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::DdlTaskRequest*
|
||||||
Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskRequest >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::meta::DdlTaskRequest >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskRequest >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::meta::DdlTaskRequest >(arena);
|
||||||
|
|||||||
@@ -69,6 +69,9 @@ extern DdlTaskRequestDefaultTypeInternal _DdlTaskRequest_default_instance_;
|
|||||||
class DdlTaskResponse;
|
class DdlTaskResponse;
|
||||||
struct DdlTaskResponseDefaultTypeInternal;
|
struct DdlTaskResponseDefaultTypeInternal;
|
||||||
extern DdlTaskResponseDefaultTypeInternal _DdlTaskResponse_default_instance_;
|
extern DdlTaskResponseDefaultTypeInternal _DdlTaskResponse_default_instance_;
|
||||||
|
class DropDatabaseTask;
|
||||||
|
struct DropDatabaseTaskDefaultTypeInternal;
|
||||||
|
extern DropDatabaseTaskDefaultTypeInternal _DropDatabaseTask_default_instance_;
|
||||||
class DropTableTask;
|
class DropTableTask;
|
||||||
struct DropTableTaskDefaultTypeInternal;
|
struct DropTableTaskDefaultTypeInternal;
|
||||||
extern DropTableTaskDefaultTypeInternal _DropTableTask_default_instance_;
|
extern DropTableTaskDefaultTypeInternal _DropTableTask_default_instance_;
|
||||||
@@ -88,6 +91,7 @@ template<> ::greptime::v1::meta::CreateTableTask* Arena::CreateMaybeMessage<::gr
|
|||||||
template<> ::greptime::v1::meta::CreateTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTasks>(Arena*);
|
template<> ::greptime::v1::meta::CreateTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::CreateTableTasks>(Arena*);
|
||||||
template<> ::greptime::v1::meta::DdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskRequest>(Arena*);
|
template<> ::greptime::v1::meta::DdlTaskRequest* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskRequest>(Arena*);
|
||||||
template<> ::greptime::v1::meta::DdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskResponse>(Arena*);
|
template<> ::greptime::v1::meta::DdlTaskResponse* Arena::CreateMaybeMessage<::greptime::v1::meta::DdlTaskResponse>(Arena*);
|
||||||
|
template<> ::greptime::v1::meta::DropDatabaseTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropDatabaseTask>(Arena*);
|
||||||
template<> ::greptime::v1::meta::DropTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTask>(Arena*);
|
template<> ::greptime::v1::meta::DropTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTask>(Arena*);
|
||||||
template<> ::greptime::v1::meta::DropTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTasks>(Arena*);
|
template<> ::greptime::v1::meta::DropTableTasks* Arena::CreateMaybeMessage<::greptime::v1::meta::DropTableTasks>(Arena*);
|
||||||
template<> ::greptime::v1::meta::TruncateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::TruncateTableTask>(Arena*);
|
template<> ::greptime::v1::meta::TruncateTableTask* Arena::CreateMaybeMessage<::greptime::v1::meta::TruncateTableTask>(Arena*);
|
||||||
@@ -1258,6 +1262,163 @@ class TruncateTableTask final :
|
|||||||
};
|
};
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
class DropDatabaseTask final :
|
||||||
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DropDatabaseTask) */ {
|
||||||
|
public:
|
||||||
|
inline DropDatabaseTask() : DropDatabaseTask(nullptr) {}
|
||||||
|
~DropDatabaseTask() override;
|
||||||
|
explicit PROTOBUF_CONSTEXPR DropDatabaseTask(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
|
||||||
|
DropDatabaseTask(const DropDatabaseTask& from);
|
||||||
|
DropDatabaseTask(DropDatabaseTask&& from) noexcept
|
||||||
|
: DropDatabaseTask() {
|
||||||
|
*this = ::std::move(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline DropDatabaseTask& operator=(const DropDatabaseTask& from) {
|
||||||
|
CopyFrom(from);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
inline DropDatabaseTask& operator=(DropDatabaseTask&& 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 DropDatabaseTask& default_instance() {
|
||||||
|
return *internal_default_instance();
|
||||||
|
}
|
||||||
|
static inline const DropDatabaseTask* internal_default_instance() {
|
||||||
|
return reinterpret_cast<const DropDatabaseTask*>(
|
||||||
|
&_DropDatabaseTask_default_instance_);
|
||||||
|
}
|
||||||
|
static constexpr int kIndexInFileMessages =
|
||||||
|
7;
|
||||||
|
|
||||||
|
friend void swap(DropDatabaseTask& a, DropDatabaseTask& b) {
|
||||||
|
a.Swap(&b);
|
||||||
|
}
|
||||||
|
inline void Swap(DropDatabaseTask* 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(DropDatabaseTask* other) {
|
||||||
|
if (other == this) return;
|
||||||
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||||
|
InternalSwap(other);
|
||||||
|
}
|
||||||
|
|
||||||
|
// implements Message ----------------------------------------------
|
||||||
|
|
||||||
|
DropDatabaseTask* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||||
|
return CreateMaybeMessage<DropDatabaseTask>(arena);
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||||
|
void CopyFrom(const DropDatabaseTask& from);
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
void MergeFrom( const DropDatabaseTask& from) {
|
||||||
|
DropDatabaseTask::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(DropDatabaseTask* other);
|
||||||
|
|
||||||
|
private:
|
||||||
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||||
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||||
|
return "greptime.v1.meta.DropDatabaseTask";
|
||||||
|
}
|
||||||
|
protected:
|
||||||
|
explicit DropDatabaseTask(::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 {
|
||||||
|
kDropDatabaseFieldNumber = 1,
|
||||||
|
};
|
||||||
|
// .greptime.v1.DropDatabaseExpr drop_database = 1;
|
||||||
|
bool has_drop_database() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_drop_database() const;
|
||||||
|
public:
|
||||||
|
void clear_drop_database();
|
||||||
|
const ::greptime::v1::DropDatabaseExpr& drop_database() const;
|
||||||
|
PROTOBUF_NODISCARD ::greptime::v1::DropDatabaseExpr* release_drop_database();
|
||||||
|
::greptime::v1::DropDatabaseExpr* mutable_drop_database();
|
||||||
|
void set_allocated_drop_database(::greptime::v1::DropDatabaseExpr* drop_database);
|
||||||
|
private:
|
||||||
|
const ::greptime::v1::DropDatabaseExpr& _internal_drop_database() const;
|
||||||
|
::greptime::v1::DropDatabaseExpr* _internal_mutable_drop_database();
|
||||||
|
public:
|
||||||
|
void unsafe_arena_set_allocated_drop_database(
|
||||||
|
::greptime::v1::DropDatabaseExpr* drop_database);
|
||||||
|
::greptime::v1::DropDatabaseExpr* unsafe_arena_release_drop_database();
|
||||||
|
|
||||||
|
// @@protoc_insertion_point(class_scope:greptime.v1.meta.DropDatabaseTask)
|
||||||
|
private:
|
||||||
|
class _Internal;
|
||||||
|
|
||||||
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||||
|
typedef void InternalArenaConstructable_;
|
||||||
|
typedef void DestructorSkippable_;
|
||||||
|
struct Impl_ {
|
||||||
|
::greptime::v1::DropDatabaseExpr* drop_database_;
|
||||||
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
|
};
|
||||||
|
union { Impl_ _impl_; };
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto;
|
||||||
|
};
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
class DdlTaskRequest final :
|
class DdlTaskRequest final :
|
||||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DdlTaskRequest) */ {
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.DdlTaskRequest) */ {
|
||||||
public:
|
public:
|
||||||
@@ -1309,6 +1470,7 @@ class DdlTaskRequest final :
|
|||||||
kCreateTableTasks = 6,
|
kCreateTableTasks = 6,
|
||||||
kDropTableTasks = 7,
|
kDropTableTasks = 7,
|
||||||
kAlterTableTasks = 8,
|
kAlterTableTasks = 8,
|
||||||
|
kDropDatabaseTask = 9,
|
||||||
TASK_NOT_SET = 0,
|
TASK_NOT_SET = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -1317,7 +1479,7 @@ class DdlTaskRequest final :
|
|||||||
&_DdlTaskRequest_default_instance_);
|
&_DdlTaskRequest_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
7;
|
8;
|
||||||
|
|
||||||
friend void swap(DdlTaskRequest& a, DdlTaskRequest& b) {
|
friend void swap(DdlTaskRequest& a, DdlTaskRequest& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -1398,6 +1560,7 @@ class DdlTaskRequest final :
|
|||||||
kCreateTableTasksFieldNumber = 6,
|
kCreateTableTasksFieldNumber = 6,
|
||||||
kDropTableTasksFieldNumber = 7,
|
kDropTableTasksFieldNumber = 7,
|
||||||
kAlterTableTasksFieldNumber = 8,
|
kAlterTableTasksFieldNumber = 8,
|
||||||
|
kDropDatabaseTaskFieldNumber = 9,
|
||||||
};
|
};
|
||||||
// .greptime.v1.meta.RequestHeader header = 1;
|
// .greptime.v1.meta.RequestHeader header = 1;
|
||||||
bool has_header() const;
|
bool has_header() const;
|
||||||
@@ -1543,6 +1706,24 @@ class DdlTaskRequest final :
|
|||||||
::greptime::v1::meta::AlterTableTasks* alter_table_tasks);
|
::greptime::v1::meta::AlterTableTasks* alter_table_tasks);
|
||||||
::greptime::v1::meta::AlterTableTasks* unsafe_arena_release_alter_table_tasks();
|
::greptime::v1::meta::AlterTableTasks* unsafe_arena_release_alter_table_tasks();
|
||||||
|
|
||||||
|
// .greptime.v1.meta.DropDatabaseTask drop_database_task = 9;
|
||||||
|
bool has_drop_database_task() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_drop_database_task() const;
|
||||||
|
public:
|
||||||
|
void clear_drop_database_task();
|
||||||
|
const ::greptime::v1::meta::DropDatabaseTask& drop_database_task() const;
|
||||||
|
PROTOBUF_NODISCARD ::greptime::v1::meta::DropDatabaseTask* release_drop_database_task();
|
||||||
|
::greptime::v1::meta::DropDatabaseTask* mutable_drop_database_task();
|
||||||
|
void set_allocated_drop_database_task(::greptime::v1::meta::DropDatabaseTask* drop_database_task);
|
||||||
|
private:
|
||||||
|
const ::greptime::v1::meta::DropDatabaseTask& _internal_drop_database_task() const;
|
||||||
|
::greptime::v1::meta::DropDatabaseTask* _internal_mutable_drop_database_task();
|
||||||
|
public:
|
||||||
|
void unsafe_arena_set_allocated_drop_database_task(
|
||||||
|
::greptime::v1::meta::DropDatabaseTask* drop_database_task);
|
||||||
|
::greptime::v1::meta::DropDatabaseTask* unsafe_arena_release_drop_database_task();
|
||||||
|
|
||||||
void clear_task();
|
void clear_task();
|
||||||
TaskCase task_case() const;
|
TaskCase task_case() const;
|
||||||
// @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskRequest)
|
// @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskRequest)
|
||||||
@@ -1555,6 +1736,7 @@ class DdlTaskRequest final :
|
|||||||
void set_has_create_table_tasks();
|
void set_has_create_table_tasks();
|
||||||
void set_has_drop_table_tasks();
|
void set_has_drop_table_tasks();
|
||||||
void set_has_alter_table_tasks();
|
void set_has_alter_table_tasks();
|
||||||
|
void set_has_drop_database_task();
|
||||||
|
|
||||||
inline bool has_task() const;
|
inline bool has_task() const;
|
||||||
inline void clear_has_task();
|
inline void clear_has_task();
|
||||||
@@ -1574,6 +1756,7 @@ class DdlTaskRequest final :
|
|||||||
::greptime::v1::meta::CreateTableTasks* create_table_tasks_;
|
::greptime::v1::meta::CreateTableTasks* create_table_tasks_;
|
||||||
::greptime::v1::meta::DropTableTasks* drop_table_tasks_;
|
::greptime::v1::meta::DropTableTasks* drop_table_tasks_;
|
||||||
::greptime::v1::meta::AlterTableTasks* alter_table_tasks_;
|
::greptime::v1::meta::AlterTableTasks* alter_table_tasks_;
|
||||||
|
::greptime::v1::meta::DropDatabaseTask* drop_database_task_;
|
||||||
} task_;
|
} task_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
uint32_t _oneof_case_[1];
|
uint32_t _oneof_case_[1];
|
||||||
@@ -1632,7 +1815,7 @@ class DdlTaskResponse final :
|
|||||||
&_DdlTaskResponse_default_instance_);
|
&_DdlTaskResponse_default_instance_);
|
||||||
}
|
}
|
||||||
static constexpr int kIndexInFileMessages =
|
static constexpr int kIndexInFileMessages =
|
||||||
8;
|
9;
|
||||||
|
|
||||||
friend void swap(DdlTaskResponse& a, DdlTaskResponse& b) {
|
friend void swap(DdlTaskResponse& a, DdlTaskResponse& b) {
|
||||||
a.Swap(&b);
|
a.Swap(&b);
|
||||||
@@ -2383,6 +2566,95 @@ inline void TruncateTableTask::set_allocated_truncate_table(::greptime::v1::Trun
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// DropDatabaseTask
|
||||||
|
|
||||||
|
// .greptime.v1.DropDatabaseExpr drop_database = 1;
|
||||||
|
inline bool DropDatabaseTask::_internal_has_drop_database() const {
|
||||||
|
return this != internal_default_instance() && _impl_.drop_database_ != nullptr;
|
||||||
|
}
|
||||||
|
inline bool DropDatabaseTask::has_drop_database() const {
|
||||||
|
return _internal_has_drop_database();
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::DropDatabaseExpr& DropDatabaseTask::_internal_drop_database() const {
|
||||||
|
const ::greptime::v1::DropDatabaseExpr* p = _impl_.drop_database_;
|
||||||
|
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::DropDatabaseExpr&>(
|
||||||
|
::greptime::v1::_DropDatabaseExpr_default_instance_);
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::DropDatabaseExpr& DropDatabaseTask::drop_database() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.meta.DropDatabaseTask.drop_database)
|
||||||
|
return _internal_drop_database();
|
||||||
|
}
|
||||||
|
inline void DropDatabaseTask::unsafe_arena_set_allocated_drop_database(
|
||||||
|
::greptime::v1::DropDatabaseExpr* drop_database) {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.drop_database_);
|
||||||
|
}
|
||||||
|
_impl_.drop_database_ = drop_database;
|
||||||
|
if (drop_database) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DropDatabaseTask.drop_database)
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::DropDatabaseExpr* DropDatabaseTask::release_drop_database() {
|
||||||
|
|
||||||
|
::greptime::v1::DropDatabaseExpr* temp = _impl_.drop_database_;
|
||||||
|
_impl_.drop_database_ = nullptr;
|
||||||
|
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||||
|
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
if (GetArenaForAllocation() == nullptr) { delete old; }
|
||||||
|
#else // PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||||
|
if (GetArenaForAllocation() != nullptr) {
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
}
|
||||||
|
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::DropDatabaseExpr* DropDatabaseTask::unsafe_arena_release_drop_database() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.meta.DropDatabaseTask.drop_database)
|
||||||
|
|
||||||
|
::greptime::v1::DropDatabaseExpr* temp = _impl_.drop_database_;
|
||||||
|
_impl_.drop_database_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::DropDatabaseExpr* DropDatabaseTask::_internal_mutable_drop_database() {
|
||||||
|
|
||||||
|
if (_impl_.drop_database_ == nullptr) {
|
||||||
|
auto* p = CreateMaybeMessage<::greptime::v1::DropDatabaseExpr>(GetArenaForAllocation());
|
||||||
|
_impl_.drop_database_ = p;
|
||||||
|
}
|
||||||
|
return _impl_.drop_database_;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::DropDatabaseExpr* DropDatabaseTask::mutable_drop_database() {
|
||||||
|
::greptime::v1::DropDatabaseExpr* _msg = _internal_mutable_drop_database();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DropDatabaseTask.drop_database)
|
||||||
|
return _msg;
|
||||||
|
}
|
||||||
|
inline void DropDatabaseTask::set_allocated_drop_database(::greptime::v1::DropDatabaseExpr* drop_database) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
|
if (message_arena == nullptr) {
|
||||||
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.drop_database_);
|
||||||
|
}
|
||||||
|
if (drop_database) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||||
|
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(drop_database));
|
||||||
|
if (message_arena != submessage_arena) {
|
||||||
|
drop_database = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||||
|
message_arena, drop_database, submessage_arena);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
_impl_.drop_database_ = drop_database;
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DropDatabaseTask.drop_database)
|
||||||
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
// DdlTaskRequest
|
// DdlTaskRequest
|
||||||
|
|
||||||
// .greptime.v1.meta.RequestHeader header = 1;
|
// .greptime.v1.meta.RequestHeader header = 1;
|
||||||
@@ -2988,6 +3260,80 @@ inline ::greptime::v1::meta::AlterTableTasks* DdlTaskRequest::mutable_alter_tabl
|
|||||||
return _msg;
|
return _msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.meta.DropDatabaseTask drop_database_task = 9;
|
||||||
|
inline bool DdlTaskRequest::_internal_has_drop_database_task() const {
|
||||||
|
return task_case() == kDropDatabaseTask;
|
||||||
|
}
|
||||||
|
inline bool DdlTaskRequest::has_drop_database_task() const {
|
||||||
|
return _internal_has_drop_database_task();
|
||||||
|
}
|
||||||
|
inline void DdlTaskRequest::set_has_drop_database_task() {
|
||||||
|
_impl_._oneof_case_[0] = kDropDatabaseTask;
|
||||||
|
}
|
||||||
|
inline void DdlTaskRequest::clear_drop_database_task() {
|
||||||
|
if (_internal_has_drop_database_task()) {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.task_.drop_database_task_;
|
||||||
|
}
|
||||||
|
clear_has_task();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::meta::DropDatabaseTask* DdlTaskRequest::release_drop_database_task() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskRequest.drop_database_task)
|
||||||
|
if (_internal_has_drop_database_task()) {
|
||||||
|
clear_has_task();
|
||||||
|
::greptime::v1::meta::DropDatabaseTask* temp = _impl_.task_.drop_database_task_;
|
||||||
|
if (GetArenaForAllocation() != nullptr) {
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
}
|
||||||
|
_impl_.task_.drop_database_task_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::meta::DropDatabaseTask& DdlTaskRequest::_internal_drop_database_task() const {
|
||||||
|
return _internal_has_drop_database_task()
|
||||||
|
? *_impl_.task_.drop_database_task_
|
||||||
|
: reinterpret_cast< ::greptime::v1::meta::DropDatabaseTask&>(::greptime::v1::meta::_DropDatabaseTask_default_instance_);
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::meta::DropDatabaseTask& DdlTaskRequest::drop_database_task() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskRequest.drop_database_task)
|
||||||
|
return _internal_drop_database_task();
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::meta::DropDatabaseTask* DdlTaskRequest::unsafe_arena_release_drop_database_task() {
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.meta.DdlTaskRequest.drop_database_task)
|
||||||
|
if (_internal_has_drop_database_task()) {
|
||||||
|
clear_has_task();
|
||||||
|
::greptime::v1::meta::DropDatabaseTask* temp = _impl_.task_.drop_database_task_;
|
||||||
|
_impl_.task_.drop_database_task_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline void DdlTaskRequest::unsafe_arena_set_allocated_drop_database_task(::greptime::v1::meta::DropDatabaseTask* drop_database_task) {
|
||||||
|
clear_task();
|
||||||
|
if (drop_database_task) {
|
||||||
|
set_has_drop_database_task();
|
||||||
|
_impl_.task_.drop_database_task_ = drop_database_task;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskRequest.drop_database_task)
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::meta::DropDatabaseTask* DdlTaskRequest::_internal_mutable_drop_database_task() {
|
||||||
|
if (!_internal_has_drop_database_task()) {
|
||||||
|
clear_task();
|
||||||
|
set_has_drop_database_task();
|
||||||
|
_impl_.task_.drop_database_task_ = CreateMaybeMessage< ::greptime::v1::meta::DropDatabaseTask >(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
return _impl_.task_.drop_database_task_;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::meta::DropDatabaseTask* DdlTaskRequest::mutable_drop_database_task() {
|
||||||
|
::greptime::v1::meta::DropDatabaseTask* _msg = _internal_mutable_drop_database_task();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskRequest.drop_database_task)
|
||||||
|
return _msg;
|
||||||
|
}
|
||||||
|
|
||||||
inline bool DdlTaskRequest::has_task() const {
|
inline bool DdlTaskRequest::has_task() const {
|
||||||
return task_case() != TASK_NOT_SET;
|
return task_case() != TASK_NOT_SET;
|
||||||
}
|
}
|
||||||
@@ -3312,6 +3658,8 @@ DdlTaskResponse::table_ids() const {
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
|
|||||||
+211
-127
@@ -77,7 +77,7 @@ func (x AddColumnLocation_LocationType) Number() protoreflect.EnumNumber {
|
|||||||
|
|
||||||
// Deprecated: Use AddColumnLocation_LocationType.Descriptor instead.
|
// Deprecated: Use AddColumnLocation_LocationType.Descriptor instead.
|
||||||
func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) {
|
func (AddColumnLocation_LocationType) EnumDescriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13, 0}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14, 0}
|
||||||
}
|
}
|
||||||
|
|
||||||
// "Data Definition Language" requests, that create, modify or delete the
|
// "Data Definition Language" requests, that create, modify or delete the
|
||||||
@@ -666,6 +666,69 @@ func (x *TruncateTableExpr) GetTableId() *TableId {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DropDatabaseExpr 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"`
|
||||||
|
DropIfExists bool `protobuf:"varint,3,opt,name=drop_if_exists,json=dropIfExists,proto3" json:"drop_if_exists,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DropDatabaseExpr) Reset() {
|
||||||
|
*x = DropDatabaseExpr{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_ddl_proto_msgTypes[6]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DropDatabaseExpr) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DropDatabaseExpr) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DropDatabaseExpr) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_ddl_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 DropDatabaseExpr.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DropDatabaseExpr) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{6}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DropDatabaseExpr) GetCatalogName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.CatalogName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DropDatabaseExpr) GetSchemaName() string {
|
||||||
|
if x != nil {
|
||||||
|
return x.SchemaName
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DropDatabaseExpr) GetDropIfExists() bool {
|
||||||
|
if x != nil {
|
||||||
|
return x.DropIfExists
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
type AddColumns struct {
|
type AddColumns struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -677,7 +740,7 @@ type AddColumns struct {
|
|||||||
func (x *AddColumns) Reset() {
|
func (x *AddColumns) Reset() {
|
||||||
*x = AddColumns{}
|
*x = AddColumns{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[6]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -690,7 +753,7 @@ func (x *AddColumns) String() string {
|
|||||||
func (*AddColumns) ProtoMessage() {}
|
func (*AddColumns) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AddColumns) ProtoReflect() protoreflect.Message {
|
func (x *AddColumns) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[6]
|
mi := &file_greptime_v1_ddl_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 {
|
||||||
@@ -703,7 +766,7 @@ func (x *AddColumns) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AddColumns.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AddColumns.ProtoReflect.Descriptor instead.
|
||||||
func (*AddColumns) Descriptor() ([]byte, []int) {
|
func (*AddColumns) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{6}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AddColumns) GetAddColumns() []*AddColumn {
|
func (x *AddColumns) GetAddColumns() []*AddColumn {
|
||||||
@@ -724,7 +787,7 @@ type DropColumns struct {
|
|||||||
func (x *DropColumns) Reset() {
|
func (x *DropColumns) Reset() {
|
||||||
*x = DropColumns{}
|
*x = DropColumns{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -737,7 +800,7 @@ func (x *DropColumns) String() string {
|
|||||||
func (*DropColumns) ProtoMessage() {}
|
func (*DropColumns) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DropColumns) ProtoReflect() protoreflect.Message {
|
func (x *DropColumns) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[7]
|
mi := &file_greptime_v1_ddl_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 {
|
||||||
@@ -750,7 +813,7 @@ func (x *DropColumns) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DropColumns.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DropColumns.ProtoReflect.Descriptor instead.
|
||||||
func (*DropColumns) Descriptor() ([]byte, []int) {
|
func (*DropColumns) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{7}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DropColumns) GetDropColumns() []*DropColumn {
|
func (x *DropColumns) GetDropColumns() []*DropColumn {
|
||||||
@@ -771,7 +834,7 @@ type RenameTable struct {
|
|||||||
func (x *RenameTable) Reset() {
|
func (x *RenameTable) Reset() {
|
||||||
*x = RenameTable{}
|
*x = RenameTable{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[8]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[9]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -784,7 +847,7 @@ func (x *RenameTable) String() string {
|
|||||||
func (*RenameTable) ProtoMessage() {}
|
func (*RenameTable) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *RenameTable) ProtoReflect() protoreflect.Message {
|
func (x *RenameTable) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[8]
|
mi := &file_greptime_v1_ddl_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 {
|
||||||
@@ -797,7 +860,7 @@ func (x *RenameTable) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use RenameTable.ProtoReflect.Descriptor instead.
|
// Deprecated: Use RenameTable.ProtoReflect.Descriptor instead.
|
||||||
func (*RenameTable) Descriptor() ([]byte, []int) {
|
func (*RenameTable) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{8}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *RenameTable) GetNewTableName() string {
|
func (x *RenameTable) GetNewTableName() string {
|
||||||
@@ -819,7 +882,7 @@ type AddColumn struct {
|
|||||||
func (x *AddColumn) Reset() {
|
func (x *AddColumn) Reset() {
|
||||||
*x = AddColumn{}
|
*x = AddColumn{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[9]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[10]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -832,7 +895,7 @@ func (x *AddColumn) String() string {
|
|||||||
func (*AddColumn) ProtoMessage() {}
|
func (*AddColumn) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AddColumn) ProtoReflect() protoreflect.Message {
|
func (x *AddColumn) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[9]
|
mi := &file_greptime_v1_ddl_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 {
|
||||||
@@ -845,7 +908,7 @@ func (x *AddColumn) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AddColumn.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AddColumn.ProtoReflect.Descriptor instead.
|
||||||
func (*AddColumn) Descriptor() ([]byte, []int) {
|
func (*AddColumn) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{9}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AddColumn) GetColumnDef() *ColumnDef {
|
func (x *AddColumn) GetColumnDef() *ColumnDef {
|
||||||
@@ -873,7 +936,7 @@ type DropColumn struct {
|
|||||||
func (x *DropColumn) Reset() {
|
func (x *DropColumn) Reset() {
|
||||||
*x = DropColumn{}
|
*x = DropColumn{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[10]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[11]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -886,7 +949,7 @@ func (x *DropColumn) String() string {
|
|||||||
func (*DropColumn) ProtoMessage() {}
|
func (*DropColumn) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[10]
|
mi := &file_greptime_v1_ddl_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 {
|
||||||
@@ -899,7 +962,7 @@ func (x *DropColumn) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DropColumn.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DropColumn.ProtoReflect.Descriptor instead.
|
||||||
func (*DropColumn) Descriptor() ([]byte, []int) {
|
func (*DropColumn) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{10}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DropColumn) GetName() string {
|
func (x *DropColumn) GetName() string {
|
||||||
@@ -920,7 +983,7 @@ type TableId struct {
|
|||||||
func (x *TableId) Reset() {
|
func (x *TableId) Reset() {
|
||||||
*x = TableId{}
|
*x = TableId{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[11]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[12]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -933,7 +996,7 @@ func (x *TableId) String() string {
|
|||||||
func (*TableId) ProtoMessage() {}
|
func (*TableId) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *TableId) ProtoReflect() protoreflect.Message {
|
func (x *TableId) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[11]
|
mi := &file_greptime_v1_ddl_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 {
|
||||||
@@ -946,7 +1009,7 @@ func (x *TableId) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use TableId.ProtoReflect.Descriptor instead.
|
// Deprecated: Use TableId.ProtoReflect.Descriptor instead.
|
||||||
func (*TableId) Descriptor() ([]byte, []int) {
|
func (*TableId) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{11}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *TableId) GetId() uint32 {
|
func (x *TableId) GetId() uint32 {
|
||||||
@@ -974,7 +1037,7 @@ type ColumnDef struct {
|
|||||||
func (x *ColumnDef) Reset() {
|
func (x *ColumnDef) Reset() {
|
||||||
*x = ColumnDef{}
|
*x = ColumnDef{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[12]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[13]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -987,7 +1050,7 @@ func (x *ColumnDef) String() string {
|
|||||||
func (*ColumnDef) ProtoMessage() {}
|
func (*ColumnDef) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *ColumnDef) ProtoReflect() protoreflect.Message {
|
func (x *ColumnDef) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[12]
|
mi := &file_greptime_v1_ddl_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 {
|
||||||
@@ -1000,7 +1063,7 @@ func (x *ColumnDef) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead.
|
// Deprecated: Use ColumnDef.ProtoReflect.Descriptor instead.
|
||||||
func (*ColumnDef) Descriptor() ([]byte, []int) {
|
func (*ColumnDef) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{12}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *ColumnDef) GetName() string {
|
func (x *ColumnDef) GetName() string {
|
||||||
@@ -1064,7 +1127,7 @@ type AddColumnLocation struct {
|
|||||||
func (x *AddColumnLocation) Reset() {
|
func (x *AddColumnLocation) Reset() {
|
||||||
*x = AddColumnLocation{}
|
*x = AddColumnLocation{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[13]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[14]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -1077,7 +1140,7 @@ func (x *AddColumnLocation) String() string {
|
|||||||
func (*AddColumnLocation) ProtoMessage() {}
|
func (*AddColumnLocation) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *AddColumnLocation) ProtoReflect() protoreflect.Message {
|
func (x *AddColumnLocation) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_ddl_proto_msgTypes[13]
|
mi := &file_greptime_v1_ddl_proto_msgTypes[14]
|
||||||
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 {
|
||||||
@@ -1090,7 +1153,7 @@ func (x *AddColumnLocation) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead.
|
// Deprecated: Use AddColumnLocation.ProtoReflect.Descriptor instead.
|
||||||
func (*AddColumnLocation) Descriptor() ([]byte, []int) {
|
func (*AddColumnLocation) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{13}
|
return file_greptime_v1_ddl_proto_rawDescGZIP(), []int{14}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType {
|
func (x *AddColumnLocation) GetLocationType() AddColumnLocation_LocationType {
|
||||||
@@ -1226,70 +1289,78 @@ var file_greptime_v1_ddl_proto_rawDesc = []byte{
|
|||||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62,
|
0x74, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x08, 0x74, 0x61, 0x62,
|
||||||
0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72,
|
0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x72,
|
||||||
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49,
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49,
|
||||||
0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64,
|
0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x22, 0x7c, 0x0a, 0x10, 0x44, 0x72,
|
||||||
0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f,
|
0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70, 0x72, 0x12, 0x21,
|
||||||
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e,
|
0x0a, 0x0c, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43,
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x61, 0x74, 0x61, 0x6c, 0x6f, 0x67, 0x4e, 0x61, 0x6d,
|
||||||
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
|
0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
|
||||||
0x73, 0x22, 0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x4e, 0x61,
|
||||||
0x12, 0x3a, 0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73,
|
0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x69, 0x66, 0x5f, 0x65, 0x78,
|
||||||
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
0x69, 0x73, 0x74, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70,
|
||||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52,
|
0x49, 0x66, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x22, 0x45, 0x0a, 0x0a, 0x41, 0x64, 0x64, 0x43,
|
||||||
0x0b, 0x64, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b,
|
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x37, 0x0a, 0x0b, 0x61, 0x64, 0x64, 0x5f, 0x63, 0x6f,
|
||||||
0x52, 0x65, 0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e,
|
0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72,
|
||||||
0x65, 0x77, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c,
|
||||||
0x01, 0x28, 0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d,
|
0x75, 0x6d, 0x6e, 0x52, 0x0a, 0x61, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22,
|
||||||
0x65, 0x22, 0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35,
|
0x49, 0x0a, 0x0b, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x12, 0x3a,
|
||||||
0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01,
|
0x0a, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x18, 0x01,
|
||||||
0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||||
0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75,
|
0x76, 0x31, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x52, 0x0b, 0x64,
|
||||||
0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x73, 0x22, 0x33, 0x0a, 0x0b, 0x52, 0x65,
|
||||||
0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
0x6e, 0x61, 0x6d, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x6e, 0x65, 0x77,
|
||||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c,
|
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||||
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
|
0x09, 0x52, 0x0c, 0x6e, 0x65, 0x77, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22,
|
||||||
0x6e, 0x22, 0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12,
|
0x7e, 0x0a, 0x09, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x35, 0x0a, 0x0a,
|
||||||
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
|
0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, 0x64, 0x65, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
|
||||||
0x61, 0x6d, 0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e,
|
0x32, 0x16, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
|
||||||
0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd8,
|
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x52, 0x09, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e,
|
||||||
0x02, 0x0a, 0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04,
|
0x44, 0x65, 0x66, 0x12, 0x3a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
|
||||||
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x12, 0x38, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20,
|
0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63,
|
||||||
0x01, 0x28, 0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22,
|
||||||
0x31, 0x2e, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65,
|
0x20, 0x0a, 0x0a, 0x44, 0x72, 0x6f, 0x70, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x12, 0x12, 0x0a,
|
||||||
0x52, 0x08, 0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73,
|
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
|
||||||
0x5f, 0x6e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
|
0x65, 0x22, 0x19, 0x0a, 0x07, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02,
|
||||||
0x0a, 0x69, 0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64,
|
0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x22, 0xd8, 0x02, 0x0a,
|
||||||
0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e,
|
0x09, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x65, 0x66, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
|
||||||
0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
|
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38,
|
||||||
0x43, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65,
|
0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
||||||
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28,
|
0x0e, 0x32, 0x1b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||||
0x0e, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x52, 0x08,
|
||||||
0x53, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65,
|
0x64, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x73, 0x5f, 0x6e,
|
||||||
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
|
0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x69,
|
||||||
0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d,
|
0x73, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x64, 0x65, 0x66,
|
||||||
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65,
|
0x61, 0x75, 0x6c, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x18,
|
||||||
0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b,
|
0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x11, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x43, 0x6f,
|
||||||
0x32, 0x24, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43,
|
0x6e, 0x73, 0x74, 0x72, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0d, 0x73, 0x65, 0x6d, 0x61,
|
||||||
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74,
|
0x6e, 0x74, 0x69, 0x63, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,
|
||||||
0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65,
|
0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65,
|
||||||
0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64,
|
0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0c, 0x73, 0x65, 0x6d, 0x61,
|
||||||
0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
|
0x6e, 0x74, 0x69, 0x63, 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
|
||||||
0x50, 0x0a, 0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65,
|
0x65, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
|
||||||
0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
0x6e, 0x74, 0x12, 0x53, 0x0a, 0x12, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x65,
|
||||||
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f,
|
0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24,
|
||||||
0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54,
|
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6c,
|
||||||
0x79, 0x70, 0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70,
|
0x75, 0x6d, 0x6e, 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x78, 0x74, 0x65, 0x6e,
|
||||||
0x65, 0x12, 0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d,
|
0x73, 0x69, 0x6f, 0x6e, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x74, 0x79, 0x70, 0x65, 0x45, 0x78,
|
||||||
0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66,
|
0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0xb7, 0x01, 0x0a, 0x11, 0x41, 0x64, 0x64, 0x43,
|
||||||
0x74, 0x65, 0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a,
|
0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x50, 0x0a,
|
||||||
0x0c, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a,
|
0x0d, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
|
||||||
0x05, 0x46, 0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45,
|
0x20, 0x01, 0x28, 0x0e, 0x32, 0x2b, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e,
|
||||||
0x52, 0x10, 0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
0x76, 0x31, 0x2e, 0x41, 0x64, 0x64, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4c, 0x6f, 0x63, 0x61,
|
||||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68,
|
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x4c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70,
|
||||||
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54,
|
0x65, 0x52, 0x0c, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12,
|
||||||
0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f,
|
0x2a, 0x0a, 0x11, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f,
|
||||||
0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76,
|
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x61, 0x66, 0x74, 0x65,
|
||||||
0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x72, 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x4c,
|
||||||
|
0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x46,
|
||||||
|
0x49, 0x52, 0x53, 0x54, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x46, 0x54, 0x45, 0x52, 0x10,
|
||||||
|
0x01, 0x42, 0x4c, 0x0a, 0x0e, 0x69, 0x6f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
|
0x2e, 0x76, 0x31, 0x42, 0x03, 0x44, 0x64, 0x6c, 0x5a, 0x35, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62,
|
||||||
|
0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61,
|
||||||
|
0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
||||||
|
0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x62,
|
||||||
|
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -1305,7 +1376,7 @@ func file_greptime_v1_ddl_proto_rawDescGZIP() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
var file_greptime_v1_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
var file_greptime_v1_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 17)
|
||||||
var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
||||||
(AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType
|
(AddColumnLocation_LocationType)(0), // 0: greptime.v1.AddColumnLocation.LocationType
|
||||||
(*DdlRequest)(nil), // 1: greptime.v1.DdlRequest
|
(*DdlRequest)(nil), // 1: greptime.v1.DdlRequest
|
||||||
@@ -1314,19 +1385,20 @@ var file_greptime_v1_ddl_proto_goTypes = []interface{}{
|
|||||||
(*DropTableExpr)(nil), // 4: greptime.v1.DropTableExpr
|
(*DropTableExpr)(nil), // 4: greptime.v1.DropTableExpr
|
||||||
(*CreateDatabaseExpr)(nil), // 5: greptime.v1.CreateDatabaseExpr
|
(*CreateDatabaseExpr)(nil), // 5: greptime.v1.CreateDatabaseExpr
|
||||||
(*TruncateTableExpr)(nil), // 6: greptime.v1.TruncateTableExpr
|
(*TruncateTableExpr)(nil), // 6: greptime.v1.TruncateTableExpr
|
||||||
(*AddColumns)(nil), // 7: greptime.v1.AddColumns
|
(*DropDatabaseExpr)(nil), // 7: greptime.v1.DropDatabaseExpr
|
||||||
(*DropColumns)(nil), // 8: greptime.v1.DropColumns
|
(*AddColumns)(nil), // 8: greptime.v1.AddColumns
|
||||||
(*RenameTable)(nil), // 9: greptime.v1.RenameTable
|
(*DropColumns)(nil), // 9: greptime.v1.DropColumns
|
||||||
(*AddColumn)(nil), // 10: greptime.v1.AddColumn
|
(*RenameTable)(nil), // 10: greptime.v1.RenameTable
|
||||||
(*DropColumn)(nil), // 11: greptime.v1.DropColumn
|
(*AddColumn)(nil), // 11: greptime.v1.AddColumn
|
||||||
(*TableId)(nil), // 12: greptime.v1.TableId
|
(*DropColumn)(nil), // 12: greptime.v1.DropColumn
|
||||||
(*ColumnDef)(nil), // 13: greptime.v1.ColumnDef
|
(*TableId)(nil), // 13: greptime.v1.TableId
|
||||||
(*AddColumnLocation)(nil), // 14: greptime.v1.AddColumnLocation
|
(*ColumnDef)(nil), // 14: greptime.v1.ColumnDef
|
||||||
nil, // 15: greptime.v1.CreateTableExpr.TableOptionsEntry
|
(*AddColumnLocation)(nil), // 15: greptime.v1.AddColumnLocation
|
||||||
nil, // 16: greptime.v1.CreateDatabaseExpr.OptionsEntry
|
nil, // 16: greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||||
(ColumnDataType)(0), // 17: greptime.v1.ColumnDataType
|
nil, // 17: greptime.v1.CreateDatabaseExpr.OptionsEntry
|
||||||
(SemanticType)(0), // 18: greptime.v1.SemanticType
|
(ColumnDataType)(0), // 18: greptime.v1.ColumnDataType
|
||||||
(*ColumnDataTypeExtension)(nil), // 19: greptime.v1.ColumnDataTypeExtension
|
(SemanticType)(0), // 19: greptime.v1.SemanticType
|
||||||
|
(*ColumnDataTypeExtension)(nil), // 20: greptime.v1.ColumnDataTypeExtension
|
||||||
}
|
}
|
||||||
var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
||||||
5, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
5, // 0: greptime.v1.DdlRequest.create_database:type_name -> greptime.v1.CreateDatabaseExpr
|
||||||
@@ -1334,22 +1406,22 @@ var file_greptime_v1_ddl_proto_depIdxs = []int32{
|
|||||||
3, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr
|
3, // 2: greptime.v1.DdlRequest.alter:type_name -> greptime.v1.AlterExpr
|
||||||
4, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
|
4, // 3: greptime.v1.DdlRequest.drop_table:type_name -> greptime.v1.DropTableExpr
|
||||||
6, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
6, // 4: greptime.v1.DdlRequest.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
||||||
13, // 5: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
|
14, // 5: greptime.v1.CreateTableExpr.column_defs:type_name -> greptime.v1.ColumnDef
|
||||||
15, // 6: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
|
16, // 6: greptime.v1.CreateTableExpr.table_options:type_name -> greptime.v1.CreateTableExpr.TableOptionsEntry
|
||||||
12, // 7: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
|
13, // 7: greptime.v1.CreateTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||||
7, // 8: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
|
8, // 8: greptime.v1.AlterExpr.add_columns:type_name -> greptime.v1.AddColumns
|
||||||
8, // 9: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
|
9, // 9: greptime.v1.AlterExpr.drop_columns:type_name -> greptime.v1.DropColumns
|
||||||
9, // 10: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
|
10, // 10: greptime.v1.AlterExpr.rename_table:type_name -> greptime.v1.RenameTable
|
||||||
12, // 11: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
|
13, // 11: greptime.v1.DropTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||||
16, // 12: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
|
17, // 12: greptime.v1.CreateDatabaseExpr.options:type_name -> greptime.v1.CreateDatabaseExpr.OptionsEntry
|
||||||
12, // 13: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
|
13, // 13: greptime.v1.TruncateTableExpr.table_id:type_name -> greptime.v1.TableId
|
||||||
10, // 14: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
|
11, // 14: greptime.v1.AddColumns.add_columns:type_name -> greptime.v1.AddColumn
|
||||||
11, // 15: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
|
12, // 15: greptime.v1.DropColumns.drop_columns:type_name -> greptime.v1.DropColumn
|
||||||
13, // 16: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
|
14, // 16: greptime.v1.AddColumn.column_def:type_name -> greptime.v1.ColumnDef
|
||||||
14, // 17: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
|
15, // 17: greptime.v1.AddColumn.location:type_name -> greptime.v1.AddColumnLocation
|
||||||
17, // 18: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
|
18, // 18: greptime.v1.ColumnDef.data_type:type_name -> greptime.v1.ColumnDataType
|
||||||
18, // 19: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
|
19, // 19: greptime.v1.ColumnDef.semantic_type:type_name -> greptime.v1.SemanticType
|
||||||
19, // 20: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
20, // 20: greptime.v1.ColumnDef.datatype_extension:type_name -> greptime.v1.ColumnDataTypeExtension
|
||||||
0, // 21: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
|
0, // 21: greptime.v1.AddColumnLocation.location_type:type_name -> greptime.v1.AddColumnLocation.LocationType
|
||||||
22, // [22:22] is the sub-list for method output_type
|
22, // [22:22] is the sub-list for method output_type
|
||||||
22, // [22:22] is the sub-list for method input_type
|
22, // [22:22] is the sub-list for method input_type
|
||||||
@@ -1438,7 +1510,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AddColumns); i {
|
switch v := v.(*DropDatabaseExpr); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1450,7 +1522,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DropColumns); i {
|
switch v := v.(*AddColumns); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1462,7 +1534,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*RenameTable); i {
|
switch v := v.(*DropColumns); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1474,7 +1546,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AddColumn); i {
|
switch v := v.(*RenameTable); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1486,7 +1558,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DropColumn); i {
|
switch v := v.(*AddColumn); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1498,7 +1570,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*TableId); i {
|
switch v := v.(*DropColumn); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1510,7 +1582,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*ColumnDef); i {
|
switch v := v.(*TableId); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -1522,6 +1594,18 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_ddl_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*ColumnDef); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_ddl_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*AddColumnLocation); i {
|
switch v := v.(*AddColumnLocation); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -1552,7 +1636,7 @@ func file_greptime_v1_ddl_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
|
RawDescriptor: file_greptime_v1_ddl_proto_rawDesc,
|
||||||
NumEnums: 1,
|
NumEnums: 1,
|
||||||
NumMessages: 16,
|
NumMessages: 17,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
+194
-105
@@ -426,6 +426,53 @@ func (x *TruncateTableTask) GetTruncateTable() *v1.TruncateTableExpr {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DropDatabaseTask struct {
|
||||||
|
state protoimpl.MessageState
|
||||||
|
sizeCache protoimpl.SizeCache
|
||||||
|
unknownFields protoimpl.UnknownFields
|
||||||
|
|
||||||
|
DropDatabase *v1.DropDatabaseExpr `protobuf:"bytes,1,opt,name=drop_database,json=dropDatabase,proto3" json:"drop_database,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DropDatabaseTask) Reset() {
|
||||||
|
*x = DropDatabaseTask{}
|
||||||
|
if protoimpl.UnsafeEnabled {
|
||||||
|
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7]
|
||||||
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
|
ms.StoreMessageInfo(mi)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DropDatabaseTask) String() string {
|
||||||
|
return protoimpl.X.MessageStringOf(x)
|
||||||
|
}
|
||||||
|
|
||||||
|
func (*DropDatabaseTask) ProtoMessage() {}
|
||||||
|
|
||||||
|
func (x *DropDatabaseTask) ProtoReflect() protoreflect.Message {
|
||||||
|
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7]
|
||||||
|
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 DropDatabaseTask.ProtoReflect.Descriptor instead.
|
||||||
|
func (*DropDatabaseTask) Descriptor() ([]byte, []int) {
|
||||||
|
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{7}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (x *DropDatabaseTask) GetDropDatabase() *v1.DropDatabaseExpr {
|
||||||
|
if x != nil {
|
||||||
|
return x.DropDatabase
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type DdlTaskRequest struct {
|
type DdlTaskRequest struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -441,13 +488,14 @@ type DdlTaskRequest struct {
|
|||||||
// *DdlTaskRequest_CreateTableTasks
|
// *DdlTaskRequest_CreateTableTasks
|
||||||
// *DdlTaskRequest_DropTableTasks
|
// *DdlTaskRequest_DropTableTasks
|
||||||
// *DdlTaskRequest_AlterTableTasks
|
// *DdlTaskRequest_AlterTableTasks
|
||||||
|
// *DdlTaskRequest_DropDatabaseTask
|
||||||
Task isDdlTaskRequest_Task `protobuf_oneof:"task"`
|
Task isDdlTaskRequest_Task `protobuf_oneof:"task"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DdlTaskRequest) Reset() {
|
func (x *DdlTaskRequest) Reset() {
|
||||||
*x = DdlTaskRequest{}
|
*x = DdlTaskRequest{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7]
|
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -460,7 +508,7 @@ func (x *DdlTaskRequest) String() string {
|
|||||||
func (*DdlTaskRequest) ProtoMessage() {}
|
func (*DdlTaskRequest) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message {
|
func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[7]
|
mi := &file_greptime_v1_meta_ddl_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 {
|
||||||
@@ -473,7 +521,7 @@ func (x *DdlTaskRequest) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DdlTaskRequest.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DdlTaskRequest.ProtoReflect.Descriptor instead.
|
||||||
func (*DdlTaskRequest) Descriptor() ([]byte, []int) {
|
func (*DdlTaskRequest) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{7}
|
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DdlTaskRequest) GetHeader() *RequestHeader {
|
func (x *DdlTaskRequest) GetHeader() *RequestHeader {
|
||||||
@@ -539,6 +587,13 @@ func (x *DdlTaskRequest) GetAlterTableTasks() *AlterTableTasks {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (x *DdlTaskRequest) GetDropDatabaseTask() *DropDatabaseTask {
|
||||||
|
if x, ok := x.GetTask().(*DdlTaskRequest_DropDatabaseTask); ok {
|
||||||
|
return x.DropDatabaseTask
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
type isDdlTaskRequest_Task interface {
|
type isDdlTaskRequest_Task interface {
|
||||||
isDdlTaskRequest_Task()
|
isDdlTaskRequest_Task()
|
||||||
}
|
}
|
||||||
@@ -571,6 +626,10 @@ type DdlTaskRequest_AlterTableTasks struct {
|
|||||||
AlterTableTasks *AlterTableTasks `protobuf:"bytes,8,opt,name=alter_table_tasks,json=alterTableTasks,proto3,oneof"`
|
AlterTableTasks *AlterTableTasks `protobuf:"bytes,8,opt,name=alter_table_tasks,json=alterTableTasks,proto3,oneof"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type DdlTaskRequest_DropDatabaseTask struct {
|
||||||
|
DropDatabaseTask *DropDatabaseTask `protobuf:"bytes,9,opt,name=drop_database_task,json=dropDatabaseTask,proto3,oneof"`
|
||||||
|
}
|
||||||
|
|
||||||
func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {}
|
func (*DdlTaskRequest_CreateTableTask) isDdlTaskRequest_Task() {}
|
||||||
|
|
||||||
func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {}
|
func (*DdlTaskRequest_DropTableTask) isDdlTaskRequest_Task() {}
|
||||||
@@ -585,6 +644,8 @@ func (*DdlTaskRequest_DropTableTasks) isDdlTaskRequest_Task() {}
|
|||||||
|
|
||||||
func (*DdlTaskRequest_AlterTableTasks) isDdlTaskRequest_Task() {}
|
func (*DdlTaskRequest_AlterTableTasks) isDdlTaskRequest_Task() {}
|
||||||
|
|
||||||
|
func (*DdlTaskRequest_DropDatabaseTask) isDdlTaskRequest_Task() {}
|
||||||
|
|
||||||
type DdlTaskResponse struct {
|
type DdlTaskResponse struct {
|
||||||
state protoimpl.MessageState
|
state protoimpl.MessageState
|
||||||
sizeCache protoimpl.SizeCache
|
sizeCache protoimpl.SizeCache
|
||||||
@@ -602,7 +663,7 @@ type DdlTaskResponse struct {
|
|||||||
func (x *DdlTaskResponse) Reset() {
|
func (x *DdlTaskResponse) Reset() {
|
||||||
*x = DdlTaskResponse{}
|
*x = DdlTaskResponse{}
|
||||||
if protoimpl.UnsafeEnabled {
|
if protoimpl.UnsafeEnabled {
|
||||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8]
|
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[9]
|
||||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||||
ms.StoreMessageInfo(mi)
|
ms.StoreMessageInfo(mi)
|
||||||
}
|
}
|
||||||
@@ -615,7 +676,7 @@ func (x *DdlTaskResponse) String() string {
|
|||||||
func (*DdlTaskResponse) ProtoMessage() {}
|
func (*DdlTaskResponse) ProtoMessage() {}
|
||||||
|
|
||||||
func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message {
|
func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message {
|
||||||
mi := &file_greptime_v1_meta_ddl_proto_msgTypes[8]
|
mi := &file_greptime_v1_meta_ddl_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 {
|
||||||
@@ -628,7 +689,7 @@ func (x *DdlTaskResponse) ProtoReflect() protoreflect.Message {
|
|||||||
|
|
||||||
// Deprecated: Use DdlTaskResponse.ProtoReflect.Descriptor instead.
|
// Deprecated: Use DdlTaskResponse.ProtoReflect.Descriptor instead.
|
||||||
func (*DdlTaskResponse) Descriptor() ([]byte, []int) {
|
func (*DdlTaskResponse) Descriptor() ([]byte, []int) {
|
||||||
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{8}
|
return file_greptime_v1_meta_ddl_proto_rawDescGZIP(), []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *DdlTaskResponse) GetHeader() *ResponseHeader {
|
func (x *DdlTaskResponse) GetHeader() *ResponseHeader {
|
||||||
@@ -710,69 +771,80 @@ var file_greptime_v1_meta_ddl_proto_rawDesc = []byte{
|
|||||||
0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||||
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54,
|
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54,
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61,
|
0x61, 0x62, 0x6c, 0x65, 0x45, 0x78, 0x70, 0x72, 0x52, 0x0d, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61,
|
||||||
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x85, 0x05, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54,
|
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x56, 0x0a, 0x10, 0x44, 0x72, 0x6f, 0x70, 0x44,
|
||||||
0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65,
|
0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x42, 0x0a, 0x0d, 0x64,
|
||||||
0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65,
|
0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65,
|
0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||||
0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61,
|
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x45, 0x78, 0x70,
|
||||||
0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61,
|
0x72, 0x52, 0x0c, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x22,
|
||||||
0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21,
|
0xd9, 0x05, 0x0a, 0x0e, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x71, 0x75, 0x65,
|
||||||
0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74,
|
0x73, 0x74, 0x12, 0x37, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01,
|
||||||
0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73,
|
0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||||
0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x65, 0x61,
|
||||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62,
|
0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x4f, 0x0a, 0x11, 0x63,
|
||||||
0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e,
|
0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b,
|
||||||
0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61,
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00,
|
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
||||||
0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12,
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x72, 0x65,
|
||||||
0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74,
|
0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x49, 0x0a, 0x0f,
|
||||||
0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18,
|
||||||
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74,
|
0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65,
|
||||||
0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61,
|
0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62,
|
||||||
0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a,
|
0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0d, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61,
|
||||||
0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f,
|
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x4c, 0x0a, 0x10, 0x61, 0x6c, 0x74, 0x65, 0x72,
|
||||||
0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65,
|
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x04, 0x20, 0x01, 0x28,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72,
|
0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
||||||
0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48,
|
|
||||||
0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
|
||||||
0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74,
|
|
||||||
0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b,
|
|
||||||
0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
|
||||||
0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
|
||||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61,
|
|
||||||
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70,
|
|
||||||
0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01,
|
|
||||||
0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
|
||||||
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
|
||||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e, 0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c,
|
|
||||||
0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f, 0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f,
|
|
||||||
0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28,
|
|
||||||
0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e,
|
|
||||||
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54,
|
||||||
0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62,
|
0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x0e, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c,
|
||||||
0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22,
|
0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x55, 0x0a, 0x13, 0x74, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74,
|
||||||
0xea, 0x01, 0x0a, 0x0f, 0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x05, 0x20, 0x01,
|
||||||
0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20,
|
0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31,
|
||||||
0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x72, 0x75, 0x6e, 0x63, 0x61, 0x74, 0x65, 0x54, 0x61,
|
||||||
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48,
|
0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48, 0x00, 0x52, 0x11, 0x74, 0x72, 0x75, 0x6e, 0x63,
|
||||||
0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a,
|
0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x52, 0x0a, 0x12,
|
||||||
0x03, 0x70, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65,
|
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x73,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72,
|
0x6b, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||||
0x6f, 0x63, 0x65, 0x64, 0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x34,
|
0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x43, 0x72, 0x65, 0x61,
|
||||||
0x0a, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
|
0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x10,
|
||||||
0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d,
|
0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73,
|
||||||
0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62,
|
0x12, 0x4c, 0x0a, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74,
|
||||||
0x6c, 0x65, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64,
|
0x61, 0x73, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x72, 0x65,
|
||||||
0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69,
|
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44, 0x72,
|
||||||
0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65,
|
0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0e,
|
||||||
0x49, 0x64, 0x52, 0x08, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b,
|
0x64, 0x72, 0x6f, 0x70, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12, 0x4f,
|
||||||
0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43,
|
0x0a, 0x11, 0x61, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x74, 0x61,
|
||||||
0x72, 0x65, 0x61, 0x74, 0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10,
|
0x73, 0x6b, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x72, 0x65, 0x70,
|
||||||
0x01, 0x42, 0x3c, 0x5a, 0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x41, 0x6c, 0x74,
|
||||||
0x47, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65,
|
0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x48, 0x00, 0x52, 0x0f,
|
||||||
0x70, 0x74, 0x69, 0x6d, 0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67,
|
0x61, 0x6c, 0x74, 0x65, 0x72, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x73, 0x12,
|
||||||
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62,
|
0x52, 0x0a, 0x12, 0x64, 0x72, 0x6f, 0x70, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
|
||||||
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x67, 0x72,
|
||||||
|
0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x44,
|
||||||
|
0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54, 0x61, 0x73, 0x6b, 0x48,
|
||||||
|
0x00, 0x52, 0x10, 0x64, 0x72, 0x6f, 0x70, 0x44, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65, 0x54,
|
||||||
|
0x61, 0x73, 0x6b, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x61, 0x73, 0x6b, 0x22, 0xea, 0x01, 0x0a, 0x0f,
|
||||||
|
0x44, 0x64, 0x6c, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
||||||
|
0x38, 0x0a, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
||||||
|
0x20, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65,
|
||||||
|
0x74, 0x61, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x65, 0x61, 0x64, 0x65,
|
||||||
|
0x72, 0x52, 0x06, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x03, 0x70, 0x69, 0x64,
|
||||||
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
|
0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x64,
|
||||||
|
0x75, 0x72, 0x65, 0x49, 0x64, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x34, 0x0a, 0x08, 0x74, 0x61,
|
||||||
|
0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67,
|
||||||
|
0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e,
|
||||||
|
0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x07, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64,
|
||||||
|
0x12, 0x36, 0x0a, 0x09, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x05, 0x20,
|
||||||
|
0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x76,
|
||||||
|
0x31, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x2e, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x52, 0x08,
|
||||||
|
0x74, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x64, 0x73, 0x2a, 0x23, 0x0a, 0x0b, 0x44, 0x64, 0x6c, 0x54,
|
||||||
|
0x61, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74,
|
||||||
|
0x65, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x44, 0x72, 0x6f, 0x70, 0x10, 0x01, 0x42, 0x3c, 0x5a,
|
||||||
|
0x3a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x72, 0x65, 0x70,
|
||||||
|
0x74, 0x69, 0x6d, 0x65, 0x54, 0x65, 0x61, 0x6d, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74, 0x69, 0x6d,
|
||||||
|
0x65, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x72, 0x65, 0x70, 0x74,
|
||||||
|
0x69, 0x6d, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
||||||
|
0x74, 0x6f, 0x33,
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
@@ -788,7 +860,7 @@ func file_greptime_v1_meta_ddl_proto_rawDescGZIP() []byte {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file_greptime_v1_meta_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
var file_greptime_v1_meta_ddl_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
||||||
var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
var file_greptime_v1_meta_ddl_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
||||||
var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
||||||
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
|
(DdlTaskType)(0), // 0: greptime.v1.meta.DdlTaskType
|
||||||
(*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask
|
(*CreateTableTask)(nil), // 1: greptime.v1.meta.CreateTableTask
|
||||||
@@ -798,44 +870,48 @@ var file_greptime_v1_meta_ddl_proto_goTypes = []interface{}{
|
|||||||
(*AlterTableTask)(nil), // 5: greptime.v1.meta.AlterTableTask
|
(*AlterTableTask)(nil), // 5: greptime.v1.meta.AlterTableTask
|
||||||
(*AlterTableTasks)(nil), // 6: greptime.v1.meta.AlterTableTasks
|
(*AlterTableTasks)(nil), // 6: greptime.v1.meta.AlterTableTasks
|
||||||
(*TruncateTableTask)(nil), // 7: greptime.v1.meta.TruncateTableTask
|
(*TruncateTableTask)(nil), // 7: greptime.v1.meta.TruncateTableTask
|
||||||
(*DdlTaskRequest)(nil), // 8: greptime.v1.meta.DdlTaskRequest
|
(*DropDatabaseTask)(nil), // 8: greptime.v1.meta.DropDatabaseTask
|
||||||
(*DdlTaskResponse)(nil), // 9: greptime.v1.meta.DdlTaskResponse
|
(*DdlTaskRequest)(nil), // 9: greptime.v1.meta.DdlTaskRequest
|
||||||
(*v1.CreateTableExpr)(nil), // 10: greptime.v1.CreateTableExpr
|
(*DdlTaskResponse)(nil), // 10: greptime.v1.meta.DdlTaskResponse
|
||||||
(*Partition)(nil), // 11: greptime.v1.meta.Partition
|
(*v1.CreateTableExpr)(nil), // 11: greptime.v1.CreateTableExpr
|
||||||
(*v1.DropTableExpr)(nil), // 12: greptime.v1.DropTableExpr
|
(*Partition)(nil), // 12: greptime.v1.meta.Partition
|
||||||
(*v1.AlterExpr)(nil), // 13: greptime.v1.AlterExpr
|
(*v1.DropTableExpr)(nil), // 13: greptime.v1.DropTableExpr
|
||||||
(*v1.TruncateTableExpr)(nil), // 14: greptime.v1.TruncateTableExpr
|
(*v1.AlterExpr)(nil), // 14: greptime.v1.AlterExpr
|
||||||
(*RequestHeader)(nil), // 15: greptime.v1.meta.RequestHeader
|
(*v1.TruncateTableExpr)(nil), // 15: greptime.v1.TruncateTableExpr
|
||||||
(*ResponseHeader)(nil), // 16: greptime.v1.meta.ResponseHeader
|
(*v1.DropDatabaseExpr)(nil), // 16: greptime.v1.DropDatabaseExpr
|
||||||
(*ProcedureId)(nil), // 17: greptime.v1.meta.ProcedureId
|
(*RequestHeader)(nil), // 17: greptime.v1.meta.RequestHeader
|
||||||
(*TableId)(nil), // 18: greptime.v1.meta.TableId
|
(*ResponseHeader)(nil), // 18: greptime.v1.meta.ResponseHeader
|
||||||
|
(*ProcedureId)(nil), // 19: greptime.v1.meta.ProcedureId
|
||||||
|
(*TableId)(nil), // 20: greptime.v1.meta.TableId
|
||||||
}
|
}
|
||||||
var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
|
var file_greptime_v1_meta_ddl_proto_depIdxs = []int32{
|
||||||
10, // 0: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
|
11, // 0: greptime.v1.meta.CreateTableTask.create_table:type_name -> greptime.v1.CreateTableExpr
|
||||||
11, // 1: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition
|
12, // 1: greptime.v1.meta.CreateTableTask.partitions:type_name -> greptime.v1.meta.Partition
|
||||||
1, // 2: greptime.v1.meta.CreateTableTasks.tasks:type_name -> greptime.v1.meta.CreateTableTask
|
1, // 2: greptime.v1.meta.CreateTableTasks.tasks:type_name -> greptime.v1.meta.CreateTableTask
|
||||||
12, // 3: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr
|
13, // 3: greptime.v1.meta.DropTableTask.drop_table:type_name -> greptime.v1.DropTableExpr
|
||||||
3, // 4: greptime.v1.meta.DropTableTasks.tasks:type_name -> greptime.v1.meta.DropTableTask
|
3, // 4: greptime.v1.meta.DropTableTasks.tasks:type_name -> greptime.v1.meta.DropTableTask
|
||||||
13, // 5: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr
|
14, // 5: greptime.v1.meta.AlterTableTask.alter_table:type_name -> greptime.v1.AlterExpr
|
||||||
5, // 6: greptime.v1.meta.AlterTableTasks.tasks:type_name -> greptime.v1.meta.AlterTableTask
|
5, // 6: greptime.v1.meta.AlterTableTasks.tasks:type_name -> greptime.v1.meta.AlterTableTask
|
||||||
14, // 7: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
15, // 7: greptime.v1.meta.TruncateTableTask.truncate_table:type_name -> greptime.v1.TruncateTableExpr
|
||||||
15, // 8: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
16, // 8: greptime.v1.meta.DropDatabaseTask.drop_database:type_name -> greptime.v1.DropDatabaseExpr
|
||||||
1, // 9: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
17, // 9: greptime.v1.meta.DdlTaskRequest.header:type_name -> greptime.v1.meta.RequestHeader
|
||||||
3, // 10: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
1, // 10: greptime.v1.meta.DdlTaskRequest.create_table_task:type_name -> greptime.v1.meta.CreateTableTask
|
||||||
5, // 11: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
3, // 11: greptime.v1.meta.DdlTaskRequest.drop_table_task:type_name -> greptime.v1.meta.DropTableTask
|
||||||
7, // 12: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
5, // 12: greptime.v1.meta.DdlTaskRequest.alter_table_task:type_name -> greptime.v1.meta.AlterTableTask
|
||||||
2, // 13: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
7, // 13: greptime.v1.meta.DdlTaskRequest.truncate_table_task:type_name -> greptime.v1.meta.TruncateTableTask
|
||||||
4, // 14: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
2, // 14: greptime.v1.meta.DdlTaskRequest.create_table_tasks:type_name -> greptime.v1.meta.CreateTableTasks
|
||||||
6, // 15: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
4, // 15: greptime.v1.meta.DdlTaskRequest.drop_table_tasks:type_name -> greptime.v1.meta.DropTableTasks
|
||||||
16, // 16: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
6, // 16: greptime.v1.meta.DdlTaskRequest.alter_table_tasks:type_name -> greptime.v1.meta.AlterTableTasks
|
||||||
17, // 17: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
8, // 17: greptime.v1.meta.DdlTaskRequest.drop_database_task:type_name -> greptime.v1.meta.DropDatabaseTask
|
||||||
18, // 18: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
|
18, // 18: greptime.v1.meta.DdlTaskResponse.header:type_name -> greptime.v1.meta.ResponseHeader
|
||||||
18, // 19: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
|
19, // 19: greptime.v1.meta.DdlTaskResponse.pid:type_name -> greptime.v1.meta.ProcedureId
|
||||||
20, // [20:20] is the sub-list for method output_type
|
20, // 20: greptime.v1.meta.DdlTaskResponse.table_id:type_name -> greptime.v1.meta.TableId
|
||||||
20, // [20:20] is the sub-list for method input_type
|
20, // 21: greptime.v1.meta.DdlTaskResponse.table_ids:type_name -> greptime.v1.meta.TableId
|
||||||
20, // [20:20] is the sub-list for extension type_name
|
22, // [22:22] is the sub-list for method output_type
|
||||||
20, // [20:20] is the sub-list for extension extendee
|
22, // [22:22] is the sub-list for method input_type
|
||||||
0, // [0:20] is the sub-list for field type_name
|
22, // [22:22] is the sub-list for extension type_name
|
||||||
|
22, // [22:22] is the sub-list for extension extendee
|
||||||
|
0, // [0:22] is the sub-list for field type_name
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() { file_greptime_v1_meta_ddl_proto_init() }
|
func init() { file_greptime_v1_meta_ddl_proto_init() }
|
||||||
@@ -931,7 +1007,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_meta_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_meta_ddl_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DdlTaskRequest); i {
|
switch v := v.(*DropDatabaseTask); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
case 1:
|
case 1:
|
||||||
@@ -943,6 +1019,18 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_meta_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
file_greptime_v1_meta_ddl_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
||||||
|
switch v := v.(*DdlTaskRequest); i {
|
||||||
|
case 0:
|
||||||
|
return &v.state
|
||||||
|
case 1:
|
||||||
|
return &v.sizeCache
|
||||||
|
case 2:
|
||||||
|
return &v.unknownFields
|
||||||
|
default:
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
}
|
||||||
|
file_greptime_v1_meta_ddl_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
||||||
switch v := v.(*DdlTaskResponse); i {
|
switch v := v.(*DdlTaskResponse); i {
|
||||||
case 0:
|
case 0:
|
||||||
return &v.state
|
return &v.state
|
||||||
@@ -955,7 +1043,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
file_greptime_v1_meta_ddl_proto_msgTypes[7].OneofWrappers = []interface{}{
|
file_greptime_v1_meta_ddl_proto_msgTypes[8].OneofWrappers = []interface{}{
|
||||||
(*DdlTaskRequest_CreateTableTask)(nil),
|
(*DdlTaskRequest_CreateTableTask)(nil),
|
||||||
(*DdlTaskRequest_DropTableTask)(nil),
|
(*DdlTaskRequest_DropTableTask)(nil),
|
||||||
(*DdlTaskRequest_AlterTableTask)(nil),
|
(*DdlTaskRequest_AlterTableTask)(nil),
|
||||||
@@ -963,6 +1051,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
|||||||
(*DdlTaskRequest_CreateTableTasks)(nil),
|
(*DdlTaskRequest_CreateTableTasks)(nil),
|
||||||
(*DdlTaskRequest_DropTableTasks)(nil),
|
(*DdlTaskRequest_DropTableTasks)(nil),
|
||||||
(*DdlTaskRequest_AlterTableTasks)(nil),
|
(*DdlTaskRequest_AlterTableTasks)(nil),
|
||||||
|
(*DdlTaskRequest_DropDatabaseTask)(nil),
|
||||||
}
|
}
|
||||||
type x struct{}
|
type x struct{}
|
||||||
out := protoimpl.TypeBuilder{
|
out := protoimpl.TypeBuilder{
|
||||||
@@ -970,7 +1059,7 @@ func file_greptime_v1_meta_ddl_proto_init() {
|
|||||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||||
RawDescriptor: file_greptime_v1_meta_ddl_proto_rawDesc,
|
RawDescriptor: file_greptime_v1_meta_ddl_proto_rawDesc,
|
||||||
NumEnums: 1,
|
NumEnums: 1,
|
||||||
NumMessages: 9,
|
NumMessages: 10,
|
||||||
NumExtensions: 0,
|
NumExtensions: 0,
|
||||||
NumServices: 0,
|
NumServices: 0,
|
||||||
},
|
},
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -8991,6 +8991,797 @@ java.lang.String defaultValue);
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public interface DropDatabaseExprOrBuilder extends
|
||||||
|
// @@protoc_insertion_point(interface_extends:greptime.v1.DropDatabaseExpr)
|
||||||
|
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>bool drop_if_exists = 3;</code>
|
||||||
|
* @return The dropIfExists.
|
||||||
|
*/
|
||||||
|
boolean getDropIfExists();
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* Protobuf type {@code greptime.v1.DropDatabaseExpr}
|
||||||
|
*/
|
||||||
|
public static final class DropDatabaseExpr extends
|
||||||
|
com.google.protobuf.GeneratedMessageV3 implements
|
||||||
|
// @@protoc_insertion_point(message_implements:greptime.v1.DropDatabaseExpr)
|
||||||
|
DropDatabaseExprOrBuilder {
|
||||||
|
private static final long serialVersionUID = 0L;
|
||||||
|
// Use DropDatabaseExpr.newBuilder() to construct.
|
||||||
|
private DropDatabaseExpr(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||||
|
super(builder);
|
||||||
|
}
|
||||||
|
private DropDatabaseExpr() {
|
||||||
|
catalogName_ = "";
|
||||||
|
schemaName_ = "";
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
@SuppressWarnings({"unused"})
|
||||||
|
protected java.lang.Object newInstance(
|
||||||
|
UnusedPrivateParameter unused) {
|
||||||
|
return new DropDatabaseExpr();
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public final com.google.protobuf.UnknownFieldSet
|
||||||
|
getUnknownFields() {
|
||||||
|
return this.unknownFields;
|
||||||
|
}
|
||||||
|
private DropDatabaseExpr(
|
||||||
|
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 24: {
|
||||||
|
|
||||||
|
dropIfExists_ = input.readBool();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default: {
|
||||||
|
if (!parseUnknownField(
|
||||||
|
input, unknownFields, extensionRegistry, tag)) {
|
||||||
|
done = true;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||||
|
throw e.setUnfinishedMessage(this);
|
||||||
|
} catch (com.google.protobuf.UninitializedMessageException e) {
|
||||||
|
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
|
||||||
|
} catch (java.io.IOException e) {
|
||||||
|
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||||
|
e).setUnfinishedMessage(this);
|
||||||
|
} finally {
|
||||||
|
this.unknownFields = unknownFields.build();
|
||||||
|
makeExtensionsImmutable();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
public static final com.google.protobuf.Descriptors.Descriptor
|
||||||
|
getDescriptor() {
|
||||||
|
return io.greptime.v1.Ddl.internal_static_greptime_v1_DropDatabaseExpr_descriptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
|
internalGetFieldAccessorTable() {
|
||||||
|
return io.greptime.v1.Ddl.internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable
|
||||||
|
.ensureFieldAccessorsInitialized(
|
||||||
|
io.greptime.v1.Ddl.DropDatabaseExpr.class, io.greptime.v1.Ddl.DropDatabaseExpr.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 DROP_IF_EXISTS_FIELD_NUMBER = 3;
|
||||||
|
private boolean dropIfExists_;
|
||||||
|
/**
|
||||||
|
* <code>bool drop_if_exists = 3;</code>
|
||||||
|
* @return The dropIfExists.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean getDropIfExists() {
|
||||||
|
return dropIfExists_;
|
||||||
|
}
|
||||||
|
|
||||||
|
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 (dropIfExists_ != false) {
|
||||||
|
output.writeBool(3, dropIfExists_);
|
||||||
|
}
|
||||||
|
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 (dropIfExists_ != false) {
|
||||||
|
size += com.google.protobuf.CodedOutputStream
|
||||||
|
.computeBoolSize(3, dropIfExists_);
|
||||||
|
}
|
||||||
|
size += unknownFields.getSerializedSize();
|
||||||
|
memoizedSize = size;
|
||||||
|
return size;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean equals(final java.lang.Object obj) {
|
||||||
|
if (obj == this) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (!(obj instanceof io.greptime.v1.Ddl.DropDatabaseExpr)) {
|
||||||
|
return super.equals(obj);
|
||||||
|
}
|
||||||
|
io.greptime.v1.Ddl.DropDatabaseExpr other = (io.greptime.v1.Ddl.DropDatabaseExpr) obj;
|
||||||
|
|
||||||
|
if (!getCatalogName()
|
||||||
|
.equals(other.getCatalogName())) return false;
|
||||||
|
if (!getSchemaName()
|
||||||
|
.equals(other.getSchemaName())) return false;
|
||||||
|
if (getDropIfExists()
|
||||||
|
!= other.getDropIfExists()) 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) + DROP_IF_EXISTS_FIELD_NUMBER;
|
||||||
|
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||||
|
getDropIfExists());
|
||||||
|
hash = (29 * hash) + unknownFields.hashCode();
|
||||||
|
memoizedHashCode = hash;
|
||||||
|
return hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(
|
||||||
|
java.nio.ByteBuffer data)
|
||||||
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||||
|
return PARSER.parseFrom(data);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(
|
||||||
|
java.nio.ByteBuffer data,
|
||||||
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||||
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||||
|
return PARSER.parseFrom(data, extensionRegistry);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(
|
||||||
|
com.google.protobuf.ByteString data)
|
||||||
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||||
|
return PARSER.parseFrom(data);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(
|
||||||
|
com.google.protobuf.ByteString data,
|
||||||
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||||
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||||
|
return PARSER.parseFrom(data, extensionRegistry);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(byte[] data)
|
||||||
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||||
|
return PARSER.parseFrom(data);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(
|
||||||
|
byte[] data,
|
||||||
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||||
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||||
|
return PARSER.parseFrom(data, extensionRegistry);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(java.io.InputStream input)
|
||||||
|
throws java.io.IOException {
|
||||||
|
return com.google.protobuf.GeneratedMessageV3
|
||||||
|
.parseWithIOException(PARSER, input);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(
|
||||||
|
java.io.InputStream input,
|
||||||
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||||
|
throws java.io.IOException {
|
||||||
|
return com.google.protobuf.GeneratedMessageV3
|
||||||
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseDelimitedFrom(java.io.InputStream input)
|
||||||
|
throws java.io.IOException {
|
||||||
|
return com.google.protobuf.GeneratedMessageV3
|
||||||
|
.parseDelimitedWithIOException(PARSER, input);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseDelimitedFrom(
|
||||||
|
java.io.InputStream input,
|
||||||
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||||
|
throws java.io.IOException {
|
||||||
|
return com.google.protobuf.GeneratedMessageV3
|
||||||
|
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(
|
||||||
|
com.google.protobuf.CodedInputStream input)
|
||||||
|
throws java.io.IOException {
|
||||||
|
return com.google.protobuf.GeneratedMessageV3
|
||||||
|
.parseWithIOException(PARSER, input);
|
||||||
|
}
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr parseFrom(
|
||||||
|
com.google.protobuf.CodedInputStream input,
|
||||||
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||||
|
throws java.io.IOException {
|
||||||
|
return com.google.protobuf.GeneratedMessageV3
|
||||||
|
.parseWithIOException(PARSER, input, extensionRegistry);
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder newBuilderForType() { return newBuilder(); }
|
||||||
|
public static Builder newBuilder() {
|
||||||
|
return DEFAULT_INSTANCE.toBuilder();
|
||||||
|
}
|
||||||
|
public static Builder newBuilder(io.greptime.v1.Ddl.DropDatabaseExpr 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.DropDatabaseExpr}
|
||||||
|
*/
|
||||||
|
public static final class Builder extends
|
||||||
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||||
|
// @@protoc_insertion_point(builder_implements:greptime.v1.DropDatabaseExpr)
|
||||||
|
io.greptime.v1.Ddl.DropDatabaseExprOrBuilder {
|
||||||
|
public static final com.google.protobuf.Descriptors.Descriptor
|
||||||
|
getDescriptor() {
|
||||||
|
return io.greptime.v1.Ddl.internal_static_greptime_v1_DropDatabaseExpr_descriptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
|
internalGetFieldAccessorTable() {
|
||||||
|
return io.greptime.v1.Ddl.internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable
|
||||||
|
.ensureFieldAccessorsInitialized(
|
||||||
|
io.greptime.v1.Ddl.DropDatabaseExpr.class, io.greptime.v1.Ddl.DropDatabaseExpr.Builder.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Construct using io.greptime.v1.Ddl.DropDatabaseExpr.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_ = "";
|
||||||
|
|
||||||
|
dropIfExists_ = false;
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public com.google.protobuf.Descriptors.Descriptor
|
||||||
|
getDescriptorForType() {
|
||||||
|
return io.greptime.v1.Ddl.internal_static_greptime_v1_DropDatabaseExpr_descriptor;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.DropDatabaseExpr getDefaultInstanceForType() {
|
||||||
|
return io.greptime.v1.Ddl.DropDatabaseExpr.getDefaultInstance();
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.DropDatabaseExpr build() {
|
||||||
|
io.greptime.v1.Ddl.DropDatabaseExpr result = buildPartial();
|
||||||
|
if (!result.isInitialized()) {
|
||||||
|
throw newUninitializedMessageException(result);
|
||||||
|
}
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.DropDatabaseExpr buildPartial() {
|
||||||
|
io.greptime.v1.Ddl.DropDatabaseExpr result = new io.greptime.v1.Ddl.DropDatabaseExpr(this);
|
||||||
|
result.catalogName_ = catalogName_;
|
||||||
|
result.schemaName_ = schemaName_;
|
||||||
|
result.dropIfExists_ = dropIfExists_;
|
||||||
|
onBuilt();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder clone() {
|
||||||
|
return super.clone();
|
||||||
|
}
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder setField(
|
||||||
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||||
|
java.lang.Object value) {
|
||||||
|
return super.setField(field, value);
|
||||||
|
}
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder clearField(
|
||||||
|
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||||
|
return super.clearField(field);
|
||||||
|
}
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder clearOneof(
|
||||||
|
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||||
|
return super.clearOneof(oneof);
|
||||||
|
}
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder setRepeatedField(
|
||||||
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||||
|
int index, java.lang.Object value) {
|
||||||
|
return super.setRepeatedField(field, index, value);
|
||||||
|
}
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder addRepeatedField(
|
||||||
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||||
|
java.lang.Object value) {
|
||||||
|
return super.addRepeatedField(field, value);
|
||||||
|
}
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||||
|
if (other instanceof io.greptime.v1.Ddl.DropDatabaseExpr) {
|
||||||
|
return mergeFrom((io.greptime.v1.Ddl.DropDatabaseExpr)other);
|
||||||
|
} else {
|
||||||
|
super.mergeFrom(other);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public Builder mergeFrom(io.greptime.v1.Ddl.DropDatabaseExpr other) {
|
||||||
|
if (other == io.greptime.v1.Ddl.DropDatabaseExpr.getDefaultInstance()) return this;
|
||||||
|
if (!other.getCatalogName().isEmpty()) {
|
||||||
|
catalogName_ = other.catalogName_;
|
||||||
|
onChanged();
|
||||||
|
}
|
||||||
|
if (!other.getSchemaName().isEmpty()) {
|
||||||
|
schemaName_ = other.schemaName_;
|
||||||
|
onChanged();
|
||||||
|
}
|
||||||
|
if (other.getDropIfExists() != false) {
|
||||||
|
setDropIfExists(other.getDropIfExists());
|
||||||
|
}
|
||||||
|
this.mergeUnknownFields(other.unknownFields);
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public final boolean isInitialized() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public Builder mergeFrom(
|
||||||
|
com.google.protobuf.CodedInputStream input,
|
||||||
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||||
|
throws java.io.IOException {
|
||||||
|
io.greptime.v1.Ddl.DropDatabaseExpr parsedMessage = null;
|
||||||
|
try {
|
||||||
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||||
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||||
|
parsedMessage = (io.greptime.v1.Ddl.DropDatabaseExpr) 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 boolean dropIfExists_ ;
|
||||||
|
/**
|
||||||
|
* <code>bool drop_if_exists = 3;</code>
|
||||||
|
* @return The dropIfExists.
|
||||||
|
*/
|
||||||
|
@java.lang.Override
|
||||||
|
public boolean getDropIfExists() {
|
||||||
|
return dropIfExists_;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>bool drop_if_exists = 3;</code>
|
||||||
|
* @param value The dropIfExists to set.
|
||||||
|
* @return This builder for chaining.
|
||||||
|
*/
|
||||||
|
public Builder setDropIfExists(boolean value) {
|
||||||
|
|
||||||
|
dropIfExists_ = value;
|
||||||
|
onChanged();
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
/**
|
||||||
|
* <code>bool drop_if_exists = 3;</code>
|
||||||
|
* @return This builder for chaining.
|
||||||
|
*/
|
||||||
|
public Builder clearDropIfExists() {
|
||||||
|
|
||||||
|
dropIfExists_ = false;
|
||||||
|
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.DropDatabaseExpr)
|
||||||
|
}
|
||||||
|
|
||||||
|
// @@protoc_insertion_point(class_scope:greptime.v1.DropDatabaseExpr)
|
||||||
|
private static final io.greptime.v1.Ddl.DropDatabaseExpr DEFAULT_INSTANCE;
|
||||||
|
static {
|
||||||
|
DEFAULT_INSTANCE = new io.greptime.v1.Ddl.DropDatabaseExpr();
|
||||||
|
}
|
||||||
|
|
||||||
|
public static io.greptime.v1.Ddl.DropDatabaseExpr getDefaultInstance() {
|
||||||
|
return DEFAULT_INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
private static final com.google.protobuf.Parser<DropDatabaseExpr>
|
||||||
|
PARSER = new com.google.protobuf.AbstractParser<DropDatabaseExpr>() {
|
||||||
|
@java.lang.Override
|
||||||
|
public DropDatabaseExpr parsePartialFrom(
|
||||||
|
com.google.protobuf.CodedInputStream input,
|
||||||
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||||
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||||
|
return new DropDatabaseExpr(input, extensionRegistry);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
public static com.google.protobuf.Parser<DropDatabaseExpr> parser() {
|
||||||
|
return PARSER;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public com.google.protobuf.Parser<DropDatabaseExpr> getParserForType() {
|
||||||
|
return PARSER;
|
||||||
|
}
|
||||||
|
|
||||||
|
@java.lang.Override
|
||||||
|
public io.greptime.v1.Ddl.DropDatabaseExpr getDefaultInstanceForType() {
|
||||||
|
return DEFAULT_INSTANCE;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public interface AddColumnsOrBuilder extends
|
public interface AddColumnsOrBuilder extends
|
||||||
// @@protoc_insertion_point(interface_extends:greptime.v1.AddColumns)
|
// @@protoc_insertion_point(interface_extends:greptime.v1.AddColumns)
|
||||||
com.google.protobuf.MessageOrBuilder {
|
com.google.protobuf.MessageOrBuilder {
|
||||||
@@ -15204,6 +15995,11 @@ java.lang.String defaultValue);
|
|||||||
private static final
|
private static final
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable;
|
internal_static_greptime_v1_TruncateTableExpr_fieldAccessorTable;
|
||||||
|
private static final com.google.protobuf.Descriptors.Descriptor
|
||||||
|
internal_static_greptime_v1_DropDatabaseExpr_descriptor;
|
||||||
|
private static final
|
||||||
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||||
|
internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable;
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
private static final com.google.protobuf.Descriptors.Descriptor
|
||||||
internal_static_greptime_v1_AddColumns_descriptor;
|
internal_static_greptime_v1_AddColumns_descriptor;
|
||||||
private static final
|
private static final
|
||||||
@@ -15288,28 +16084,30 @@ java.lang.String defaultValue);
|
|||||||
"ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateT" +
|
"ey\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021TruncateT" +
|
||||||
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" +
|
"ableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema" +
|
||||||
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table" +
|
"_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010table" +
|
||||||
"_id\030\004 \001(\0132\024.greptime.v1.TableId\"9\n\nAddCo" +
|
"_id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020DropD" +
|
||||||
"lumns\022+\n\013add_columns\030\001 \003(\0132\026.greptime.v1" +
|
"atabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sch" +
|
||||||
".AddColumn\"<\n\013DropColumns\022-\n\014drop_column" +
|
"ema_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001(\010\"9" +
|
||||||
"s\030\001 \003(\0132\027.greptime.v1.DropColumn\"%\n\013Rena" +
|
"\n\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026.grep" +
|
||||||
"meTable\022\026\n\016new_table_name\030\001 \001(\t\"i\n\tAddCo" +
|
"time.v1.AddColumn\"<\n\013DropColumns\022-\n\014drop" +
|
||||||
"lumn\022*\n\ncolumn_def\030\001 \001(\0132\026.greptime.v1.C" +
|
"_columns\030\001 \003(\0132\027.greptime.v1.DropColumn\"" +
|
||||||
"olumnDef\0220\n\010location\030\003 \001(\0132\036.greptime.v1" +
|
"%\n\013RenameTable\022\026\n\016new_table_name\030\001 \001(\t\"i" +
|
||||||
".AddColumnLocation\"\032\n\nDropColumn\022\014\n\004name" +
|
"\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.grepti" +
|
||||||
"\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumn" +
|
"me.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036.grep" +
|
||||||
"Def\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.g" +
|
"time.v1.AddColumnLocation\"\032\n\nDropColumn\022" +
|
||||||
"reptime.v1.ColumnDataType\022\023\n\013is_nullable" +
|
"\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n" +
|
||||||
"\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rse" +
|
"\tColumnDef\022\014\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 " +
|
||||||
"mantic_type\030\005 \001(\0162\031.greptime.v1.Semantic" +
|
"\001(\0162\033.greptime.v1.ColumnDataType\022\023\n\013is_n" +
|
||||||
"Type\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extens" +
|
"ullable\030\003 \001(\010\022\032\n\022default_constraint\030\004 \001(" +
|
||||||
"ion\030\007 \001(\0132$.greptime.v1.ColumnDataTypeEx" +
|
"\014\0220\n\rsemantic_type\030\005 \001(\0162\031.greptime.v1.S" +
|
||||||
"tension\"\230\001\n\021AddColumnLocation\022B\n\rlocatio" +
|
"emanticType\022\017\n\007comment\030\006 \001(\t\022@\n\022datatype" +
|
||||||
"n_type\030\001 \001(\0162+.greptime.v1.AddColumnLoca" +
|
"_extension\030\007 \001(\0132$.greptime.v1.ColumnDat" +
|
||||||
"tion.LocationType\022\031\n\021after_column_name\030\002" +
|
"aTypeExtension\"\230\001\n\021AddColumnLocation\022B\n\r" +
|
||||||
" \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER" +
|
"location_type\030\001 \001(\0162+.greptime.v1.AddCol" +
|
||||||
"\020\001BL\n\016io.greptime.v1B\003DdlZ5github.com/Gr" +
|
"umnLocation.LocationType\022\031\n\021after_column" +
|
||||||
"eptimeTeam/greptime-proto/go/greptime/v1" +
|
"_name\030\002 \001(\t\"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t" +
|
||||||
"b\006proto3"
|
"\n\005AFTER\020\001BL\n\016io.greptime.v1B\003DdlZ5github" +
|
||||||
|
".com/GreptimeTeam/greptime-proto/go/grep" +
|
||||||
|
"time/v1b\006proto3"
|
||||||
};
|
};
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
.internalBuildGeneratedFileFrom(descriptorData,
|
||||||
@@ -15364,50 +16162,56 @@ java.lang.String defaultValue);
|
|||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_TruncateTableExpr_descriptor,
|
internal_static_greptime_v1_TruncateTableExpr_descriptor,
|
||||||
new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", });
|
new java.lang.String[] { "CatalogName", "SchemaName", "TableName", "TableId", });
|
||||||
internal_static_greptime_v1_AddColumns_descriptor =
|
internal_static_greptime_v1_DropDatabaseExpr_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(6);
|
getDescriptor().getMessageTypes().get(6);
|
||||||
|
internal_static_greptime_v1_DropDatabaseExpr_fieldAccessorTable = new
|
||||||
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
|
internal_static_greptime_v1_DropDatabaseExpr_descriptor,
|
||||||
|
new java.lang.String[] { "CatalogName", "SchemaName", "DropIfExists", });
|
||||||
|
internal_static_greptime_v1_AddColumns_descriptor =
|
||||||
|
getDescriptor().getMessageTypes().get(7);
|
||||||
internal_static_greptime_v1_AddColumns_fieldAccessorTable = new
|
internal_static_greptime_v1_AddColumns_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_AddColumns_descriptor,
|
internal_static_greptime_v1_AddColumns_descriptor,
|
||||||
new java.lang.String[] { "AddColumns", });
|
new java.lang.String[] { "AddColumns", });
|
||||||
internal_static_greptime_v1_DropColumns_descriptor =
|
internal_static_greptime_v1_DropColumns_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(7);
|
getDescriptor().getMessageTypes().get(8);
|
||||||
internal_static_greptime_v1_DropColumns_fieldAccessorTable = new
|
internal_static_greptime_v1_DropColumns_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_DropColumns_descriptor,
|
internal_static_greptime_v1_DropColumns_descriptor,
|
||||||
new java.lang.String[] { "DropColumns", });
|
new java.lang.String[] { "DropColumns", });
|
||||||
internal_static_greptime_v1_RenameTable_descriptor =
|
internal_static_greptime_v1_RenameTable_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(8);
|
getDescriptor().getMessageTypes().get(9);
|
||||||
internal_static_greptime_v1_RenameTable_fieldAccessorTable = new
|
internal_static_greptime_v1_RenameTable_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_RenameTable_descriptor,
|
internal_static_greptime_v1_RenameTable_descriptor,
|
||||||
new java.lang.String[] { "NewTableName", });
|
new java.lang.String[] { "NewTableName", });
|
||||||
internal_static_greptime_v1_AddColumn_descriptor =
|
internal_static_greptime_v1_AddColumn_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(9);
|
getDescriptor().getMessageTypes().get(10);
|
||||||
internal_static_greptime_v1_AddColumn_fieldAccessorTable = new
|
internal_static_greptime_v1_AddColumn_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_AddColumn_descriptor,
|
internal_static_greptime_v1_AddColumn_descriptor,
|
||||||
new java.lang.String[] { "ColumnDef", "Location", });
|
new java.lang.String[] { "ColumnDef", "Location", });
|
||||||
internal_static_greptime_v1_DropColumn_descriptor =
|
internal_static_greptime_v1_DropColumn_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(10);
|
getDescriptor().getMessageTypes().get(11);
|
||||||
internal_static_greptime_v1_DropColumn_fieldAccessorTable = new
|
internal_static_greptime_v1_DropColumn_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_DropColumn_descriptor,
|
internal_static_greptime_v1_DropColumn_descriptor,
|
||||||
new java.lang.String[] { "Name", });
|
new java.lang.String[] { "Name", });
|
||||||
internal_static_greptime_v1_TableId_descriptor =
|
internal_static_greptime_v1_TableId_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(11);
|
getDescriptor().getMessageTypes().get(12);
|
||||||
internal_static_greptime_v1_TableId_fieldAccessorTable = new
|
internal_static_greptime_v1_TableId_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_TableId_descriptor,
|
internal_static_greptime_v1_TableId_descriptor,
|
||||||
new java.lang.String[] { "Id", });
|
new java.lang.String[] { "Id", });
|
||||||
internal_static_greptime_v1_ColumnDef_descriptor =
|
internal_static_greptime_v1_ColumnDef_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(12);
|
getDescriptor().getMessageTypes().get(13);
|
||||||
internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new
|
internal_static_greptime_v1_ColumnDef_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_ColumnDef_descriptor,
|
internal_static_greptime_v1_ColumnDef_descriptor,
|
||||||
new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", });
|
new java.lang.String[] { "Name", "DataType", "IsNullable", "DefaultConstraint", "SemanticType", "Comment", "DatatypeExtension", });
|
||||||
internal_static_greptime_v1_AddColumnLocation_descriptor =
|
internal_static_greptime_v1_AddColumnLocation_descriptor =
|
||||||
getDescriptor().getMessageTypes().get(13);
|
getDescriptor().getMessageTypes().get(14);
|
||||||
internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new
|
internal_static_greptime_v1_AddColumnLocation_fieldAccessorTable = new
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||||
internal_static_greptime_v1_AddColumnLocation_descriptor,
|
internal_static_greptime_v1_AddColumnLocation_descriptor,
|
||||||
|
|||||||
@@ -82,6 +82,12 @@ message TruncateTableExpr {
|
|||||||
TableId table_id = 4;
|
TableId table_id = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message DropDatabaseExpr {
|
||||||
|
string catalog_name = 1;
|
||||||
|
string schema_name = 2;
|
||||||
|
bool drop_if_exists = 3;
|
||||||
|
}
|
||||||
|
|
||||||
message AddColumns { repeated AddColumn add_columns = 1; }
|
message AddColumns { repeated AddColumn add_columns = 1; }
|
||||||
|
|
||||||
message DropColumns { repeated DropColumn drop_columns = 1; }
|
message DropColumns { repeated DropColumn drop_columns = 1; }
|
||||||
|
|||||||
@@ -51,6 +51,10 @@ message TruncateTableTask {
|
|||||||
TruncateTableExpr truncate_table = 1;
|
TruncateTableExpr truncate_table = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message DropDatabaseTask {
|
||||||
|
DropDatabaseExpr drop_database = 1;
|
||||||
|
}
|
||||||
|
|
||||||
message DdlTaskRequest {
|
message DdlTaskRequest {
|
||||||
RequestHeader header = 1;
|
RequestHeader header = 1;
|
||||||
|
|
||||||
@@ -62,6 +66,7 @@ message DdlTaskRequest {
|
|||||||
CreateTableTasks create_table_tasks = 6;
|
CreateTableTasks create_table_tasks = 6;
|
||||||
DropTableTasks drop_table_tasks = 7;
|
DropTableTasks drop_table_tasks = 7;
|
||||||
AlterTableTasks alter_table_tasks = 8;
|
AlterTableTasks alter_table_tasks = 8;
|
||||||
|
DropDatabaseTask drop_database_task = 9;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user