feat: add QueryContext to DdlTaskRequest and FlowRequestHeader (#166)
This commit is contained in:
@@ -23,6 +23,31 @@ namespace _pbi = _pb::internal;
|
||||
namespace greptime {
|
||||
namespace v1 {
|
||||
namespace flow {
|
||||
PROTOBUF_CONSTEXPR FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse(
|
||||
::_pbi::ConstantInitialized) {}
|
||||
struct FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal() {}
|
||||
union {
|
||||
FlowRequestHeader_TracingContextEntry_DoNotUse _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_;
|
||||
PROTOBUF_CONSTEXPR FlowRequestHeader::FlowRequestHeader(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.tracing_context_)*/{::_pbi::ConstantInitialized()}
|
||||
, /*decltype(_impl_.query_context_)*/nullptr
|
||||
, /*decltype(_impl_._cached_size_)*/{}} {}
|
||||
struct FlowRequestHeaderDefaultTypeInternal {
|
||||
PROTOBUF_CONSTEXPR FlowRequestHeaderDefaultTypeInternal()
|
||||
: _instance(::_pbi::ConstantInitialized{}) {}
|
||||
~FlowRequestHeaderDefaultTypeInternal() {}
|
||||
union {
|
||||
FlowRequestHeader _instance;
|
||||
};
|
||||
};
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FlowRequestHeaderDefaultTypeInternal _FlowRequestHeader_default_instance_;
|
||||
PROTOBUF_CONSTEXPR InsertRequests::InsertRequests(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.requests_)*/{}
|
||||
@@ -52,7 +77,8 @@ struct InsertRequestDefaultTypeInternal {
|
||||
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 InsertRequestDefaultTypeInternal _InsertRequest_default_instance_;
|
||||
PROTOBUF_CONSTEXPR FlowRequest::FlowRequest(
|
||||
::_pbi::ConstantInitialized): _impl_{
|
||||
/*decltype(_impl_.body_)*/{}
|
||||
/*decltype(_impl_.header_)*/nullptr
|
||||
, /*decltype(_impl_.body_)*/{}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, /*decltype(_impl_._oneof_case_)*/{}} {}
|
||||
struct FlowRequestDefaultTypeInternal {
|
||||
@@ -151,11 +177,29 @@ PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORIT
|
||||
} // namespace flow
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
static ::_pb::Metadata file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9];
|
||||
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::ServiceDescriptor const** file_level_service_descriptors_greptime_2fv1_2fflow_2fserver_2eproto = nullptr;
|
||||
|
||||
const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, _has_bits_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, _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::FlowRequestHeader_TracingContextEntry_DoNotUse, key_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse, value_),
|
||||
0,
|
||||
1,
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader, _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::FlowRequestHeader, _impl_.tracing_context_),
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequestHeader, _impl_.query_context_),
|
||||
~0u, // no _has_bits_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::InsertRequests, _internal_metadata_),
|
||||
~0u, // no _extensions_
|
||||
@@ -177,6 +221,7 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_._oneof_case_[0]),
|
||||
~0u, // no _weak_field_map_
|
||||
~0u, // no _inlined_string_donated_
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_.header_),
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
::_pbi::kInvalidFieldOffsetTag,
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::FlowRequest, _impl_.body_),
|
||||
@@ -240,18 +285,22 @@ const uint32_t TableStruct_greptime_2fv1_2fflow_2fserver_2eproto::offsets[] PROT
|
||||
PROTOBUF_FIELD_OFFSET(::greptime::v1::flow::TaskId, _impl_.id_),
|
||||
};
|
||||
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
|
||||
{ 0, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
|
||||
{ 7, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
|
||||
{ 15, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
|
||||
{ 24, 32, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse)},
|
||||
{ 34, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
|
||||
{ 44, 52, -1, sizeof(::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse)},
|
||||
{ 54, -1, -1, sizeof(::greptime::v1::flow::CreateRequest)},
|
||||
{ 68, -1, -1, sizeof(::greptime::v1::flow::DropRequest)},
|
||||
{ 75, -1, -1, sizeof(::greptime::v1::flow::TaskId)},
|
||||
{ 0, 8, -1, sizeof(::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse)},
|
||||
{ 10, -1, -1, sizeof(::greptime::v1::flow::FlowRequestHeader)},
|
||||
{ 18, -1, -1, sizeof(::greptime::v1::flow::InsertRequests)},
|
||||
{ 25, -1, -1, sizeof(::greptime::v1::flow::InsertRequest)},
|
||||
{ 33, -1, -1, sizeof(::greptime::v1::flow::FlowRequest)},
|
||||
{ 43, 51, -1, sizeof(::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse)},
|
||||
{ 53, -1, -1, sizeof(::greptime::v1::flow::FlowResponse)},
|
||||
{ 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[] = {
|
||||
&::greptime::v1::flow::_FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_._instance,
|
||||
&::greptime::v1::flow::_FlowRequestHeader_default_instance_._instance,
|
||||
&::greptime::v1::flow::_InsertRequests_default_instance_._instance,
|
||||
&::greptime::v1::flow::_InsertRequest_default_instance_._instance,
|
||||
&::greptime::v1::flow::_FlowRequest_default_instance_._instance,
|
||||
@@ -267,37 +316,44 @@ const char descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto[] PRO
|
||||
"\n\035greptime/v1/flow/server.proto\022\020greptim"
|
||||
"e.v1.flow\032\030greptime/v1/common.proto\032\025gre"
|
||||
"ptime/v1/ddl.proto\032\025greptime/v1/row.prot"
|
||||
"o\"C\n\016InsertRequests\0221\n\010requests\030\001 \003(\0132\037."
|
||||
"greptime.v1.flow.InsertRequest\"C\n\rInsert"
|
||||
"Request\022\021\n\tregion_id\030\001 \001(\004\022\037\n\004rows\030\002 \001(\013"
|
||||
"2\021.greptime.v1.Rows\"w\n\013FlowRequest\0221\n\006cr"
|
||||
"eate\030\001 \001(\0132\037.greptime.v1.flow.CreateRequ"
|
||||
"estH\000\022-\n\004drop\030\002 \001(\0132\035.greptime.v1.flow.D"
|
||||
"ropRequestH\000B\006\n\004body\"\370\001\n\014FlowResponse\022+\n"
|
||||
"\006header\030\001 \001(\0132\033.greptime.v1.ResponseHead"
|
||||
"er\022\025\n\raffected_rows\030\002 \001(\004\022@\n\textension\030\003"
|
||||
" \003(\0132-.greptime.v1.flow.FlowResponse.Ext"
|
||||
"ensionEntry\0220\n\016affected_tasks\030\004 \003(\0132\030.gr"
|
||||
"eptime.v1.flow.TaskId\0320\n\016ExtensionEntry\022"
|
||||
"\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\014:\0028\001\"\350\002\n\rCrea"
|
||||
"teRequest\022)\n\007flow_id\030\001 \001(\0132\030.greptime.v1"
|
||||
".flow.TaskId\022.\n\020source_table_ids\030\002 \003(\0132\024"
|
||||
".greptime.v1.TableId\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_o"
|
||||
"ptions\030\010 \003(\01320.greptime.v1.flow.CreateRe"
|
||||
"quest.FlowOptionsEntry\0322\n\020FlowOptionsEnt"
|
||||
"ry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"8\n\013Dr"
|
||||
"opRequest\022)\n\007flow_id\030\001 \001(\0132\030.greptime.v1"
|
||||
".flow.TaskId\"\024\n\006TaskId\022\n\n\002id\030\001 \001(\r2\264\001\n\004F"
|
||||
"low\022S\n\022HandleCreateRemove\022\035.greptime.v1."
|
||||
"flow.FlowRequest\032\036.greptime.v1.flow.Flow"
|
||||
"Response\022W\n\023HandleMirrorRequest\022 .grepti"
|
||||
"me.v1.flow.InsertRequests\032\036.greptime.v1."
|
||||
"flow.FlowResponseBY\n\023io.greptime.v1.flow"
|
||||
"B\006ServerZ:github.com/GreptimeTeam/grepti"
|
||||
"me-proto/go/greptime/v1/flowb\006proto3"
|
||||
"o\"\316\001\n\021FlowRequestHeader\022P\n\017tracing_conte"
|
||||
"xt\030\001 \003(\01327.greptime.v1.flow.FlowRequestH"
|
||||
"eader.TracingContextEntry\0220\n\rquery_conte"
|
||||
"xt\030\002 \001(\0132\031.greptime.v1.QueryContext\0325\n\023T"
|
||||
"racingContextEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value"
|
||||
"\030\002 \001(\t:\0028\001\"C\n\016InsertRequests\0221\n\010requests"
|
||||
"\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"
|
||||
"ows\030\002 \001(\0132\021.greptime.v1.Rows\"\254\001\n\013FlowReq"
|
||||
"uest\0223\n\006header\030@ \001(\0132#.greptime.v1.flow."
|
||||
"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"
|
||||
"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"
|
||||
;
|
||||
static const ::_pbi::DescriptorTable* const descriptor_table_greptime_2fv1_2fflow_2fserver_2eproto_deps[3] = {
|
||||
&::descriptor_table_greptime_2fv1_2fcommon_2eproto,
|
||||
@@ -306,9 +362,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, 1356, descriptor_table_protodef_greptime_2fv1_2fflow_2fserver_2eproto,
|
||||
false, false, 1619, 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, 9,
|
||||
&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,
|
||||
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,
|
||||
@@ -325,6 +381,287 @@ namespace flow {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse() {}
|
||||
FlowRequestHeader_TracingContextEntry_DoNotUse::FlowRequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
|
||||
: SuperType(arena) {}
|
||||
void FlowRequestHeader_TracingContextEntry_DoNotUse::MergeFrom(const FlowRequestHeader_TracingContextEntry_DoNotUse& other) {
|
||||
MergeFromInternal(other);
|
||||
}
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequestHeader_TracingContextEntry_DoNotUse::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[0]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class FlowRequestHeader::_Internal {
|
||||
public:
|
||||
static const ::greptime::v1::QueryContext& query_context(const FlowRequestHeader* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::QueryContext&
|
||||
FlowRequestHeader::_Internal::query_context(const FlowRequestHeader* msg) {
|
||||
return *msg->_impl_.query_context_;
|
||||
}
|
||||
void FlowRequestHeader::clear_query_context() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) {
|
||||
delete _impl_.query_context_;
|
||||
}
|
||||
_impl_.query_context_ = nullptr;
|
||||
}
|
||||
FlowRequestHeader::FlowRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
|
||||
SharedCtor(arena, is_message_owned);
|
||||
if (arena != nullptr && !is_message_owned) {
|
||||
arena->OwnCustomDestructor(this, &FlowRequestHeader::ArenaDtor);
|
||||
}
|
||||
// @@protoc_insertion_point(arena_constructor:greptime.v1.flow.FlowRequestHeader)
|
||||
}
|
||||
FlowRequestHeader::FlowRequestHeader(const FlowRequestHeader& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
FlowRequestHeader* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
/*decltype(_impl_.tracing_context_)*/{}
|
||||
, decltype(_impl_.query_context_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
|
||||
if (from._internal_has_query_context()) {
|
||||
_this->_impl_.query_context_ = new ::greptime::v1::QueryContext(*from._impl_.query_context_);
|
||||
}
|
||||
// @@protoc_insertion_point(copy_constructor:greptime.v1.flow.FlowRequestHeader)
|
||||
}
|
||||
|
||||
inline void FlowRequestHeader::SharedCtor(
|
||||
::_pb::Arena* arena, bool is_message_owned) {
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
/*decltype(_impl_.tracing_context_)*/{::_pbi::ArenaInitialized(), arena}
|
||||
, decltype(_impl_.query_context_){nullptr}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
};
|
||||
}
|
||||
|
||||
FlowRequestHeader::~FlowRequestHeader() {
|
||||
// @@protoc_insertion_point(destructor:greptime.v1.flow.FlowRequestHeader)
|
||||
if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
|
||||
(void)arena;
|
||||
ArenaDtor(this);
|
||||
return;
|
||||
}
|
||||
SharedDtor();
|
||||
}
|
||||
|
||||
inline void FlowRequestHeader::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
_impl_.tracing_context_.Destruct();
|
||||
_impl_.tracing_context_.~MapField();
|
||||
if (this != internal_default_instance()) delete _impl_.query_context_;
|
||||
}
|
||||
|
||||
void FlowRequestHeader::ArenaDtor(void* object) {
|
||||
FlowRequestHeader* _this = reinterpret_cast< FlowRequestHeader* >(object);
|
||||
_this->_impl_.tracing_context_.Destruct();
|
||||
}
|
||||
void FlowRequestHeader::SetCachedSize(int size) const {
|
||||
_impl_._cached_size_.Set(size);
|
||||
}
|
||||
|
||||
void FlowRequestHeader::Clear() {
|
||||
// @@protoc_insertion_point(message_clear_start:greptime.v1.flow.FlowRequestHeader)
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
_impl_.tracing_context_.Clear();
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.query_context_ != nullptr) {
|
||||
delete _impl_.query_context_;
|
||||
}
|
||||
_impl_.query_context_ = nullptr;
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
|
||||
const char* FlowRequestHeader::_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) {
|
||||
// map<string, string> tracing_context = 1;
|
||||
case 1:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
|
||||
ptr -= 1;
|
||||
do {
|
||||
ptr += 1;
|
||||
ptr = ctx->ParseMessage(&_impl_.tracing_context_, ptr);
|
||||
CHK_(ptr);
|
||||
if (!ctx->DataAvailable(ptr)) break;
|
||||
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.QueryContext query_context = 2;
|
||||
case 2:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_query_context(), 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* FlowRequestHeader::_InternalSerialize(
|
||||
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
|
||||
// @@protoc_insertion_point(serialize_to_array_start:greptime.v1.flow.FlowRequestHeader)
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
// map<string, string> tracing_context = 1;
|
||||
if (!this->_internal_tracing_context().empty()) {
|
||||
using MapType = ::_pb::Map<std::string, std::string>;
|
||||
using WireHelper = FlowRequestHeader_TracingContextEntry_DoNotUse::Funcs;
|
||||
const auto& map_field = this->_internal_tracing_context();
|
||||
auto check_utf8 = [](const MapType::value_type& entry) {
|
||||
(void)entry;
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||
entry.first.data(), static_cast<int>(entry.first.length()),
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||
"greptime.v1.flow.FlowRequestHeader.TracingContextEntry.key");
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
|
||||
entry.second.data(), static_cast<int>(entry.second.length()),
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
|
||||
"greptime.v1.flow.FlowRequestHeader.TracingContextEntry.value");
|
||||
};
|
||||
|
||||
if (stream->IsSerializationDeterministic() && map_field.size() > 1) {
|
||||
for (const auto& entry : ::_pbi::MapSorterPtr<MapType>(map_field)) {
|
||||
target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
|
||||
check_utf8(entry);
|
||||
}
|
||||
} else {
|
||||
for (const auto& entry : map_field) {
|
||||
target = WireHelper::InternalSerialize(1, entry.first, entry.second, target, stream);
|
||||
check_utf8(entry);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// .greptime.v1.QueryContext query_context = 2;
|
||||
if (this->_internal_has_query_context()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(2, _Internal::query_context(this),
|
||||
_Internal::query_context(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.FlowRequestHeader)
|
||||
return target;
|
||||
}
|
||||
|
||||
size_t FlowRequestHeader::ByteSizeLong() const {
|
||||
// @@protoc_insertion_point(message_byte_size_start:greptime.v1.flow.FlowRequestHeader)
|
||||
size_t total_size = 0;
|
||||
|
||||
uint32_t cached_has_bits = 0;
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// map<string, string> tracing_context = 1;
|
||||
total_size += 1 *
|
||||
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_tracing_context_size());
|
||||
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >::const_iterator
|
||||
it = this->_internal_tracing_context().begin();
|
||||
it != this->_internal_tracing_context().end(); ++it) {
|
||||
total_size += FlowRequestHeader_TracingContextEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
|
||||
}
|
||||
|
||||
// .greptime.v1.QueryContext query_context = 2;
|
||||
if (this->_internal_has_query_context()) {
|
||||
total_size += 1 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.query_context_);
|
||||
}
|
||||
|
||||
return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
|
||||
}
|
||||
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData FlowRequestHeader::_class_data_ = {
|
||||
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
|
||||
FlowRequestHeader::MergeImpl
|
||||
};
|
||||
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*FlowRequestHeader::GetClassData() const { return &_class_data_; }
|
||||
|
||||
|
||||
void FlowRequestHeader::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
|
||||
auto* const _this = static_cast<FlowRequestHeader*>(&to_msg);
|
||||
auto& from = static_cast<const FlowRequestHeader&>(from_msg);
|
||||
// @@protoc_insertion_point(class_specific_merge_from_start:greptime.v1.flow.FlowRequestHeader)
|
||||
GOOGLE_DCHECK_NE(&from, _this);
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
_this->_impl_.tracing_context_.MergeFrom(from._impl_.tracing_context_);
|
||||
if (from._internal_has_query_context()) {
|
||||
_this->_internal_mutable_query_context()->::greptime::v1::QueryContext::MergeFrom(
|
||||
from._internal_query_context());
|
||||
}
|
||||
_this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
}
|
||||
|
||||
void FlowRequestHeader::CopyFrom(const FlowRequestHeader& from) {
|
||||
// @@protoc_insertion_point(class_specific_copy_from_start:greptime.v1.flow.FlowRequestHeader)
|
||||
if (&from == this) return;
|
||||
Clear();
|
||||
MergeFrom(from);
|
||||
}
|
||||
|
||||
bool FlowRequestHeader::IsInitialized() const {
|
||||
return true;
|
||||
}
|
||||
|
||||
void FlowRequestHeader::InternalSwap(FlowRequestHeader* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
_impl_.tracing_context_.InternalSwap(&other->_impl_.tracing_context_);
|
||||
swap(_impl_.query_context_, other->_impl_.query_context_);
|
||||
}
|
||||
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequestHeader::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[1]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class InsertRequests::_Internal {
|
||||
public:
|
||||
};
|
||||
@@ -505,7 +842,7 @@ void InsertRequests::InternalSwap(InsertRequests* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequests::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[0]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[2]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -735,17 +1072,22 @@ void InsertRequest::InternalSwap(InsertRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata InsertRequest::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[1]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[3]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class FlowRequest::_Internal {
|
||||
public:
|
||||
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::DropRequest& drop(const FlowRequest* msg);
|
||||
};
|
||||
|
||||
const ::greptime::v1::flow::FlowRequestHeader&
|
||||
FlowRequest::_Internal::header(const FlowRequest* msg) {
|
||||
return *msg->_impl_.header_;
|
||||
}
|
||||
const ::greptime::v1::flow::CreateRequest&
|
||||
FlowRequest::_Internal::create(const FlowRequest* msg) {
|
||||
return *msg->_impl_.body_.create_;
|
||||
@@ -794,11 +1136,15 @@ FlowRequest::FlowRequest(const FlowRequest& from)
|
||||
: ::PROTOBUF_NAMESPACE_ID::Message() {
|
||||
FlowRequest* const _this = this; (void)_this;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.body_){}
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.body_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, /*decltype(_impl_._oneof_case_)*/{}};
|
||||
|
||||
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
|
||||
if (from._internal_has_header()) {
|
||||
_this->_impl_.header_ = new ::greptime::v1::flow::FlowRequestHeader(*from._impl_.header_);
|
||||
}
|
||||
clear_has_body();
|
||||
switch (from.body_case()) {
|
||||
case kCreate: {
|
||||
@@ -823,7 +1169,8 @@ inline void FlowRequest::SharedCtor(
|
||||
(void)arena;
|
||||
(void)is_message_owned;
|
||||
new (&_impl_) Impl_{
|
||||
decltype(_impl_.body_){}
|
||||
decltype(_impl_.header_){nullptr}
|
||||
, decltype(_impl_.body_){}
|
||||
, /*decltype(_impl_._cached_size_)*/{}
|
||||
, /*decltype(_impl_._oneof_case_)*/{}
|
||||
};
|
||||
@@ -841,6 +1188,7 @@ FlowRequest::~FlowRequest() {
|
||||
|
||||
inline void FlowRequest::SharedDtor() {
|
||||
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
|
||||
if (this != internal_default_instance()) delete _impl_.header_;
|
||||
if (has_body()) {
|
||||
clear_body();
|
||||
}
|
||||
@@ -879,6 +1227,10 @@ void FlowRequest::Clear() {
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
clear_body();
|
||||
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
|
||||
}
|
||||
@@ -905,6 +1257,14 @@ const char* FlowRequest::_InternalParse(const char* ptr, ::_pbi::ParseContext* c
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
||||
case 64:
|
||||
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 2)) {
|
||||
ptr = ctx->ParseMessage(_internal_mutable_header(), ptr);
|
||||
CHK_(ptr);
|
||||
} else
|
||||
goto handle_unusual;
|
||||
continue;
|
||||
default:
|
||||
goto handle_unusual;
|
||||
} // switch
|
||||
@@ -948,6 +1308,13 @@ uint8_t* FlowRequest::_InternalSerialize(
|
||||
_Internal::drop(this).GetCachedSize(), target, stream);
|
||||
}
|
||||
|
||||
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
||||
if (this->_internal_has_header()) {
|
||||
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
|
||||
InternalWriteMessage(64, _Internal::header(this),
|
||||
_Internal::header(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);
|
||||
@@ -964,6 +1331,13 @@ size_t FlowRequest::ByteSizeLong() const {
|
||||
// Prevent compiler warnings about cached_has_bits being unused
|
||||
(void) cached_has_bits;
|
||||
|
||||
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
||||
if (this->_internal_has_header()) {
|
||||
total_size += 2 +
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
|
||||
*_impl_.header_);
|
||||
}
|
||||
|
||||
switch (body_case()) {
|
||||
// .greptime.v1.flow.CreateRequest create = 1;
|
||||
case kCreate: {
|
||||
@@ -1001,6 +1375,10 @@ void FlowRequest::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PR
|
||||
uint32_t cached_has_bits = 0;
|
||||
(void) cached_has_bits;
|
||||
|
||||
if (from._internal_has_header()) {
|
||||
_this->_internal_mutable_header()->::greptime::v1::flow::FlowRequestHeader::MergeFrom(
|
||||
from._internal_header());
|
||||
}
|
||||
switch (from.body_case()) {
|
||||
case kCreate: {
|
||||
_this->_internal_mutable_create()->::greptime::v1::flow::CreateRequest::MergeFrom(
|
||||
@@ -1033,6 +1411,7 @@ bool FlowRequest::IsInitialized() const {
|
||||
void FlowRequest::InternalSwap(FlowRequest* other) {
|
||||
using std::swap;
|
||||
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
|
||||
swap(_impl_.header_, other->_impl_.header_);
|
||||
swap(_impl_.body_, other->_impl_.body_);
|
||||
swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
|
||||
}
|
||||
@@ -1040,7 +1419,7 @@ void FlowRequest::InternalSwap(FlowRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowRequest::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[2]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[4]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1054,7 +1433,7 @@ void FlowResponse_ExtensionEntry_DoNotUse::MergeFrom(const FlowResponse_Extensio
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowResponse_ExtensionEntry_DoNotUse::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[3]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[5]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1382,7 +1761,7 @@ void FlowResponse::InternalSwap(FlowResponse* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata FlowResponse::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[4]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[6]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1396,7 +1775,7 @@ void CreateRequest_FlowOptionsEntry_DoNotUse::MergeFrom(const CreateRequest_Flow
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest_FlowOptionsEntry_DoNotUse::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[5]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[7]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -1924,7 +2303,7 @@ void CreateRequest::InternalSwap(CreateRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata CreateRequest::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[6]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[8]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2117,7 +2496,7 @@ void DropRequest::InternalSwap(DropRequest* other) {
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata DropRequest::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[7]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[9]);
|
||||
}
|
||||
|
||||
// ===================================================================
|
||||
@@ -2295,7 +2674,7 @@ void TaskId::InternalSwap(TaskId* other) {
|
||||
::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[8]);
|
||||
file_level_metadata_greptime_2fv1_2fflow_2fserver_2eproto[10]);
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
@@ -2303,6 +2682,14 @@ void TaskId::InternalSwap(TaskId* other) {
|
||||
} // namespace v1
|
||||
} // namespace greptime
|
||||
PROTOBUF_NAMESPACE_OPEN
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowRequestHeader_TracingContextEntry_DoNotUse >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::FlowRequestHeader*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::flow::FlowRequestHeader >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::flow::FlowRequestHeader >(arena);
|
||||
}
|
||||
template<> PROTOBUF_NOINLINE ::greptime::v1::flow::InsertRequests*
|
||||
Arena::CreateMaybeMessage< ::greptime::v1::flow::InsertRequests >(Arena* arena) {
|
||||
return Arena::CreateMessageInternal< ::greptime::v1::flow::InsertRequests >(arena);
|
||||
|
||||
@@ -65,6 +65,12 @@ extern DropRequestDefaultTypeInternal _DropRequest_default_instance_;
|
||||
class FlowRequest;
|
||||
struct FlowRequestDefaultTypeInternal;
|
||||
extern FlowRequestDefaultTypeInternal _FlowRequest_default_instance_;
|
||||
class FlowRequestHeader;
|
||||
struct FlowRequestHeaderDefaultTypeInternal;
|
||||
extern FlowRequestHeaderDefaultTypeInternal _FlowRequestHeader_default_instance_;
|
||||
class FlowRequestHeader_TracingContextEntry_DoNotUse;
|
||||
struct FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal;
|
||||
extern FlowRequestHeader_TracingContextEntry_DoNotUseDefaultTypeInternal _FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_;
|
||||
class FlowResponse;
|
||||
struct FlowResponseDefaultTypeInternal;
|
||||
extern FlowResponseDefaultTypeInternal _FlowResponse_default_instance_;
|
||||
@@ -88,6 +94,8 @@ template<> ::greptime::v1::flow::CreateRequest* Arena::CreateMaybeMessage<::grep
|
||||
template<> ::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::CreateRequest_FlowOptionsEntry_DoNotUse>(Arena*);
|
||||
template<> ::greptime::v1::flow::DropRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::DropRequest>(Arena*);
|
||||
template<> ::greptime::v1::flow::FlowRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequest>(Arena*);
|
||||
template<> ::greptime::v1::flow::FlowRequestHeader* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowRequestHeader>(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_ExtensionEntry_DoNotUse* Arena::CreateMaybeMessage<::greptime::v1::flow::FlowResponse_ExtensionEntry_DoNotUse>(Arena*);
|
||||
template<> ::greptime::v1::flow::InsertRequest* Arena::CreateMaybeMessage<::greptime::v1::flow::InsertRequest>(Arena*);
|
||||
@@ -100,6 +108,217 @@ namespace flow {
|
||||
|
||||
// ===================================================================
|
||||
|
||||
class FlowRequestHeader_TracingContextEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowRequestHeader_TracingContextEntry_DoNotUse,
|
||||
std::string, std::string,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> {
|
||||
public:
|
||||
typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FlowRequestHeader_TracingContextEntry_DoNotUse,
|
||||
std::string, std::string,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> SuperType;
|
||||
FlowRequestHeader_TracingContextEntry_DoNotUse();
|
||||
explicit PROTOBUF_CONSTEXPR FlowRequestHeader_TracingContextEntry_DoNotUse(
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
explicit FlowRequestHeader_TracingContextEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
|
||||
void MergeFrom(const FlowRequestHeader_TracingContextEntry_DoNotUse& other);
|
||||
static const FlowRequestHeader_TracingContextEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FlowRequestHeader_TracingContextEntry_DoNotUse*>(&_FlowRequestHeader_TracingContextEntry_DoNotUse_default_instance_); }
|
||||
static bool ValidateKey(std::string* s) {
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.flow.FlowRequestHeader.TracingContextEntry.key");
|
||||
}
|
||||
static bool ValidateValue(std::string* s) {
|
||||
return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), static_cast<int>(s->size()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "greptime.v1.flow.FlowRequestHeader.TracingContextEntry.value");
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
|
||||
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
|
||||
};
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class FlowRequestHeader final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.FlowRequestHeader) */ {
|
||||
public:
|
||||
inline FlowRequestHeader() : FlowRequestHeader(nullptr) {}
|
||||
~FlowRequestHeader() override;
|
||||
explicit PROTOBUF_CONSTEXPR FlowRequestHeader(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
|
||||
|
||||
FlowRequestHeader(const FlowRequestHeader& from);
|
||||
FlowRequestHeader(FlowRequestHeader&& from) noexcept
|
||||
: FlowRequestHeader() {
|
||||
*this = ::std::move(from);
|
||||
}
|
||||
|
||||
inline FlowRequestHeader& operator=(const FlowRequestHeader& from) {
|
||||
CopyFrom(from);
|
||||
return *this;
|
||||
}
|
||||
inline FlowRequestHeader& operator=(FlowRequestHeader&& 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 FlowRequestHeader& default_instance() {
|
||||
return *internal_default_instance();
|
||||
}
|
||||
static inline const FlowRequestHeader* internal_default_instance() {
|
||||
return reinterpret_cast<const FlowRequestHeader*>(
|
||||
&_FlowRequestHeader_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
|
||||
friend void swap(FlowRequestHeader& a, FlowRequestHeader& b) {
|
||||
a.Swap(&b);
|
||||
}
|
||||
inline void Swap(FlowRequestHeader* 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(FlowRequestHeader* other) {
|
||||
if (other == this) return;
|
||||
GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
|
||||
InternalSwap(other);
|
||||
}
|
||||
|
||||
// implements Message ----------------------------------------------
|
||||
|
||||
FlowRequestHeader* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final {
|
||||
return CreateMaybeMessage<FlowRequestHeader>(arena);
|
||||
}
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom;
|
||||
void CopyFrom(const FlowRequestHeader& from);
|
||||
using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom;
|
||||
void MergeFrom( const FlowRequestHeader& from) {
|
||||
FlowRequestHeader::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(FlowRequestHeader* other);
|
||||
|
||||
private:
|
||||
friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
|
||||
static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
|
||||
return "greptime.v1.flow.FlowRequestHeader";
|
||||
}
|
||||
protected:
|
||||
explicit FlowRequestHeader(::PROTOBUF_NAMESPACE_ID::Arena* arena,
|
||||
bool is_message_owned = false);
|
||||
private:
|
||||
static void ArenaDtor(void* object);
|
||||
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 {
|
||||
kTracingContextFieldNumber = 1,
|
||||
kQueryContextFieldNumber = 2,
|
||||
};
|
||||
// map<string, string> tracing_context = 1;
|
||||
int tracing_context_size() const;
|
||||
private:
|
||||
int _internal_tracing_context_size() const;
|
||||
public:
|
||||
void clear_tracing_context();
|
||||
private:
|
||||
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||
_internal_tracing_context() const;
|
||||
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||
_internal_mutable_tracing_context();
|
||||
public:
|
||||
const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||
tracing_context() const;
|
||||
::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||
mutable_tracing_context();
|
||||
|
||||
// .greptime.v1.QueryContext query_context = 2;
|
||||
bool has_query_context() const;
|
||||
private:
|
||||
bool _internal_has_query_context() const;
|
||||
public:
|
||||
void clear_query_context();
|
||||
const ::greptime::v1::QueryContext& query_context() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::QueryContext* release_query_context();
|
||||
::greptime::v1::QueryContext* mutable_query_context();
|
||||
void set_allocated_query_context(::greptime::v1::QueryContext* query_context);
|
||||
private:
|
||||
const ::greptime::v1::QueryContext& _internal_query_context() const;
|
||||
::greptime::v1::QueryContext* _internal_mutable_query_context();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_query_context(
|
||||
::greptime::v1::QueryContext* query_context);
|
||||
::greptime::v1::QueryContext* unsafe_arena_release_query_context();
|
||||
|
||||
// @@protoc_insertion_point(class_scope:greptime.v1.flow.FlowRequestHeader)
|
||||
private:
|
||||
class _Internal;
|
||||
|
||||
template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::PROTOBUF_NAMESPACE_ID::internal::MapField<
|
||||
FlowRequestHeader_TracingContextEntry_DoNotUse,
|
||||
std::string, std::string,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
|
||||
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING> tracing_context_;
|
||||
::greptime::v1::QueryContext* query_context_;
|
||||
mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
|
||||
};
|
||||
union { Impl_ _impl_; };
|
||||
friend struct ::TableStruct_greptime_2fv1_2fflow_2fserver_2eproto;
|
||||
};
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
class InsertRequests final :
|
||||
public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:greptime.v1.flow.InsertRequests) */ {
|
||||
public:
|
||||
@@ -148,7 +367,7 @@ class InsertRequests final :
|
||||
&_InsertRequests_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
0;
|
||||
2;
|
||||
|
||||
friend void swap(InsertRequests& a, InsertRequests& b) {
|
||||
a.Swap(&b);
|
||||
@@ -305,7 +524,7 @@ class InsertRequest final :
|
||||
&_InsertRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
1;
|
||||
3;
|
||||
|
||||
friend void swap(InsertRequest& a, InsertRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -479,7 +698,7 @@ class FlowRequest final :
|
||||
&_FlowRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
2;
|
||||
4;
|
||||
|
||||
friend void swap(FlowRequest& a, FlowRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -552,9 +771,28 @@ class FlowRequest final :
|
||||
// accessors -------------------------------------------------------
|
||||
|
||||
enum : int {
|
||||
kHeaderFieldNumber = 64,
|
||||
kCreateFieldNumber = 1,
|
||||
kDropFieldNumber = 2,
|
||||
};
|
||||
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
||||
bool has_header() const;
|
||||
private:
|
||||
bool _internal_has_header() const;
|
||||
public:
|
||||
void clear_header();
|
||||
const ::greptime::v1::flow::FlowRequestHeader& header() const;
|
||||
PROTOBUF_NODISCARD ::greptime::v1::flow::FlowRequestHeader* release_header();
|
||||
::greptime::v1::flow::FlowRequestHeader* mutable_header();
|
||||
void set_allocated_header(::greptime::v1::flow::FlowRequestHeader* header);
|
||||
private:
|
||||
const ::greptime::v1::flow::FlowRequestHeader& _internal_header() const;
|
||||
::greptime::v1::flow::FlowRequestHeader* _internal_mutable_header();
|
||||
public:
|
||||
void unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::flow::FlowRequestHeader* header);
|
||||
::greptime::v1::flow::FlowRequestHeader* unsafe_arena_release_header();
|
||||
|
||||
// .greptime.v1.flow.CreateRequest create = 1;
|
||||
bool has_create() const;
|
||||
private:
|
||||
@@ -606,6 +844,7 @@ class FlowRequest final :
|
||||
typedef void InternalArenaConstructable_;
|
||||
typedef void DestructorSkippable_;
|
||||
struct Impl_ {
|
||||
::greptime::v1::flow::FlowRequestHeader* header_;
|
||||
union BodyUnion {
|
||||
constexpr BodyUnion() : _constinit_{} {}
|
||||
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
|
||||
@@ -695,7 +934,7 @@ class FlowResponse final :
|
||||
&_FlowResponse_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
4;
|
||||
6;
|
||||
|
||||
friend void swap(FlowResponse& a, FlowResponse& b) {
|
||||
a.Swap(&b);
|
||||
@@ -937,7 +1176,7 @@ class CreateRequest final :
|
||||
&_CreateRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
6;
|
||||
8;
|
||||
|
||||
friend void swap(CreateRequest& a, CreateRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1219,7 +1458,7 @@ class DropRequest final :
|
||||
&_DropRequest_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
7;
|
||||
9;
|
||||
|
||||
friend void swap(DropRequest& a, DropRequest& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1376,7 +1615,7 @@ class TaskId final :
|
||||
&_TaskId_default_instance_);
|
||||
}
|
||||
static constexpr int kIndexInFileMessages =
|
||||
8;
|
||||
10;
|
||||
|
||||
friend void swap(TaskId& a, TaskId& b) {
|
||||
a.Swap(&b);
|
||||
@@ -1483,6 +1722,126 @@ class TaskId final :
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wstrict-aliasing"
|
||||
#endif // __GNUC__
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// FlowRequestHeader
|
||||
|
||||
// map<string, string> tracing_context = 1;
|
||||
inline int FlowRequestHeader::_internal_tracing_context_size() const {
|
||||
return _impl_.tracing_context_.size();
|
||||
}
|
||||
inline int FlowRequestHeader::tracing_context_size() const {
|
||||
return _internal_tracing_context_size();
|
||||
}
|
||||
inline void FlowRequestHeader::clear_tracing_context() {
|
||||
_impl_.tracing_context_.Clear();
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||
FlowRequestHeader::_internal_tracing_context() const {
|
||||
return _impl_.tracing_context_.GetMap();
|
||||
}
|
||||
inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
|
||||
FlowRequestHeader::tracing_context() const {
|
||||
// @@protoc_insertion_point(field_map:greptime.v1.flow.FlowRequestHeader.tracing_context)
|
||||
return _internal_tracing_context();
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||
FlowRequestHeader::_internal_mutable_tracing_context() {
|
||||
return _impl_.tracing_context_.MutableMap();
|
||||
}
|
||||
inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
|
||||
FlowRequestHeader::mutable_tracing_context() {
|
||||
// @@protoc_insertion_point(field_mutable_map:greptime.v1.flow.FlowRequestHeader.tracing_context)
|
||||
return _internal_mutable_tracing_context();
|
||||
}
|
||||
|
||||
// .greptime.v1.QueryContext query_context = 2;
|
||||
inline bool FlowRequestHeader::_internal_has_query_context() const {
|
||||
return this != internal_default_instance() && _impl_.query_context_ != nullptr;
|
||||
}
|
||||
inline bool FlowRequestHeader::has_query_context() const {
|
||||
return _internal_has_query_context();
|
||||
}
|
||||
inline const ::greptime::v1::QueryContext& FlowRequestHeader::_internal_query_context() const {
|
||||
const ::greptime::v1::QueryContext* p = _impl_.query_context_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::QueryContext&>(
|
||||
::greptime::v1::_QueryContext_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::QueryContext& FlowRequestHeader::query_context() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.flow.FlowRequestHeader.query_context)
|
||||
return _internal_query_context();
|
||||
}
|
||||
inline void FlowRequestHeader::unsafe_arena_set_allocated_query_context(
|
||||
::greptime::v1::QueryContext* query_context) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_context_);
|
||||
}
|
||||
_impl_.query_context_ = query_context;
|
||||
if (query_context) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowRequestHeader.query_context)
|
||||
}
|
||||
inline ::greptime::v1::QueryContext* FlowRequestHeader::release_query_context() {
|
||||
|
||||
::greptime::v1::QueryContext* temp = _impl_.query_context_;
|
||||
_impl_.query_context_ = 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::QueryContext* FlowRequestHeader::unsafe_arena_release_query_context() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.flow.FlowRequestHeader.query_context)
|
||||
|
||||
::greptime::v1::QueryContext* temp = _impl_.query_context_;
|
||||
_impl_.query_context_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::QueryContext* FlowRequestHeader::_internal_mutable_query_context() {
|
||||
|
||||
if (_impl_.query_context_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::QueryContext>(GetArenaForAllocation());
|
||||
_impl_.query_context_ = p;
|
||||
}
|
||||
return _impl_.query_context_;
|
||||
}
|
||||
inline ::greptime::v1::QueryContext* FlowRequestHeader::mutable_query_context() {
|
||||
::greptime::v1::QueryContext* _msg = _internal_mutable_query_context();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowRequestHeader.query_context)
|
||||
return _msg;
|
||||
}
|
||||
inline void FlowRequestHeader::set_allocated_query_context(::greptime::v1::QueryContext* query_context) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.query_context_);
|
||||
}
|
||||
if (query_context) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
|
||||
reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(query_context));
|
||||
if (message_arena != submessage_arena) {
|
||||
query_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, query_context, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.query_context_ = query_context;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRequestHeader.query_context)
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// InsertRequests
|
||||
|
||||
// repeated .greptime.v1.flow.InsertRequest requests = 1;
|
||||
@@ -1638,6 +1997,96 @@ inline void InsertRequest::set_allocated_rows(::greptime::v1::Rows* rows) {
|
||||
|
||||
// FlowRequest
|
||||
|
||||
// .greptime.v1.flow.FlowRequestHeader header = 64;
|
||||
inline bool FlowRequest::_internal_has_header() const {
|
||||
return this != internal_default_instance() && _impl_.header_ != nullptr;
|
||||
}
|
||||
inline bool FlowRequest::has_header() const {
|
||||
return _internal_has_header();
|
||||
}
|
||||
inline void FlowRequest::clear_header() {
|
||||
if (GetArenaForAllocation() == nullptr && _impl_.header_ != nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
_impl_.header_ = nullptr;
|
||||
}
|
||||
inline const ::greptime::v1::flow::FlowRequestHeader& FlowRequest::_internal_header() const {
|
||||
const ::greptime::v1::flow::FlowRequestHeader* p = _impl_.header_;
|
||||
return p != nullptr ? *p : reinterpret_cast<const ::greptime::v1::flow::FlowRequestHeader&>(
|
||||
::greptime::v1::flow::_FlowRequestHeader_default_instance_);
|
||||
}
|
||||
inline const ::greptime::v1::flow::FlowRequestHeader& FlowRequest::header() const {
|
||||
// @@protoc_insertion_point(field_get:greptime.v1.flow.FlowRequest.header)
|
||||
return _internal_header();
|
||||
}
|
||||
inline void FlowRequest::unsafe_arena_set_allocated_header(
|
||||
::greptime::v1::flow::FlowRequestHeader* header) {
|
||||
if (GetArenaForAllocation() == nullptr) {
|
||||
delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.header_);
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
if (header) {
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
// @@protoc_insertion_point(field_unsafe_arena_set_allocated:greptime.v1.flow.FlowRequest.header)
|
||||
}
|
||||
inline ::greptime::v1::flow::FlowRequestHeader* FlowRequest::release_header() {
|
||||
|
||||
::greptime::v1::flow::FlowRequestHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = 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::flow::FlowRequestHeader* FlowRequest::unsafe_arena_release_header() {
|
||||
// @@protoc_insertion_point(field_release:greptime.v1.flow.FlowRequest.header)
|
||||
|
||||
::greptime::v1::flow::FlowRequestHeader* temp = _impl_.header_;
|
||||
_impl_.header_ = nullptr;
|
||||
return temp;
|
||||
}
|
||||
inline ::greptime::v1::flow::FlowRequestHeader* FlowRequest::_internal_mutable_header() {
|
||||
|
||||
if (_impl_.header_ == nullptr) {
|
||||
auto* p = CreateMaybeMessage<::greptime::v1::flow::FlowRequestHeader>(GetArenaForAllocation());
|
||||
_impl_.header_ = p;
|
||||
}
|
||||
return _impl_.header_;
|
||||
}
|
||||
inline ::greptime::v1::flow::FlowRequestHeader* FlowRequest::mutable_header() {
|
||||
::greptime::v1::flow::FlowRequestHeader* _msg = _internal_mutable_header();
|
||||
// @@protoc_insertion_point(field_mutable:greptime.v1.flow.FlowRequest.header)
|
||||
return _msg;
|
||||
}
|
||||
inline void FlowRequest::set_allocated_header(::greptime::v1::flow::FlowRequestHeader* header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
|
||||
if (message_arena == nullptr) {
|
||||
delete _impl_.header_;
|
||||
}
|
||||
if (header) {
|
||||
::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
|
||||
::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(header);
|
||||
if (message_arena != submessage_arena) {
|
||||
header = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
|
||||
message_arena, header, submessage_arena);
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
}
|
||||
_impl_.header_ = header;
|
||||
// @@protoc_insertion_point(field_set_allocated:greptime.v1.flow.FlowRequest.header)
|
||||
}
|
||||
|
||||
// .greptime.v1.flow.CreateRequest create = 1;
|
||||
inline bool FlowRequest::_internal_has_create() const {
|
||||
return body_case() == kCreate;
|
||||
@@ -2529,6 +2978,10 @@ inline void TaskId::set_id(uint32_t value) {
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
// -------------------------------------------------------------------
|
||||
|
||||
|
||||
// @@protoc_insertion_point(namespace_scope)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user