feat: add flow_id and drop_if_exists to DropFlowExpr (#164)

* feat: add `flow_id` and `drop_if_exists` to `DropFlowExpr`

* chore: apply suggestions from CR

* chore: generate code
This commit is contained in:
Weny Xu
2024-05-10 12:32:37 +09:00
committed by GitHub
parent e152fcbf17
commit 219b2409bb
18 changed files with 2914 additions and 3279 deletions
+366 -82
View File
@@ -73,6 +73,8 @@ PROTOBUF_CONSTEXPR DropFlowExpr::DropFlowExpr(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.catalog_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.flow_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
, /*decltype(_impl_.flow_id_)*/nullptr
, /*decltype(_impl_.drop_if_exists_)*/false
, /*decltype(_impl_._cached_size_)*/{}} {}
struct DropFlowExprDefaultTypeInternal {
PROTOBUF_CONSTEXPR DropFlowExprDefaultTypeInternal()
@@ -316,6 +318,19 @@ struct TableIdDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableIdDefaultTypeInternal _TableId_default_instance_;
PROTOBUF_CONSTEXPR FlowId::FlowId(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.id_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct FlowIdDefaultTypeInternal {
PROTOBUF_CONSTEXPR FlowIdDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~FlowIdDefaultTypeInternal() {}
union {
FlowId _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowIdDefaultTypeInternal _FlowId_default_instance_;
PROTOBUF_CONSTEXPR ColumnDef::ColumnDef(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
@@ -351,7 +366,7 @@ struct AddColumnLocationDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AddColumnLocationDefaultTypeInternal _AddColumnLocation_default_instance_;
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[22];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fddl_2eproto[23];
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;
@@ -404,6 +419,8 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowExpr, _impl_.catalog_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowExpr, _impl_.flow_name_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowExpr, _impl_.flow_id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::DropFlowExpr, _impl_.drop_if_exists_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
@@ -555,6 +572,13 @@ const uint32_t TableStruct_greptime_2fv1_2fddl_2eproto::offsets[] PROTOBUF_SECTI
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::TableId, _impl_.id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlowId, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::FlowId, _impl_.id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::ColumnDef, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
@@ -581,24 +605,25 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 14, 22, -1, sizeof(::greptime::v1::CreateFlowExpr_FlowOptionsEntry_DoNotUse)},
{ 24, -1, -1, sizeof(::greptime::v1::CreateFlowExpr)},
{ 40, -1, -1, sizeof(::greptime::v1::DropFlowExpr)},
{ 48, 56, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
{ 58, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
{ 75, -1, -1, sizeof(::greptime::v1::AlterExpr)},
{ 89, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 100, 108, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 110, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 120, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 130, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
{ 139, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 146, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 153, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
{ 160, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 167, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 175, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
{ 184, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 191, -1, -1, sizeof(::greptime::v1::TableId)},
{ 198, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 211, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
{ 50, 58, -1, sizeof(::greptime::v1::CreateTableExpr_TableOptionsEntry_DoNotUse)},
{ 60, -1, -1, sizeof(::greptime::v1::CreateTableExpr)},
{ 77, -1, -1, sizeof(::greptime::v1::AlterExpr)},
{ 91, -1, -1, sizeof(::greptime::v1::DropTableExpr)},
{ 102, 110, -1, sizeof(::greptime::v1::CreateDatabaseExpr_OptionsEntry_DoNotUse)},
{ 112, -1, -1, sizeof(::greptime::v1::CreateDatabaseExpr)},
{ 122, -1, -1, sizeof(::greptime::v1::TruncateTableExpr)},
{ 132, -1, -1, sizeof(::greptime::v1::DropDatabaseExpr)},
{ 141, -1, -1, sizeof(::greptime::v1::AddColumns)},
{ 148, -1, -1, sizeof(::greptime::v1::DropColumns)},
{ 155, -1, -1, sizeof(::greptime::v1::ChangeColumnTypes)},
{ 162, -1, -1, sizeof(::greptime::v1::RenameTable)},
{ 169, -1, -1, sizeof(::greptime::v1::AddColumn)},
{ 177, -1, -1, sizeof(::greptime::v1::ChangeColumnType)},
{ 186, -1, -1, sizeof(::greptime::v1::DropColumn)},
{ 193, -1, -1, sizeof(::greptime::v1::TableId)},
{ 200, -1, -1, sizeof(::greptime::v1::FlowId)},
{ 207, -1, -1, sizeof(::greptime::v1::ColumnDef)},
{ 220, -1, -1, sizeof(::greptime::v1::AddColumnLocation)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -622,6 +647,7 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::_ChangeColumnType_default_instance_._instance,
&::greptime::v1::_DropColumn_default_instance_._instance,
&::greptime::v1::_TableId_default_instance_._instance,
&::greptime::v1::_FlowId_default_instance_._instance,
&::greptime::v1::_ColumnDef_default_instance_._instance,
&::greptime::v1::_AddColumnLocation_default_instance_._instance,
};
@@ -647,75 +673,78 @@ const char descriptor_table_protodef_greptime_2fv1_2fddl_2eproto[] PROTOBUF_SECT
"\022\017\n\007comment\030\010 \001(\t\022\013\n\003sql\030\t \001(\t\022B\n\014flow_o"
"ptions\030\n \003(\0132,.greptime.v1.CreateFlowExp"
"r.FlowOptionsEntry\0322\n\020FlowOptionsEntry\022\013"
"\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"7\n\014DropFl"
"\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"u\n\014DropFl"
"owExpr\022\024\n\014catalog_name\030\001 \001(\t\022\021\n\tflow_nam"
"e\030\002 \001(\t\"\207\003\n\017CreateTableExpr\022\024\n\014catalog_n"
"ame\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_"
"name\030\003 \001(\t\022\014\n\004desc\030\004 \001(\t\022+\n\013column_defs\030"
"\005 \003(\0132\026.greptime.v1.ColumnDef\022\022\n\ntime_in"
"dex\030\006 \001(\t\022\024\n\014primary_keys\030\007 \003(\t\022\034\n\024creat"
"e_if_not_exists\030\010 \001(\010\022E\n\rtable_options\030\t"
" \003(\0132..greptime.v1.CreateTableExpr.Table"
"OptionsEntry\022&\n\010table_id\030\n \001(\0132\024.greptim"
"e.v1.TableId\022\016\n\006engine\030\014 \001(\t\0323\n\021TableOpt"
"ionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028"
"\001\"\245\002\n\tAlterExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n"
"\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022."
"\n\013add_columns\030\004 \001(\0132\027.greptime.v1.AddCol"
"umnsH\000\0220\n\014drop_columns\030\005 \001(\0132\030.greptime."
"v1.DropColumnsH\000\0220\n\014rename_table\030\006 \001(\0132\030"
".greptime.v1.RenameTableH\000\022=\n\023change_col"
"umn_types\030\007 \001(\0132\036.greptime.v1.ChangeColu"
"mnTypesH\000B\006\n\004kind\"\216\001\n\rDropTableExpr\022\024\n\014c"
"atalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022"
"\n\ntable_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.g"
"reptime.v1.TableId\022\026\n\016drop_if_exists\030\005 \001"
"(\010\"\314\001\n\022CreateDatabaseExpr\022\024\n\014catalog_nam"
"e\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\034\n\024create_i"
"f_not_exists\030\003 \001(\010\022=\n\007options\030\004 \003(\0132,.gr"
"eptime.v1.CreateDatabaseExpr.OptionsEntr"
"y\032.\n\014OptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
"\002 \001(\t:\0028\001\"z\n\021TruncateTableExpr\022\024\n\014catalo"
"g_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\022\n\ntab"
"le_name\030\003 \001(\t\022&\n\010table_id\030\004 \001(\0132\024.grepti"
"me.v1.TableId\"U\n\020DropDatabaseExpr\022\024\n\014cat"
"alog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t\022\026\n\016"
"drop_if_exists\030\003 \001(\010\"9\n\nAddColumns\022+\n\013ad"
"d_columns\030\001 \003(\0132\026.greptime.v1.AddColumn\""
"<\n\013DropColumns\022-\n\014drop_columns\030\001 \003(\0132\027.g"
"reptime.v1.DropColumn\"O\n\021ChangeColumnTyp"
"es\022:\n\023change_column_types\030\001 \003(\0132\035.grepti"
"me.v1.ChangeColumnType\"%\n\013RenameTable\022\026\n"
"\016new_table_name\030\001 \001(\t\"i\n\tAddColumn\022*\n\nco"
"lumn_def\030\001 \001(\0132\026.greptime.v1.ColumnDef\0220"
"\n\010location\030\003 \001(\0132\036.greptime.v1.AddColumn"
"Location\"\236\001\n\020ChangeColumnType\022\023\n\013column_"
"name\030\001 \001(\t\0220\n\013target_type\030\002 \001(\0162\033.grepti"
"me.v1.ColumnDataType\022C\n\025target_type_exte"
"nsion\030\003 \001(\0132$.greptime.v1.ColumnDataType"
"Extension\"\032\n\nDropColumn\022\014\n\004name\030\001 \001(\t\"\025\n"
"\007TableId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014\n\004na"
"me\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.greptime.v"
"1.ColumnDataType\022\023\n\013is_nullable\030\003 \001(\010\022\032\n"
"\022default_constraint\030\004 \001(\014\0220\n\rsemantic_ty"
"pe\030\005 \001(\0162\031.greptime.v1.SemanticType\022\017\n\007c"
"omment\030\006 \001(\t\022@\n\022datatype_extension\030\007 \001(\013"
"2$.greptime.v1.ColumnDataTypeExtension\"\230"
"\001\n\021AddColumnLocation\022B\n\rlocation_type\030\001 "
"\001(\0162+.greptime.v1.AddColumnLocation.Loca"
"tionType\022\031\n\021after_column_name\030\002 \001(\t\"$\n\014L"
"ocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n\016io."
"greptime.v1B\003DdlZ5github.com/GreptimeTea"
"m/greptime-proto/go/greptime/v1b\006proto3"
"e\030\002 \001(\t\022$\n\007flow_id\030\003 \001(\0132\023.greptime.v1.F"
"lowId\022\026\n\016drop_if_exists\030\005 \001(\010\"\207\003\n\017Create"
"TableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schem"
"a_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022\014\n\004desc"
"\030\004 \001(\t\022+\n\013column_defs\030\005 \003(\0132\026.greptime.v"
"1.ColumnDef\022\022\n\ntime_index\030\006 \001(\t\022\024\n\014prima"
"ry_keys\030\007 \003(\t\022\034\n\024create_if_not_exists\030\010 "
"\001(\010\022E\n\rtable_options\030\t \003(\0132..greptime.v1"
".CreateTableExpr.TableOptionsEntry\022&\n\010ta"
"ble_id\030\n \001(\0132\024.greptime.v1.TableId\022\016\n\006en"
"gine\030\014 \001(\t\0323\n\021TableOptionsEntry\022\013\n\003key\030\001"
" \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\245\002\n\tAlterExpr\022\024\n"
"\014catalog_name\030\001 \001(\t\022\023\n\013schema_name\030\002 \001(\t"
"\022\022\n\ntable_name\030\003 \001(\t\022.\n\013add_columns\030\004 \001("
"\0132\027.greptime.v1.AddColumnsH\000\0220\n\014drop_col"
"umns\030\005 \001(\0132\030.greptime.v1.DropColumnsH\000\0220"
"\n\014rename_table\030\006 \001(\0132\030.greptime.v1.Renam"
"eTableH\000\022=\n\023change_column_types\030\007 \001(\0132\036."
"greptime.v1.ChangeColumnTypesH\000B\006\n\004kind\""
"\216\001\n\rDropTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022"
"\023\n\013schema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t"
"\022&\n\010table_id\030\004 \001(\0132\024.greptime.v1.TableId"
"\022\026\n\016drop_if_exists\030\005 \001(\010\"\314\001\n\022CreateDatab"
"aseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013schema_"
"name\030\002 \001(\t\022\034\n\024create_if_not_exists\030\003 \001(\010"
"\022=\n\007options\030\004 \003(\0132,.greptime.v1.CreateDa"
"tabaseExpr.OptionsEntry\032.\n\014OptionsEntry\022"
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"z\n\021Trunc"
"ateTableExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n\013sc"
"hema_name\030\002 \001(\t\022\022\n\ntable_name\030\003 \001(\t\022&\n\010t"
"able_id\030\004 \001(\0132\024.greptime.v1.TableId\"U\n\020D"
"ropDatabaseExpr\022\024\n\014catalog_name\030\001 \001(\t\022\023\n"
"\013schema_name\030\002 \001(\t\022\026\n\016drop_if_exists\030\003 \001"
"(\010\"9\n\nAddColumns\022+\n\013add_columns\030\001 \003(\0132\026."
"greptime.v1.AddColumn\"<\n\013DropColumns\022-\n\014"
"drop_columns\030\001 \003(\0132\027.greptime.v1.DropCol"
"umn\"O\n\021ChangeColumnTypes\022:\n\023change_colum"
"n_types\030\001 \003(\0132\035.greptime.v1.ChangeColumn"
"Type\"%\n\013RenameTable\022\026\n\016new_table_name\030\001 "
"\001(\t\"i\n\tAddColumn\022*\n\ncolumn_def\030\001 \001(\0132\026.g"
"reptime.v1.ColumnDef\0220\n\010location\030\003 \001(\0132\036"
".greptime.v1.AddColumnLocation\"\236\001\n\020Chang"
"eColumnType\022\023\n\013column_name\030\001 \001(\t\0220\n\013targ"
"et_type\030\002 \001(\0162\033.greptime.v1.ColumnDataTy"
"pe\022C\n\025target_type_extension\030\003 \001(\0132$.grep"
"time.v1.ColumnDataTypeExtension\"\032\n\nDropC"
"olumn\022\014\n\004name\030\001 \001(\t\"\025\n\007TableId\022\n\n\002id\030\001 \001"
"(\r\"\024\n\006FlowId\022\n\n\002id\030\001 \001(\r\"\377\001\n\tColumnDef\022\014"
"\n\004name\030\001 \001(\t\022.\n\tdata_type\030\002 \001(\0162\033.grepti"
"me.v1.ColumnDataType\022\023\n\013is_nullable\030\003 \001("
"\010\022\032\n\022default_constraint\030\004 \001(\014\0220\n\rsemanti"
"c_type\030\005 \001(\0162\031.greptime.v1.SemanticType\022"
"\017\n\007comment\030\006 \001(\t\022@\n\022datatype_extension\030\007"
" \001(\0132$.greptime.v1.ColumnDataTypeExtensi"
"on\"\230\001\n\021AddColumnLocation\022B\n\rlocation_typ"
"e\030\001 \001(\0162+.greptime.v1.AddColumnLocation."
"LocationType\022\031\n\021after_column_name\030\002 \001(\t\""
"$\n\014LocationType\022\t\n\005FIRST\020\000\022\t\n\005AFTER\020\001BL\n"
"\016io.greptime.v1B\003DdlZ5github.com/Greptim"
"eTeam/greptime-proto/go/greptime/v1b\006pro"
"to3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fddl_2eproto_deps[1] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fddl_2eproto = {
false, false, 3199, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
false, false, 3283, descriptor_table_protodef_greptime_2fv1_2fddl_2eproto,
"greptime/v1/ddl.proto",
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 22,
&descriptor_table_greptime_2fv1_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fddl_2eproto_deps, 1, 23,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fddl_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fddl_2eproto, file_level_enum_descriptors_greptime_2fv1_2fddl_2eproto,
file_level_service_descriptors_greptime_2fv1_2fddl_2eproto,
@@ -1978,8 +2007,13 @@ void CreateFlowExpr::InternalSwap(CreateFlowExpr* other) {
class DropFlowExpr::_Internal {
public:
static const ::greptime::v1::FlowId& flow_id(const DropFlowExpr* msg);
};
const ::greptime::v1::FlowId&
DropFlowExpr::_Internal::flow_id(const DropFlowExpr* msg) {
return *msg->_impl_.flow_id_;
}
DropFlowExpr::DropFlowExpr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1992,6 +2026,8 @@ DropFlowExpr::DropFlowExpr(const DropFlowExpr& from)
new (&_impl_) Impl_{
decltype(_impl_.catalog_name_){}
, decltype(_impl_.flow_name_){}
, decltype(_impl_.flow_id_){nullptr}
, decltype(_impl_.drop_if_exists_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@@ -2011,6 +2047,10 @@ DropFlowExpr::DropFlowExpr(const DropFlowExpr& from)
_this->_impl_.flow_name_.Set(from._internal_flow_name(),
_this->GetArenaForAllocation());
}
if (from._internal_has_flow_id()) {
_this->_impl_.flow_id_ = new ::greptime::v1::FlowId(*from._impl_.flow_id_);
}
_this->_impl_.drop_if_exists_ = from._impl_.drop_if_exists_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.DropFlowExpr)
}
@@ -2021,6 +2061,8 @@ inline void DropFlowExpr::SharedCtor(
new (&_impl_) Impl_{
decltype(_impl_.catalog_name_){}
, decltype(_impl_.flow_name_){}
, decltype(_impl_.flow_id_){nullptr}
, decltype(_impl_.drop_if_exists_){false}
, /*decltype(_impl_._cached_size_)*/{}
};
_impl_.catalog_name_.InitDefault();
@@ -2046,6 +2088,7 @@ inline void DropFlowExpr::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.catalog_name_.Destroy();
_impl_.flow_name_.Destroy();
if (this != internal_default_instance()) delete _impl_.flow_id_;
}
void DropFlowExpr::SetCachedSize(int size) const {
@@ -2060,6 +2103,11 @@ void DropFlowExpr::Clear() {
_impl_.catalog_name_.ClearToEmpty();
_impl_.flow_name_.ClearToEmpty();
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
delete _impl_.flow_id_;
}
_impl_.flow_id_ = nullptr;
_impl_.drop_if_exists_ = false;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
@@ -2089,6 +2137,22 @@ const char* DropFlowExpr::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// .greptime.v1.FlowId flow_id = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr = ctx->ParseMessage(_internal_mutable_flow_id(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// bool drop_if_exists = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 40)) {
_impl_.drop_if_exists_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
@@ -2138,6 +2202,19 @@ uint8_t* DropFlowExpr::_InternalSerialize(
2, this->_internal_flow_name(), target);
}
// .greptime.v1.FlowId flow_id = 3;
if (this->_internal_has_flow_id()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, _Internal::flow_id(this),
_Internal::flow_id(this).GetCachedSize(), target, stream);
}
// bool drop_if_exists = 5;
if (this->_internal_drop_if_exists() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteBoolToArray(5, 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);
@@ -2168,6 +2245,18 @@ size_t DropFlowExpr::ByteSizeLong() const {
this->_internal_flow_name());
}
// .greptime.v1.FlowId flow_id = 3;
if (this->_internal_has_flow_id()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*_impl_.flow_id_);
}
// bool drop_if_exists = 5;
if (this->_internal_drop_if_exists() != 0) {
total_size += 1 + 1;
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
@@ -2192,6 +2281,13 @@ void DropFlowExpr::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
if (!from._internal_flow_name().empty()) {
_this->_internal_set_flow_name(from._internal_flow_name());
}
if (from._internal_has_flow_id()) {
_this->_internal_mutable_flow_id()->::greptime::v1::FlowId::MergeFrom(
from._internal_flow_id());
}
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_);
}
@@ -2219,6 +2315,12 @@ void DropFlowExpr::InternalSwap(DropFlowExpr* other) {
&_impl_.flow_name_, lhs_arena,
&other->_impl_.flow_name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(DropFlowExpr, _impl_.drop_if_exists_)
+ sizeof(DropFlowExpr::_impl_.drop_if_exists_)
- PROTOBUF_FIELD_OFFSET(DropFlowExpr, _impl_.flow_id_)>(
reinterpret_cast<char*>(&_impl_.flow_id_),
reinterpret_cast<char*>(&other->_impl_.flow_id_));
}
::PROTOBUF_NAMESPACE_ID::Metadata DropFlowExpr::GetMetadata() const {
@@ -6509,6 +6611,184 @@ void TableId::InternalSwap(TableId* other) {
// ===================================================================
class FlowId::_Internal {
public:
};
FlowId::FlowId(::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.FlowId)
}
FlowId::FlowId(const FlowId& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
FlowId* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.id_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.id_ = from._impl_.id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.FlowId)
}
inline void FlowId::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.id_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
}
FlowId::~FlowId() {
// @@protoc_insertion_point(destructor:greptime.v1.FlowId)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void FlowId::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void FlowId::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void FlowId::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.FlowId)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.id_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* FlowId::_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) {
// uint32 id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* FlowId::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.FlowId)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 id = 1;
if (this->_internal_id() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), 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.FlowId)
return target;
}
size_t FlowId::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.FlowId)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlowId::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
FlowId::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlowId::GetClassData() const { return &_class_data_; }
void FlowId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<FlowId*>(&to_msg);
auto& from = static_cast<const FlowId&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.FlowId)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void FlowId::CopyFrom(const FlowId& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.FlowId)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool FlowId::IsInitialized() const {
return true;
}
void FlowId::InternalSwap(FlowId* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.id_, other->_impl_.id_);
}
::PROTOBUF_NAMESPACE_ID::Metadata FlowId::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[20]);
}
// ===================================================================
class ColumnDef::_Internal {
public:
static const ::greptime::v1::ColumnDataTypeExtension& datatype_extension(const ColumnDef* msg);
@@ -6939,7 +7219,7 @@ void ColumnDef::InternalSwap(ColumnDef* other) {
::PROTOBUF_NAMESPACE_ID::Metadata ColumnDef::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[20]);
file_level_metadata_greptime_2fv1_2fddl_2eproto[21]);
}
// ===================================================================
@@ -7172,7 +7452,7 @@ void AddColumnLocation::InternalSwap(AddColumnLocation* other) {
::PROTOBUF_NAMESPACE_ID::Metadata AddColumnLocation::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fddl_2eproto_getter, &descriptor_table_greptime_2fv1_2fddl_2eproto_once,
file_level_metadata_greptime_2fv1_2fddl_2eproto[21]);
file_level_metadata_greptime_2fv1_2fddl_2eproto[22]);
}
// @@protoc_insertion_point(namespace_scope)
@@ -7259,6 +7539,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::TableId*
Arena::CreateMaybeMessage< ::greptime::v1::TableId >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::TableId >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::FlowId*
Arena::CreateMaybeMessage< ::greptime::v1::FlowId >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::FlowId >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::ColumnDef*
Arena::CreateMaybeMessage< ::greptime::v1::ColumnDef >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::ColumnDef >(arena);
+321 -2
View File
@@ -108,6 +108,9 @@ extern DropFlowExprDefaultTypeInternal _DropFlowExpr_default_instance_;
class DropTableExpr;
struct DropTableExprDefaultTypeInternal;
extern DropTableExprDefaultTypeInternal _DropTableExpr_default_instance_;
class FlowId;
struct FlowIdDefaultTypeInternal;
extern FlowIdDefaultTypeInternal _FlowId_default_instance_;
class RenameTable;
struct RenameTableDefaultTypeInternal;
extern RenameTableDefaultTypeInternal _RenameTable_default_instance_;
@@ -139,6 +142,7 @@ template<> ::greptime::v1::DropColumns* Arena::CreateMaybeMessage<::greptime::v1
template<> ::greptime::v1::DropDatabaseExpr* Arena::CreateMaybeMessage<::greptime::v1::DropDatabaseExpr>(Arena*);
template<> ::greptime::v1::DropFlowExpr* Arena::CreateMaybeMessage<::greptime::v1::DropFlowExpr>(Arena*);
template<> ::greptime::v1::DropTableExpr* Arena::CreateMaybeMessage<::greptime::v1::DropTableExpr>(Arena*);
template<> ::greptime::v1::FlowId* Arena::CreateMaybeMessage<::greptime::v1::FlowId>(Arena*);
template<> ::greptime::v1::RenameTable* Arena::CreateMaybeMessage<::greptime::v1::RenameTable>(Arena*);
template<> ::greptime::v1::TableId* Arena::CreateMaybeMessage<::greptime::v1::TableId>(Arena*);
template<> ::greptime::v1::TruncateTableExpr* Arena::CreateMaybeMessage<::greptime::v1::TruncateTableExpr>(Arena*);
@@ -935,6 +939,8 @@ class DropFlowExpr final :
enum : int {
kCatalogNameFieldNumber = 1,
kFlowNameFieldNumber = 2,
kFlowIdFieldNumber = 3,
kDropIfExistsFieldNumber = 5,
};
// string catalog_name = 1;
void clear_catalog_name();
@@ -964,6 +970,33 @@ class DropFlowExpr final :
std::string* _internal_mutable_flow_name();
public:
// .greptime.v1.FlowId flow_id = 3;
bool has_flow_id() const;
private:
bool _internal_has_flow_id() const;
public:
void clear_flow_id();
const ::greptime::v1::FlowId& flow_id() const;
PROTOBUF_NODISCARD ::greptime::v1::FlowId* release_flow_id();
::greptime::v1::FlowId* mutable_flow_id();
void set_allocated_flow_id(::greptime::v1::FlowId* flow_id);
private:
const ::greptime::v1::FlowId& _internal_flow_id() const;
::greptime::v1::FlowId* _internal_mutable_flow_id();
public:
void unsafe_arena_set_allocated_flow_id(
::greptime::v1::FlowId* flow_id);
::greptime::v1::FlowId* unsafe_arena_release_flow_id();
// bool drop_if_exists = 5;
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.DropFlowExpr)
private:
class _Internal;
@@ -974,6 +1007,8 @@ class DropFlowExpr final :
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr catalog_name_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr flow_name_;
::greptime::v1::FlowId* flow_id_;
bool drop_if_exists_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -3754,6 +3789,154 @@ class TableId final :
};
// -------------------------------------------------------------------
class FlowId final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.FlowId) */ {
public:
inline FlowId() : FlowId(nullptr) {}
~FlowId() override;
explicit PROTOBUF_CONSTEXPR FlowId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
FlowId(const FlowId& from);
FlowId(FlowId&& from) noexcept
: FlowId() {
*this = ::std::move(from);
}
inline FlowId& operator=(const FlowId& from) {
CopyFrom(from);
return *this;
}
inline FlowId& operator=(FlowId&& 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 FlowId& default_instance() {
return *internal_default_instance();
}
static inline const FlowId* internal_default_instance() {
return reinterpret_cast<const FlowId*>(
&_FlowId_default_instance_);
}
static constexpr int kIndexInFileMessages =
20;
friend void swap(FlowId& a, FlowId& b) {
a.Swap(&b);
}
inline void Swap(FlowId* 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(FlowId* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
FlowId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<FlowId>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const FlowId& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const FlowId& from) {
FlowId::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(FlowId* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.FlowId";
}
protected:
explicit FlowId(::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 {
kIdFieldNumber = 1,
};
// uint32 id = 1;
void clear_id();
uint32_t id() const;
void set_id(uint32_t value);
private:
uint32_t _internal_id() const;
void _internal_set_id(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.FlowId)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
uint32_t id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fddl_2eproto;
};
// -------------------------------------------------------------------
class ColumnDef final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.ColumnDef) */ {
public:
@@ -3802,7 +3985,7 @@ class ColumnDef final :
&_ColumnDef_default_instance_);
}
static constexpr int kIndexInFileMessages =
20;
21;
friend void swap(ColumnDef& a, ColumnDef& b) {
a.Swap(&b);
@@ -4040,7 +4223,7 @@ class AddColumnLocation final :
&_AddColumnLocation_default_instance_);
}
static constexpr int kIndexInFileMessages =
21;
22;
friend void swap(AddColumnLocation& a, AddColumnLocation& b) {
a.Swap(&b);
@@ -5273,6 +5456,116 @@ inline void DropFlowExpr::set_allocated_flow_name(std::string* flow_name) {
// @@protoc_insertion_point(field_set_allocated:greptime.v1.DropFlowExpr.flow_name)
}
// .greptime.v1.FlowId flow_id = 3;
inline bool DropFlowExpr::_internal_has_flow_id() const {
return this != internal_default_instance() && _impl_.flow_id_ != nullptr;
}
inline bool DropFlowExpr::has_flow_id() const {
return _internal_has_flow_id();
}
inline void DropFlowExpr::clear_flow_id() {
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
delete _impl_.flow_id_;
}
_impl_.flow_id_ = nullptr;
}
inline const ::greptime::v1::FlowId& DropFlowExpr::_internal_flow_id() const {
const ::greptime::v1::FlowId* p = _impl_.flow_id_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::FlowId&>(
::greptime::v1::_FlowId_default_instance_);
}
inline const ::greptime::v1::FlowId& DropFlowExpr::flow_id() const {
// @@protoc_insertion_point(field_get:greptime.v1.DropFlowExpr.flow_id)
return _internal_flow_id();
}
inline void DropFlowExpr::unsafe_arena_set_allocated_flow_id(
::greptime::v1::FlowId* flow_id) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flow_id_);
}
_impl_.flow_id_ = flow_id;
if (flow_id) {
} else {
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.DropFlowExpr.flow_id)
}
inline ::greptime::v1::FlowId* DropFlowExpr::release_flow_id() {
::greptime::v1::FlowId* temp = _impl_.flow_id_;
_impl_.flow_id_ = 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::FlowId* DropFlowExpr::unsafe_arena_release_flow_id() {
// @@protoc_insertion_point(field_release:greptime.v1.DropFlowExpr.flow_id)
::greptime::v1::FlowId* temp = _impl_.flow_id_;
_impl_.flow_id_ = nullptr;
return temp;
}
inline ::greptime::v1::FlowId* DropFlowExpr::_internal_mutable_flow_id() {
if (_impl_.flow_id_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::FlowId>(GetArenaForAllocation());
_impl_.flow_id_ = p;
}
return _impl_.flow_id_;
}
inline ::greptime::v1::FlowId* DropFlowExpr::mutable_flow_id() {
::greptime::v1::FlowId* _msg = _internal_mutable_flow_id();
// @@protoc_insertion_point(field_mutable:greptime.v1.DropFlowExpr.flow_id)
return _msg;
}
inline void DropFlowExpr::set_allocated_flow_id(::greptime::v1::FlowId* flow_id) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.flow_id_;
}
if (flow_id) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(flow_id);
if (message_arena != submessage_arena) {
flow_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, flow_id, submessage_arena);
}
} else {
}
_impl_.flow_id_ = flow_id;
// @@protoc_insertion_point(field_set_allocated:greptime.v1.DropFlowExpr.flow_id)
}
// bool drop_if_exists = 5;
inline void DropFlowExpr::clear_drop_if_exists() {
_impl_.drop_if_exists_ = false;
}
inline bool DropFlowExpr::_internal_drop_if_exists() const {
return _impl_.drop_if_exists_;
}
inline bool DropFlowExpr::drop_if_exists() const {
// @@protoc_insertion_point(field_get:greptime.v1.DropFlowExpr.drop_if_exists)
return _internal_drop_if_exists();
}
inline void DropFlowExpr::_internal_set_drop_if_exists(bool value) {
_impl_.drop_if_exists_ = value;
}
inline void DropFlowExpr::set_drop_if_exists(bool value) {
_internal_set_drop_if_exists(value);
// @@protoc_insertion_point(field_set:greptime.v1.DropFlowExpr.drop_if_exists)
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
@@ -7688,6 +7981,30 @@ inline void TableId::set_id(uint32_t value) {
// -------------------------------------------------------------------
// FlowId
// uint32 id = 1;
inline void FlowId::clear_id() {
_impl_.id_ = 0u;
}
inline uint32_t FlowId::_internal_id() const {
return _impl_.id_;
}
inline uint32_t FlowId::id() const {
// @@protoc_insertion_point(field_get:greptime.v1.FlowId.id)
return _internal_id();
}
inline void FlowId::_internal_set_id(uint32_t value) {
_impl_.id_ = value;
}
inline void FlowId::set_id(uint32_t value) {
_internal_set_id(value);
// @@protoc_insertion_point(field_set:greptime.v1.FlowId.id)
}
// -------------------------------------------------------------------
// ColumnDef
// string name = 1;
@@ -8104,6 +8421,8 @@ inline void AddColumnLocation::set_allocated_after_column_name(std::string* afte
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+89 -279
View File
@@ -103,8 +103,8 @@ struct FlowResponse_ExtensionEntry_DoNotUseDefaultTypeInternal {
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowResponse_ExtensionEntry_DoNotUseDefaultTypeInternal _FlowResponse_ExtensionEntry_DoNotUse_default_instance_;
PROTOBUF_CONSTEXPR FlowResponse::FlowResponse(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.extension_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_.affected_tasks_)*/{}
/*decltype(_impl_.affected_flows_)*/{}
, /*decltype(_impl_.extension_)*/{::_pbi::ConstantInitialized()}
, /*decltype(_impl_.header_)*/nullptr
, /*decltype(_impl_.affected_rows_)*/uint64_t{0u}
, /*decltype(_impl_._cached_size_)*/{}} {}
@@ -161,23 +161,10 @@ struct DropRequestDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropRequestDefaultTypeInternal _DropRequest_default_instance_;
PROTOBUF_CONSTEXPR TaskId::TaskId(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.id_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct TaskIdDefaultTypeInternal {
PROTOBUF_CONSTEXPR TaskIdDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~TaskIdDefaultTypeInternal() {}
union {
TaskId _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TaskIdDefaultTypeInternal _TaskId_default_instance_;
} // namespace flow
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[11];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[10];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
@@ -243,8 +230,8 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse, _impl_.header_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse, _impl_.affected_rows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse, _impl_.affected_flows_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse, _impl_.extension_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse, _impl_.affected_tasks_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
@@ -276,13 +263,6 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::DropRequest, _impl_.flow_id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::TaskId, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::TaskId, _impl_.id_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, 8, -1, sizeof(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse)},
@@ -295,7 +275,6 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 63, 71, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
{ 73, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
{ 87, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
{ 94, -1, -1, sizeof(::greptime::v1::flow::TaskId)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -309,7 +288,6 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::flow::_CreateRequest_FlowOptionsEntry_DoNotUse_default_instance_._instance,
&::greptime::v1::flow::_CreateRequest_default_instance_._instance,
&::greptime::v1::flow::_DropRequest_default_instance_._instance,
&::greptime::v1::flow::_TaskId_default_instance_._instance,
};
const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
@@ -329,31 +307,30 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
"FlowRequestHeader\0221\n\006create\030\001 \001(\0132\037.grep"
"time.v1.flow.CreateRequestH\000\022-\n\004drop\030\002 \001"
"(\0132\035.greptime.v1.flow.DropRequestH\000B\006\n\004b"
"ody\"\370\001\n\014FlowResponse\022+\n\006header\030\001 \001(\0132\033.g"
"ody\"\363\001\n\014FlowResponse\022+\n\006header\030\001 \001(\0132\033.g"
"reptime.v1.ResponseHeader\022\025\n\raffected_ro"
"ws\030\002 \001(\004\022@\n\textension\030\003 \003(\0132-.greptime.v"
"1.flow.FlowResponse.ExtensionEntry\0220\n\016af"
"fected_tasks\030\004 \003(\0132\030.greptime.v1.flow.Ta"
"skId\0320\n\016ExtensionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v"
"alue\030\002 \001(\014:\0028\001\"\350\002\n\rCreateRequest\022)\n\007flow"
"_id\030\001 \001(\0132\030.greptime.v1.flow.TaskId\022.\n\020s"
"ource_table_ids\030\002 \003(\0132\024.greptime.v1.Tabl"
"eId\022/\n\017sink_table_name\030\003 \001(\0132\026.greptime."
"v1.TableName\022\034\n\024create_if_not_exists\030\004 \001"
"(\010\022\023\n\013expire_when\030\005 \001(\t\022\017\n\007comment\030\006 \001(\t"
"\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_options\030\010 \003(\01320.gr"
"eptime.v1.flow.CreateRequest.FlowOptions"
"Entry\0322\n\020FlowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r"
"\n\005value\030\002 \001(\t:\0028\001\"8\n\013DropRequest\022)\n\007flow"
"_id\030\001 \001(\0132\030.greptime.v1.flow.TaskId\"\024\n\006T"
"askId\022\n\n\002id\030\001 \001(\r2\264\001\n\004Flow\022S\n\022HandleCrea"
"teRemove\022\035.greptime.v1.flow.FlowRequest\032"
"\036.greptime.v1.flow.FlowResponse\022W\n\023Handl"
"eMirrorRequest\022 .greptime.v1.flow.Insert"
"Requests\032\036.greptime.v1.flow.FlowResponse"
"BY\n\023io.greptime.v1.flowB\006ServerZ:github."
"com/GreptimeTeam/greptime-proto/go/grept"
"ime/v1/flowb\006proto3"
"ws\030\002 \001(\004\022+\n\016affected_flows\030\003 \003(\0132\023.grept"
"ime.v1.FlowId\022@\n\textension\030\004 \003(\0132-.grept"
"ime.v1.flow.FlowResponse.ExtensionEntry\032"
"0\n\016ExtensionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
"\002 \001(\014:\0028\001\"\343\002\n\rCreateRequest\022$\n\007flow_id\030\001"
" \001(\0132\023.greptime.v1.FlowId\022.\n\020source_tabl"
"e_ids\030\002 \003(\0132\024.greptime.v1.TableId\022/\n\017sin"
"k_table_name\030\003 \001(\0132\026.greptime.v1.TableNa"
"me\022\034\n\024create_if_not_exists\030\004 \001(\010\022\023\n\013expi"
"re_when\030\005 \001(\t\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 "
"\001(\t\022F\n\014flow_options\030\010 \003(\01320.greptime.v1."
"flow.CreateRequest.FlowOptionsEntry\0322\n\020F"
"lowOptionsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 "
"\001(\t:\0028\001\"3\n\013DropRequest\022$\n\007flow_id\030\001 \001(\0132"
"\023.greptime.v1.FlowId2\264\001\n\004Flow\022S\n\022HandleC"
"reateRemove\022\035.greptime.v1.flow.FlowReque"
"st\032\036.greptime.v1.flow.FlowResponse\022W\n\023Ha"
"ndleMirrorRequest\022 .greptime.v1.flow.Ins"
"ertRequests\032\036.greptime.v1.flow.FlowRespo"
"nseBY\n\023io.greptime.v1.flowB\006ServerZ:gith"
"ub.com/GreptimeTeam/greptime-proto/go/gr"
"eptime/v1/flowb\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -362,9 +339,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflo
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = {
false, false, 1619, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
false, false, 1582, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
"greptime/v1/flow/server.proto",
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 11,
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 10,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
@@ -1453,6 +1430,9 @@ void FlowResponse::clear_header() {
}
_impl_.header_ = nullptr;
}
void FlowResponse::clear_affected_flows() {
_impl_.affected_flows_.Clear();
}
FlowResponse::FlowResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -1466,8 +1446,8 @@ FlowResponse::FlowResponse(const FlowResponse& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
FlowResponse* const _this = this; (void)_this;
new (&_impl_) Impl_{
/*decltype(_impl_.extension_)*/{}
, decltype(_impl_.affected_tasks_){from._impl_.affected_tasks_}
decltype(_impl_.affected_flows_){from._impl_.affected_flows_}
, /*decltype(_impl_.extension_)*/{}
, decltype(_impl_.header_){nullptr}
, decltype(_impl_.affected_rows_){}
, /*decltype(_impl_._cached_size_)*/{}};
@@ -1486,8 +1466,8 @@ inline void FlowResponse::SharedCtor(
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
/*decltype(_impl_.extension_)*/{::_pbi::ArenaInitialized(), arena}
, decltype(_impl_.affected_tasks_){arena}
decltype(_impl_.affected_flows_){arena}
, /*decltype(_impl_.extension_)*/{::_pbi::ArenaInitialized(), arena}
, decltype(_impl_.header_){nullptr}
, decltype(_impl_.affected_rows_){uint64_t{0u}}
, /*decltype(_impl_._cached_size_)*/{}
@@ -1506,9 +1486,9 @@ FlowResponse::~FlowResponse() {
inline void FlowResponse::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
_impl_.affected_flows_.~RepeatedPtrField();
_impl_.extension_.Destruct();
_impl_.extension_.~MapField();
_impl_.affected_tasks_.~RepeatedPtrField();
if (this != internal_default_instance()) delete _impl_.header_;
}
@@ -1526,8 +1506,8 @@ void FlowResponse::Clear() {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.affected_flows_.Clear();
_impl_.extension_.Clear();
_impl_.affected_tasks_.Clear();
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
delete _impl_.header_;
}
@@ -1558,26 +1538,26 @@ const char* FlowResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext*
} else
goto handle_unusual;
continue;
// map<string, bytes> extension = 3;
// repeated .greptime.v1.FlowId affected_flows = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&_impl_.extension_, ptr);
ptr = ctx->ParseMessage(_internal_add_affected_flows(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
} else
goto handle_unusual;
continue;
// repeated .greptime.v1.flow.TaskId affected_tasks = 4;
// map<string, bytes> extension = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_affected_tasks(), ptr);
ptr = ctx->ParseMessage(&_impl_.extension_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
@@ -1626,7 +1606,15 @@ uint8_t* FlowResponse::_InternalSerialize(
target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_affected_rows(), target);
}
// map<string, bytes> extension = 3;
// repeated .greptime.v1.FlowId affected_flows = 3;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_affected_flows_size()); i < n; i++) {
const auto& repfield = this->_internal_affected_flows(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
}
// map<string, bytes> extension = 4;
if (!this->_internal_extension().empty()) {
using MapType = ::_pb::Map<std::string, std::string>;
using WireHelper = FlowResponse_ExtensionEntry_DoNotUse::Funcs;
@@ -1641,25 +1629,17 @@ uint8_t* FlowResponse::_InternalSerialize(
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream);
target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream);
check_utf8(entry);
}
} else {
for (const auto& entry : map_field) {
target = WireHelper::InternalSerialize(3, entry.first, entry.second, target, stream);
target = WireHelper::InternalSerialize(4, entry.first, entry.second, target, stream);
check_utf8(entry);
}
}
}
// repeated .greptime.v1.flow.TaskId affected_tasks = 4;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_affected_tasks_size()); i < n; i++) {
const auto& repfield = this->_internal_affected_tasks(i);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(4, repfield, repfield.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);
@@ -1676,7 +1656,14 @@ size_t FlowResponse::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// map<string, bytes> extension = 3;
// repeated .greptime.v1.FlowId affected_flows = 3;
total_size += 1UL * this->_internal_affected_flows_size();
for (const auto& msg : this->_impl_.affected_flows_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// map<string, bytes> extension = 4;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_extension_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
@@ -1685,13 +1672,6 @@ size_t FlowResponse::ByteSizeLong() const {
total_size += FlowResponse_ExtensionEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// repeated .greptime.v1.flow.TaskId affected_tasks = 4;
total_size += 1UL * this->_internal_affected_tasks_size();
for (const auto& msg : this->_impl_.affected_tasks_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// .greptime.v1.ResponseHeader header = 1;
if (this->_internal_has_header()) {
total_size += 1 +
@@ -1722,8 +1702,8 @@ void FlowResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::P
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
_this->_impl_.affected_flows_.MergeFrom(from._impl_.affected_flows_);
_this->_impl_.extension_.MergeFrom(from._impl_.extension_);
_this->_impl_.affected_tasks_.MergeFrom(from._impl_.affected_tasks_);
if (from._internal_has_header()) {
_this->_internal_mutable_header()->::greptime::v1::ResponseHeader::MergeFrom(
from._internal_header());
@@ -1748,8 +1728,8 @@ bool FlowResponse::IsInitialized() const {
void FlowResponse::InternalSwap(FlowResponse* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
_impl_.affected_flows_.InternalSwap(&other->_impl_.affected_flows_);
_impl_.extension_.InternalSwap(&other->_impl_.extension_);
_impl_.affected_tasks_.InternalSwap(&other->_impl_.affected_tasks_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(FlowResponse, _impl_.affected_rows_)
+ sizeof(FlowResponse::_impl_.affected_rows_)
@@ -1782,11 +1762,11 @@ void CreateRequest_FlowOptionsEntry_DoNotUse::MergeFrom(const CreateRequest_Flow
class CreateRequest::_Internal {
public:
static const ::greptime::v1::flow::TaskId& flow_id(const CreateRequest* msg);
static const ::greptime::v1::FlowId& flow_id(const CreateRequest* msg);
static const ::greptime::v1::TableName& sink_table_name(const CreateRequest* msg);
};
const ::greptime::v1::flow::TaskId&
const ::greptime::v1::FlowId&
CreateRequest::_Internal::flow_id(const CreateRequest* msg) {
return *msg->_impl_.flow_id_;
}
@@ -1794,6 +1774,12 @@ const ::greptime::v1::TableName&
CreateRequest::_Internal::sink_table_name(const CreateRequest* msg) {
return *msg->_impl_.sink_table_name_;
}
void CreateRequest::clear_flow_id() {
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
delete _impl_.flow_id_;
}
_impl_.flow_id_ = nullptr;
}
void CreateRequest::clear_source_table_ids() {
_impl_.source_table_ids_.Clear();
}
@@ -1853,7 +1839,7 @@ CreateRequest::CreateRequest(const CreateRequest& from)
_this->GetArenaForAllocation());
}
if (from._internal_has_flow_id()) {
_this->_impl_.flow_id_ = new ::greptime::v1::flow::TaskId(*from._impl_.flow_id_);
_this->_impl_.flow_id_ = new ::greptime::v1::FlowId(*from._impl_.flow_id_);
}
if (from._internal_has_sink_table_name()) {
_this->_impl_.sink_table_name_ = new ::greptime::v1::TableName(*from._impl_.sink_table_name_);
@@ -1950,7 +1936,7 @@ const char* CreateRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext*
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_flow_id(), ptr);
@@ -2059,7 +2045,7 @@ uint8_t* CreateRequest::_InternalSerialize(
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
if (this->_internal_has_flow_id()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::flow_id(this),
@@ -2200,7 +2186,7 @@ size_t CreateRequest::ByteSizeLong() const {
this->_internal_sql());
}
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
if (this->_internal_has_flow_id()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
@@ -2249,7 +2235,7 @@ void CreateRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::
_this->_internal_set_sql(from._internal_sql());
}
if (from._internal_has_flow_id()) {
_this->_internal_mutable_flow_id()->::greptime::v1::flow::TaskId::MergeFrom(
_this->_internal_mutable_flow_id()->::greptime::v1::FlowId::MergeFrom(
from._internal_flow_id());
}
if (from._internal_has_sink_table_name()) {
@@ -2310,13 +2296,19 @@ void CreateRequest::InternalSwap(CreateRequest* other) {
class DropRequest::_Internal {
public:
static const ::greptime::v1::flow::TaskId& flow_id(const DropRequest* msg);
static const ::greptime::v1::FlowId& flow_id(const DropRequest* msg);
};
const ::greptime::v1::flow::TaskId&
const ::greptime::v1::FlowId&
DropRequest::_Internal::flow_id(const DropRequest* msg) {
return *msg->_impl_.flow_id_;
}
void DropRequest::clear_flow_id() {
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
delete _impl_.flow_id_;
}
_impl_.flow_id_ = nullptr;
}
DropRequest::DropRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
@@ -2332,7 +2324,7 @@ DropRequest::DropRequest(const DropRequest& from)
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_flow_id()) {
_this->_impl_.flow_id_ = new ::greptime::v1::flow::TaskId(*from._impl_.flow_id_);
_this->_impl_.flow_id_ = new ::greptime::v1::FlowId(*from._impl_.flow_id_);
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.DropRequest)
}
@@ -2384,7 +2376,7 @@ const char* DropRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
uint32_t tag;
ptr = ::_pbi::ReadTag(ptr, &tag);
switch (tag >> 3) {
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr = ctx->ParseMessage(_internal_mutable_flow_id(), ptr);
@@ -2421,7 +2413,7 @@ uint8_t* DropRequest::_InternalSerialize(
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
if (this->_internal_has_flow_id()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, _Internal::flow_id(this),
@@ -2444,7 +2436,7 @@ size_t DropRequest::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
if (this->_internal_has_flow_id()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
@@ -2470,7 +2462,7 @@ void DropRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
(void) cached_has_bits;
if (from._internal_has_flow_id()) {
_this->_internal_mutable_flow_id()->::greptime::v1::flow::TaskId::MergeFrom(
_this->_internal_mutable_flow_id()->::greptime::v1::FlowId::MergeFrom(
from._internal_flow_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
@@ -2499,184 +2491,6 @@ void DropRequest::InternalSwap(DropRequest* other) {
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9]);
}
// ===================================================================
class TaskId::_Internal {
public:
};
TaskId::TaskId(::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.flow.TaskId)
}
TaskId::TaskId(const TaskId& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
TaskId* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.id_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.id_ = from._impl_.id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.TaskId)
}
inline void TaskId::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.id_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
}
TaskId::~TaskId() {
// @@protoc_insertion_point(destructor:greptime.v1.flow.TaskId)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void TaskId::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void TaskId::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void TaskId::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.TaskId)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.id_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* TaskId::_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) {
// uint32 id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* TaskId::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.TaskId)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 id = 1;
if (this->_internal_id() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), 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.flow.TaskId)
return target;
}
size_t TaskId::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.TaskId)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TaskId::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
TaskId::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TaskId::GetClassData() const { return &_class_data_; }
void TaskId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<TaskId*>(&to_msg);
auto& from = static_cast<const TaskId&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.TaskId)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void TaskId::CopyFrom(const TaskId& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.TaskId)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TaskId::IsInitialized() const {
return true;
}
void TaskId::InternalSwap(TaskId* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.id_, other->_impl_.id_);
}
::PROTOBUF_NAMESPACE_ID::Metadata TaskId::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_getter, &descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once,
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[10]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace flow
} // namespace v1
@@ -2722,10 +2536,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::flow::DropRequest*
Arena::CreateMaybeMessage< ::greptime::v1::flow::DropRequest >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::flow::DropRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::TaskId*
Arena::CreateMaybeMessage< ::greptime::v1::flow::TaskId >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::flow::TaskId >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
+118 -309
View File
@@ -83,9 +83,6 @@ extern InsertRequestDefaultTypeInternal _InsertRequest_default_instance_;
class InsertRequests;
struct InsertRequestsDefaultTypeInternal;
extern InsertRequestsDefaultTypeInternal _InsertRequests_default_instance_;
class TaskId;
struct TaskIdDefaultTypeInternal;
extern TaskIdDefaultTypeInternal _TaskId_default_instance_;
} // namespace flow
} // namespace v1
} // namespace greptime
@@ -100,7 +97,6 @@ template<> ::greptime::v1::flow::FlowResponse* Arena::CreateMaybeMessage<::grept
template<> ::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::flow::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::InsertRequest>(Arena*);
template<> ::greptime::v1::flow::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::flow::InsertRequests>(Arena*);
template<> ::greptime::v1::flow::TaskId* Arena::CreateMaybeMessage<::greptime::v1::flow::TaskId>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace greptime {
namespace v1 {
@@ -1010,12 +1006,30 @@ class FlowResponse final :
// accessors -------------------------------------------------------
enum : int {
kExtensionFieldNumber = 3,
kAffectedTasksFieldNumber = 4,
kAffectedFlowsFieldNumber = 3,
kExtensionFieldNumber = 4,
kHeaderFieldNumber = 1,
kAffectedRowsFieldNumber = 2,
};
// map<string, bytes> extension = 3;
// repeated .greptime.v1.FlowId affected_flows = 3;
int affected_flows_size() const;
private:
int _internal_affected_flows_size() const;
public:
void clear_affected_flows();
::greptime::v1::FlowId* mutable_affected_flows(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::FlowId >*
mutable_affected_flows();
private:
const ::greptime::v1::FlowId& _internal_affected_flows(int index) const;
::greptime::v1::FlowId* _internal_add_affected_flows();
public:
const ::greptime::v1::FlowId& affected_flows(int index) const;
::greptime::v1::FlowId* add_affected_flows();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::FlowId >&
affected_flows() const;
// map<string, bytes> extension = 4;
int extension_size() const;
private:
int _internal_extension_size() const;
@@ -1032,24 +1046,6 @@ class FlowResponse final :
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
mutable_extension();
// repeated .greptime.v1.flow.TaskId affected_tasks = 4;
int affected_tasks_size() const;
private:
int _internal_affected_tasks_size() const;
public:
void clear_affected_tasks();
::greptime::v1::flow::TaskId* mutable_affected_tasks(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::TaskId >*
mutable_affected_tasks();
private:
const ::greptime::v1::flow::TaskId& _internal_affected_tasks(int index) const;
::greptime::v1::flow::TaskId* _internal_add_affected_tasks();
public:
const ::greptime::v1::flow::TaskId& affected_tasks(int index) const;
::greptime::v1::flow::TaskId* add_affected_tasks();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::TaskId >&
affected_tasks() const;
// .greptime.v1.ResponseHeader header = 1;
bool has_header() const;
private:
@@ -1085,12 +1081,12 @@ class FlowResponse final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::FlowId > affected_flows_;
::PROTOBUF_NAMESPACE_ID::internal::MapField<
FlowResponse_ExtensionEntry_DoNotUse,
std::string, std::string,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BYTES> extension_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::TaskId > affected_tasks_;
::greptime::v1::ResponseHeader* header_;
uint64_t affected_rows_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -1338,23 +1334,23 @@ class CreateRequest final :
std::string* _internal_mutable_sql();
public:
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
bool has_flow_id() const;
private:
bool _internal_has_flow_id() const;
public:
void clear_flow_id();
const ::greptime::v1::flow::TaskId& flow_id() const;
PROTOBUF_NODISCARD ::greptime::v1::flow::TaskId* release_flow_id();
::greptime::v1::flow::TaskId* mutable_flow_id();
void set_allocated_flow_id(::greptime::v1::flow::TaskId* flow_id);
const ::greptime::v1::FlowId& flow_id() const;
PROTOBUF_NODISCARD ::greptime::v1::FlowId* release_flow_id();
::greptime::v1::FlowId* mutable_flow_id();
void set_allocated_flow_id(::greptime::v1::FlowId* flow_id);
private:
const ::greptime::v1::flow::TaskId& _internal_flow_id() const;
::greptime::v1::flow::TaskId* _internal_mutable_flow_id();
const ::greptime::v1::FlowId& _internal_flow_id() const;
::greptime::v1::FlowId* _internal_mutable_flow_id();
public:
void unsafe_arena_set_allocated_flow_id(
::greptime::v1::flow::TaskId* flow_id);
::greptime::v1::flow::TaskId* unsafe_arena_release_flow_id();
::greptime::v1::FlowId* flow_id);
::greptime::v1::FlowId* unsafe_arena_release_flow_id();
// .greptime.v1.TableName sink_table_name = 3;
bool has_sink_table_name() const;
@@ -1400,7 +1396,7 @@ class CreateRequest final :
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr expire_when_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr comment_;
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sql_;
::greptime::v1::flow::TaskId* flow_id_;
::greptime::v1::FlowId* flow_id_;
::greptime::v1::TableName* sink_table_name_;
bool create_if_not_exists_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
@@ -1533,23 +1529,23 @@ class DropRequest final :
enum : int {
kFlowIdFieldNumber = 1,
};
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
bool has_flow_id() const;
private:
bool _internal_has_flow_id() const;
public:
void clear_flow_id();
const ::greptime::v1::flow::TaskId& flow_id() const;
PROTOBUF_NODISCARD ::greptime::v1::flow::TaskId* release_flow_id();
::greptime::v1::flow::TaskId* mutable_flow_id();
void set_allocated_flow_id(::greptime::v1::flow::TaskId* flow_id);
const ::greptime::v1::FlowId& flow_id() const;
PROTOBUF_NODISCARD ::greptime::v1::FlowId* release_flow_id();
::greptime::v1::FlowId* mutable_flow_id();
void set_allocated_flow_id(::greptime::v1::FlowId* flow_id);
private:
const ::greptime::v1::flow::TaskId& _internal_flow_id() const;
::greptime::v1::flow::TaskId* _internal_mutable_flow_id();
const ::greptime::v1::FlowId& _internal_flow_id() const;
::greptime::v1::FlowId* _internal_mutable_flow_id();
public:
void unsafe_arena_set_allocated_flow_id(
::greptime::v1::flow::TaskId* flow_id);
::greptime::v1::flow::TaskId* unsafe_arena_release_flow_id();
::greptime::v1::FlowId* flow_id);
::greptime::v1::FlowId* unsafe_arena_release_flow_id();
// @@protoc_insertion_point(class_scope:greptime.v1.flow.DropRequest)
private:
@@ -1559,155 +1555,7 @@ class DropRequest final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::greptime::v1::flow::TaskId* flow_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
};
// -------------------------------------------------------------------
class TaskId final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.TaskId) */ {
public:
inline TaskId() : TaskId(nullptr) {}
~TaskId() override;
explicit PROTOBUF_CONSTEXPR TaskId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
TaskId(const TaskId& from);
TaskId(TaskId&& from) noexcept
: TaskId() {
*this = ::std::move(from);
}
inline TaskId& operator=(const TaskId& from) {
CopyFrom(from);
return *this;
}
inline TaskId& operator=(TaskId&& 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 TaskId& default_instance() {
return *internal_default_instance();
}
static inline const TaskId* internal_default_instance() {
return reinterpret_cast<const TaskId*>(
&_TaskId_default_instance_);
}
static constexpr int kIndexInFileMessages =
10;
friend void swap(TaskId& a, TaskId& b) {
a.Swap(&b);
}
inline void Swap(TaskId* 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(TaskId* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
TaskId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<TaskId>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const TaskId& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const TaskId& from) {
TaskId::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(TaskId* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.flow.TaskId";
}
protected:
explicit TaskId(::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 {
kIdFieldNumber = 1,
};
// uint32 id = 1;
void clear_id();
uint32_t id() const;
void set_id(uint32_t value);
private:
uint32_t _internal_id() const;
void _internal_set_id(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.flow.TaskId)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
uint32_t id_;
::greptime::v1::FlowId* flow_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -2355,7 +2203,44 @@ inline void FlowResponse::set_affected_rows(uint64_t value) {
// @@protoc_insertion_point(field_set:greptime.v1.flow.FlowResponse.affected_rows)
}
// map<string, bytes> extension = 3;
// repeated .greptime.v1.FlowId affected_flows = 3;
inline int FlowResponse::_internal_affected_flows_size() const {
return _impl_.affected_flows_.size();
}
inline int FlowResponse::affected_flows_size() const {
return _internal_affected_flows_size();
}
inline ::greptime::v1::FlowId* FlowResponse::mutable_affected_flows(int index) {
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowResponse.affected_flows)
return _impl_.affected_flows_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::FlowId >*
FlowResponse::mutable_affected_flows() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.flow.FlowResponse.affected_flows)
return &_impl_.affected_flows_;
}
inline const ::greptime::v1::FlowId& FlowResponse::_internal_affected_flows(int index) const {
return _impl_.affected_flows_.Get(index);
}
inline const ::greptime::v1::FlowId& FlowResponse::affected_flows(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.FlowResponse.affected_flows)
return _internal_affected_flows(index);
}
inline ::greptime::v1::FlowId* FlowResponse::_internal_add_affected_flows() {
return _impl_.affected_flows_.Add();
}
inline ::greptime::v1::FlowId* FlowResponse::add_affected_flows() {
::greptime::v1::FlowId* _add = _internal_add_affected_flows();
// @@protoc_insertion_point(field_add:greptime.v1.flow.FlowResponse.affected_flows)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::FlowId >&
FlowResponse::affected_flows() const {
// @@protoc_insertion_point(field_list:greptime.v1.flow.FlowResponse.affected_flows)
return _impl_.affected_flows_;
}
// map<string, bytes> extension = 4;
inline int FlowResponse::_internal_extension_size() const {
return _impl_.extension_.size();
}
@@ -2384,76 +2269,30 @@ FlowResponse::mutable_extension() {
return _internal_mutable_extension();
}
// repeated .greptime.v1.flow.TaskId affected_tasks = 4;
inline int FlowResponse::_internal_affected_tasks_size() const {
return _impl_.affected_tasks_.size();
}
inline int FlowResponse::affected_tasks_size() const {
return _internal_affected_tasks_size();
}
inline void FlowResponse::clear_affected_tasks() {
_impl_.affected_tasks_.Clear();
}
inline ::greptime::v1::flow::TaskId* FlowResponse::mutable_affected_tasks(int index) {
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowResponse.affected_tasks)
return _impl_.affected_tasks_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::TaskId >*
FlowResponse::mutable_affected_tasks() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.flow.FlowResponse.affected_tasks)
return &_impl_.affected_tasks_;
}
inline const ::greptime::v1::flow::TaskId& FlowResponse::_internal_affected_tasks(int index) const {
return _impl_.affected_tasks_.Get(index);
}
inline const ::greptime::v1::flow::TaskId& FlowResponse::affected_tasks(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.FlowResponse.affected_tasks)
return _internal_affected_tasks(index);
}
inline ::greptime::v1::flow::TaskId* FlowResponse::_internal_add_affected_tasks() {
return _impl_.affected_tasks_.Add();
}
inline ::greptime::v1::flow::TaskId* FlowResponse::add_affected_tasks() {
::greptime::v1::flow::TaskId* _add = _internal_add_affected_tasks();
// @@protoc_insertion_point(field_add:greptime.v1.flow.FlowResponse.affected_tasks)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::flow::TaskId >&
FlowResponse::affected_tasks() const {
// @@protoc_insertion_point(field_list:greptime.v1.flow.FlowResponse.affected_tasks)
return _impl_.affected_tasks_;
}
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// CreateRequest
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
inline bool CreateRequest::_internal_has_flow_id() const {
return this != internal_default_instance() && _impl_.flow_id_ != nullptr;
}
inline bool CreateRequest::has_flow_id() const {
return _internal_has_flow_id();
}
inline void CreateRequest::clear_flow_id() {
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
delete _impl_.flow_id_;
}
_impl_.flow_id_ = nullptr;
inline const ::greptime::v1::FlowId& CreateRequest::_internal_flow_id() const {
const ::greptime::v1::FlowId* p = _impl_.flow_id_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::FlowId&>(
::greptime::v1::_FlowId_default_instance_);
}
inline const ::greptime::v1::flow::TaskId& CreateRequest::_internal_flow_id() const {
const ::greptime::v1::flow::TaskId* p = _impl_.flow_id_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::flow::TaskId&>(
::greptime::v1::flow::_TaskId_default_instance_);
}
inline const ::greptime::v1::flow::TaskId& CreateRequest::flow_id() const {
inline const ::greptime::v1::FlowId& CreateRequest::flow_id() const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.CreateRequest.flow_id)
return _internal_flow_id();
}
inline void CreateRequest::unsafe_arena_set_allocated_flow_id(
::greptime::v1::flow::TaskId* flow_id) {
::greptime::v1::FlowId* flow_id) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flow_id_);
}
@@ -2465,9 +2304,9 @@ inline void CreateRequest::unsafe_arena_set_allocated_flow_id(
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.CreateRequest.flow_id)
}
inline ::greptime::v1::flow::TaskId* CreateRequest::release_flow_id() {
inline ::greptime::v1::FlowId* CreateRequest::release_flow_id() {
::greptime::v1::flow::TaskId* temp = _impl_.flow_id_;
::greptime::v1::FlowId* temp = _impl_.flow_id_;
_impl_.flow_id_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
@@ -2480,34 +2319,35 @@ inline ::greptime::v1::flow::TaskId* CreateRequest::release_flow_id() {
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::flow::TaskId* CreateRequest::unsafe_arena_release_flow_id() {
inline ::greptime::v1::FlowId* CreateRequest::unsafe_arena_release_flow_id() {
// @@protoc_insertion_point(field_release:greptime.v1.flow.CreateRequest.flow_id)
::greptime::v1::flow::TaskId* temp = _impl_.flow_id_;
::greptime::v1::FlowId* temp = _impl_.flow_id_;
_impl_.flow_id_ = nullptr;
return temp;
}
inline ::greptime::v1::flow::TaskId* CreateRequest::_internal_mutable_flow_id() {
inline ::greptime::v1::FlowId* CreateRequest::_internal_mutable_flow_id() {
if (_impl_.flow_id_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::flow::TaskId>(GetArenaForAllocation());
auto* p = CreateMaybeMessage<::greptime::v1::FlowId>(GetArenaForAllocation());
_impl_.flow_id_ = p;
}
return _impl_.flow_id_;
}
inline ::greptime::v1::flow::TaskId* CreateRequest::mutable_flow_id() {
::greptime::v1::flow::TaskId* _msg = _internal_mutable_flow_id();
inline ::greptime::v1::FlowId* CreateRequest::mutable_flow_id() {
::greptime::v1::FlowId* _msg = _internal_mutable_flow_id();
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.CreateRequest.flow_id)
return _msg;
}
inline void CreateRequest::set_allocated_flow_id(::greptime::v1::flow::TaskId* flow_id) {
inline void CreateRequest::set_allocated_flow_id(::greptime::v1::FlowId* flow_id) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.flow_id_;
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flow_id_);
}
if (flow_id) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(flow_id);
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(flow_id));
if (message_arena != submessage_arena) {
flow_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, flow_id, submessage_arena);
@@ -2845,30 +2685,24 @@ CreateRequest::mutable_flow_options() {
// DropRequest
// .greptime.v1.flow.TaskId flow_id = 1;
// .greptime.v1.FlowId flow_id = 1;
inline bool DropRequest::_internal_has_flow_id() const {
return this != internal_default_instance() && _impl_.flow_id_ != nullptr;
}
inline bool DropRequest::has_flow_id() const {
return _internal_has_flow_id();
}
inline void DropRequest::clear_flow_id() {
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
delete _impl_.flow_id_;
}
_impl_.flow_id_ = nullptr;
inline const ::greptime::v1::FlowId& DropRequest::_internal_flow_id() const {
const ::greptime::v1::FlowId* p = _impl_.flow_id_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::FlowId&>(
::greptime::v1::_FlowId_default_instance_);
}
inline const ::greptime::v1::flow::TaskId& DropRequest::_internal_flow_id() const {
const ::greptime::v1::flow::TaskId* p = _impl_.flow_id_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::flow::TaskId&>(
::greptime::v1::flow::_TaskId_default_instance_);
}
inline const ::greptime::v1::flow::TaskId& DropRequest::flow_id() const {
inline const ::greptime::v1::FlowId& DropRequest::flow_id() const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.DropRequest.flow_id)
return _internal_flow_id();
}
inline void DropRequest::unsafe_arena_set_allocated_flow_id(
::greptime::v1::flow::TaskId* flow_id) {
::greptime::v1::FlowId* flow_id) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flow_id_);
}
@@ -2880,9 +2714,9 @@ inline void DropRequest::unsafe_arena_set_allocated_flow_id(
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.DropRequest.flow_id)
}
inline ::greptime::v1::flow::TaskId* DropRequest::release_flow_id() {
inline ::greptime::v1::FlowId* DropRequest::release_flow_id() {
::greptime::v1::flow::TaskId* temp = _impl_.flow_id_;
::greptime::v1::FlowId* temp = _impl_.flow_id_;
_impl_.flow_id_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
@@ -2895,34 +2729,35 @@ inline ::greptime::v1::flow::TaskId* DropRequest::release_flow_id() {
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::flow::TaskId* DropRequest::unsafe_arena_release_flow_id() {
inline ::greptime::v1::FlowId* DropRequest::unsafe_arena_release_flow_id() {
// @@protoc_insertion_point(field_release:greptime.v1.flow.DropRequest.flow_id)
::greptime::v1::flow::TaskId* temp = _impl_.flow_id_;
::greptime::v1::FlowId* temp = _impl_.flow_id_;
_impl_.flow_id_ = nullptr;
return temp;
}
inline ::greptime::v1::flow::TaskId* DropRequest::_internal_mutable_flow_id() {
inline ::greptime::v1::FlowId* DropRequest::_internal_mutable_flow_id() {
if (_impl_.flow_id_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::flow::TaskId>(GetArenaForAllocation());
auto* p = CreateMaybeMessage<::greptime::v1::FlowId>(GetArenaForAllocation());
_impl_.flow_id_ = p;
}
return _impl_.flow_id_;
}
inline ::greptime::v1::flow::TaskId* DropRequest::mutable_flow_id() {
::greptime::v1::flow::TaskId* _msg = _internal_mutable_flow_id();
inline ::greptime::v1::FlowId* DropRequest::mutable_flow_id() {
::greptime::v1::FlowId* _msg = _internal_mutable_flow_id();
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.DropRequest.flow_id)
return _msg;
}
inline void DropRequest::set_allocated_flow_id(::greptime::v1::flow::TaskId* flow_id) {
inline void DropRequest::set_allocated_flow_id(::greptime::v1::FlowId* flow_id) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete _impl_.flow_id_;
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flow_id_);
}
if (flow_id) {
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(flow_id);
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(flow_id));
if (message_arena != submessage_arena) {
flow_id = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
message_arena, flow_id, submessage_arena);
@@ -2935,30 +2770,6 @@ inline void DropRequest::set_allocated_flow_id(::greptime::v1::flow::TaskId* flo
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.DropRequest.flow_id)
}
// -------------------------------------------------------------------
// TaskId
// uint32 id = 1;
inline void TaskId::clear_id() {
_impl_.id_ = 0u;
}
inline uint32_t TaskId::_internal_id() const {
return _impl_.id_;
}
inline uint32_t TaskId::id() const {
// @@protoc_insertion_point(field_get:greptime.v1.flow.TaskId.id)
return _internal_id();
}
inline void TaskId::_internal_set_id(uint32_t value) {
_impl_.id_ = value;
}
inline void TaskId::set_id(uint32_t value) {
_internal_set_id(value);
// @@protoc_insertion_point(field_set:greptime.v1.flow.TaskId.id)
}
#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif // __GNUC__
@@ -2980,8 +2791,6 @@ inline void TaskId::set_id(uint32_t value) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+16 -220
View File
@@ -94,19 +94,6 @@ struct PeerDefaultTypeInternal {
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PeerDefaultTypeInternal _Peer_default_instance_;
PROTOBUF_CONSTEXPR TableId::TableId(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.id_)*/0u
, /*decltype(_impl_._cached_size_)*/{}} {}
struct TableIdDefaultTypeInternal {
PROTOBUF_CONSTEXPR TableIdDefaultTypeInternal()
: _instance(::_pbi::ConstantInitialized{}) {}
~TableIdDefaultTypeInternal() {}
union {
TableId _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TableIdDefaultTypeInternal _TableId_default_instance_;
PROTOBUF_CONSTEXPR TimeInterval::TimeInterval(
::_pbi::ConstantInitialized): _impl_{
/*decltype(_impl_.start_timestamp_millis_)*/int64_t{0}
@@ -151,7 +138,7 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
} // namespace meta
} // namespace v1
} // namespace greptime
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[9];
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[8];
static const ::_pb::EnumDescriptor* file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto[1];
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto = nullptr;
@@ -203,13 +190,6 @@ const uint32_t TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets[] PROT
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::Peer, _impl_.id_),
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::Peer, _impl_.addr_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TableId, _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::TableId, _impl_.id_),
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::greptime::v1::meta::TimeInterval, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
@@ -239,10 +219,9 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
{ 21, -1, -1, sizeof(::greptime::v1::meta::ResponseHeader)},
{ 30, -1, -1, sizeof(::greptime::v1::meta::Error)},
{ 38, -1, -1, sizeof(::greptime::v1::meta::Peer)},
{ 46, -1, -1, sizeof(::greptime::v1::meta::TableId)},
{ 53, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)},
{ 61, -1, -1, sizeof(::greptime::v1::meta::KeyValue)},
{ 69, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)},
{ 46, -1, -1, sizeof(::greptime::v1::meta::TimeInterval)},
{ 54, -1, -1, sizeof(::greptime::v1::meta::KeyValue)},
{ 62, -1, -1, sizeof(::greptime::v1::meta::ProcedureId)},
};
static const ::_pb::Message* const file_default_instances[] = {
@@ -251,7 +230,6 @@ static const ::_pb::Message* const file_default_instances[] = {
&::greptime::v1::meta::_ResponseHeader_default_instance_._instance,
&::greptime::v1::meta::_Error_default_instance_._instance,
&::greptime::v1::meta::_Peer_default_instance_._instance,
&::greptime::v1::meta::_TableId_default_instance_._instance,
&::greptime::v1::meta::_TimeInterval_default_instance_._instance,
&::greptime::v1::meta::_KeyValue_default_instance_._instance,
&::greptime::v1::meta::_ProcedureId_default_instance_._instance,
@@ -270,19 +248,19 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto[] PRO
"d\030\002 \001(\004\022&\n\005error\030\003 \001(\0132\027.greptime.v1.met"
"a.Error\"&\n\005Error\022\014\n\004code\030\001 \001(\005\022\017\n\007err_ms"
"g\030\002 \001(\t\" \n\004Peer\022\n\n\002id\030\001 \001(\004\022\014\n\004addr\030\002 \001("
"\t\"\025\n\007TableId\022\n\n\002id\030\001 \001(\r\"L\n\014TimeInterval"
"\022\036\n\026start_timestamp_millis\030\001 \001(\003\022\034\n\024end_"
"timestamp_millis\030\002 \001(\003\"&\n\010KeyValue\022\013\n\003ke"
"y\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\"\032\n\013ProcedureId\022\013\n"
"\003key\030\001 \001(\014*\"\n\004Role\022\014\n\010DATANODE\020\000\022\014\n\010FRON"
"TEND\020\001B<Z:github.com/GreptimeTeam/grepti"
"me-proto/go/greptime/v1/metab\006proto3"
"\t\"L\n\014TimeInterval\022\036\n\026start_timestamp_mil"
"lis\030\001 \001(\003\022\034\n\024end_timestamp_millis\030\002 \001(\003\""
"&\n\010KeyValue\022\013\n\003key\030\001 \001(\014\022\r\n\005value\030\002 \001(\014\""
"\032\n\013ProcedureId\022\013\n\003key\030\001 \001(\014*\"\n\004Role\022\014\n\010D"
"ATANODE\020\000\022\014\n\010FRONTEND\020\001B<Z:github.com/Gr"
"eptimeTeam/greptime-proto/go/greptime/v1"
"/metab\006proto3"
;
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto = {
false, false, 756, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto,
false, false, 733, descriptor_table_protodef_greptime_2fv1_2fmeta_2fcommon_2eproto,
"greptime/v1/meta/common.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 9,
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once, nullptr, 0, 8,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto::offsets,
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto, file_level_enum_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
file_level_service_descriptors_greptime_2fv1_2fmeta_2fcommon_2eproto,
@@ -1369,184 +1347,6 @@ void Peer::InternalSwap(Peer* other) {
// ===================================================================
class TableId::_Internal {
public:
};
TableId::TableId(::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.TableId)
}
TableId::TableId(const TableId& from)
: ::PROTOBUF_NAMESPACE_ID::Message() {
TableId* const _this = this; (void)_this;
new (&_impl_) Impl_{
decltype(_impl_.id_){}
, /*decltype(_impl_._cached_size_)*/{}};
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
_this->_impl_.id_ = from._impl_.id_;
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.TableId)
}
inline void TableId::SharedCtor(
::_pb::Arena* arena, bool is_message_owned) {
(void)arena;
(void)is_message_owned;
new (&_impl_) Impl_{
decltype(_impl_.id_){0u}
, /*decltype(_impl_._cached_size_)*/{}
};
}
TableId::~TableId() {
// @@protoc_insertion_point(destructor:greptime.v1.meta.TableId)
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
(void)arena;
return;
}
SharedDtor();
}
inline void TableId::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}
void TableId::SetCachedSize(int size) const {
_impl_._cached_size_.Set(size);
}
void TableId::Clear() {
// @@protoc_insertion_point(message_clear_start:greptime.v1.meta.TableId)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
_impl_.id_ = 0u;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* TableId::_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) {
// uint32 id = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
_impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&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* TableId::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.meta.TableId)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// uint32 id = 1;
if (this->_internal_id() != 0) {
target = stream->EnsureSpace(target);
target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_id(), target);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.meta.TableId)
return target;
}
size_t TableId::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.meta.TableId)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// uint32 id = 1;
if (this->_internal_id() != 0) {
total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_id());
}
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData TableId::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
TableId::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*TableId::GetClassData() const { return &_class_data_; }
void TableId::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
auto* const _this = static_cast<TableId*>(&to_msg);
auto& from = static_cast<const TableId&>(from_msg);
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.meta.TableId)
GOOGLE_DCHECK_NE(&from, _this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
if (from._internal_id() != 0) {
_this->_internal_set_id(from._internal_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void TableId::CopyFrom(const TableId& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.meta.TableId)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool TableId::IsInitialized() const {
return true;
}
void TableId::InternalSwap(TableId* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
swap(_impl_.id_, other->_impl_.id_);
}
::PROTOBUF_NAMESPACE_ID::Metadata TableId::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[5]);
}
// ===================================================================
class TimeInterval::_Internal {
public:
};
@@ -1753,7 +1553,7 @@ void TimeInterval::InternalSwap(TimeInterval* other) {
::PROTOBUF_NAMESPACE_ID::Metadata TimeInterval::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[6]);
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[5]);
}
// ===================================================================
@@ -1996,7 +1796,7 @@ void KeyValue::InternalSwap(KeyValue* other) {
::PROTOBUF_NAMESPACE_ID::Metadata KeyValue::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[7]);
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[6]);
}
// ===================================================================
@@ -2194,7 +1994,7 @@ void ProcedureId::InternalSwap(ProcedureId* other) {
::PROTOBUF_NAMESPACE_ID::Metadata ProcedureId::GetMetadata() const {
return ::_pbi::AssignDescriptors(
&descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_getter, &descriptor_table_greptime_2fv1_2fmeta_2fcommon_2eproto_once,
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[8]);
file_level_metadata_greptime_2fv1_2fmeta_2fcommon_2eproto[7]);
}
// @@protoc_insertion_point(namespace_scope)
@@ -2222,10 +2022,6 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::meta::Peer*
Arena::CreateMaybeMessage< ::greptime::v1::meta::Peer >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::Peer >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TableId*
Arena::CreateMaybeMessage< ::greptime::v1::meta::TableId >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::TableId >(arena);
}
template<> PROTOBUF_NOINLINE ::greptime::v1::meta::TimeInterval*
Arena::CreateMaybeMessage< ::greptime::v1::meta::TimeInterval >(Arena* arena) {
return Arena::CreateMessageInternal< ::greptime::v1::meta::TimeInterval >(arena);
+3 -181
View File
@@ -72,9 +72,6 @@ extern RequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _RequestHea
class ResponseHeader;
struct ResponseHeaderDefaultTypeInternal;
extern ResponseHeaderDefaultTypeInternal _ResponseHeader_default_instance_;
class TableId;
struct TableIdDefaultTypeInternal;
extern TableIdDefaultTypeInternal _TableId_default_instance_;
class TimeInterval;
struct TimeIntervalDefaultTypeInternal;
extern TimeIntervalDefaultTypeInternal _TimeInterval_default_instance_;
@@ -89,7 +86,6 @@ template<> ::greptime::v1::meta::ProcedureId* Arena::CreateMaybeMessage<::grepti
template<> ::greptime::v1::meta::RequestHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader>(Arena*);
template<> ::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::meta::RequestHeader_TracingContextEntry_DoNotUse>(Arena*);
template<> ::greptime::v1::meta::ResponseHeader* Arena::CreateMaybeMessage<::greptime::v1::meta::ResponseHeader>(Arena*);
template<> ::greptime::v1::meta::TableId* Arena::CreateMaybeMessage<::greptime::v1::meta::TableId>(Arena*);
template<> ::greptime::v1::meta::TimeInterval* Arena::CreateMaybeMessage<::greptime::v1::meta::TimeInterval>(Arena*);
PROTOBUF_NAMESPACE_CLOSE
namespace greptime {
@@ -865,154 +861,6 @@ class Peer final :
};
// -------------------------------------------------------------------
class TableId final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.TableId) */ {
public:
inline TableId() : TableId(nullptr) {}
~TableId() override;
explicit PROTOBUF_CONSTEXPR TableId(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
TableId(const TableId& from);
TableId(TableId&& from) noexcept
: TableId() {
*this = ::std::move(from);
}
inline TableId& operator=(const TableId& from) {
CopyFrom(from);
return *this;
}
inline TableId& operator=(TableId&& 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 TableId& default_instance() {
return *internal_default_instance();
}
static inline const TableId* internal_default_instance() {
return reinterpret_cast<const TableId*>(
&_TableId_default_instance_);
}
static constexpr int kIndexInFileMessages =
5;
friend void swap(TableId& a, TableId& b) {
a.Swap(&b);
}
inline void Swap(TableId* 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(TableId* other) {
if (other == this) return;
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
InternalSwap(other);
}
// implements Message ----------------------------------------------
TableId* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
return CreateMaybeMessage<TableId>(arena);
}
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
void CopyFrom(const TableId& from);
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
void MergeFrom( const TableId& from) {
TableId::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(TableId* other);
private:
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
return "greptime.v1.meta.TableId";
}
protected:
explicit TableId(::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 {
kIdFieldNumber = 1,
};
// uint32 id = 1;
void clear_id();
uint32_t id() const;
void set_id(uint32_t value);
private:
uint32_t _internal_id() const;
void _internal_set_id(uint32_t value);
public:
// @@protoc_insertion_point(class_scope:greptime.v1.meta.TableId)
private:
class _Internal;
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
uint32_t id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
friend struct ::TableStruct_greptime_2fv1_2fmeta_2fcommon_2eproto;
};
// -------------------------------------------------------------------
class TimeInterval final :
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.meta.TimeInterval) */ {
public:
@@ -1061,7 +909,7 @@ class TimeInterval final :
&_TimeInterval_default_instance_);
}
static constexpr int kIndexInFileMessages =
6;
5;
friend void swap(TimeInterval& a, TimeInterval& b) {
a.Swap(&b);
@@ -1220,7 +1068,7 @@ class KeyValue final :
&_KeyValue_default_instance_);
}
static constexpr int kIndexInFileMessages =
7;
6;
friend void swap(KeyValue& a, KeyValue& b) {
a.Swap(&b);
@@ -1389,7 +1237,7 @@ class ProcedureId final :
&_ProcedureId_default_instance_);
}
static constexpr int kIndexInFileMessages =
8;
7;
friend void swap(ProcedureId& a, ProcedureId& b) {
a.Swap(&b);
@@ -1898,30 +1746,6 @@ inline void Peer::set_allocated_addr(std::string* addr) {
// -------------------------------------------------------------------
// TableId
// uint32 id = 1;
inline void TableId::clear_id() {
_impl_.id_ = 0u;
}
inline uint32_t TableId::_internal_id() const {
return _impl_.id_;
}
inline uint32_t TableId::id() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.TableId.id)
return _internal_id();
}
inline void TableId::_internal_set_id(uint32_t value) {
_impl_.id_ = value;
}
inline void TableId::set_id(uint32_t value) {
_internal_set_id(value);
// @@protoc_insertion_point(field_set:greptime.v1.meta.TableId.id)
}
// -------------------------------------------------------------------
// TimeInterval
// int64 start_timestamp_millis = 1;
@@ -2139,8 +1963,6 @@ inline void ProcedureId::set_allocated_key(std::string* key) {
// -------------------------------------------------------------------
// -------------------------------------------------------------------
// @@protoc_insertion_point(namespace_scope)
+17 -18
View File
@@ -396,15 +396,14 @@ const char descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto[] PROTOB
"baseTaskH\000\022<\n\020create_flow_task\030\013 \001(\0132 .g"
"reptime.v1.meta.CreateFlowTaskH\000\0228\n\016drop"
"_flow_task\030\014 \001(\0132\036.greptime.v1.meta.Drop"
"FlowTaskH\000B\006\n\004task\"\312\001\n\017DdlTaskResponse\0220"
"FlowTaskH\000B\006\n\004task\"\300\001\n\017DdlTaskResponse\0220"
"\n\006header\030\001 \001(\0132 .greptime.v1.meta.Respon"
"seHeader\022*\n\003pid\030\002 \001(\0132\035.greptime.v1.meta"
".ProcedureId\022+\n\010table_id\030\004 \001(\0132\031.greptim"
"e.v1.meta.TableId\022,\n\ttable_ids\030\005 \003(\0132\031.g"
"reptime.v1.meta.TableId*#\n\013DdlTaskType\022\n"
"\n\006Create\020\000\022\010\n\004Drop\020\001B<Z:github.com/Grept"
"imeTeam/greptime-proto/go/greptime/v1/me"
"tab\006proto3"
".ProcedureId\022&\n\010table_id\030\004 \001(\0132\024.greptim"
"e.v1.TableId\022\'\n\ttable_ids\030\005 \003(\0132\024.grepti"
"me.v1.TableId*#\n\013DdlTaskType\022\n\n\006Create\020\000"
"\022\010\n\004Drop\020\001B<Z:github.com/GreptimeTeam/gr"
"eptime-proto/go/greptime/v1/metab\006proto3"
;
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps[4] = {
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
@@ -414,7 +413,7 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fmet
};
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto = {
false, false, 2130, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
false, false, 2120, descriptor_table_protodef_greptime_2fv1_2fmeta_2fddl_2eproto,
"greptime/v1/meta/ddl.proto",
&descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_once, descriptor_table_greptime_2fv1_2fmeta_2fddl_2eproto_deps, 4, 13,
schemas, file_default_instances, TableStruct_greptime_2fv1_2fmeta_2fddl_2eproto::offsets,
@@ -3609,7 +3608,7 @@ class DdlTaskResponse::_Internal {
public:
static const ::greptime::v1::meta::ResponseHeader& header(const DdlTaskResponse* msg);
static const ::greptime::v1::meta::ProcedureId& pid(const DdlTaskResponse* msg);
static const ::greptime::v1::meta::TableId& table_id(const DdlTaskResponse* msg);
static const ::greptime::v1::TableId& table_id(const DdlTaskResponse* msg);
};
const ::greptime::v1::meta::ResponseHeader&
@@ -3620,7 +3619,7 @@ const ::greptime::v1::meta::ProcedureId&
DdlTaskResponse::_Internal::pid(const DdlTaskResponse* msg) {
return *msg->_impl_.pid_;
}
const ::greptime::v1::meta::TableId&
const ::greptime::v1::TableId&
DdlTaskResponse::_Internal::table_id(const DdlTaskResponse* msg) {
return *msg->_impl_.table_id_;
}
@@ -3669,7 +3668,7 @@ DdlTaskResponse::DdlTaskResponse(const DdlTaskResponse& from)
_this->_impl_.pid_ = new ::greptime::v1::meta::ProcedureId(*from._impl_.pid_);
}
if (from._internal_has_table_id()) {
_this->_impl_.table_id_ = new ::greptime::v1::meta::TableId(*from._impl_.table_id_);
_this->_impl_.table_id_ = new ::greptime::v1::TableId(*from._impl_.table_id_);
}
// @@protoc_insertion_point(copy_constructor:greptime.v1.meta.DdlTaskResponse)
}
@@ -3752,7 +3751,7 @@ const char* DdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex
} else
goto handle_unusual;
continue;
// .greptime.v1.meta.TableId table_id = 4;
// .greptime.v1.TableId table_id = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
ptr = ctx->ParseMessage(_internal_mutable_table_id(), ptr);
@@ -3760,7 +3759,7 @@ const char* DdlTaskResponse::_InternalParse(const char* ptr, ::_pbi::ParseContex
} else
goto handle_unusual;
continue;
// repeated .greptime.v1.meta.TableId table_ids = 5;
// repeated .greptime.v1.TableId table_ids = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr -= 1;
@@ -3816,14 +3815,14 @@ uint8_t* DdlTaskResponse::_InternalSerialize(
_Internal::pid(this).GetCachedSize(), target, stream);
}
// .greptime.v1.meta.TableId table_id = 4;
// .greptime.v1.TableId table_id = 4;
if (this->_internal_has_table_id()) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(4, _Internal::table_id(this),
_Internal::table_id(this).GetCachedSize(), target, stream);
}
// repeated .greptime.v1.meta.TableId table_ids = 5;
// repeated .greptime.v1.TableId table_ids = 5;
for (unsigned i = 0,
n = static_cast<unsigned>(this->_internal_table_ids_size()); i < n; i++) {
const auto& repfield = this->_internal_table_ids(i);
@@ -3847,7 +3846,7 @@ size_t DdlTaskResponse::ByteSizeLong() const {
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .greptime.v1.meta.TableId table_ids = 5;
// repeated .greptime.v1.TableId table_ids = 5;
total_size += 1UL * this->_internal_table_ids_size();
for (const auto& msg : this->_impl_.table_ids_) {
total_size +=
@@ -3868,7 +3867,7 @@ size_t DdlTaskResponse::ByteSizeLong() const {
*_impl_.pid_);
}
// .greptime.v1.meta.TableId table_id = 4;
// .greptime.v1.TableId table_id = 4;
if (this->_internal_has_table_id()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
@@ -3903,7 +3902,7 @@ void DdlTaskResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const
from._internal_pid());
}
if (from._internal_has_table_id()) {
_this->_internal_mutable_table_id()->::greptime::v1::meta::TableId::MergeFrom(
_this->_internal_mutable_table_id()->::greptime::v1::TableId::MergeFrom(
from._internal_table_id());
}
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
+44 -44
View File
@@ -2463,22 +2463,22 @@ class DdlTaskResponse final :
kPidFieldNumber = 2,
kTableIdFieldNumber = 4,
};
// repeated .greptime.v1.meta.TableId table_ids = 5;
// repeated .greptime.v1.TableId table_ids = 5;
int table_ids_size() const;
private:
int _internal_table_ids_size() const;
public:
void clear_table_ids();
::greptime::v1::meta::TableId* mutable_table_ids(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId >*
::greptime::v1::TableId* mutable_table_ids(int index);
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >*
mutable_table_ids();
private:
const ::greptime::v1::meta::TableId& _internal_table_ids(int index) const;
::greptime::v1::meta::TableId* _internal_add_table_ids();
const ::greptime::v1::TableId& _internal_table_ids(int index) const;
::greptime::v1::TableId* _internal_add_table_ids();
public:
const ::greptime::v1::meta::TableId& table_ids(int index) const;
::greptime::v1::meta::TableId* add_table_ids();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId >&
const ::greptime::v1::TableId& table_ids(int index) const;
::greptime::v1::TableId* add_table_ids();
const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >&
table_ids() const;
// .greptime.v1.meta.ResponseHeader header = 1;
@@ -2517,23 +2517,23 @@ class DdlTaskResponse final :
::greptime::v1::meta::ProcedureId* pid);
::greptime::v1::meta::ProcedureId* unsafe_arena_release_pid();
// .greptime.v1.meta.TableId table_id = 4;
// .greptime.v1.TableId table_id = 4;
bool has_table_id() const;
private:
bool _internal_has_table_id() const;
public:
void clear_table_id();
const ::greptime::v1::meta::TableId& table_id() const;
PROTOBUF_NODISCARD ::greptime::v1::meta::TableId* release_table_id();
::greptime::v1::meta::TableId* mutable_table_id();
void set_allocated_table_id(::greptime::v1::meta::TableId* table_id);
const ::greptime::v1::TableId& table_id() const;
PROTOBUF_NODISCARD ::greptime::v1::TableId* release_table_id();
::greptime::v1::TableId* mutable_table_id();
void set_allocated_table_id(::greptime::v1::TableId* table_id);
private:
const ::greptime::v1::meta::TableId& _internal_table_id() const;
::greptime::v1::meta::TableId* _internal_mutable_table_id();
const ::greptime::v1::TableId& _internal_table_id() const;
::greptime::v1::TableId* _internal_mutable_table_id();
public:
void unsafe_arena_set_allocated_table_id(
::greptime::v1::meta::TableId* table_id);
::greptime::v1::meta::TableId* unsafe_arena_release_table_id();
::greptime::v1::TableId* table_id);
::greptime::v1::TableId* unsafe_arena_release_table_id();
// @@protoc_insertion_point(class_scope:greptime.v1.meta.DdlTaskResponse)
private:
@@ -2543,10 +2543,10 @@ class DdlTaskResponse final :
typedef void InternalArenaConstructable_;
typedef void DestructorSkippable_;
struct Impl_ {
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId > table_ids_;
::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId > table_ids_;
::greptime::v1::meta::ResponseHeader* header_;
::greptime::v1::meta::ProcedureId* pid_;
::greptime::v1::meta::TableId* table_id_;
::greptime::v1::TableId* table_id_;
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
};
union { Impl_ _impl_; };
@@ -4661,24 +4661,24 @@ inline void DdlTaskResponse::set_allocated_pid(::greptime::v1::meta::ProcedureId
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskResponse.pid)
}
// .greptime.v1.meta.TableId table_id = 4;
// .greptime.v1.TableId table_id = 4;
inline bool DdlTaskResponse::_internal_has_table_id() const {
return this != internal_default_instance() && _impl_.table_id_ != nullptr;
}
inline bool DdlTaskResponse::has_table_id() const {
return _internal_has_table_id();
}
inline const ::greptime::v1::meta::TableId& DdlTaskResponse::_internal_table_id() const {
const ::greptime::v1::meta::TableId* p = _impl_.table_id_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::meta::TableId&>(
::greptime::v1::meta::_TableId_default_instance_);
inline const ::greptime::v1::TableId& DdlTaskResponse::_internal_table_id() const {
const ::greptime::v1::TableId* p = _impl_.table_id_;
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::TableId&>(
::greptime::v1::_TableId_default_instance_);
}
inline const ::greptime::v1::meta::TableId& DdlTaskResponse::table_id() const {
inline const ::greptime::v1::TableId& DdlTaskResponse::table_id() const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskResponse.table_id)
return _internal_table_id();
}
inline void DdlTaskResponse::unsafe_arena_set_allocated_table_id(
::greptime::v1::meta::TableId* table_id) {
::greptime::v1::TableId* table_id) {
if (GetArenaForAllocation() == nullptr) {
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_id_);
}
@@ -4690,9 +4690,9 @@ inline void DdlTaskResponse::unsafe_arena_set_allocated_table_id(
}
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.meta.DdlTaskResponse.table_id)
}
inline ::greptime::v1::meta::TableId* DdlTaskResponse::release_table_id() {
inline ::greptime::v1::TableId* DdlTaskResponse::release_table_id() {
::greptime::v1::meta::TableId* temp = _impl_.table_id_;
::greptime::v1::TableId* temp = _impl_.table_id_;
_impl_.table_id_ = nullptr;
#ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
@@ -4705,27 +4705,27 @@ inline ::greptime::v1::meta::TableId* DdlTaskResponse::release_table_id() {
#endif // !PROTOBUF_FORCE_COPY_IN_RELEASE
return temp;
}
inline ::greptime::v1::meta::TableId* DdlTaskResponse::unsafe_arena_release_table_id() {
inline ::greptime::v1::TableId* DdlTaskResponse::unsafe_arena_release_table_id() {
// @@protoc_insertion_point(field_release:greptime.v1.meta.DdlTaskResponse.table_id)
::greptime::v1::meta::TableId* temp = _impl_.table_id_;
::greptime::v1::TableId* temp = _impl_.table_id_;
_impl_.table_id_ = nullptr;
return temp;
}
inline ::greptime::v1::meta::TableId* DdlTaskResponse::_internal_mutable_table_id() {
inline ::greptime::v1::TableId* DdlTaskResponse::_internal_mutable_table_id() {
if (_impl_.table_id_ == nullptr) {
auto* p = CreateMaybeMessage<::greptime::v1::meta::TableId>(GetArenaForAllocation());
auto* p = CreateMaybeMessage<::greptime::v1::TableId>(GetArenaForAllocation());
_impl_.table_id_ = p;
}
return _impl_.table_id_;
}
inline ::greptime::v1::meta::TableId* DdlTaskResponse::mutable_table_id() {
::greptime::v1::meta::TableId* _msg = _internal_mutable_table_id();
inline ::greptime::v1::TableId* DdlTaskResponse::mutable_table_id() {
::greptime::v1::TableId* _msg = _internal_mutable_table_id();
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskResponse.table_id)
return _msg;
}
inline void DdlTaskResponse::set_allocated_table_id(::greptime::v1::meta::TableId* table_id) {
inline void DdlTaskResponse::set_allocated_table_id(::greptime::v1::TableId* table_id) {
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
if (message_arena == nullptr) {
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.table_id_);
@@ -4746,38 +4746,38 @@ inline void DdlTaskResponse::set_allocated_table_id(::greptime::v1::meta::TableI
// @@protoc_insertion_point(field_set_allocated:greptime.v1.meta.DdlTaskResponse.table_id)
}
// repeated .greptime.v1.meta.TableId table_ids = 5;
// repeated .greptime.v1.TableId table_ids = 5;
inline int DdlTaskResponse::_internal_table_ids_size() const {
return _impl_.table_ids_.size();
}
inline int DdlTaskResponse::table_ids_size() const {
return _internal_table_ids_size();
}
inline ::greptime::v1::meta::TableId* DdlTaskResponse::mutable_table_ids(int index) {
inline ::greptime::v1::TableId* DdlTaskResponse::mutable_table_ids(int index) {
// @@protoc_insertion_point(field_mutable:greptime.v1.meta.DdlTaskResponse.table_ids)
return _impl_.table_ids_.Mutable(index);
}
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId >*
inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >*
DdlTaskResponse::mutable_table_ids() {
// @@protoc_insertion_point(field_mutable_list:greptime.v1.meta.DdlTaskResponse.table_ids)
return &_impl_.table_ids_;
}
inline const ::greptime::v1::meta::TableId& DdlTaskResponse::_internal_table_ids(int index) const {
inline const ::greptime::v1::TableId& DdlTaskResponse::_internal_table_ids(int index) const {
return _impl_.table_ids_.Get(index);
}
inline const ::greptime::v1::meta::TableId& DdlTaskResponse::table_ids(int index) const {
inline const ::greptime::v1::TableId& DdlTaskResponse::table_ids(int index) const {
// @@protoc_insertion_point(field_get:greptime.v1.meta.DdlTaskResponse.table_ids)
return _internal_table_ids(index);
}
inline ::greptime::v1::meta::TableId* DdlTaskResponse::_internal_add_table_ids() {
inline ::greptime::v1::TableId* DdlTaskResponse::_internal_add_table_ids() {
return _impl_.table_ids_.Add();
}
inline ::greptime::v1::meta::TableId* DdlTaskResponse::add_table_ids() {
::greptime::v1::meta::TableId* _add = _internal_add_table_ids();
inline ::greptime::v1::TableId* DdlTaskResponse::add_table_ids() {
::greptime::v1::TableId* _add = _internal_add_table_ids();
// @@protoc_insertion_point(field_add:greptime.v1.meta.DdlTaskResponse.table_ids)
return _add;
}
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::meta::TableId >&
inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::greptime::v1::TableId >&
DdlTaskResponse::table_ids() const {
// @@protoc_insertion_point(field_list:greptime.v1.meta.DdlTaskResponse.table_ids)
return _impl_.table_ids_;