feat: flush flow request (#182)
* feat: flush flow * chore: make all * chore: newline
This commit is contained in:
@@ -161,10 +161,23 @@ struct DropRequestDefaultTypeInternal {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropRequestDefaultTypeInternal _DropRequest_default_instance_;
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DropRequestDefaultTypeInternal _DropRequest_default_instance_;
|
||||||
|
PROTOBUF_CONSTEXPR FlushFlow::FlushFlow(
|
||||||
|
::_pbi::ConstantInitialized): _impl_{
|
||||||
|
/*decltype(_impl_.flow_id_)*/nullptr
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||||
|
struct FlushFlowDefaultTypeInternal {
|
||||||
|
PROTOBUF_CONSTEXPR FlushFlowDefaultTypeInternal()
|
||||||
|
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||||
|
~FlushFlowDefaultTypeInternal() {}
|
||||||
|
union {
|
||||||
|
FlushFlow _instance;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlushFlowDefaultTypeInternal _FlushFlow_default_instance_;
|
||||||
} // namespace flow
|
} // namespace flow
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
} // namespace greptime
|
} // namespace greptime
|
||||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[10];
|
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[11];
|
||||||
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
|
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;
|
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
|
||||||
|
|
||||||
@@ -211,6 +224,7 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
|
|||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_.header_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_.header_),
|
||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
::_pbi::kInvalidFieldOffsetTag,
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
|
::_pbi::kInvalidFieldOffsetTag,
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_.body_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_.body_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse, _has_bits_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse, _has_bits_),
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse, _internal_metadata_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse, _internal_metadata_),
|
||||||
@@ -263,6 +277,13 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
|
|||||||
~0u, // no _weak_field_map_
|
~0u, // no _weak_field_map_
|
||||||
~0u, // no _inlined_string_donated_
|
~0u, // no _inlined_string_donated_
|
||||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::DropRequest, _impl_.flow_id_),
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::DropRequest, _impl_.flow_id_),
|
||||||
|
~0u, // no _has_bits_
|
||||||
|
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlushFlow, _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::FlushFlow, _impl_.flow_id_),
|
||||||
};
|
};
|
||||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||||
{ 0, 8, -1, sizeof(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse)},
|
{ 0, 8, -1, sizeof(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse)},
|
||||||
@@ -270,11 +291,12 @@ static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protode
|
|||||||
{ 18, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
|
{ 18, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
|
||||||
{ 25, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
|
{ 25, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
|
||||||
{ 33, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
|
{ 33, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
|
||||||
{ 43, 51, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse)},
|
{ 44, 52, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse)},
|
||||||
{ 53, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
|
{ 54, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
|
||||||
{ 63, 71, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
|
{ 64, 72, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
|
||||||
{ 73, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
|
{ 74, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
|
||||||
{ 87, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
|
{ 88, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
|
||||||
|
{ 95, -1, -1, sizeof(::greptime::v1::flow::FlushFlow)},
|
||||||
};
|
};
|
||||||
|
|
||||||
static const ::_pb::Message* const file_default_instances[] = {
|
static const ::_pb::Message* const file_default_instances[] = {
|
||||||
@@ -288,6 +310,7 @@ static const ::_pb::Message* const file_default_instances[] = {
|
|||||||
&::greptime::v1::flow::_CreateRequest_FlowOptionsEntry_DoNotUse_default_instance_._instance,
|
&::greptime::v1::flow::_CreateRequest_FlowOptionsEntry_DoNotUse_default_instance_._instance,
|
||||||
&::greptime::v1::flow::_CreateRequest_default_instance_._instance,
|
&::greptime::v1::flow::_CreateRequest_default_instance_._instance,
|
||||||
&::greptime::v1::flow::_DropRequest_default_instance_._instance,
|
&::greptime::v1::flow::_DropRequest_default_instance_._instance,
|
||||||
|
&::greptime::v1::flow::_FlushFlow_default_instance_._instance,
|
||||||
};
|
};
|
||||||
|
|
||||||
const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
|
||||||
@@ -302,36 +325,38 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
|
|||||||
"\030\002 \001(\t:\0028\001\"C\n\016InsertRequests\0221\n\010requests"
|
"\030\002 \001(\t:\0028\001\"C\n\016InsertRequests\0221\n\010requests"
|
||||||
"\030\001 \003(\0132\037.greptime.v1.flow.InsertRequest\""
|
"\030\001 \003(\0132\037.greptime.v1.flow.InsertRequest\""
|
||||||
"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004r"
|
"C\n\rInsertRequest\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004r"
|
||||||
"ows\030\002 \001(\0132\021.greptime.v1.Rows\"\254\001\n\013FlowReq"
|
"ows\030\002 \001(\0132\021.greptime.v1.Rows\"\332\001\n\013FlowReq"
|
||||||
"uest\0223\n\006header\030@ \001(\0132#.greptime.v1.flow."
|
"uest\0223\n\006header\030@ \001(\0132#.greptime.v1.flow."
|
||||||
"FlowRequestHeader\0221\n\006create\030\001 \001(\0132\037.grep"
|
"FlowRequestHeader\0221\n\006create\030\001 \001(\0132\037.grep"
|
||||||
"time.v1.flow.CreateRequestH\000\022-\n\004drop\030\002 \001"
|
"time.v1.flow.CreateRequestH\000\022-\n\004drop\030\002 \001"
|
||||||
"(\0132\035.greptime.v1.flow.DropRequestH\000B\006\n\004b"
|
"(\0132\035.greptime.v1.flow.DropRequestH\000\022,\n\005f"
|
||||||
"ody\"\363\001\n\014FlowResponse\022+\n\006header\030\001 \001(\0132\033.g"
|
"lush\030\003 \001(\0132\033.greptime.v1.flow.FlushFlowH"
|
||||||
"reptime.v1.ResponseHeader\022\025\n\raffected_ro"
|
"\000B\006\n\004body\"\363\001\n\014FlowResponse\022+\n\006header\030\001 \001"
|
||||||
"ws\030\002 \001(\004\022+\n\016affected_flows\030\003 \003(\0132\023.grept"
|
"(\0132\033.greptime.v1.ResponseHeader\022\025\n\raffec"
|
||||||
"ime.v1.FlowId\022@\n\textension\030\004 \003(\0132-.grept"
|
"ted_rows\030\002 \001(\004\022+\n\016affected_flows\030\003 \003(\0132\023"
|
||||||
"ime.v1.flow.FlowResponse.ExtensionEntry\032"
|
".greptime.v1.FlowId\022@\n\textension\030\004 \003(\0132-"
|
||||||
"0\n\016ExtensionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030"
|
".greptime.v1.flow.FlowResponse.Extension"
|
||||||
"\002 \001(\014:\0028\001\"\376\002\n\rCreateRequest\022$\n\007flow_id\030\001"
|
"Entry\0320\n\016ExtensionEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005"
|
||||||
" \001(\0132\023.greptime.v1.FlowId\022.\n\020source_tabl"
|
"value\030\002 \001(\014:\0028\001\"\376\002\n\rCreateRequest\022$\n\007flo"
|
||||||
"e_ids\030\002 \003(\0132\024.greptime.v1.TableId\022/\n\017sin"
|
"w_id\030\001 \001(\0132\023.greptime.v1.FlowId\022.\n\020sourc"
|
||||||
"k_table_name\030\003 \001(\0132\026.greptime.v1.TableNa"
|
"e_table_ids\030\002 \003(\0132\024.greptime.v1.TableId\022"
|
||||||
"me\022\034\n\024create_if_not_exists\030\004 \001(\010\022.\n\014expi"
|
"/\n\017sink_table_name\030\003 \001(\0132\026.greptime.v1.T"
|
||||||
"re_after\030\005 \001(\0132\030.greptime.v1.ExpireAfter"
|
"ableName\022\034\n\024create_if_not_exists\030\004 \001(\010\022."
|
||||||
"\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014flow_o"
|
"\n\014expire_after\030\005 \001(\0132\030.greptime.v1.Expir"
|
||||||
"ptions\030\010 \003(\01320.greptime.v1.flow.CreateRe"
|
"eAfter\022\017\n\007comment\030\006 \001(\t\022\013\n\003sql\030\007 \001(\t\022F\n\014"
|
||||||
"quest.FlowOptionsEntry\0322\n\020FlowOptionsEnt"
|
"flow_options\030\010 \003(\01320.greptime.v1.flow.Cr"
|
||||||
"ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"3\n\013Dr"
|
"eateRequest.FlowOptionsEntry\0322\n\020FlowOpti"
|
||||||
"opRequest\022$\n\007flow_id\030\001 \001(\0132\023.greptime.v1"
|
"onsEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001"
|
||||||
".FlowId2\264\001\n\004Flow\022S\n\022HandleCreateRemove\022\035"
|
"\"3\n\013DropRequest\022$\n\007flow_id\030\001 \001(\0132\023.grept"
|
||||||
".greptime.v1.flow.FlowRequest\032\036.greptime"
|
"ime.v1.FlowId\"1\n\tFlushFlow\022$\n\007flow_id\030\001 "
|
||||||
".v1.flow.FlowResponse\022W\n\023HandleMirrorReq"
|
"\001(\0132\023.greptime.v1.FlowId2\264\001\n\004Flow\022S\n\022Han"
|
||||||
"uest\022 .greptime.v1.flow.InsertRequests\032\036"
|
"dleCreateRemove\022\035.greptime.v1.flow.FlowR"
|
||||||
".greptime.v1.flow.FlowResponseBY\n\023io.gre"
|
"equest\032\036.greptime.v1.flow.FlowResponse\022W"
|
||||||
"ptime.v1.flowB\006ServerZ:github.com/Grepti"
|
"\n\023HandleMirrorRequest\022 .greptime.v1.flow"
|
||||||
"meTeam/greptime-proto/go/greptime/v1/flo"
|
".InsertRequests\032\036.greptime.v1.flow.FlowR"
|
||||||
"wb\006proto3"
|
"esponseBY\n\023io.greptime.v1.flowB\006ServerZ:"
|
||||||
|
"github.com/GreptimeTeam/greptime-proto/g"
|
||||||
|
"o/greptime/v1/flowb\006proto3"
|
||||||
;
|
;
|
||||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
|
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
|
||||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||||
@@ -340,9 +365,9 @@ static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflo
|
|||||||
};
|
};
|
||||||
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once;
|
static ::_pbi::once_flag descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once;
|
||||||
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = {
|
const ::_pbi::DescriptorTable descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto = {
|
||||||
false, false, 1609, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
|
false, false, 1706, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||||
"greptime/v1/flow/server.proto",
|
"greptime/v1/flow/server.proto",
|
||||||
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 10,
|
&descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_once, descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps, 3, 11,
|
||||||
schemas, file_default_instances, TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets,
|
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_metadata_greptime_2fv1_2fflow_2fserver_2eproto, file_level_enum_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||||
file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
|
file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||||
@@ -1060,6 +1085,7 @@ class FlowRequest::_Internal {
|
|||||||
static const ::greptime::v1::flow::FlowRequestHeader& header(const FlowRequest* msg);
|
static const ::greptime::v1::flow::FlowRequestHeader& header(const FlowRequest* msg);
|
||||||
static const ::greptime::v1::flow::CreateRequest& create(const FlowRequest* msg);
|
static const ::greptime::v1::flow::CreateRequest& create(const FlowRequest* msg);
|
||||||
static const ::greptime::v1::flow::DropRequest& drop(const FlowRequest* msg);
|
static const ::greptime::v1::flow::DropRequest& drop(const FlowRequest* msg);
|
||||||
|
static const ::greptime::v1::flow::FlushFlow& flush(const FlowRequest* msg);
|
||||||
};
|
};
|
||||||
|
|
||||||
const ::greptime::v1::flow::FlowRequestHeader&
|
const ::greptime::v1::flow::FlowRequestHeader&
|
||||||
@@ -1074,6 +1100,10 @@ const ::greptime::v1::flow::DropRequest&
|
|||||||
FlowRequest::_Internal::drop(const FlowRequest* msg) {
|
FlowRequest::_Internal::drop(const FlowRequest* msg) {
|
||||||
return *msg->_impl_.body_.drop_;
|
return *msg->_impl_.body_.drop_;
|
||||||
}
|
}
|
||||||
|
const ::greptime::v1::flow::FlushFlow&
|
||||||
|
FlowRequest::_Internal::flush(const FlowRequest* msg) {
|
||||||
|
return *msg->_impl_.body_.flush_;
|
||||||
|
}
|
||||||
void FlowRequest::set_allocated_create(::greptime::v1::flow::CreateRequest* create) {
|
void FlowRequest::set_allocated_create(::greptime::v1::flow::CreateRequest* create) {
|
||||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
clear_body();
|
clear_body();
|
||||||
@@ -1104,6 +1134,21 @@ void FlowRequest::set_allocated_drop(::greptime::v1::flow::DropRequest* drop) {
|
|||||||
}
|
}
|
||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRequest.drop)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRequest.drop)
|
||||||
}
|
}
|
||||||
|
void FlowRequest::set_allocated_flush(::greptime::v1::flow::FlushFlow* flush) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
|
clear_body();
|
||||||
|
if (flush) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(flush);
|
||||||
|
if (message_arena != submessage_arena) {
|
||||||
|
flush = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||||
|
message_arena, flush, submessage_arena);
|
||||||
|
}
|
||||||
|
set_has_flush();
|
||||||
|
_impl_.body_.flush_ = flush;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRequest.flush)
|
||||||
|
}
|
||||||
FlowRequest::FlowRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
FlowRequest::FlowRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||||
bool is_message_owned)
|
bool is_message_owned)
|
||||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||||
@@ -1135,6 +1180,11 @@ FlowRequest::FlowRequest(const FlowRequest& from)
|
|||||||
from._internal_drop());
|
from._internal_drop());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kFlush: {
|
||||||
|
_this->_internal_mutable_flush()->::greptime::v1::flow::FlushFlow::MergeFrom(
|
||||||
|
from._internal_flush());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case BODY_NOT_SET: {
|
case BODY_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1191,6 +1241,12 @@ void FlowRequest::clear_body() {
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kFlush: {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.body_.flush_;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
case BODY_NOT_SET: {
|
case BODY_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1235,6 +1291,14 @@ const char* FlowRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
|
|||||||
} else
|
} else
|
||||||
goto handle_unusual;
|
goto handle_unusual;
|
||||||
continue;
|
continue;
|
||||||
|
// .greptime.v1.flow.FlushFlow flush = 3;
|
||||||
|
case 3:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
|
||||||
|
ptr = ctx->ParseMessage(_internal_mutable_flush(), ptr);
|
||||||
|
CHK_(ptr);
|
||||||
|
} else
|
||||||
|
goto handle_unusual;
|
||||||
|
continue;
|
||||||
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
||||||
case 64:
|
case 64:
|
||||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 2)) {
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 2)) {
|
||||||
@@ -1286,6 +1350,13 @@ uint8_t* FlowRequest::_InternalSerialize(
|
|||||||
_Internal::drop(this).GetCachedSize(), target, stream);
|
_Internal::drop(this).GetCachedSize(), target, stream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.flow.FlushFlow flush = 3;
|
||||||
|
if (_internal_has_flush()) {
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(3, _Internal::flush(this),
|
||||||
|
_Internal::flush(this).GetCachedSize(), target, stream);
|
||||||
|
}
|
||||||
|
|
||||||
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
||||||
if (this->_internal_has_header()) {
|
if (this->_internal_has_header()) {
|
||||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
@@ -1331,6 +1402,13 @@ size_t FlowRequest::ByteSizeLong() const {
|
|||||||
*_impl_.body_.drop_);
|
*_impl_.body_.drop_);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
// .greptime.v1.flow.FlushFlow flush = 3;
|
||||||
|
case kFlush: {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
|
*_impl_.body_.flush_);
|
||||||
|
break;
|
||||||
|
}
|
||||||
case BODY_NOT_SET: {
|
case BODY_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -1368,6 +1446,11 @@ void FlowRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
|
|||||||
from._internal_drop());
|
from._internal_drop());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case kFlush: {
|
||||||
|
_this->_internal_mutable_flush()->::greptime::v1::flow::FlushFlow::MergeFrom(
|
||||||
|
from._internal_flush());
|
||||||
|
break;
|
||||||
|
}
|
||||||
case BODY_NOT_SET: {
|
case BODY_NOT_SET: {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2489,6 +2572,205 @@ void DropRequest::InternalSwap(DropRequest* other) {
|
|||||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9]);
|
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ===================================================================
|
||||||
|
|
||||||
|
class FlushFlow::_Internal {
|
||||||
|
public:
|
||||||
|
static const ::greptime::v1::FlowId& flow_id(const FlushFlow* msg);
|
||||||
|
};
|
||||||
|
|
||||||
|
const ::greptime::v1::FlowId&
|
||||||
|
FlushFlow::_Internal::flow_id(const FlushFlow* msg) {
|
||||||
|
return *msg->_impl_.flow_id_;
|
||||||
|
}
|
||||||
|
void FlushFlow::clear_flow_id() {
|
||||||
|
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
|
||||||
|
delete _impl_.flow_id_;
|
||||||
|
}
|
||||||
|
_impl_.flow_id_ = nullptr;
|
||||||
|
}
|
||||||
|
FlushFlow::FlushFlow(::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.FlushFlow)
|
||||||
|
}
|
||||||
|
FlushFlow::FlushFlow(const FlushFlow& from)
|
||||||
|
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||||
|
FlushFlow* const _this = this; (void)_this;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.flow_id_){nullptr}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}};
|
||||||
|
|
||||||
|
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
if (from._internal_has_flow_id()) {
|
||||||
|
_this->_impl_.flow_id_ = new ::greptime::v1::FlowId(*from._impl_.flow_id_);
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.FlushFlow)
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void FlushFlow::SharedCtor(
|
||||||
|
::_pb::Arena* arena, bool is_message_owned) {
|
||||||
|
(void)arena;
|
||||||
|
(void)is_message_owned;
|
||||||
|
new (&_impl_) Impl_{
|
||||||
|
decltype(_impl_.flow_id_){nullptr}
|
||||||
|
, /*decltype(_impl_._cached_size_)*/{}
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
FlushFlow::~FlushFlow() {
|
||||||
|
// @@protoc_insertion_point(destructor:greptime.v1.flow.FlushFlow)
|
||||||
|
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||||
|
(void)arena;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
SharedDtor();
|
||||||
|
}
|
||||||
|
|
||||||
|
inline void FlushFlow::SharedDtor() {
|
||||||
|
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||||
|
if (this != internal_default_instance()) delete _impl_.flow_id_;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FlushFlow::SetCachedSize(int size) const {
|
||||||
|
_impl_._cached_size_.Set(size);
|
||||||
|
}
|
||||||
|
|
||||||
|
void FlushFlow::Clear() {
|
||||||
|
// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.FlushFlow)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
if (GetArenaForAllocation() == nullptr && _impl_.flow_id_ != nullptr) {
|
||||||
|
delete _impl_.flow_id_;
|
||||||
|
}
|
||||||
|
_impl_.flow_id_ = nullptr;
|
||||||
|
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* FlushFlow::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
|
||||||
|
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
|
||||||
|
while (!ctx->Done(&ptr)) {
|
||||||
|
uint32_t tag;
|
||||||
|
ptr = ::_pbi::ReadTag(ptr, &tag);
|
||||||
|
switch (tag >> 3) {
|
||||||
|
// .greptime.v1.FlowId flow_id = 1;
|
||||||
|
case 1:
|
||||||
|
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||||
|
ptr = ctx->ParseMessage(_internal_mutable_flow_id(), 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* FlushFlow::_InternalSerialize(
|
||||||
|
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.FlushFlow)
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// .greptime.v1.FlowId flow_id = 1;
|
||||||
|
if (this->_internal_has_flow_id()) {
|
||||||
|
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||||
|
InternalWriteMessage(1, _Internal::flow_id(this),
|
||||||
|
_Internal::flow_id(this).GetCachedSize(), target, stream);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
|
||||||
|
target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
|
||||||
|
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(serialize_to_array_end:greptime.v1.flow.FlushFlow)
|
||||||
|
return target;
|
||||||
|
}
|
||||||
|
|
||||||
|
size_t FlushFlow::ByteSizeLong() const {
|
||||||
|
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.FlushFlow)
|
||||||
|
size_t total_size = 0;
|
||||||
|
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
// Prevent compiler warnings about cached_has_bits being unused
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
// .greptime.v1.FlowId flow_id = 1;
|
||||||
|
if (this->_internal_has_flow_id()) {
|
||||||
|
total_size += 1 +
|
||||||
|
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||||
|
*_impl_.flow_id_);
|
||||||
|
}
|
||||||
|
|
||||||
|
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||||
|
}
|
||||||
|
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlushFlow::_class_data_ = {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||||
|
FlushFlow::MergeImpl
|
||||||
|
};
|
||||||
|
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlushFlow::GetClassData() const { return &_class_data_; }
|
||||||
|
|
||||||
|
|
||||||
|
void FlushFlow::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||||
|
auto* const _this = static_cast<FlushFlow*>(&to_msg);
|
||||||
|
auto& from = static_cast<const FlushFlow&>(from_msg);
|
||||||
|
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.FlushFlow)
|
||||||
|
GOOGLE_DCHECK_NE(&from, _this);
|
||||||
|
uint32_t cached_has_bits = 0;
|
||||||
|
(void) cached_has_bits;
|
||||||
|
|
||||||
|
if (from._internal_has_flow_id()) {
|
||||||
|
_this->_internal_mutable_flow_id()->::greptime::v1::FlowId::MergeFrom(
|
||||||
|
from._internal_flow_id());
|
||||||
|
}
|
||||||
|
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||||
|
}
|
||||||
|
|
||||||
|
void FlushFlow::CopyFrom(const FlushFlow& from) {
|
||||||
|
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.FlushFlow)
|
||||||
|
if (&from == this) return;
|
||||||
|
Clear();
|
||||||
|
MergeFrom(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
bool FlushFlow::IsInitialized() const {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
void FlushFlow::InternalSwap(FlushFlow* other) {
|
||||||
|
using std::swap;
|
||||||
|
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||||
|
swap(_impl_.flow_id_, other->_impl_.flow_id_);
|
||||||
|
}
|
||||||
|
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Metadata FlushFlow::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)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
} // namespace flow
|
} // namespace flow
|
||||||
} // namespace v1
|
} // namespace v1
|
||||||
@@ -2534,6 +2816,10 @@ template<> PROTOBUF_NOINLINE ::greptime::v1::flow::DropRequest*
|
|||||||
Arena::CreateMaybeMessage< ::greptime::v1::flow::DropRequest >(Arena* arena) {
|
Arena::CreateMaybeMessage< ::greptime::v1::flow::DropRequest >(Arena* arena) {
|
||||||
return Arena::CreateMessageInternal< ::greptime::v1::flow::DropRequest >(arena);
|
return Arena::CreateMessageInternal< ::greptime::v1::flow::DropRequest >(arena);
|
||||||
}
|
}
|
||||||
|
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlushFlow*
|
||||||
|
Arena::CreateMaybeMessage< ::greptime::v1::flow::FlushFlow >(Arena* arena) {
|
||||||
|
return Arena::CreateMessageInternal< ::greptime::v1::flow::FlushFlow >(arena);
|
||||||
|
}
|
||||||
PROTOBUF_NAMESPACE_CLOSE
|
PROTOBUF_NAMESPACE_CLOSE
|
||||||
|
|
||||||
// @@protoc_insertion_point(global_scope)
|
// @@protoc_insertion_point(global_scope)
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ extern FlowResponseDefaultTypeInternal _FlowResponse_default_instance_;
|
|||||||
class FlowResponse_ExtensionEntry_DoNotUse;
|
class FlowResponse_ExtensionEntry_DoNotUse;
|
||||||
struct FlowResponse_ExtensionEntry_DoNotUseDefaultTypeInternal;
|
struct FlowResponse_ExtensionEntry_DoNotUseDefaultTypeInternal;
|
||||||
extern FlowResponse_ExtensionEntry_DoNotUseDefaultTypeInternal _FlowResponse_ExtensionEntry_DoNotUse_default_instance_;
|
extern FlowResponse_ExtensionEntry_DoNotUseDefaultTypeInternal _FlowResponse_ExtensionEntry_DoNotUse_default_instance_;
|
||||||
|
class FlushFlow;
|
||||||
|
struct FlushFlowDefaultTypeInternal;
|
||||||
|
extern FlushFlowDefaultTypeInternal _FlushFlow_default_instance_;
|
||||||
class InsertRequest;
|
class InsertRequest;
|
||||||
struct InsertRequestDefaultTypeInternal;
|
struct InsertRequestDefaultTypeInternal;
|
||||||
extern InsertRequestDefaultTypeInternal _InsertRequest_default_instance_;
|
extern InsertRequestDefaultTypeInternal _InsertRequest_default_instance_;
|
||||||
@@ -95,6 +98,7 @@ template<> ::greptime::v1::flow::FlowRequestHeader* Arena::CreateMaybeMessage<::
|
|||||||
template<> ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse>(Arena*);
|
template<> ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse>(Arena*);
|
||||||
template<> ::greptime::v1::flow::FlowResponse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse>(Arena*);
|
template<> ::greptime::v1::flow::FlowResponse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse>(Arena*);
|
||||||
template<> ::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse>(Arena*);
|
template<> ::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse>(Arena*);
|
||||||
|
template<> ::greptime::v1::flow::FlushFlow* Arena::CreateMaybeMessage<::greptime::v1::flow::FlushFlow>(Arena*);
|
||||||
template<> ::greptime::v1::flow::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::InsertRequest>(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::InsertRequests* Arena::CreateMaybeMessage<::greptime::v1::flow::InsertRequests>(Arena*);
|
||||||
PROTOBUF_NAMESPACE_CLOSE
|
PROTOBUF_NAMESPACE_CLOSE
|
||||||
@@ -686,6 +690,7 @@ class FlowRequest final :
|
|||||||
enum BodyCase {
|
enum BodyCase {
|
||||||
kCreate = 1,
|
kCreate = 1,
|
||||||
kDrop = 2,
|
kDrop = 2,
|
||||||
|
kFlush = 3,
|
||||||
BODY_NOT_SET = 0,
|
BODY_NOT_SET = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -770,6 +775,7 @@ class FlowRequest final :
|
|||||||
kHeaderFieldNumber = 64,
|
kHeaderFieldNumber = 64,
|
||||||
kCreateFieldNumber = 1,
|
kCreateFieldNumber = 1,
|
||||||
kDropFieldNumber = 2,
|
kDropFieldNumber = 2,
|
||||||
|
kFlushFieldNumber = 3,
|
||||||
};
|
};
|
||||||
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
||||||
bool has_header() const;
|
bool has_header() const;
|
||||||
@@ -825,6 +831,24 @@ class FlowRequest final :
|
|||||||
::greptime::v1::flow::DropRequest* drop);
|
::greptime::v1::flow::DropRequest* drop);
|
||||||
::greptime::v1::flow::DropRequest* unsafe_arena_release_drop();
|
::greptime::v1::flow::DropRequest* unsafe_arena_release_drop();
|
||||||
|
|
||||||
|
// .greptime.v1.flow.FlushFlow flush = 3;
|
||||||
|
bool has_flush() const;
|
||||||
|
private:
|
||||||
|
bool _internal_has_flush() const;
|
||||||
|
public:
|
||||||
|
void clear_flush();
|
||||||
|
const ::greptime::v1::flow::FlushFlow& flush() const;
|
||||||
|
PROTOBUF_NODISCARD ::greptime::v1::flow::FlushFlow* release_flush();
|
||||||
|
::greptime::v1::flow::FlushFlow* mutable_flush();
|
||||||
|
void set_allocated_flush(::greptime::v1::flow::FlushFlow* flush);
|
||||||
|
private:
|
||||||
|
const ::greptime::v1::flow::FlushFlow& _internal_flush() const;
|
||||||
|
::greptime::v1::flow::FlushFlow* _internal_mutable_flush();
|
||||||
|
public:
|
||||||
|
void unsafe_arena_set_allocated_flush(
|
||||||
|
::greptime::v1::flow::FlushFlow* flush);
|
||||||
|
::greptime::v1::flow::FlushFlow* unsafe_arena_release_flush();
|
||||||
|
|
||||||
void clear_body();
|
void clear_body();
|
||||||
BodyCase body_case() const;
|
BodyCase body_case() const;
|
||||||
// @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowRequest)
|
// @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowRequest)
|
||||||
@@ -832,6 +856,7 @@ class FlowRequest final :
|
|||||||
class _Internal;
|
class _Internal;
|
||||||
void set_has_create();
|
void set_has_create();
|
||||||
void set_has_drop();
|
void set_has_drop();
|
||||||
|
void set_has_flush();
|
||||||
|
|
||||||
inline bool has_body() const;
|
inline bool has_body() const;
|
||||||
inline void clear_has_body();
|
inline void clear_has_body();
|
||||||
@@ -846,6 +871,7 @@ class FlowRequest final :
|
|||||||
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
|
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
|
||||||
::greptime::v1::flow::CreateRequest* create_;
|
::greptime::v1::flow::CreateRequest* create_;
|
||||||
::greptime::v1::flow::DropRequest* drop_;
|
::greptime::v1::flow::DropRequest* drop_;
|
||||||
|
::greptime::v1::flow::FlushFlow* flush_;
|
||||||
} body_;
|
} body_;
|
||||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
uint32_t _oneof_case_[1];
|
uint32_t _oneof_case_[1];
|
||||||
@@ -1565,6 +1591,163 @@ class DropRequest final :
|
|||||||
union { Impl_ _impl_; };
|
union { Impl_ _impl_; };
|
||||||
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
|
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
|
||||||
};
|
};
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
class FlushFlow final :
|
||||||
|
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.FlushFlow) */ {
|
||||||
|
public:
|
||||||
|
inline FlushFlow() : FlushFlow(nullptr) {}
|
||||||
|
~FlushFlow() override;
|
||||||
|
explicit PROTOBUF_CONSTEXPR FlushFlow(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||||
|
|
||||||
|
FlushFlow(const FlushFlow& from);
|
||||||
|
FlushFlow(FlushFlow&& from) noexcept
|
||||||
|
: FlushFlow() {
|
||||||
|
*this = ::std::move(from);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline FlushFlow& operator=(const FlushFlow& from) {
|
||||||
|
CopyFrom(from);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
inline FlushFlow& operator=(FlushFlow&& 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 FlushFlow& default_instance() {
|
||||||
|
return *internal_default_instance();
|
||||||
|
}
|
||||||
|
static inline const FlushFlow* internal_default_instance() {
|
||||||
|
return reinterpret_cast<const FlushFlow*>(
|
||||||
|
&_FlushFlow_default_instance_);
|
||||||
|
}
|
||||||
|
static constexpr int kIndexInFileMessages =
|
||||||
|
10;
|
||||||
|
|
||||||
|
friend void swap(FlushFlow& a, FlushFlow& b) {
|
||||||
|
a.Swap(&b);
|
||||||
|
}
|
||||||
|
inline void Swap(FlushFlow* 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(FlushFlow* other) {
|
||||||
|
if (other == this) return;
|
||||||
|
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||||
|
InternalSwap(other);
|
||||||
|
}
|
||||||
|
|
||||||
|
// implements Message ----------------------------------------------
|
||||||
|
|
||||||
|
FlushFlow* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||||
|
return CreateMaybeMessage<FlushFlow>(arena);
|
||||||
|
}
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||||
|
void CopyFrom(const FlushFlow& from);
|
||||||
|
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||||
|
void MergeFrom( const FlushFlow& from) {
|
||||||
|
FlushFlow::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(FlushFlow* other);
|
||||||
|
|
||||||
|
private:
|
||||||
|
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||||
|
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||||
|
return "greptime.v1.flow.FlushFlow";
|
||||||
|
}
|
||||||
|
protected:
|
||||||
|
explicit FlushFlow(::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 {
|
||||||
|
kFlowIdFieldNumber = 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::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();
|
||||||
|
|
||||||
|
// @@protoc_insertion_point(class_scope:greptime.v1.flow.FlushFlow)
|
||||||
|
private:
|
||||||
|
class _Internal;
|
||||||
|
|
||||||
|
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||||
|
typedef void InternalArenaConstructable_;
|
||||||
|
typedef void DestructorSkippable_;
|
||||||
|
struct Impl_ {
|
||||||
|
::greptime::v1::FlowId* flow_id_;
|
||||||
|
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||||
|
};
|
||||||
|
union { Impl_ _impl_; };
|
||||||
|
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
|
||||||
|
};
|
||||||
// ===================================================================
|
// ===================================================================
|
||||||
|
|
||||||
|
|
||||||
@@ -2087,6 +2270,80 @@ inline ::greptime::v1::flow::DropRequest* FlowRequest::mutable_drop() {
|
|||||||
return _msg;
|
return _msg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// .greptime.v1.flow.FlushFlow flush = 3;
|
||||||
|
inline bool FlowRequest::_internal_has_flush() const {
|
||||||
|
return body_case() == kFlush;
|
||||||
|
}
|
||||||
|
inline bool FlowRequest::has_flush() const {
|
||||||
|
return _internal_has_flush();
|
||||||
|
}
|
||||||
|
inline void FlowRequest::set_has_flush() {
|
||||||
|
_impl_._oneof_case_[0] = kFlush;
|
||||||
|
}
|
||||||
|
inline void FlowRequest::clear_flush() {
|
||||||
|
if (_internal_has_flush()) {
|
||||||
|
if (GetArenaForAllocation() == nullptr) {
|
||||||
|
delete _impl_.body_.flush_;
|
||||||
|
}
|
||||||
|
clear_has_body();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::flow::FlushFlow* FlowRequest::release_flush() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.flow.FlowRequest.flush)
|
||||||
|
if (_internal_has_flush()) {
|
||||||
|
clear_has_body();
|
||||||
|
::greptime::v1::flow::FlushFlow* temp = _impl_.body_.flush_;
|
||||||
|
if (GetArenaForAllocation() != nullptr) {
|
||||||
|
temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
|
||||||
|
}
|
||||||
|
_impl_.body_.flush_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::flow::FlushFlow& FlowRequest::_internal_flush() const {
|
||||||
|
return _internal_has_flush()
|
||||||
|
? *_impl_.body_.flush_
|
||||||
|
: reinterpret_cast< ::greptime::v1::flow::FlushFlow&>(::greptime::v1::flow::_FlushFlow_default_instance_);
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::flow::FlushFlow& FlowRequest::flush() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.flow.FlowRequest.flush)
|
||||||
|
return _internal_flush();
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::flow::FlushFlow* FlowRequest::unsafe_arena_release_flush() {
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_release:greptime.v1.flow.FlowRequest.flush)
|
||||||
|
if (_internal_has_flush()) {
|
||||||
|
clear_has_body();
|
||||||
|
::greptime::v1::flow::FlushFlow* temp = _impl_.body_.flush_;
|
||||||
|
_impl_.body_.flush_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
} else {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
inline void FlowRequest::unsafe_arena_set_allocated_flush(::greptime::v1::flow::FlushFlow* flush) {
|
||||||
|
clear_body();
|
||||||
|
if (flush) {
|
||||||
|
set_has_flush();
|
||||||
|
_impl_.body_.flush_ = flush;
|
||||||
|
}
|
||||||
|
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowRequest.flush)
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::flow::FlushFlow* FlowRequest::_internal_mutable_flush() {
|
||||||
|
if (!_internal_has_flush()) {
|
||||||
|
clear_body();
|
||||||
|
set_has_flush();
|
||||||
|
_impl_.body_.flush_ = CreateMaybeMessage< ::greptime::v1::flow::FlushFlow >(GetArenaForAllocation());
|
||||||
|
}
|
||||||
|
return _impl_.body_.flush_;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::flow::FlushFlow* FlowRequest::mutable_flush() {
|
||||||
|
::greptime::v1::flow::FlushFlow* _msg = _internal_mutable_flush();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowRequest.flush)
|
||||||
|
return _msg;
|
||||||
|
}
|
||||||
|
|
||||||
inline bool FlowRequest::has_body() const {
|
inline bool FlowRequest::has_body() const {
|
||||||
return body_case() != BODY_NOT_SET;
|
return body_case() != BODY_NOT_SET;
|
||||||
}
|
}
|
||||||
@@ -2809,6 +3066,95 @@ inline void DropRequest::set_allocated_flow_id(::greptime::v1::FlowId* flow_id)
|
|||||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.DropRequest.flow_id)
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.DropRequest.flow_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// FlushFlow
|
||||||
|
|
||||||
|
// .greptime.v1.FlowId flow_id = 1;
|
||||||
|
inline bool FlushFlow::_internal_has_flow_id() const {
|
||||||
|
return this != internal_default_instance() && _impl_.flow_id_ != nullptr;
|
||||||
|
}
|
||||||
|
inline bool FlushFlow::has_flow_id() const {
|
||||||
|
return _internal_has_flow_id();
|
||||||
|
}
|
||||||
|
inline const ::greptime::v1::FlowId& FlushFlow::_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& FlushFlow::flow_id() const {
|
||||||
|
// @@protoc_insertion_point(field_get:greptime.v1.flow.FlushFlow.flow_id)
|
||||||
|
return _internal_flow_id();
|
||||||
|
}
|
||||||
|
inline void FlushFlow::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.flow.FlushFlow.flow_id)
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::FlowId* FlushFlow::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* FlushFlow::unsafe_arena_release_flow_id() {
|
||||||
|
// @@protoc_insertion_point(field_release:greptime.v1.flow.FlushFlow.flow_id)
|
||||||
|
|
||||||
|
::greptime::v1::FlowId* temp = _impl_.flow_id_;
|
||||||
|
_impl_.flow_id_ = nullptr;
|
||||||
|
return temp;
|
||||||
|
}
|
||||||
|
inline ::greptime::v1::FlowId* FlushFlow::_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* FlushFlow::mutable_flow_id() {
|
||||||
|
::greptime::v1::FlowId* _msg = _internal_mutable_flow_id();
|
||||||
|
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlushFlow.flow_id)
|
||||||
|
return _msg;
|
||||||
|
}
|
||||||
|
inline void FlushFlow::set_allocated_flow_id(::greptime::v1::FlowId* flow_id) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||||
|
if (message_arena == nullptr) {
|
||||||
|
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.flow_id_);
|
||||||
|
}
|
||||||
|
if (flow_id) {
|
||||||
|
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||||
|
::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);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
}
|
||||||
|
_impl_.flow_id_ = flow_id;
|
||||||
|
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlushFlow.flow_id)
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
#pragma GCC diagnostic pop
|
#pragma GCC diagnostic pop
|
||||||
#endif // __GNUC__
|
#endif // __GNUC__
|
||||||
@@ -2830,6 +3176,8 @@ inline void DropRequest::set_allocated_flow_id(::greptime::v1::FlowId* flow_id)
|
|||||||
|
|
||||||
// -------------------------------------------------------------------
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
// -------------------------------------------------------------------
|
||||||
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(namespace_scope)
|
// @@protoc_insertion_point(namespace_scope)
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -53,6 +53,7 @@ message FlowRequest {
|
|||||||
oneof body {
|
oneof body {
|
||||||
CreateRequest create = 1;
|
CreateRequest create = 1;
|
||||||
DropRequest drop = 2;
|
DropRequest drop = 2;
|
||||||
|
FlushFlow flush = 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -81,3 +82,7 @@ message CreateRequest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message DropRequest { FlowId flow_id = 1; }
|
message DropRequest { FlowId flow_id = 1; }
|
||||||
|
|
||||||
|
message FlushFlow {
|
||||||
|
FlowId flow_id = 1;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user