| // Generated by the protocol buffer compiler. DO NOT EDIT! |
| // source: UserBitShared.proto |
| |
| #include "UserBitShared.pb.h" |
| |
| #include <algorithm> |
| |
| #include <google/protobuf/io/coded_stream.h> |
| #include <google/protobuf/extension_set.h> |
| #include <google/protobuf/wire_format_lite.h> |
| #include <google/protobuf/descriptor.h> |
| #include <google/protobuf/generated_message_reflection.h> |
| #include <google/protobuf/reflection_ops.h> |
| #include <google/protobuf/wire_format.h> |
| // @@protoc_insertion_point(includes) |
| #include <google/protobuf/port_def.inc> |
| |
| PROTOBUF_PRAGMA_INIT_SEG |
| namespace exec { |
| namespace shared { |
| constexpr UserCredentials::UserCredentials( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : user_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} |
| struct UserCredentialsDefaultTypeInternal { |
| constexpr UserCredentialsDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~UserCredentialsDefaultTypeInternal() {} |
| union { |
| UserCredentials _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT UserCredentialsDefaultTypeInternal _UserCredentials_default_instance_; |
| constexpr QueryId::QueryId( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : part1_(PROTOBUF_LONGLONG(0)) |
| , part2_(PROTOBUF_LONGLONG(0)){} |
| struct QueryIdDefaultTypeInternal { |
| constexpr QueryIdDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~QueryIdDefaultTypeInternal() {} |
| union { |
| QueryId _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT QueryIdDefaultTypeInternal _QueryId_default_instance_; |
| constexpr DrillPBError::DrillPBError( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : parsing_error_() |
| , error_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , endpoint_(nullptr) |
| , exception_(nullptr) |
| , error_type_(0) |
| {} |
| struct DrillPBErrorDefaultTypeInternal { |
| constexpr DrillPBErrorDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~DrillPBErrorDefaultTypeInternal() {} |
| union { |
| DrillPBError _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT DrillPBErrorDefaultTypeInternal _DrillPBError_default_instance_; |
| constexpr ExceptionWrapper::ExceptionWrapper( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : stack_trace_() |
| , exception_class_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , message_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , cause_(nullptr){} |
| struct ExceptionWrapperDefaultTypeInternal { |
| constexpr ExceptionWrapperDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~ExceptionWrapperDefaultTypeInternal() {} |
| union { |
| ExceptionWrapper _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ExceptionWrapperDefaultTypeInternal _ExceptionWrapper_default_instance_; |
| constexpr StackTraceElementWrapper::StackTraceElementWrapper( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : class_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , file_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , method_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , line_number_(0) |
| , is_native_method_(false){} |
| struct StackTraceElementWrapperDefaultTypeInternal { |
| constexpr StackTraceElementWrapperDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~StackTraceElementWrapperDefaultTypeInternal() {} |
| union { |
| StackTraceElementWrapper _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StackTraceElementWrapperDefaultTypeInternal _StackTraceElementWrapper_default_instance_; |
| constexpr ParsingError::ParsingError( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : start_column_(0) |
| , start_row_(0) |
| , end_column_(0) |
| , end_row_(0){} |
| struct ParsingErrorDefaultTypeInternal { |
| constexpr ParsingErrorDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~ParsingErrorDefaultTypeInternal() {} |
| union { |
| ParsingError _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT ParsingErrorDefaultTypeInternal _ParsingError_default_instance_; |
| constexpr RecordBatchDef::RecordBatchDef( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : field_() |
| , record_count_(0) |
| , carries_two_byte_selection_vector_(false) |
| , affected_rows_count_(0){} |
| struct RecordBatchDefDefaultTypeInternal { |
| constexpr RecordBatchDefDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~RecordBatchDefDefaultTypeInternal() {} |
| union { |
| RecordBatchDef _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RecordBatchDefDefaultTypeInternal _RecordBatchDef_default_instance_; |
| constexpr NamePart::NamePart( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , child_(nullptr) |
| , type_(0) |
| {} |
| struct NamePartDefaultTypeInternal { |
| constexpr NamePartDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~NamePartDefaultTypeInternal() {} |
| union { |
| NamePart _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NamePartDefaultTypeInternal _NamePart_default_instance_; |
| constexpr SerializedField::SerializedField( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : child_() |
| , major_type_(nullptr) |
| , name_part_(nullptr) |
| , value_count_(0) |
| , var_byte_length_(0) |
| , buffer_length_(0){} |
| struct SerializedFieldDefaultTypeInternal { |
| constexpr SerializedFieldDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~SerializedFieldDefaultTypeInternal() {} |
| union { |
| SerializedField _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SerializedFieldDefaultTypeInternal _SerializedField_default_instance_; |
| constexpr NodeStatus::NodeStatus( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : memory_footprint_(PROTOBUF_LONGLONG(0)) |
| , node_id_(0){} |
| struct NodeStatusDefaultTypeInternal { |
| constexpr NodeStatusDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~NodeStatusDefaultTypeInternal() {} |
| union { |
| NodeStatus _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NodeStatusDefaultTypeInternal _NodeStatus_default_instance_; |
| constexpr QueryResult::QueryResult( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : error_() |
| , query_id_(nullptr) |
| , query_state_(0) |
| {} |
| struct QueryResultDefaultTypeInternal { |
| constexpr QueryResultDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~QueryResultDefaultTypeInternal() {} |
| union { |
| QueryResult _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT QueryResultDefaultTypeInternal _QueryResult_default_instance_; |
| constexpr QueryData::QueryData( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : query_id_(nullptr) |
| , def_(nullptr) |
| , row_count_(0) |
| , affected_rows_count_(0){} |
| struct QueryDataDefaultTypeInternal { |
| constexpr QueryDataDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~QueryDataDefaultTypeInternal() {} |
| union { |
| QueryData _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT QueryDataDefaultTypeInternal _QueryData_default_instance_; |
| constexpr QueryInfo::QueryInfo( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : query_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , user_(nullptr) |
| , options_json_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , queue_name_(nullptr) |
| , foreman_(nullptr) |
| , start_(PROTOBUF_LONGLONG(0)) |
| , total_cost_(0) |
| , state_(0) |
| {} |
| struct QueryInfoDefaultTypeInternal { |
| constexpr QueryInfoDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~QueryInfoDefaultTypeInternal() {} |
| union { |
| QueryInfo _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT QueryInfoDefaultTypeInternal _QueryInfo_default_instance_; |
| constexpr QueryProfile::QueryProfile( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : fragment_profile_() |
| , scanned_plugins_() |
| , query_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , plan_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , user_(nullptr) |
| , error_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , verboseerror_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , error_id_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , error_node_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , options_json_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , queue_name_(nullptr) |
| , queryid_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , id_(nullptr) |
| , foreman_(nullptr) |
| , start_(PROTOBUF_LONGLONG(0)) |
| , end_(PROTOBUF_LONGLONG(0)) |
| , state_(0) |
| |
| , total_fragments_(0) |
| , finished_fragments_(0) |
| , autolimit_(0) |
| , planend_(PROTOBUF_LONGLONG(0)) |
| , queuewaitend_(PROTOBUF_LONGLONG(0)) |
| , total_cost_(0) |
| , type_(1) |
| {} |
| struct QueryProfileDefaultTypeInternal { |
| constexpr QueryProfileDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~QueryProfileDefaultTypeInternal() {} |
| union { |
| QueryProfile _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT QueryProfileDefaultTypeInternal _QueryProfile_default_instance_; |
| constexpr MajorFragmentProfile::MajorFragmentProfile( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : minor_fragment_profile_() |
| , major_fragment_id_(0){} |
| struct MajorFragmentProfileDefaultTypeInternal { |
| constexpr MajorFragmentProfileDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~MajorFragmentProfileDefaultTypeInternal() {} |
| union { |
| MajorFragmentProfile _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MajorFragmentProfileDefaultTypeInternal _MajorFragmentProfile_default_instance_; |
| constexpr MinorFragmentProfile::MinorFragmentProfile( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : operator_profile_() |
| , error_(nullptr) |
| , endpoint_(nullptr) |
| , state_(0) |
| |
| , minor_fragment_id_(0) |
| , start_time_(PROTOBUF_LONGLONG(0)) |
| , end_time_(PROTOBUF_LONGLONG(0)) |
| , memory_used_(PROTOBUF_LONGLONG(0)) |
| , max_memory_used_(PROTOBUF_LONGLONG(0)) |
| , last_update_(PROTOBUF_LONGLONG(0)) |
| , last_progress_(PROTOBUF_LONGLONG(0)){} |
| struct MinorFragmentProfileDefaultTypeInternal { |
| constexpr MinorFragmentProfileDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~MinorFragmentProfileDefaultTypeInternal() {} |
| union { |
| MinorFragmentProfile _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MinorFragmentProfileDefaultTypeInternal _MinorFragmentProfile_default_instance_; |
| constexpr OperatorProfile::OperatorProfile( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : input_profile_() |
| , metric_() |
| , operator_type_name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , operator_id_(0) |
| , operator_type_(0) |
| , setup_nanos_(PROTOBUF_LONGLONG(0)) |
| , process_nanos_(PROTOBUF_LONGLONG(0)) |
| , peak_local_memory_allocated_(PROTOBUF_LONGLONG(0)) |
| , wait_nanos_(PROTOBUF_LONGLONG(0)){} |
| struct OperatorProfileDefaultTypeInternal { |
| constexpr OperatorProfileDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~OperatorProfileDefaultTypeInternal() {} |
| union { |
| OperatorProfile _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT OperatorProfileDefaultTypeInternal _OperatorProfile_default_instance_; |
| constexpr StreamProfile::StreamProfile( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : records_(PROTOBUF_LONGLONG(0)) |
| , batches_(PROTOBUF_LONGLONG(0)) |
| , schemas_(PROTOBUF_LONGLONG(0)){} |
| struct StreamProfileDefaultTypeInternal { |
| constexpr StreamProfileDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~StreamProfileDefaultTypeInternal() {} |
| union { |
| StreamProfile _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT StreamProfileDefaultTypeInternal _StreamProfile_default_instance_; |
| constexpr MetricValue::MetricValue( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : long_value_(PROTOBUF_LONGLONG(0)) |
| , double_value_(0) |
| , metric_id_(0){} |
| struct MetricValueDefaultTypeInternal { |
| constexpr MetricValueDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~MetricValueDefaultTypeInternal() {} |
| union { |
| MetricValue _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT MetricValueDefaultTypeInternal _MetricValue_default_instance_; |
| constexpr Registry::Registry( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : jar_(){} |
| struct RegistryDefaultTypeInternal { |
| constexpr RegistryDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~RegistryDefaultTypeInternal() {} |
| union { |
| Registry _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT RegistryDefaultTypeInternal _Registry_default_instance_; |
| constexpr Jar::Jar( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : function_signature_() |
| , name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){} |
| struct JarDefaultTypeInternal { |
| constexpr JarDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~JarDefaultTypeInternal() {} |
| union { |
| Jar _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT JarDefaultTypeInternal _Jar_default_instance_; |
| constexpr SaslMessage::SaslMessage( |
| ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized) |
| : mechanism_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , data_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string) |
| , status_(0) |
| {} |
| struct SaslMessageDefaultTypeInternal { |
| constexpr SaslMessageDefaultTypeInternal() |
| : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {} |
| ~SaslMessageDefaultTypeInternal() {} |
| union { |
| SaslMessage _instance; |
| }; |
| }; |
| PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT SaslMessageDefaultTypeInternal _SaslMessage_default_instance_; |
| } // namespace shared |
| } // namespace exec |
| static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_UserBitShared_2eproto[22]; |
| static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_UserBitShared_2eproto[7]; |
| static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_UserBitShared_2eproto = nullptr; |
| |
| const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_UserBitShared_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| PROTOBUF_FIELD_OFFSET(::exec::shared::UserCredentials, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::UserCredentials, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::UserCredentials, user_name_), |
| 0, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryId, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryId, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryId, part1_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryId, part2_), |
| 0, |
| 1, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::DrillPBError, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::DrillPBError, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::DrillPBError, error_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::DrillPBError, endpoint_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::DrillPBError, error_type_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::DrillPBError, message_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::DrillPBError, exception_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::DrillPBError, parsing_error_), |
| 0, |
| 2, |
| 4, |
| 1, |
| 3, |
| ~0u, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ExceptionWrapper, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ExceptionWrapper, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ExceptionWrapper, exception_class_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ExceptionWrapper, message_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ExceptionWrapper, stack_trace_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ExceptionWrapper, cause_), |
| 0, |
| 1, |
| ~0u, |
| 2, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, class_name_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, file_name_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, line_number_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, method_name_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StackTraceElementWrapper, is_native_method_), |
| 0, |
| 1, |
| 3, |
| 2, |
| 4, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ParsingError, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ParsingError, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ParsingError, start_column_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ParsingError, start_row_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ParsingError, end_column_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::ParsingError, end_row_), |
| 0, |
| 1, |
| 2, |
| 3, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::RecordBatchDef, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::RecordBatchDef, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::RecordBatchDef, record_count_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::RecordBatchDef, field_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::RecordBatchDef, carries_two_byte_selection_vector_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::RecordBatchDef, affected_rows_count_), |
| 0, |
| ~0u, |
| 1, |
| 2, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NamePart, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NamePart, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NamePart, type_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NamePart, name_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NamePart, child_), |
| 2, |
| 0, |
| 1, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SerializedField, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SerializedField, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SerializedField, major_type_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SerializedField, name_part_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SerializedField, child_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SerializedField, value_count_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SerializedField, var_byte_length_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SerializedField, buffer_length_), |
| 0, |
| 1, |
| ~0u, |
| 2, |
| 3, |
| 4, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NodeStatus, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NodeStatus, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NodeStatus, node_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::NodeStatus, memory_footprint_), |
| 1, |
| 0, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryResult, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryResult, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryResult, query_state_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryResult, query_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryResult, error_), |
| 1, |
| 0, |
| ~0u, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryData, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryData, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryData, query_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryData, row_count_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryData, def_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryData, affected_rows_count_), |
| 0, |
| 2, |
| 1, |
| 3, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, query_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, start_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, state_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, user_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, foreman_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, options_json_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, total_cost_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryInfo, queue_name_), |
| 0, |
| 5, |
| 7, |
| 1, |
| 4, |
| 2, |
| 6, |
| 3, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, type_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, start_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, end_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, query_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, plan_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, foreman_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, state_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, total_fragments_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, finished_fragments_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, fragment_profile_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, user_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, error_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, verboseerror_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, error_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, error_node_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, options_json_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, planend_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, queuewaitend_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, total_cost_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, queue_name_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, queryid_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, autolimit_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::QueryProfile, scanned_plugins_), |
| 10, |
| 21, |
| 12, |
| 13, |
| 0, |
| 1, |
| 11, |
| 14, |
| 15, |
| 16, |
| ~0u, |
| 2, |
| 3, |
| 4, |
| 5, |
| 6, |
| 7, |
| 18, |
| 19, |
| 20, |
| 8, |
| 9, |
| 17, |
| ~0u, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MajorFragmentProfile, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MajorFragmentProfile, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MajorFragmentProfile, major_fragment_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MajorFragmentProfile, minor_fragment_profile_), |
| 0, |
| ~0u, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, state_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, error_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, minor_fragment_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, operator_profile_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, start_time_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, end_time_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, memory_used_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, max_memory_used_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, endpoint_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, last_update_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MinorFragmentProfile, last_progress_), |
| 2, |
| 0, |
| 3, |
| ~0u, |
| 4, |
| 5, |
| 6, |
| 7, |
| 1, |
| 8, |
| 9, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, input_profile_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, operator_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, operator_type_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, setup_nanos_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, process_nanos_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, peak_local_memory_allocated_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, metric_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, wait_nanos_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::OperatorProfile, operator_type_name_), |
| ~0u, |
| 1, |
| 2, |
| 3, |
| 4, |
| 5, |
| ~0u, |
| 6, |
| 0, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StreamProfile, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StreamProfile, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StreamProfile, records_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StreamProfile, batches_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::StreamProfile, schemas_), |
| 0, |
| 1, |
| 2, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MetricValue, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MetricValue, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MetricValue, metric_id_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MetricValue, long_value_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::MetricValue, double_value_), |
| 2, |
| 0, |
| 1, |
| ~0u, // no _has_bits_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::Registry, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::Registry, jar_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::Jar, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::Jar, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::Jar, name_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::Jar, function_signature_), |
| 0, |
| ~0u, |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SaslMessage, _has_bits_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SaslMessage, _internal_metadata_), |
| ~0u, // no _extensions_ |
| ~0u, // no _oneof_case_ |
| ~0u, // no _weak_field_map_ |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SaslMessage, mechanism_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SaslMessage, data_), |
| PROTOBUF_FIELD_OFFSET(::exec::shared::SaslMessage, status_), |
| 0, |
| 1, |
| 2, |
| }; |
| static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
| { 0, 6, sizeof(::exec::shared::UserCredentials)}, |
| { 7, 14, sizeof(::exec::shared::QueryId)}, |
| { 16, 27, sizeof(::exec::shared::DrillPBError)}, |
| { 33, 42, sizeof(::exec::shared::ExceptionWrapper)}, |
| { 46, 56, sizeof(::exec::shared::StackTraceElementWrapper)}, |
| { 61, 70, sizeof(::exec::shared::ParsingError)}, |
| { 74, 83, sizeof(::exec::shared::RecordBatchDef)}, |
| { 87, 95, sizeof(::exec::shared::NamePart)}, |
| { 98, 109, sizeof(::exec::shared::SerializedField)}, |
| { 115, 122, sizeof(::exec::shared::NodeStatus)}, |
| { 124, 132, sizeof(::exec::shared::QueryResult)}, |
| { 135, 144, sizeof(::exec::shared::QueryData)}, |
| { 148, 161, sizeof(::exec::shared::QueryInfo)}, |
| { 169, 198, sizeof(::exec::shared::QueryProfile)}, |
| { 222, 229, sizeof(::exec::shared::MajorFragmentProfile)}, |
| { 231, 247, sizeof(::exec::shared::MinorFragmentProfile)}, |
| { 258, 272, sizeof(::exec::shared::OperatorProfile)}, |
| { 281, 289, sizeof(::exec::shared::StreamProfile)}, |
| { 292, 300, sizeof(::exec::shared::MetricValue)}, |
| { 303, -1, sizeof(::exec::shared::Registry)}, |
| { 309, 316, sizeof(::exec::shared::Jar)}, |
| { 318, 326, sizeof(::exec::shared::SaslMessage)}, |
| }; |
| |
| static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_UserCredentials_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_QueryId_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_DrillPBError_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_ExceptionWrapper_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_StackTraceElementWrapper_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_ParsingError_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_RecordBatchDef_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_NamePart_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_SerializedField_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_NodeStatus_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_QueryResult_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_QueryData_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_QueryInfo_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_QueryProfile_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_MajorFragmentProfile_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_MinorFragmentProfile_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_OperatorProfile_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_StreamProfile_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_MetricValue_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_Registry_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_Jar_default_instance_), |
| reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::exec::shared::_SaslMessage_default_instance_), |
| }; |
| |
| const char descriptor_table_protodef_UserBitShared_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
| "\n\023UserBitShared.proto\022\013exec.shared\032\013Type" |
| "s.proto\032\022Coordination.proto\032\017SchemaDef.p" |
| "roto\"$\n\017UserCredentials\022\021\n\tuser_name\030\001 \001" |
| "(\t\"\'\n\007QueryId\022\r\n\005part1\030\001 \001(\020\022\r\n\005part2\030\002 " |
| "\001(\020\"\355\003\n\014DrillPBError\022\020\n\010error_id\030\001 \001(\t\022(" |
| "\n\010endpoint\030\002 \001(\0132\026.exec.DrillbitEndpoint" |
| "\0227\n\nerror_type\030\003 \001(\0162#.exec.shared.Drill" |
| "PBError.ErrorType\022\017\n\007message\030\004 \001(\t\0220\n\tex" |
| "ception\030\005 \001(\0132\035.exec.shared.ExceptionWra" |
| "pper\0220\n\rparsing_error\030\006 \003(\0132\031.exec.share" |
| "d.ParsingError\"\362\001\n\tErrorType\022\016\n\nCONNECTI" |
| "ON\020\000\022\r\n\tDATA_READ\020\001\022\016\n\nDATA_WRITE\020\002\022\014\n\010F" |
| "UNCTION\020\003\022\t\n\005PARSE\020\004\022\016\n\nPERMISSION\020\005\022\010\n\004" |
| "PLAN\020\006\022\014\n\010RESOURCE\020\007\022\n\n\006SYSTEM\020\010\022\031\n\025UNSU" |
| "PPORTED_OPERATION\020\t\022\016\n\nVALIDATION\020\n\022\023\n\017E" |
| "XECUTION_ERROR\020\013\022\022\n\016INTERNAL_ERROR\020\014\022\025\n\021" |
| "UNSPECIFIED_ERROR\020\r\"\246\001\n\020ExceptionWrapper" |
| "\022\027\n\017exception_class\030\001 \001(\t\022\017\n\007message\030\002 \001" |
| "(\t\022:\n\013stack_trace\030\003 \003(\0132%.exec.shared.St" |
| "ackTraceElementWrapper\022,\n\005cause\030\004 \001(\0132\035." |
| "exec.shared.ExceptionWrapper\"\205\001\n\030StackTr" |
| "aceElementWrapper\022\022\n\nclass_name\030\001 \001(\t\022\021\n" |
| "\tfile_name\030\002 \001(\t\022\023\n\013line_number\030\003 \001(\005\022\023\n" |
| "\013method_name\030\004 \001(\t\022\030\n\020is_native_method\030\005" |
| " \001(\010\"\\\n\014ParsingError\022\024\n\014start_column\030\002 \001" |
| "(\005\022\021\n\tstart_row\030\003 \001(\005\022\022\n\nend_column\030\004 \001(" |
| "\005\022\017\n\007end_row\030\005 \001(\005\"\233\001\n\016RecordBatchDef\022\024\n" |
| "\014record_count\030\001 \001(\005\022+\n\005field\030\002 \003(\0132\034.exe" |
| "c.shared.SerializedField\022)\n!carries_two_" |
| "byte_selection_vector\030\003 \001(\010\022\033\n\023affected_" |
| "rows_count\030\004 \001(\005\"\205\001\n\010NamePart\022(\n\004type\030\001 " |
| "\001(\0162\032.exec.shared.NamePart.Type\022\014\n\004name\030" |
| "\002 \001(\t\022$\n\005child\030\003 \001(\0132\025.exec.shared.NameP" |
| "art\"\033\n\004Type\022\010\n\004NAME\020\000\022\t\n\005ARRAY\020\001\"\324\001\n\017Ser" |
| "ializedField\022%\n\nmajor_type\030\001 \001(\0132\021.commo" |
| "n.MajorType\022(\n\tname_part\030\002 \001(\0132\025.exec.sh" |
| "ared.NamePart\022+\n\005child\030\003 \003(\0132\034.exec.shar" |
| "ed.SerializedField\022\023\n\013value_count\030\004 \001(\005\022" |
| "\027\n\017var_byte_length\030\005 \001(\005\022\025\n\rbuffer_lengt" |
| "h\030\007 \001(\005\"7\n\nNodeStatus\022\017\n\007node_id\030\001 \001(\005\022\030" |
| "\n\020memory_footprint\030\002 \001(\003\"\263\002\n\013QueryResult" |
| "\0228\n\013query_state\030\001 \001(\0162#.exec.shared.Quer" |
| "yResult.QueryState\022&\n\010query_id\030\002 \001(\0132\024.e" |
| "xec.shared.QueryId\022(\n\005error\030\003 \003(\0132\031.exec" |
| ".shared.DrillPBError\"\227\001\n\nQueryState\022\014\n\010S" |
| "TARTING\020\000\022\013\n\007RUNNING\020\001\022\r\n\tCOMPLETED\020\002\022\014\n" |
| "\010CANCELED\020\003\022\n\n\006FAILED\020\004\022\032\n\026CANCELLATION_" |
| "REQUESTED\020\005\022\014\n\010ENQUEUED\020\006\022\r\n\tPREPARING\020\007" |
| "\022\014\n\010PLANNING\020\010\"\215\001\n\tQueryData\022&\n\010query_id" |
| "\030\001 \001(\0132\024.exec.shared.QueryId\022\021\n\trow_coun" |
| "t\030\002 \001(\005\022(\n\003def\030\003 \001(\0132\033.exec.shared.Recor" |
| "dBatchDef\022\033\n\023affected_rows_count\030\004 \001(\005\"\330" |
| "\001\n\tQueryInfo\022\r\n\005query\030\001 \001(\t\022\r\n\005start\030\002 \001" |
| "(\003\0222\n\005state\030\003 \001(\0162#.exec.shared.QueryRes" |
| "ult.QueryState\022\017\n\004user\030\004 \001(\t:\001-\022\'\n\007forem" |
| "an\030\005 \001(\0132\026.exec.DrillbitEndpoint\022\024\n\014opti" |
| "ons_json\030\006 \001(\t\022\022\n\ntotal_cost\030\007 \001(\001\022\025\n\nqu" |
| "eue_name\030\010 \001(\t:\001-\"\337\004\n\014QueryProfile\022 \n\002id" |
| "\030\001 \001(\0132\024.exec.shared.QueryId\022$\n\004type\030\002 \001" |
| "(\0162\026.exec.shared.QueryType\022\r\n\005start\030\003 \001(" |
| "\003\022\013\n\003end\030\004 \001(\003\022\r\n\005query\030\005 \001(\t\022\014\n\004plan\030\006 " |
| "\001(\t\022\'\n\007foreman\030\007 \001(\0132\026.exec.DrillbitEndp" |
| "oint\0222\n\005state\030\010 \001(\0162#.exec.shared.QueryR" |
| "esult.QueryState\022\027\n\017total_fragments\030\t \001(" |
| "\005\022\032\n\022finished_fragments\030\n \001(\005\022;\n\020fragmen" |
| "t_profile\030\013 \003(\0132!.exec.shared.MajorFragm" |
| "entProfile\022\017\n\004user\030\014 \001(\t:\001-\022\r\n\005error\030\r \001" |
| "(\t\022\024\n\014verboseError\030\016 \001(\t\022\020\n\010error_id\030\017 \001" |
| "(\t\022\022\n\nerror_node\030\020 \001(\t\022\024\n\014options_json\030\021" |
| " \001(\t\022\017\n\007planEnd\030\022 \001(\003\022\024\n\014queueWaitEnd\030\023 " |
| "\001(\003\022\022\n\ntotal_cost\030\024 \001(\001\022\025\n\nqueue_name\030\025 " |
| "\001(\t:\001-\022\017\n\007queryId\030\026 \001(\t\022\021\n\tautoLimit\030\027 \001" |
| "(\005\022\027\n\017scanned_plugins\030\030 \003(\t\"t\n\024MajorFrag" |
| "mentProfile\022\031\n\021major_fragment_id\030\001 \001(\005\022A" |
| "\n\026minor_fragment_profile\030\002 \003(\0132!.exec.sh" |
| "ared.MinorFragmentProfile\"\350\002\n\024MinorFragm" |
| "entProfile\022)\n\005state\030\001 \001(\0162\032.exec.shared." |
| "FragmentState\022(\n\005error\030\002 \001(\0132\031.exec.shar" |
| "ed.DrillPBError\022\031\n\021minor_fragment_id\030\003 \001" |
| "(\005\0226\n\020operator_profile\030\004 \003(\0132\034.exec.shar" |
| "ed.OperatorProfile\022\022\n\nstart_time\030\005 \001(\003\022\020" |
| "\n\010end_time\030\006 \001(\003\022\023\n\013memory_used\030\007 \001(\003\022\027\n" |
| "\017max_memory_used\030\010 \001(\003\022(\n\010endpoint\030\t \001(\013" |
| "2\026.exec.DrillbitEndpoint\022\023\n\013last_update\030" |
| "\n \001(\003\022\025\n\rlast_progress\030\013 \001(\003\"\237\002\n\017Operato" |
| "rProfile\0221\n\rinput_profile\030\001 \003(\0132\032.exec.s" |
| "hared.StreamProfile\022\023\n\013operator_id\030\003 \001(\005" |
| "\022\031\n\roperator_type\030\004 \001(\005B\002\030\001\022\023\n\013setup_nan" |
| "os\030\005 \001(\003\022\025\n\rprocess_nanos\030\006 \001(\003\022#\n\033peak_" |
| "local_memory_allocated\030\007 \001(\003\022(\n\006metric\030\010" |
| " \003(\0132\030.exec.shared.MetricValue\022\022\n\nwait_n" |
| "anos\030\t \001(\003\022\032\n\022operator_type_name\030\n \001(\t\"B" |
| "\n\rStreamProfile\022\017\n\007records\030\001 \001(\003\022\017\n\007batc" |
| "hes\030\002 \001(\003\022\017\n\007schemas\030\003 \001(\003\"J\n\013MetricValu" |
| "e\022\021\n\tmetric_id\030\001 \001(\005\022\022\n\nlong_value\030\002 \001(\003" |
| "\022\024\n\014double_value\030\003 \001(\001\")\n\010Registry\022\035\n\003ja" |
| "r\030\001 \003(\0132\020.exec.shared.Jar\"/\n\003Jar\022\014\n\004name" |
| "\030\001 \001(\t\022\032\n\022function_signature\030\002 \003(\t\"W\n\013Sa" |
| "slMessage\022\021\n\tmechanism\030\001 \001(\t\022\014\n\004data\030\002 \001" |
| "(\014\022\'\n\006status\030\003 \001(\0162\027.exec.shared.SaslSta" |
| "tus*5\n\nRpcChannel\022\017\n\013BIT_CONTROL\020\000\022\014\n\010BI" |
| "T_DATA\020\001\022\010\n\004USER\020\002*V\n\tQueryType\022\007\n\003SQL\020\001" |
| "\022\013\n\007LOGICAL\020\002\022\014\n\010PHYSICAL\020\003\022\r\n\tEXECUTION" |
| "\020\004\022\026\n\022PREPARED_STATEMENT\020\005*\207\001\n\rFragmentS" |
| "tate\022\013\n\007SENDING\020\000\022\027\n\023AWAITING_ALLOCATION" |
| "\020\001\022\013\n\007RUNNING\020\002\022\014\n\010FINISHED\020\003\022\r\n\tCANCELL" |
| "ED\020\004\022\n\n\006FAILED\020\005\022\032\n\026CANCELLATION_REQUEST" |
| "ED\020\006*g\n\nSaslStatus\022\020\n\014SASL_UNKNOWN\020\000\022\016\n\n" |
| "SASL_START\020\001\022\024\n\020SASL_IN_PROGRESS\020\002\022\020\n\014SA" |
| "SL_SUCCESS\020\003\022\017\n\013SASL_FAILED\020\004B.\n\033org.apa" |
| "che.drill.exec.protoB\rUserBitSharedH\001" |
| ; |
| static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_UserBitShared_2eproto_deps[3] = { |
| &::descriptor_table_Coordination_2eproto, |
| &::descriptor_table_SchemaDef_2eproto, |
| &::descriptor_table_Types_2eproto, |
| }; |
| static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_UserBitShared_2eproto_once; |
| const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_UserBitShared_2eproto = { |
| false, false, 4437, descriptor_table_protodef_UserBitShared_2eproto, "UserBitShared.proto", |
| &descriptor_table_UserBitShared_2eproto_once, descriptor_table_UserBitShared_2eproto_deps, 3, 22, |
| schemas, file_default_instances, TableStruct_UserBitShared_2eproto::offsets, |
| file_level_metadata_UserBitShared_2eproto, file_level_enum_descriptors_UserBitShared_2eproto, file_level_service_descriptors_UserBitShared_2eproto, |
| }; |
| PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_UserBitShared_2eproto_getter() { |
| return &descriptor_table_UserBitShared_2eproto; |
| } |
| |
| // Force running AddDescriptors() at dynamic initialization time. |
| PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_UserBitShared_2eproto(&descriptor_table_UserBitShared_2eproto); |
| namespace exec { |
| namespace shared { |
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DrillPBError_ErrorType_descriptor() { |
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_UserBitShared_2eproto); |
| return file_level_enum_descriptors_UserBitShared_2eproto[0]; |
| } |
| bool DrillPBError_ErrorType_IsValid(int value) { |
| switch (value) { |
| case 0: |
| case 1: |
| case 2: |
| case 3: |
| case 4: |
| case 5: |
| case 6: |
| case 7: |
| case 8: |
| case 9: |
| case 10: |
| case 11: |
| case 12: |
| case 13: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
| constexpr DrillPBError_ErrorType DrillPBError::CONNECTION; |
| constexpr DrillPBError_ErrorType DrillPBError::DATA_READ; |
| constexpr DrillPBError_ErrorType DrillPBError::DATA_WRITE; |
| constexpr DrillPBError_ErrorType DrillPBError::FUNCTION; |
| constexpr DrillPBError_ErrorType DrillPBError::PARSE; |
| constexpr DrillPBError_ErrorType DrillPBError::PERMISSION; |
| constexpr DrillPBError_ErrorType DrillPBError::PLAN; |
| constexpr DrillPBError_ErrorType DrillPBError::RESOURCE; |
| constexpr DrillPBError_ErrorType DrillPBError::SYSTEM; |
| constexpr DrillPBError_ErrorType DrillPBError::UNSUPPORTED_OPERATION; |
| constexpr DrillPBError_ErrorType DrillPBError::VALIDATION; |
| constexpr DrillPBError_ErrorType DrillPBError::EXECUTION_ERROR; |
| constexpr DrillPBError_ErrorType DrillPBError::INTERNAL_ERROR; |
| constexpr DrillPBError_ErrorType DrillPBError::UNSPECIFIED_ERROR; |
| constexpr DrillPBError_ErrorType DrillPBError::ErrorType_MIN; |
| constexpr DrillPBError_ErrorType DrillPBError::ErrorType_MAX; |
| constexpr int DrillPBError::ErrorType_ARRAYSIZE; |
| #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* NamePart_Type_descriptor() { |
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_UserBitShared_2eproto); |
| return file_level_enum_descriptors_UserBitShared_2eproto[1]; |
| } |
| bool NamePart_Type_IsValid(int value) { |
| switch (value) { |
| case 0: |
| case 1: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
| constexpr NamePart_Type NamePart::NAME; |
| constexpr NamePart_Type NamePart::ARRAY; |
| constexpr NamePart_Type NamePart::Type_MIN; |
| constexpr NamePart_Type NamePart::Type_MAX; |
| constexpr int NamePart::Type_ARRAYSIZE; |
| #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* QueryResult_QueryState_descriptor() { |
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_UserBitShared_2eproto); |
| return file_level_enum_descriptors_UserBitShared_2eproto[2]; |
| } |
| bool QueryResult_QueryState_IsValid(int value) { |
| switch (value) { |
| case 0: |
| case 1: |
| case 2: |
| case 3: |
| case 4: |
| case 5: |
| case 6: |
| case 7: |
| case 8: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
| constexpr QueryResult_QueryState QueryResult::STARTING; |
| constexpr QueryResult_QueryState QueryResult::RUNNING; |
| constexpr QueryResult_QueryState QueryResult::COMPLETED; |
| constexpr QueryResult_QueryState QueryResult::CANCELED; |
| constexpr QueryResult_QueryState QueryResult::FAILED; |
| constexpr QueryResult_QueryState QueryResult::CANCELLATION_REQUESTED; |
| constexpr QueryResult_QueryState QueryResult::ENQUEUED; |
| constexpr QueryResult_QueryState QueryResult::PREPARING; |
| constexpr QueryResult_QueryState QueryResult::PLANNING; |
| constexpr QueryResult_QueryState QueryResult::QueryState_MIN; |
| constexpr QueryResult_QueryState QueryResult::QueryState_MAX; |
| constexpr int QueryResult::QueryState_ARRAYSIZE; |
| #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* RpcChannel_descriptor() { |
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_UserBitShared_2eproto); |
| return file_level_enum_descriptors_UserBitShared_2eproto[3]; |
| } |
| bool RpcChannel_IsValid(int value) { |
| switch (value) { |
| case 0: |
| case 1: |
| case 2: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* QueryType_descriptor() { |
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_UserBitShared_2eproto); |
| return file_level_enum_descriptors_UserBitShared_2eproto[4]; |
| } |
| bool QueryType_IsValid(int value) { |
| switch (value) { |
| case 1: |
| case 2: |
| case 3: |
| case 4: |
| case 5: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FragmentState_descriptor() { |
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_UserBitShared_2eproto); |
| return file_level_enum_descriptors_UserBitShared_2eproto[5]; |
| } |
| bool FragmentState_IsValid(int value) { |
| switch (value) { |
| case 0: |
| case 1: |
| case 2: |
| case 3: |
| case 4: |
| case 5: |
| case 6: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SaslStatus_descriptor() { |
| ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_UserBitShared_2eproto); |
| return file_level_enum_descriptors_UserBitShared_2eproto[6]; |
| } |
| bool SaslStatus_IsValid(int value) { |
| switch (value) { |
| case 0: |
| case 1: |
| case 2: |
| case 3: |
| case 4: |
| return true; |
| default: |
| return false; |
| } |
| } |
| |
| |
| // =================================================================== |
| |
| class UserCredentials::_Internal { |
| public: |
| using HasBits = decltype(std::declval<UserCredentials>()._has_bits_); |
| static void set_has_user_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| }; |
| |
| UserCredentials::UserCredentials(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.UserCredentials) |
| } |
| UserCredentials::UserCredentials(const UserCredentials& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| user_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_user_name()) { |
| user_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_user_name(), |
| GetArena()); |
| } |
| // @@protoc_insertion_point(copy_constructor:exec.shared.UserCredentials) |
| } |
| |
| void UserCredentials::SharedCtor() { |
| user_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| |
| UserCredentials::~UserCredentials() { |
| // @@protoc_insertion_point(destructor:exec.shared.UserCredentials) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void UserCredentials::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| user_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| |
| void UserCredentials::ArenaDtor(void* object) { |
| UserCredentials* _this = reinterpret_cast< UserCredentials* >(object); |
| (void)_this; |
| } |
| void UserCredentials::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void UserCredentials::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void UserCredentials::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.UserCredentials) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000001u) { |
| user_name_.ClearNonDefaultToEmpty(); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* UserCredentials::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional string user_name = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| auto str = _internal_mutable_user_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.UserCredentials.user_name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* UserCredentials::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.UserCredentials) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional string user_name = 1; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_user_name().data(), static_cast<int>(this->_internal_user_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.UserCredentials.user_name"); |
| target = stream->WriteStringMaybeAliased( |
| 1, this->_internal_user_name(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.UserCredentials) |
| return target; |
| } |
| |
| size_t UserCredentials::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.UserCredentials) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // optional string user_name = 1; |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_user_name()); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void UserCredentials::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.UserCredentials) |
| GOOGLE_DCHECK_NE(&from, this); |
| const UserCredentials* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<UserCredentials>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.UserCredentials) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.UserCredentials) |
| MergeFrom(*source); |
| } |
| } |
| |
| void UserCredentials::MergeFrom(const UserCredentials& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.UserCredentials) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| if (from._internal_has_user_name()) { |
| _internal_set_user_name(from._internal_user_name()); |
| } |
| } |
| |
| void UserCredentials::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.UserCredentials) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void UserCredentials::CopyFrom(const UserCredentials& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.UserCredentials) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool UserCredentials::IsInitialized() const { |
| return true; |
| } |
| |
| void UserCredentials::InternalSwap(UserCredentials* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| user_name_.Swap(&other->user_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata UserCredentials::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[0]); |
| } |
| |
| // =================================================================== |
| |
| class QueryId::_Internal { |
| public: |
| using HasBits = decltype(std::declval<QueryId>()._has_bits_); |
| static void set_has_part1(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_part2(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| }; |
| |
| QueryId::QueryId(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.QueryId) |
| } |
| QueryId::QueryId(const QueryId& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::memcpy(&part1_, &from.part1_, |
| static_cast<size_t>(reinterpret_cast<char*>(&part2_) - |
| reinterpret_cast<char*>(&part1_)) + sizeof(part2_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.QueryId) |
| } |
| |
| void QueryId::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&part1_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&part2_) - |
| reinterpret_cast<char*>(&part1_)) + sizeof(part2_)); |
| } |
| |
| QueryId::~QueryId() { |
| // @@protoc_insertion_point(destructor:exec.shared.QueryId) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void QueryId::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| } |
| |
| void QueryId::ArenaDtor(void* object) { |
| QueryId* _this = reinterpret_cast< QueryId* >(object); |
| (void)_this; |
| } |
| void QueryId::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void QueryId::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void QueryId::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.QueryId) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| ::memset(&part1_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&part2_) - |
| reinterpret_cast<char*>(&part1_)) + sizeof(part2_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* QueryId::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional sfixed64 part1 = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 9)) { |
| _Internal::set_has_part1(&has_bits); |
| part1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::int64>(ptr); |
| ptr += sizeof(::PROTOBUF_NAMESPACE_ID::int64); |
| } else goto handle_unusual; |
| continue; |
| // optional sfixed64 part2 = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 17)) { |
| _Internal::set_has_part2(&has_bits); |
| part2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::int64>(ptr); |
| ptr += sizeof(::PROTOBUF_NAMESPACE_ID::int64); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* QueryId::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryId) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional sfixed64 part1 = 1; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSFixed64ToArray(1, this->_internal_part1(), target); |
| } |
| |
| // optional sfixed64 part2 = 2; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteSFixed64ToArray(2, this->_internal_part2(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.QueryId) |
| return target; |
| } |
| |
| size_t QueryId::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryId) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| // optional sfixed64 part1 = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + 8; |
| } |
| |
| // optional sfixed64 part2 = 2; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + 8; |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void QueryId::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryId) |
| GOOGLE_DCHECK_NE(&from, this); |
| const QueryId* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryId>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryId) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryId) |
| MergeFrom(*source); |
| } |
| } |
| |
| void QueryId::MergeFrom(const QueryId& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryId) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| if (cached_has_bits & 0x00000001u) { |
| part1_ = from.part1_; |
| } |
| if (cached_has_bits & 0x00000002u) { |
| part2_ = from.part2_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void QueryId::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryId) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void QueryId::CopyFrom(const QueryId& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryId) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool QueryId::IsInitialized() const { |
| return true; |
| } |
| |
| void QueryId::InternalSwap(QueryId* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(QueryId, part2_) |
| + sizeof(QueryId::part2_) |
| - PROTOBUF_FIELD_OFFSET(QueryId, part1_)>( |
| reinterpret_cast<char*>(&part1_), |
| reinterpret_cast<char*>(&other->part1_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata QueryId::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[1]); |
| } |
| |
| // =================================================================== |
| |
| class DrillPBError::_Internal { |
| public: |
| using HasBits = decltype(std::declval<DrillPBError>()._has_bits_); |
| static void set_has_error_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static const ::exec::DrillbitEndpoint& endpoint(const DrillPBError* msg); |
| static void set_has_endpoint(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_error_type(HasBits* has_bits) { |
| (*has_bits)[0] |= 16u; |
| } |
| static void set_has_message(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static const ::exec::shared::ExceptionWrapper& exception(const DrillPBError* msg); |
| static void set_has_exception(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| }; |
| |
| const ::exec::DrillbitEndpoint& |
| DrillPBError::_Internal::endpoint(const DrillPBError* msg) { |
| return *msg->endpoint_; |
| } |
| const ::exec::shared::ExceptionWrapper& |
| DrillPBError::_Internal::exception(const DrillPBError* msg) { |
| return *msg->exception_; |
| } |
| void DrillPBError::clear_endpoint() { |
| if (endpoint_ != nullptr) endpoint_->Clear(); |
| _has_bits_[0] &= ~0x00000004u; |
| } |
| DrillPBError::DrillPBError(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| parsing_error_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.DrillPBError) |
| } |
| DrillPBError::DrillPBError(const DrillPBError& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| parsing_error_(from.parsing_error_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| error_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_error_id()) { |
| error_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_id(), |
| GetArena()); |
| } |
| message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_message()) { |
| message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), |
| GetArena()); |
| } |
| if (from._internal_has_endpoint()) { |
| endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_); |
| } else { |
| endpoint_ = nullptr; |
| } |
| if (from._internal_has_exception()) { |
| exception_ = new ::exec::shared::ExceptionWrapper(*from.exception_); |
| } else { |
| exception_ = nullptr; |
| } |
| error_type_ = from.error_type_; |
| // @@protoc_insertion_point(copy_constructor:exec.shared.DrillPBError) |
| } |
| |
| void DrillPBError::SharedCtor() { |
| error_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&endpoint_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&error_type_) - |
| reinterpret_cast<char*>(&endpoint_)) + sizeof(error_type_)); |
| } |
| |
| DrillPBError::~DrillPBError() { |
| // @@protoc_insertion_point(destructor:exec.shared.DrillPBError) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void DrillPBError::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| error_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (this != internal_default_instance()) delete endpoint_; |
| if (this != internal_default_instance()) delete exception_; |
| } |
| |
| void DrillPBError::ArenaDtor(void* object) { |
| DrillPBError* _this = reinterpret_cast< DrillPBError* >(object); |
| (void)_this; |
| } |
| void DrillPBError::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void DrillPBError::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void DrillPBError::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.DrillPBError) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| parsing_error_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000000fu) { |
| if (cached_has_bits & 0x00000001u) { |
| error_id_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| message_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| GOOGLE_DCHECK(endpoint_ != nullptr); |
| endpoint_->Clear(); |
| } |
| if (cached_has_bits & 0x00000008u) { |
| GOOGLE_DCHECK(exception_ != nullptr); |
| exception_->Clear(); |
| } |
| } |
| error_type_ = 0; |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* DrillPBError::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional string error_id = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| auto str = _internal_mutable_error_id(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.DrillPBError.error_id"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.DrillbitEndpoint endpoint = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| ptr = ctx->ParseMessage(_internal_mutable_endpoint(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.DrillPBError.ErrorType error_type = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| if (PROTOBUF_PREDICT_TRUE(::exec::shared::DrillPBError_ErrorType_IsValid(val))) { |
| _internal_set_error_type(static_cast<::exec::shared::DrillPBError_ErrorType>(val)); |
| } else { |
| ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); |
| } |
| } else goto handle_unusual; |
| continue; |
| // optional string message = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
| auto str = _internal_mutable_message(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.DrillPBError.message"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.ExceptionWrapper exception = 5; |
| case 5: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
| ptr = ctx->ParseMessage(_internal_mutable_exception(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.ParsingError parsing_error = 6; |
| case 6: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_parsing_error(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* DrillPBError::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.DrillPBError) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional string error_id = 1; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_error_id().data(), static_cast<int>(this->_internal_error_id().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.DrillPBError.error_id"); |
| target = stream->WriteStringMaybeAliased( |
| 1, this->_internal_error_id(), target); |
| } |
| |
| // optional .exec.DrillbitEndpoint endpoint = 2; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 2, _Internal::endpoint(this), target, stream); |
| } |
| |
| // optional .exec.shared.DrillPBError.ErrorType error_type = 3; |
| if (cached_has_bits & 0x00000010u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
| 3, this->_internal_error_type(), target); |
| } |
| |
| // optional string message = 4; |
| if (cached_has_bits & 0x00000002u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_message().data(), static_cast<int>(this->_internal_message().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.DrillPBError.message"); |
| target = stream->WriteStringMaybeAliased( |
| 4, this->_internal_message(), target); |
| } |
| |
| // optional .exec.shared.ExceptionWrapper exception = 5; |
| if (cached_has_bits & 0x00000008u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 5, _Internal::exception(this), target, stream); |
| } |
| |
| // repeated .exec.shared.ParsingError parsing_error = 6; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_parsing_error_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(6, this->_internal_parsing_error(i), target, stream); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.DrillPBError) |
| return target; |
| } |
| |
| size_t DrillPBError::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.DrillPBError) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.ParsingError parsing_error = 6; |
| total_size += 1UL * this->_internal_parsing_error_size(); |
| for (const auto& msg : this->parsing_error_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000001fu) { |
| // optional string error_id = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_error_id()); |
| } |
| |
| // optional string message = 4; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_message()); |
| } |
| |
| // optional .exec.DrillbitEndpoint endpoint = 2; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *endpoint_); |
| } |
| |
| // optional .exec.shared.ExceptionWrapper exception = 5; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *exception_); |
| } |
| |
| // optional .exec.shared.DrillPBError.ErrorType error_type = 3; |
| if (cached_has_bits & 0x00000010u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_error_type()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void DrillPBError::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.DrillPBError) |
| GOOGLE_DCHECK_NE(&from, this); |
| const DrillPBError* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<DrillPBError>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.DrillPBError) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.DrillPBError) |
| MergeFrom(*source); |
| } |
| } |
| |
| void DrillPBError::MergeFrom(const DrillPBError& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.DrillPBError) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| parsing_error_.MergeFrom(from.parsing_error_); |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x0000001fu) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_set_error_id(from._internal_error_id()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_set_message(from._internal_message()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| _internal_mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from._internal_endpoint()); |
| } |
| if (cached_has_bits & 0x00000008u) { |
| _internal_mutable_exception()->::exec::shared::ExceptionWrapper::MergeFrom(from._internal_exception()); |
| } |
| if (cached_has_bits & 0x00000010u) { |
| error_type_ = from.error_type_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void DrillPBError::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.DrillPBError) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void DrillPBError::CopyFrom(const DrillPBError& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.DrillPBError) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool DrillPBError::IsInitialized() const { |
| return true; |
| } |
| |
| void DrillPBError::InternalSwap(DrillPBError* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| parsing_error_.InternalSwap(&other->parsing_error_); |
| error_id_.Swap(&other->error_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(DrillPBError, error_type_) |
| + sizeof(DrillPBError::error_type_) |
| - PROTOBUF_FIELD_OFFSET(DrillPBError, endpoint_)>( |
| reinterpret_cast<char*>(&endpoint_), |
| reinterpret_cast<char*>(&other->endpoint_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata DrillPBError::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[2]); |
| } |
| |
| // =================================================================== |
| |
| class ExceptionWrapper::_Internal { |
| public: |
| using HasBits = decltype(std::declval<ExceptionWrapper>()._has_bits_); |
| static void set_has_exception_class(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_message(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static const ::exec::shared::ExceptionWrapper& cause(const ExceptionWrapper* msg); |
| static void set_has_cause(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| }; |
| |
| const ::exec::shared::ExceptionWrapper& |
| ExceptionWrapper::_Internal::cause(const ExceptionWrapper* msg) { |
| return *msg->cause_; |
| } |
| ExceptionWrapper::ExceptionWrapper(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| stack_trace_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.ExceptionWrapper) |
| } |
| ExceptionWrapper::ExceptionWrapper(const ExceptionWrapper& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| stack_trace_(from.stack_trace_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| exception_class_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_exception_class()) { |
| exception_class_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_exception_class(), |
| GetArena()); |
| } |
| message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_message()) { |
| message_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_message(), |
| GetArena()); |
| } |
| if (from._internal_has_cause()) { |
| cause_ = new ::exec::shared::ExceptionWrapper(*from.cause_); |
| } else { |
| cause_ = nullptr; |
| } |
| // @@protoc_insertion_point(copy_constructor:exec.shared.ExceptionWrapper) |
| } |
| |
| void ExceptionWrapper::SharedCtor() { |
| exception_class_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| cause_ = nullptr; |
| } |
| |
| ExceptionWrapper::~ExceptionWrapper() { |
| // @@protoc_insertion_point(destructor:exec.shared.ExceptionWrapper) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void ExceptionWrapper::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| exception_class_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (this != internal_default_instance()) delete cause_; |
| } |
| |
| void ExceptionWrapper::ArenaDtor(void* object) { |
| ExceptionWrapper* _this = reinterpret_cast< ExceptionWrapper* >(object); |
| (void)_this; |
| } |
| void ExceptionWrapper::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void ExceptionWrapper::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void ExceptionWrapper::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.ExceptionWrapper) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| stack_trace_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| if (cached_has_bits & 0x00000001u) { |
| exception_class_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| message_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| GOOGLE_DCHECK(cause_ != nullptr); |
| cause_->Clear(); |
| } |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* ExceptionWrapper::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional string exception_class = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| auto str = _internal_mutable_exception_class(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.ExceptionWrapper.exception_class"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string message = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| auto str = _internal_mutable_message(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.ExceptionWrapper.message"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_stack_trace(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.ExceptionWrapper cause = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
| ptr = ctx->ParseMessage(_internal_mutable_cause(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* ExceptionWrapper::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.ExceptionWrapper) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional string exception_class = 1; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_exception_class().data(), static_cast<int>(this->_internal_exception_class().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.ExceptionWrapper.exception_class"); |
| target = stream->WriteStringMaybeAliased( |
| 1, this->_internal_exception_class(), target); |
| } |
| |
| // optional string message = 2; |
| if (cached_has_bits & 0x00000002u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_message().data(), static_cast<int>(this->_internal_message().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.ExceptionWrapper.message"); |
| target = stream->WriteStringMaybeAliased( |
| 2, this->_internal_message(), target); |
| } |
| |
| // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_stack_trace_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(3, this->_internal_stack_trace(i), target, stream); |
| } |
| |
| // optional .exec.shared.ExceptionWrapper cause = 4; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 4, _Internal::cause(this), target, stream); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.ExceptionWrapper) |
| return target; |
| } |
| |
| size_t ExceptionWrapper::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.ExceptionWrapper) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.StackTraceElementWrapper stack_trace = 3; |
| total_size += 1UL * this->_internal_stack_trace_size(); |
| for (const auto& msg : this->stack_trace_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| // optional string exception_class = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_exception_class()); |
| } |
| |
| // optional string message = 2; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_message()); |
| } |
| |
| // optional .exec.shared.ExceptionWrapper cause = 4; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *cause_); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void ExceptionWrapper::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.ExceptionWrapper) |
| GOOGLE_DCHECK_NE(&from, this); |
| const ExceptionWrapper* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExceptionWrapper>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.ExceptionWrapper) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.ExceptionWrapper) |
| MergeFrom(*source); |
| } |
| } |
| |
| void ExceptionWrapper::MergeFrom(const ExceptionWrapper& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.ExceptionWrapper) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| stack_trace_.MergeFrom(from.stack_trace_); |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_set_exception_class(from._internal_exception_class()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_set_message(from._internal_message()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| _internal_mutable_cause()->::exec::shared::ExceptionWrapper::MergeFrom(from._internal_cause()); |
| } |
| } |
| } |
| |
| void ExceptionWrapper::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.ExceptionWrapper) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void ExceptionWrapper::CopyFrom(const ExceptionWrapper& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.ExceptionWrapper) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool ExceptionWrapper::IsInitialized() const { |
| return true; |
| } |
| |
| void ExceptionWrapper::InternalSwap(ExceptionWrapper* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| stack_trace_.InternalSwap(&other->stack_trace_); |
| exception_class_.Swap(&other->exception_class_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| message_.Swap(&other->message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| swap(cause_, other->cause_); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata ExceptionWrapper::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[3]); |
| } |
| |
| // =================================================================== |
| |
| class StackTraceElementWrapper::_Internal { |
| public: |
| using HasBits = decltype(std::declval<StackTraceElementWrapper>()._has_bits_); |
| static void set_has_class_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_file_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_line_number(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| static void set_has_method_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_is_native_method(HasBits* has_bits) { |
| (*has_bits)[0] |= 16u; |
| } |
| }; |
| |
| StackTraceElementWrapper::StackTraceElementWrapper(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.StackTraceElementWrapper) |
| } |
| StackTraceElementWrapper::StackTraceElementWrapper(const StackTraceElementWrapper& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| class_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_class_name()) { |
| class_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_class_name(), |
| GetArena()); |
| } |
| file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_file_name()) { |
| file_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_file_name(), |
| GetArena()); |
| } |
| method_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_method_name()) { |
| method_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_method_name(), |
| GetArena()); |
| } |
| ::memcpy(&line_number_, &from.line_number_, |
| static_cast<size_t>(reinterpret_cast<char*>(&is_native_method_) - |
| reinterpret_cast<char*>(&line_number_)) + sizeof(is_native_method_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.StackTraceElementWrapper) |
| } |
| |
| void StackTraceElementWrapper::SharedCtor() { |
| class_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| file_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| method_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&line_number_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&is_native_method_) - |
| reinterpret_cast<char*>(&line_number_)) + sizeof(is_native_method_)); |
| } |
| |
| StackTraceElementWrapper::~StackTraceElementWrapper() { |
| // @@protoc_insertion_point(destructor:exec.shared.StackTraceElementWrapper) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void StackTraceElementWrapper::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| class_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| file_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| method_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| |
| void StackTraceElementWrapper::ArenaDtor(void* object) { |
| StackTraceElementWrapper* _this = reinterpret_cast< StackTraceElementWrapper* >(object); |
| (void)_this; |
| } |
| void StackTraceElementWrapper::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void StackTraceElementWrapper::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void StackTraceElementWrapper::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.StackTraceElementWrapper) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| if (cached_has_bits & 0x00000001u) { |
| class_name_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| file_name_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| method_name_.ClearNonDefaultToEmpty(); |
| } |
| } |
| if (cached_has_bits & 0x00000018u) { |
| ::memset(&line_number_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&is_native_method_) - |
| reinterpret_cast<char*>(&line_number_)) + sizeof(is_native_method_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* StackTraceElementWrapper::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional string class_name = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| auto str = _internal_mutable_class_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.StackTraceElementWrapper.class_name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string file_name = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| auto str = _internal_mutable_file_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.StackTraceElementWrapper.file_name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 line_number = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| _Internal::set_has_line_number(&has_bits); |
| line_number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string method_name = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
| auto str = _internal_mutable_method_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.StackTraceElementWrapper.method_name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional bool is_native_method = 5; |
| case 5: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
| _Internal::set_has_is_native_method(&has_bits); |
| is_native_method_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* StackTraceElementWrapper::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.StackTraceElementWrapper) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional string class_name = 1; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_class_name().data(), static_cast<int>(this->_internal_class_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.StackTraceElementWrapper.class_name"); |
| target = stream->WriteStringMaybeAliased( |
| 1, this->_internal_class_name(), target); |
| } |
| |
| // optional string file_name = 2; |
| if (cached_has_bits & 0x00000002u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_file_name().data(), static_cast<int>(this->_internal_file_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.StackTraceElementWrapper.file_name"); |
| target = stream->WriteStringMaybeAliased( |
| 2, this->_internal_file_name(), target); |
| } |
| |
| // optional int32 line_number = 3; |
| if (cached_has_bits & 0x00000008u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_line_number(), target); |
| } |
| |
| // optional string method_name = 4; |
| if (cached_has_bits & 0x00000004u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_method_name().data(), static_cast<int>(this->_internal_method_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.StackTraceElementWrapper.method_name"); |
| target = stream->WriteStringMaybeAliased( |
| 4, this->_internal_method_name(), target); |
| } |
| |
| // optional bool is_native_method = 5; |
| if (cached_has_bits & 0x00000010u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(5, this->_internal_is_native_method(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.StackTraceElementWrapper) |
| return target; |
| } |
| |
| size_t StackTraceElementWrapper::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.StackTraceElementWrapper) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000001fu) { |
| // optional string class_name = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_class_name()); |
| } |
| |
| // optional string file_name = 2; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_file_name()); |
| } |
| |
| // optional string method_name = 4; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_method_name()); |
| } |
| |
| // optional int32 line_number = 3; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_line_number()); |
| } |
| |
| // optional bool is_native_method = 5; |
| if (cached_has_bits & 0x00000010u) { |
| total_size += 1 + 1; |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void StackTraceElementWrapper::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.StackTraceElementWrapper) |
| GOOGLE_DCHECK_NE(&from, this); |
| const StackTraceElementWrapper* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StackTraceElementWrapper>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.StackTraceElementWrapper) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.StackTraceElementWrapper) |
| MergeFrom(*source); |
| } |
| } |
| |
| void StackTraceElementWrapper::MergeFrom(const StackTraceElementWrapper& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.StackTraceElementWrapper) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x0000001fu) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_set_class_name(from._internal_class_name()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_set_file_name(from._internal_file_name()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| _internal_set_method_name(from._internal_method_name()); |
| } |
| if (cached_has_bits & 0x00000008u) { |
| line_number_ = from.line_number_; |
| } |
| if (cached_has_bits & 0x00000010u) { |
| is_native_method_ = from.is_native_method_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void StackTraceElementWrapper::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.StackTraceElementWrapper) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void StackTraceElementWrapper::CopyFrom(const StackTraceElementWrapper& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.StackTraceElementWrapper) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool StackTraceElementWrapper::IsInitialized() const { |
| return true; |
| } |
| |
| void StackTraceElementWrapper::InternalSwap(StackTraceElementWrapper* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| class_name_.Swap(&other->class_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| file_name_.Swap(&other->file_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| method_name_.Swap(&other->method_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(StackTraceElementWrapper, is_native_method_) |
| + sizeof(StackTraceElementWrapper::is_native_method_) |
| - PROTOBUF_FIELD_OFFSET(StackTraceElementWrapper, line_number_)>( |
| reinterpret_cast<char*>(&line_number_), |
| reinterpret_cast<char*>(&other->line_number_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata StackTraceElementWrapper::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[4]); |
| } |
| |
| // =================================================================== |
| |
| class ParsingError::_Internal { |
| public: |
| using HasBits = decltype(std::declval<ParsingError>()._has_bits_); |
| static void set_has_start_column(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_start_row(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_end_column(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_end_row(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| }; |
| |
| ParsingError::ParsingError(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.ParsingError) |
| } |
| ParsingError::ParsingError(const ParsingError& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::memcpy(&start_column_, &from.start_column_, |
| static_cast<size_t>(reinterpret_cast<char*>(&end_row_) - |
| reinterpret_cast<char*>(&start_column_)) + sizeof(end_row_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.ParsingError) |
| } |
| |
| void ParsingError::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&start_column_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&end_row_) - |
| reinterpret_cast<char*>(&start_column_)) + sizeof(end_row_)); |
| } |
| |
| ParsingError::~ParsingError() { |
| // @@protoc_insertion_point(destructor:exec.shared.ParsingError) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void ParsingError::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| } |
| |
| void ParsingError::ArenaDtor(void* object) { |
| ParsingError* _this = reinterpret_cast< ParsingError* >(object); |
| (void)_this; |
| } |
| void ParsingError::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void ParsingError::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void ParsingError::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.ParsingError) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000000fu) { |
| ::memset(&start_column_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&end_row_) - |
| reinterpret_cast<char*>(&start_column_)) + sizeof(end_row_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* ParsingError::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional int32 start_column = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
| _Internal::set_has_start_column(&has_bits); |
| start_column_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 start_row = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| _Internal::set_has_start_row(&has_bits); |
| start_row_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 end_column = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
| _Internal::set_has_end_column(&has_bits); |
| end_column_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 end_row = 5; |
| case 5: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
| _Internal::set_has_end_row(&has_bits); |
| end_row_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* ParsingError::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.ParsingError) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional int32 start_column = 2; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_start_column(), target); |
| } |
| |
| // optional int32 start_row = 3; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_start_row(), target); |
| } |
| |
| // optional int32 end_column = 4; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_end_column(), target); |
| } |
| |
| // optional int32 end_row = 5; |
| if (cached_has_bits & 0x00000008u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_end_row(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.ParsingError) |
| return target; |
| } |
| |
| size_t ParsingError::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.ParsingError) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000000fu) { |
| // optional int32 start_column = 2; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_start_column()); |
| } |
| |
| // optional int32 start_row = 3; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_start_row()); |
| } |
| |
| // optional int32 end_column = 4; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_end_column()); |
| } |
| |
| // optional int32 end_row = 5; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_end_row()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void ParsingError::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.ParsingError) |
| GOOGLE_DCHECK_NE(&from, this); |
| const ParsingError* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ParsingError>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.ParsingError) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.ParsingError) |
| MergeFrom(*source); |
| } |
| } |
| |
| void ParsingError::MergeFrom(const ParsingError& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.ParsingError) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x0000000fu) { |
| if (cached_has_bits & 0x00000001u) { |
| start_column_ = from.start_column_; |
| } |
| if (cached_has_bits & 0x00000002u) { |
| start_row_ = from.start_row_; |
| } |
| if (cached_has_bits & 0x00000004u) { |
| end_column_ = from.end_column_; |
| } |
| if (cached_has_bits & 0x00000008u) { |
| end_row_ = from.end_row_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void ParsingError::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.ParsingError) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void ParsingError::CopyFrom(const ParsingError& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.ParsingError) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool ParsingError::IsInitialized() const { |
| return true; |
| } |
| |
| void ParsingError::InternalSwap(ParsingError* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(ParsingError, end_row_) |
| + sizeof(ParsingError::end_row_) |
| - PROTOBUF_FIELD_OFFSET(ParsingError, start_column_)>( |
| reinterpret_cast<char*>(&start_column_), |
| reinterpret_cast<char*>(&other->start_column_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata ParsingError::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[5]); |
| } |
| |
| // =================================================================== |
| |
| class RecordBatchDef::_Internal { |
| public: |
| using HasBits = decltype(std::declval<RecordBatchDef>()._has_bits_); |
| static void set_has_record_count(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_carries_two_byte_selection_vector(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_affected_rows_count(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| }; |
| |
| RecordBatchDef::RecordBatchDef(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| field_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.RecordBatchDef) |
| } |
| RecordBatchDef::RecordBatchDef(const RecordBatchDef& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| field_(from.field_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::memcpy(&record_count_, &from.record_count_, |
| static_cast<size_t>(reinterpret_cast<char*>(&affected_rows_count_) - |
| reinterpret_cast<char*>(&record_count_)) + sizeof(affected_rows_count_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.RecordBatchDef) |
| } |
| |
| void RecordBatchDef::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&record_count_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&affected_rows_count_) - |
| reinterpret_cast<char*>(&record_count_)) + sizeof(affected_rows_count_)); |
| } |
| |
| RecordBatchDef::~RecordBatchDef() { |
| // @@protoc_insertion_point(destructor:exec.shared.RecordBatchDef) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void RecordBatchDef::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| } |
| |
| void RecordBatchDef::ArenaDtor(void* object) { |
| RecordBatchDef* _this = reinterpret_cast< RecordBatchDef* >(object); |
| (void)_this; |
| } |
| void RecordBatchDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void RecordBatchDef::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void RecordBatchDef::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.RecordBatchDef) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| field_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| ::memset(&record_count_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&affected_rows_count_) - |
| reinterpret_cast<char*>(&record_count_)) + sizeof(affected_rows_count_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* RecordBatchDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional int32 record_count = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
| _Internal::set_has_record_count(&has_bits); |
| record_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.SerializedField field = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_field(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| // optional bool carries_two_byte_selection_vector = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| _Internal::set_has_carries_two_byte_selection_vector(&has_bits); |
| carries_two_byte_selection_vector_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 affected_rows_count = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
| _Internal::set_has_affected_rows_count(&has_bits); |
| affected_rows_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* RecordBatchDef::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.RecordBatchDef) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional int32 record_count = 1; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_record_count(), target); |
| } |
| |
| // repeated .exec.shared.SerializedField field = 2; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_field_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(2, this->_internal_field(i), target, stream); |
| } |
| |
| // optional bool carries_two_byte_selection_vector = 3; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_carries_two_byte_selection_vector(), target); |
| } |
| |
| // optional int32 affected_rows_count = 4; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_affected_rows_count(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.RecordBatchDef) |
| return target; |
| } |
| |
| size_t RecordBatchDef::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.RecordBatchDef) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.SerializedField field = 2; |
| total_size += 1UL * this->_internal_field_size(); |
| for (const auto& msg : this->field_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| // optional int32 record_count = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_record_count()); |
| } |
| |
| // optional bool carries_two_byte_selection_vector = 3; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + 1; |
| } |
| |
| // optional int32 affected_rows_count = 4; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_affected_rows_count()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void RecordBatchDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.RecordBatchDef) |
| GOOGLE_DCHECK_NE(&from, this); |
| const RecordBatchDef* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<RecordBatchDef>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.RecordBatchDef) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.RecordBatchDef) |
| MergeFrom(*source); |
| } |
| } |
| |
| void RecordBatchDef::MergeFrom(const RecordBatchDef& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.RecordBatchDef) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| field_.MergeFrom(from.field_); |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| if (cached_has_bits & 0x00000001u) { |
| record_count_ = from.record_count_; |
| } |
| if (cached_has_bits & 0x00000002u) { |
| carries_two_byte_selection_vector_ = from.carries_two_byte_selection_vector_; |
| } |
| if (cached_has_bits & 0x00000004u) { |
| affected_rows_count_ = from.affected_rows_count_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void RecordBatchDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.RecordBatchDef) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void RecordBatchDef::CopyFrom(const RecordBatchDef& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.RecordBatchDef) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool RecordBatchDef::IsInitialized() const { |
| return true; |
| } |
| |
| void RecordBatchDef::InternalSwap(RecordBatchDef* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| field_.InternalSwap(&other->field_); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(RecordBatchDef, affected_rows_count_) |
| + sizeof(RecordBatchDef::affected_rows_count_) |
| - PROTOBUF_FIELD_OFFSET(RecordBatchDef, record_count_)>( |
| reinterpret_cast<char*>(&record_count_), |
| reinterpret_cast<char*>(&other->record_count_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata RecordBatchDef::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[6]); |
| } |
| |
| // =================================================================== |
| |
| class NamePart::_Internal { |
| public: |
| using HasBits = decltype(std::declval<NamePart>()._has_bits_); |
| static void set_has_type(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static const ::exec::shared::NamePart& child(const NamePart* msg); |
| static void set_has_child(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| }; |
| |
| const ::exec::shared::NamePart& |
| NamePart::_Internal::child(const NamePart* msg) { |
| return *msg->child_; |
| } |
| NamePart::NamePart(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.NamePart) |
| } |
| NamePart::NamePart(const NamePart& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_name()) { |
| name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), |
| GetArena()); |
| } |
| if (from._internal_has_child()) { |
| child_ = new ::exec::shared::NamePart(*from.child_); |
| } else { |
| child_ = nullptr; |
| } |
| type_ = from.type_; |
| // @@protoc_insertion_point(copy_constructor:exec.shared.NamePart) |
| } |
| |
| void NamePart::SharedCtor() { |
| name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&child_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&type_) - |
| reinterpret_cast<char*>(&child_)) + sizeof(type_)); |
| } |
| |
| NamePart::~NamePart() { |
| // @@protoc_insertion_point(destructor:exec.shared.NamePart) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void NamePart::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (this != internal_default_instance()) delete child_; |
| } |
| |
| void NamePart::ArenaDtor(void* object) { |
| NamePart* _this = reinterpret_cast< NamePart* >(object); |
| (void)_this; |
| } |
| void NamePart::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void NamePart::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void NamePart::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.NamePart) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| if (cached_has_bits & 0x00000001u) { |
| name_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| GOOGLE_DCHECK(child_ != nullptr); |
| child_->Clear(); |
| } |
| } |
| type_ = 0; |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* NamePart::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional .exec.shared.NamePart.Type type = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
| ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| if (PROTOBUF_PREDICT_TRUE(::exec::shared::NamePart_Type_IsValid(val))) { |
| _internal_set_type(static_cast<::exec::shared::NamePart_Type>(val)); |
| } else { |
| ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); |
| } |
| } else goto handle_unusual; |
| continue; |
| // optional string name = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| auto str = _internal_mutable_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.NamePart.name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.NamePart child = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
| ptr = ctx->ParseMessage(_internal_mutable_child(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* NamePart::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.NamePart) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional .exec.shared.NamePart.Type type = 1; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
| 1, this->_internal_type(), target); |
| } |
| |
| // optional string name = 2; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.NamePart.name"); |
| target = stream->WriteStringMaybeAliased( |
| 2, this->_internal_name(), target); |
| } |
| |
| // optional .exec.shared.NamePart child = 3; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 3, _Internal::child(this), target, stream); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.NamePart) |
| return target; |
| } |
| |
| size_t NamePart::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.NamePart) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| // optional string name = 2; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_name()); |
| } |
| |
| // optional .exec.shared.NamePart child = 3; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *child_); |
| } |
| |
| // optional .exec.shared.NamePart.Type type = 1; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void NamePart::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.NamePart) |
| GOOGLE_DCHECK_NE(&from, this); |
| const NamePart* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NamePart>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.NamePart) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.NamePart) |
| MergeFrom(*source); |
| } |
| } |
| |
| void NamePart::MergeFrom(const NamePart& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.NamePart) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_set_name(from._internal_name()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_mutable_child()->::exec::shared::NamePart::MergeFrom(from._internal_child()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| type_ = from.type_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void NamePart::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.NamePart) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void NamePart::CopyFrom(const NamePart& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.NamePart) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool NamePart::IsInitialized() const { |
| return true; |
| } |
| |
| void NamePart::InternalSwap(NamePart* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(NamePart, type_) |
| + sizeof(NamePart::type_) |
| - PROTOBUF_FIELD_OFFSET(NamePart, child_)>( |
| reinterpret_cast<char*>(&child_), |
| reinterpret_cast<char*>(&other->child_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata NamePart::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[7]); |
| } |
| |
| // =================================================================== |
| |
| class SerializedField::_Internal { |
| public: |
| using HasBits = decltype(std::declval<SerializedField>()._has_bits_); |
| static const ::common::MajorType& major_type(const SerializedField* msg); |
| static void set_has_major_type(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static const ::exec::shared::NamePart& name_part(const SerializedField* msg); |
| static void set_has_name_part(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_value_count(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_var_byte_length(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| static void set_has_buffer_length(HasBits* has_bits) { |
| (*has_bits)[0] |= 16u; |
| } |
| }; |
| |
| const ::common::MajorType& |
| SerializedField::_Internal::major_type(const SerializedField* msg) { |
| return *msg->major_type_; |
| } |
| const ::exec::shared::NamePart& |
| SerializedField::_Internal::name_part(const SerializedField* msg) { |
| return *msg->name_part_; |
| } |
| void SerializedField::clear_major_type() { |
| if (major_type_ != nullptr) major_type_->Clear(); |
| _has_bits_[0] &= ~0x00000001u; |
| } |
| SerializedField::SerializedField(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| child_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.SerializedField) |
| } |
| SerializedField::SerializedField(const SerializedField& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| child_(from.child_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| if (from._internal_has_major_type()) { |
| major_type_ = new ::common::MajorType(*from.major_type_); |
| } else { |
| major_type_ = nullptr; |
| } |
| if (from._internal_has_name_part()) { |
| name_part_ = new ::exec::shared::NamePart(*from.name_part_); |
| } else { |
| name_part_ = nullptr; |
| } |
| ::memcpy(&value_count_, &from.value_count_, |
| static_cast<size_t>(reinterpret_cast<char*>(&buffer_length_) - |
| reinterpret_cast<char*>(&value_count_)) + sizeof(buffer_length_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.SerializedField) |
| } |
| |
| void SerializedField::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&major_type_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&buffer_length_) - |
| reinterpret_cast<char*>(&major_type_)) + sizeof(buffer_length_)); |
| } |
| |
| SerializedField::~SerializedField() { |
| // @@protoc_insertion_point(destructor:exec.shared.SerializedField) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void SerializedField::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| if (this != internal_default_instance()) delete major_type_; |
| if (this != internal_default_instance()) delete name_part_; |
| } |
| |
| void SerializedField::ArenaDtor(void* object) { |
| SerializedField* _this = reinterpret_cast< SerializedField* >(object); |
| (void)_this; |
| } |
| void SerializedField::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void SerializedField::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void SerializedField::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.SerializedField) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| child_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| if (cached_has_bits & 0x00000001u) { |
| GOOGLE_DCHECK(major_type_ != nullptr); |
| major_type_->Clear(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| GOOGLE_DCHECK(name_part_ != nullptr); |
| name_part_->Clear(); |
| } |
| } |
| if (cached_has_bits & 0x0000001cu) { |
| ::memset(&value_count_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&buffer_length_) - |
| reinterpret_cast<char*>(&value_count_)) + sizeof(buffer_length_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* SerializedField::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional .common.MajorType major_type = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| ptr = ctx->ParseMessage(_internal_mutable_major_type(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.NamePart name_part = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| ptr = ctx->ParseMessage(_internal_mutable_name_part(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.SerializedField child = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_child(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 value_count = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
| _Internal::set_has_value_count(&has_bits); |
| value_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 var_byte_length = 5; |
| case 5: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
| _Internal::set_has_var_byte_length(&has_bits); |
| var_byte_length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 buffer_length = 7; |
| case 7: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
| _Internal::set_has_buffer_length(&has_bits); |
| buffer_length_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* SerializedField::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.SerializedField) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional .common.MajorType major_type = 1; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 1, _Internal::major_type(this), target, stream); |
| } |
| |
| // optional .exec.shared.NamePart name_part = 2; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 2, _Internal::name_part(this), target, stream); |
| } |
| |
| // repeated .exec.shared.SerializedField child = 3; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_child_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(3, this->_internal_child(i), target, stream); |
| } |
| |
| // optional int32 value_count = 4; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_value_count(), target); |
| } |
| |
| // optional int32 var_byte_length = 5; |
| if (cached_has_bits & 0x00000008u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_var_byte_length(), target); |
| } |
| |
| // optional int32 buffer_length = 7; |
| if (cached_has_bits & 0x00000010u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_buffer_length(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.SerializedField) |
| return target; |
| } |
| |
| size_t SerializedField::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.SerializedField) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.SerializedField child = 3; |
| total_size += 1UL * this->_internal_child_size(); |
| for (const auto& msg : this->child_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000001fu) { |
| // optional .common.MajorType major_type = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *major_type_); |
| } |
| |
| // optional .exec.shared.NamePart name_part = 2; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *name_part_); |
| } |
| |
| // optional int32 value_count = 4; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_value_count()); |
| } |
| |
| // optional int32 var_byte_length = 5; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_var_byte_length()); |
| } |
| |
| // optional int32 buffer_length = 7; |
| if (cached_has_bits & 0x00000010u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_buffer_length()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void SerializedField::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.SerializedField) |
| GOOGLE_DCHECK_NE(&from, this); |
| const SerializedField* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SerializedField>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.SerializedField) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.SerializedField) |
| MergeFrom(*source); |
| } |
| } |
| |
| void SerializedField::MergeFrom(const SerializedField& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.SerializedField) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| child_.MergeFrom(from.child_); |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x0000001fu) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_mutable_major_type()->::common::MajorType::MergeFrom(from._internal_major_type()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_mutable_name_part()->::exec::shared::NamePart::MergeFrom(from._internal_name_part()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| value_count_ = from.value_count_; |
| } |
| if (cached_has_bits & 0x00000008u) { |
| var_byte_length_ = from.var_byte_length_; |
| } |
| if (cached_has_bits & 0x00000010u) { |
| buffer_length_ = from.buffer_length_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void SerializedField::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.SerializedField) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void SerializedField::CopyFrom(const SerializedField& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.SerializedField) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool SerializedField::IsInitialized() const { |
| return true; |
| } |
| |
| void SerializedField::InternalSwap(SerializedField* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| child_.InternalSwap(&other->child_); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(SerializedField, buffer_length_) |
| + sizeof(SerializedField::buffer_length_) |
| - PROTOBUF_FIELD_OFFSET(SerializedField, major_type_)>( |
| reinterpret_cast<char*>(&major_type_), |
| reinterpret_cast<char*>(&other->major_type_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata SerializedField::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[8]); |
| } |
| |
| // =================================================================== |
| |
| class NodeStatus::_Internal { |
| public: |
| using HasBits = decltype(std::declval<NodeStatus>()._has_bits_); |
| static void set_has_node_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_memory_footprint(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| }; |
| |
| NodeStatus::NodeStatus(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.NodeStatus) |
| } |
| NodeStatus::NodeStatus(const NodeStatus& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::memcpy(&memory_footprint_, &from.memory_footprint_, |
| static_cast<size_t>(reinterpret_cast<char*>(&node_id_) - |
| reinterpret_cast<char*>(&memory_footprint_)) + sizeof(node_id_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.NodeStatus) |
| } |
| |
| void NodeStatus::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&memory_footprint_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&node_id_) - |
| reinterpret_cast<char*>(&memory_footprint_)) + sizeof(node_id_)); |
| } |
| |
| NodeStatus::~NodeStatus() { |
| // @@protoc_insertion_point(destructor:exec.shared.NodeStatus) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void NodeStatus::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| } |
| |
| void NodeStatus::ArenaDtor(void* object) { |
| NodeStatus* _this = reinterpret_cast< NodeStatus* >(object); |
| (void)_this; |
| } |
| void NodeStatus::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void NodeStatus::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void NodeStatus::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.NodeStatus) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| ::memset(&memory_footprint_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&node_id_) - |
| reinterpret_cast<char*>(&memory_footprint_)) + sizeof(node_id_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* NodeStatus::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional int32 node_id = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
| _Internal::set_has_node_id(&has_bits); |
| node_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 memory_footprint = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
| _Internal::set_has_memory_footprint(&has_bits); |
| memory_footprint_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* NodeStatus::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.NodeStatus) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional int32 node_id = 1; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_node_id(), target); |
| } |
| |
| // optional int64 memory_footprint = 2; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_memory_footprint(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.NodeStatus) |
| return target; |
| } |
| |
| size_t NodeStatus::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.NodeStatus) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| // optional int64 memory_footprint = 2; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_memory_footprint()); |
| } |
| |
| // optional int32 node_id = 1; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_node_id()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void NodeStatus::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.NodeStatus) |
| GOOGLE_DCHECK_NE(&from, this); |
| const NodeStatus* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<NodeStatus>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.NodeStatus) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.NodeStatus) |
| MergeFrom(*source); |
| } |
| } |
| |
| void NodeStatus::MergeFrom(const NodeStatus& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.NodeStatus) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| if (cached_has_bits & 0x00000001u) { |
| memory_footprint_ = from.memory_footprint_; |
| } |
| if (cached_has_bits & 0x00000002u) { |
| node_id_ = from.node_id_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void NodeStatus::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.NodeStatus) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void NodeStatus::CopyFrom(const NodeStatus& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.NodeStatus) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool NodeStatus::IsInitialized() const { |
| return true; |
| } |
| |
| void NodeStatus::InternalSwap(NodeStatus* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(NodeStatus, node_id_) |
| + sizeof(NodeStatus::node_id_) |
| - PROTOBUF_FIELD_OFFSET(NodeStatus, memory_footprint_)>( |
| reinterpret_cast<char*>(&memory_footprint_), |
| reinterpret_cast<char*>(&other->memory_footprint_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata NodeStatus::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[9]); |
| } |
| |
| // =================================================================== |
| |
| class QueryResult::_Internal { |
| public: |
| using HasBits = decltype(std::declval<QueryResult>()._has_bits_); |
| static void set_has_query_state(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static const ::exec::shared::QueryId& query_id(const QueryResult* msg); |
| static void set_has_query_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| }; |
| |
| const ::exec::shared::QueryId& |
| QueryResult::_Internal::query_id(const QueryResult* msg) { |
| return *msg->query_id_; |
| } |
| QueryResult::QueryResult(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| error_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.QueryResult) |
| } |
| QueryResult::QueryResult(const QueryResult& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| error_(from.error_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| if (from._internal_has_query_id()) { |
| query_id_ = new ::exec::shared::QueryId(*from.query_id_); |
| } else { |
| query_id_ = nullptr; |
| } |
| query_state_ = from.query_state_; |
| // @@protoc_insertion_point(copy_constructor:exec.shared.QueryResult) |
| } |
| |
| void QueryResult::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&query_id_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&query_state_) - |
| reinterpret_cast<char*>(&query_id_)) + sizeof(query_state_)); |
| } |
| |
| QueryResult::~QueryResult() { |
| // @@protoc_insertion_point(destructor:exec.shared.QueryResult) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void QueryResult::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| if (this != internal_default_instance()) delete query_id_; |
| } |
| |
| void QueryResult::ArenaDtor(void* object) { |
| QueryResult* _this = reinterpret_cast< QueryResult* >(object); |
| (void)_this; |
| } |
| void QueryResult::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void QueryResult::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void QueryResult::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.QueryResult) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| error_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000001u) { |
| GOOGLE_DCHECK(query_id_ != nullptr); |
| query_id_->Clear(); |
| } |
| query_state_ = 0; |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* QueryResult::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional .exec.shared.QueryResult.QueryState query_state = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
| ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| if (PROTOBUF_PREDICT_TRUE(::exec::shared::QueryResult_QueryState_IsValid(val))) { |
| _internal_set_query_state(static_cast<::exec::shared::QueryResult_QueryState>(val)); |
| } else { |
| ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); |
| } |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.QueryId query_id = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| ptr = ctx->ParseMessage(_internal_mutable_query_id(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.DrillPBError error = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_error(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* QueryResult::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryResult) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional .exec.shared.QueryResult.QueryState query_state = 1; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
| 1, this->_internal_query_state(), target); |
| } |
| |
| // optional .exec.shared.QueryId query_id = 2; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 2, _Internal::query_id(this), target, stream); |
| } |
| |
| // repeated .exec.shared.DrillPBError error = 3; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_error_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(3, this->_internal_error(i), target, stream); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.QueryResult) |
| return target; |
| } |
| |
| size_t QueryResult::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryResult) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.DrillPBError error = 3; |
| total_size += 1UL * this->_internal_error_size(); |
| for (const auto& msg : this->error_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| // optional .exec.shared.QueryId query_id = 2; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *query_id_); |
| } |
| |
| // optional .exec.shared.QueryResult.QueryState query_state = 1; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_query_state()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void QueryResult::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryResult) |
| GOOGLE_DCHECK_NE(&from, this); |
| const QueryResult* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryResult>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryResult) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryResult) |
| MergeFrom(*source); |
| } |
| } |
| |
| void QueryResult::MergeFrom(const QueryResult& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryResult) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| error_.MergeFrom(from.error_); |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_mutable_query_id()->::exec::shared::QueryId::MergeFrom(from._internal_query_id()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| query_state_ = from.query_state_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void QueryResult::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryResult) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void QueryResult::CopyFrom(const QueryResult& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryResult) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool QueryResult::IsInitialized() const { |
| return true; |
| } |
| |
| void QueryResult::InternalSwap(QueryResult* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| error_.InternalSwap(&other->error_); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(QueryResult, query_state_) |
| + sizeof(QueryResult::query_state_) |
| - PROTOBUF_FIELD_OFFSET(QueryResult, query_id_)>( |
| reinterpret_cast<char*>(&query_id_), |
| reinterpret_cast<char*>(&other->query_id_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata QueryResult::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[10]); |
| } |
| |
| // =================================================================== |
| |
| class QueryData::_Internal { |
| public: |
| using HasBits = decltype(std::declval<QueryData>()._has_bits_); |
| static const ::exec::shared::QueryId& query_id(const QueryData* msg); |
| static void set_has_query_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_row_count(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static const ::exec::shared::RecordBatchDef& def(const QueryData* msg); |
| static void set_has_def(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_affected_rows_count(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| }; |
| |
| const ::exec::shared::QueryId& |
| QueryData::_Internal::query_id(const QueryData* msg) { |
| return *msg->query_id_; |
| } |
| const ::exec::shared::RecordBatchDef& |
| QueryData::_Internal::def(const QueryData* msg) { |
| return *msg->def_; |
| } |
| QueryData::QueryData(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.QueryData) |
| } |
| QueryData::QueryData(const QueryData& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| if (from._internal_has_query_id()) { |
| query_id_ = new ::exec::shared::QueryId(*from.query_id_); |
| } else { |
| query_id_ = nullptr; |
| } |
| if (from._internal_has_def()) { |
| def_ = new ::exec::shared::RecordBatchDef(*from.def_); |
| } else { |
| def_ = nullptr; |
| } |
| ::memcpy(&row_count_, &from.row_count_, |
| static_cast<size_t>(reinterpret_cast<char*>(&affected_rows_count_) - |
| reinterpret_cast<char*>(&row_count_)) + sizeof(affected_rows_count_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.QueryData) |
| } |
| |
| void QueryData::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&query_id_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&affected_rows_count_) - |
| reinterpret_cast<char*>(&query_id_)) + sizeof(affected_rows_count_)); |
| } |
| |
| QueryData::~QueryData() { |
| // @@protoc_insertion_point(destructor:exec.shared.QueryData) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void QueryData::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| if (this != internal_default_instance()) delete query_id_; |
| if (this != internal_default_instance()) delete def_; |
| } |
| |
| void QueryData::ArenaDtor(void* object) { |
| QueryData* _this = reinterpret_cast< QueryData* >(object); |
| (void)_this; |
| } |
| void QueryData::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void QueryData::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void QueryData::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.QueryData) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| if (cached_has_bits & 0x00000001u) { |
| GOOGLE_DCHECK(query_id_ != nullptr); |
| query_id_->Clear(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| GOOGLE_DCHECK(def_ != nullptr); |
| def_->Clear(); |
| } |
| } |
| if (cached_has_bits & 0x0000000cu) { |
| ::memset(&row_count_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&affected_rows_count_) - |
| reinterpret_cast<char*>(&row_count_)) + sizeof(affected_rows_count_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* QueryData::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional .exec.shared.QueryId query_id = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| ptr = ctx->ParseMessage(_internal_mutable_query_id(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 row_count = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
| _Internal::set_has_row_count(&has_bits); |
| row_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.RecordBatchDef def = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
| ptr = ctx->ParseMessage(_internal_mutable_def(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 affected_rows_count = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
| _Internal::set_has_affected_rows_count(&has_bits); |
| affected_rows_count_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* QueryData::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryData) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional .exec.shared.QueryId query_id = 1; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 1, _Internal::query_id(this), target, stream); |
| } |
| |
| // optional int32 row_count = 2; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_row_count(), target); |
| } |
| |
| // optional .exec.shared.RecordBatchDef def = 3; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 3, _Internal::def(this), target, stream); |
| } |
| |
| // optional int32 affected_rows_count = 4; |
| if (cached_has_bits & 0x00000008u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_affected_rows_count(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.QueryData) |
| return target; |
| } |
| |
| size_t QueryData::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryData) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000000fu) { |
| // optional .exec.shared.QueryId query_id = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *query_id_); |
| } |
| |
| // optional .exec.shared.RecordBatchDef def = 3; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *def_); |
| } |
| |
| // optional int32 row_count = 2; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_row_count()); |
| } |
| |
| // optional int32 affected_rows_count = 4; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_affected_rows_count()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void QueryData::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryData) |
| GOOGLE_DCHECK_NE(&from, this); |
| const QueryData* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryData>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryData) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryData) |
| MergeFrom(*source); |
| } |
| } |
| |
| void QueryData::MergeFrom(const QueryData& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryData) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x0000000fu) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_mutable_query_id()->::exec::shared::QueryId::MergeFrom(from._internal_query_id()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_mutable_def()->::exec::shared::RecordBatchDef::MergeFrom(from._internal_def()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| row_count_ = from.row_count_; |
| } |
| if (cached_has_bits & 0x00000008u) { |
| affected_rows_count_ = from.affected_rows_count_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void QueryData::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryData) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void QueryData::CopyFrom(const QueryData& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryData) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool QueryData::IsInitialized() const { |
| return true; |
| } |
| |
| void QueryData::InternalSwap(QueryData* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(QueryData, affected_rows_count_) |
| + sizeof(QueryData::affected_rows_count_) |
| - PROTOBUF_FIELD_OFFSET(QueryData, query_id_)>( |
| reinterpret_cast<char*>(&query_id_), |
| reinterpret_cast<char*>(&other->query_id_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata QueryData::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[11]); |
| } |
| |
| // =================================================================== |
| |
| class QueryInfo::_Internal { |
| public: |
| using HasBits = decltype(std::declval<QueryInfo>()._has_bits_); |
| static void set_has_query(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_start(HasBits* has_bits) { |
| (*has_bits)[0] |= 32u; |
| } |
| static void set_has_state(HasBits* has_bits) { |
| (*has_bits)[0] |= 128u; |
| } |
| static void set_has_user(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static const ::exec::DrillbitEndpoint& foreman(const QueryInfo* msg); |
| static void set_has_foreman(HasBits* has_bits) { |
| (*has_bits)[0] |= 16u; |
| } |
| static void set_has_options_json(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_total_cost(HasBits* has_bits) { |
| (*has_bits)[0] |= 64u; |
| } |
| static void set_has_queue_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| }; |
| |
| const ::exec::DrillbitEndpoint& |
| QueryInfo::_Internal::foreman(const QueryInfo* msg) { |
| return *msg->foreman_; |
| } |
| const ::PROTOBUF_NAMESPACE_ID::internal::LazyString QueryInfo::_i_give_permission_to_break_this_code_default_user_{{{"-", 1}}, {nullptr}}; |
| void QueryInfo::clear_foreman() { |
| if (foreman_ != nullptr) foreman_->Clear(); |
| _has_bits_[0] &= ~0x00000010u; |
| } |
| const ::PROTOBUF_NAMESPACE_ID::internal::LazyString QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_{{{"-", 1}}, {nullptr}}; |
| QueryInfo::QueryInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.QueryInfo) |
| } |
| QueryInfo::QueryInfo(const QueryInfo& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_query()) { |
| query_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_query(), |
| GetArena()); |
| } |
| user_.UnsafeSetDefault(nullptr); |
| if (from._internal_has_user()) { |
| user_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_user(), |
| GetArena()); |
| } |
| options_json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_options_json()) { |
| options_json_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_options_json(), |
| GetArena()); |
| } |
| queue_name_.UnsafeSetDefault(nullptr); |
| if (from._internal_has_queue_name()) { |
| queue_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_queue_name(), |
| GetArena()); |
| } |
| if (from._internal_has_foreman()) { |
| foreman_ = new ::exec::DrillbitEndpoint(*from.foreman_); |
| } else { |
| foreman_ = nullptr; |
| } |
| ::memcpy(&start_, &from.start_, |
| static_cast<size_t>(reinterpret_cast<char*>(&state_) - |
| reinterpret_cast<char*>(&start_)) + sizeof(state_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.QueryInfo) |
| } |
| |
| void QueryInfo::SharedCtor() { |
| query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| user_.UnsafeSetDefault(nullptr); |
| options_json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| queue_name_.UnsafeSetDefault(nullptr); |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&foreman_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&state_) - |
| reinterpret_cast<char*>(&foreman_)) + sizeof(state_)); |
| } |
| |
| QueryInfo::~QueryInfo() { |
| // @@protoc_insertion_point(destructor:exec.shared.QueryInfo) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void QueryInfo::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| user_.DestroyNoArena(nullptr); |
| options_json_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| queue_name_.DestroyNoArena(nullptr); |
| if (this != internal_default_instance()) delete foreman_; |
| } |
| |
| void QueryInfo::ArenaDtor(void* object) { |
| QueryInfo* _this = reinterpret_cast< QueryInfo* >(object); |
| (void)_this; |
| } |
| void QueryInfo::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void QueryInfo::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void QueryInfo::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.QueryInfo) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000001fu) { |
| if (cached_has_bits & 0x00000001u) { |
| query_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| user_.ClearToDefault(::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_user_, GetArena()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| options_json_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000008u) { |
| queue_name_.ClearToDefault(::exec::shared::QueryInfo::_i_give_permission_to_break_this_code_default_queue_name_, GetArena()); |
| } |
| if (cached_has_bits & 0x00000010u) { |
| GOOGLE_DCHECK(foreman_ != nullptr); |
| foreman_->Clear(); |
| } |
| } |
| if (cached_has_bits & 0x000000e0u) { |
| ::memset(&start_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&state_) - |
| reinterpret_cast<char*>(&start_)) + sizeof(state_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* QueryInfo::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional string query = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| auto str = _internal_mutable_query(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryInfo.query"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 start = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
| _Internal::set_has_start(&has_bits); |
| start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.QueryResult.QueryState state = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| if (PROTOBUF_PREDICT_TRUE(::exec::shared::QueryResult_QueryState_IsValid(val))) { |
| _internal_set_state(static_cast<::exec::shared::QueryResult_QueryState>(val)); |
| } else { |
| ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); |
| } |
| } else goto handle_unusual; |
| continue; |
| // optional string user = 4 [default = "-"]; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
| auto str = _internal_mutable_user(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryInfo.user"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.DrillbitEndpoint foreman = 5; |
| case 5: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
| ptr = ctx->ParseMessage(_internal_mutable_foreman(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string options_json = 6; |
| case 6: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
| auto str = _internal_mutable_options_json(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryInfo.options_json"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional double total_cost = 7; |
| case 7: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) { |
| _Internal::set_has_total_cost(&has_bits); |
| total_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
| ptr += sizeof(double); |
| } else goto handle_unusual; |
| continue; |
| // optional string queue_name = 8 [default = "-"]; |
| case 8: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { |
| auto str = _internal_mutable_queue_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryInfo.queue_name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* QueryInfo::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryInfo) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional string query = 1; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_query().data(), static_cast<int>(this->_internal_query().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryInfo.query"); |
| target = stream->WriteStringMaybeAliased( |
| 1, this->_internal_query(), target); |
| } |
| |
| // optional int64 start = 2; |
| if (cached_has_bits & 0x00000020u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_start(), target); |
| } |
| |
| // optional .exec.shared.QueryResult.QueryState state = 3; |
| if (cached_has_bits & 0x00000080u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
| 3, this->_internal_state(), target); |
| } |
| |
| // optional string user = 4 [default = "-"]; |
| if (cached_has_bits & 0x00000002u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_user().data(), static_cast<int>(this->_internal_user().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryInfo.user"); |
| target = stream->WriteStringMaybeAliased( |
| 4, this->_internal_user(), target); |
| } |
| |
| // optional .exec.DrillbitEndpoint foreman = 5; |
| if (cached_has_bits & 0x00000010u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 5, _Internal::foreman(this), target, stream); |
| } |
| |
| // optional string options_json = 6; |
| if (cached_has_bits & 0x00000004u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_options_json().data(), static_cast<int>(this->_internal_options_json().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryInfo.options_json"); |
| target = stream->WriteStringMaybeAliased( |
| 6, this->_internal_options_json(), target); |
| } |
| |
| // optional double total_cost = 7; |
| if (cached_has_bits & 0x00000040u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_total_cost(), target); |
| } |
| |
| // optional string queue_name = 8 [default = "-"]; |
| if (cached_has_bits & 0x00000008u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_queue_name().data(), static_cast<int>(this->_internal_queue_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryInfo.queue_name"); |
| target = stream->WriteStringMaybeAliased( |
| 8, this->_internal_queue_name(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.QueryInfo) |
| return target; |
| } |
| |
| size_t QueryInfo::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryInfo) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x000000ffu) { |
| // optional string query = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_query()); |
| } |
| |
| // optional string user = 4 [default = "-"]; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_user()); |
| } |
| |
| // optional string options_json = 6; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_options_json()); |
| } |
| |
| // optional string queue_name = 8 [default = "-"]; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_queue_name()); |
| } |
| |
| // optional .exec.DrillbitEndpoint foreman = 5; |
| if (cached_has_bits & 0x00000010u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *foreman_); |
| } |
| |
| // optional int64 start = 2; |
| if (cached_has_bits & 0x00000020u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_start()); |
| } |
| |
| // optional double total_cost = 7; |
| if (cached_has_bits & 0x00000040u) { |
| total_size += 1 + 8; |
| } |
| |
| // optional .exec.shared.QueryResult.QueryState state = 3; |
| if (cached_has_bits & 0x00000080u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void QueryInfo::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryInfo) |
| GOOGLE_DCHECK_NE(&from, this); |
| const QueryInfo* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryInfo>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryInfo) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryInfo) |
| MergeFrom(*source); |
| } |
| } |
| |
| void QueryInfo::MergeFrom(const QueryInfo& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryInfo) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x000000ffu) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_set_query(from._internal_query()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_set_user(from._internal_user()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| _internal_set_options_json(from._internal_options_json()); |
| } |
| if (cached_has_bits & 0x00000008u) { |
| _internal_set_queue_name(from._internal_queue_name()); |
| } |
| if (cached_has_bits & 0x00000010u) { |
| _internal_mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from._internal_foreman()); |
| } |
| if (cached_has_bits & 0x00000020u) { |
| start_ = from.start_; |
| } |
| if (cached_has_bits & 0x00000040u) { |
| total_cost_ = from.total_cost_; |
| } |
| if (cached_has_bits & 0x00000080u) { |
| state_ = from.state_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void QueryInfo::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryInfo) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void QueryInfo::CopyFrom(const QueryInfo& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryInfo) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool QueryInfo::IsInitialized() const { |
| return true; |
| } |
| |
| void QueryInfo::InternalSwap(QueryInfo* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| user_.Swap(&other->user_, nullptr, GetArena()); |
| options_json_.Swap(&other->options_json_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| queue_name_.Swap(&other->queue_name_, nullptr, GetArena()); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(QueryInfo, state_) |
| + sizeof(QueryInfo::state_) |
| - PROTOBUF_FIELD_OFFSET(QueryInfo, foreman_)>( |
| reinterpret_cast<char*>(&foreman_), |
| reinterpret_cast<char*>(&other->foreman_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata QueryInfo::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[12]); |
| } |
| |
| // =================================================================== |
| |
| class QueryProfile::_Internal { |
| public: |
| using HasBits = decltype(std::declval<QueryProfile>()._has_bits_); |
| static const ::exec::shared::QueryId& id(const QueryProfile* msg); |
| static void set_has_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 1024u; |
| } |
| static void set_has_type(HasBits* has_bits) { |
| (*has_bits)[0] |= 2097152u; |
| } |
| static void set_has_start(HasBits* has_bits) { |
| (*has_bits)[0] |= 4096u; |
| } |
| static void set_has_end(HasBits* has_bits) { |
| (*has_bits)[0] |= 8192u; |
| } |
| static void set_has_query(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_plan(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static const ::exec::DrillbitEndpoint& foreman(const QueryProfile* msg); |
| static void set_has_foreman(HasBits* has_bits) { |
| (*has_bits)[0] |= 2048u; |
| } |
| static void set_has_state(HasBits* has_bits) { |
| (*has_bits)[0] |= 16384u; |
| } |
| static void set_has_total_fragments(HasBits* has_bits) { |
| (*has_bits)[0] |= 32768u; |
| } |
| static void set_has_finished_fragments(HasBits* has_bits) { |
| (*has_bits)[0] |= 65536u; |
| } |
| static void set_has_user(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_error(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| static void set_has_verboseerror(HasBits* has_bits) { |
| (*has_bits)[0] |= 16u; |
| } |
| static void set_has_error_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 32u; |
| } |
| static void set_has_error_node(HasBits* has_bits) { |
| (*has_bits)[0] |= 64u; |
| } |
| static void set_has_options_json(HasBits* has_bits) { |
| (*has_bits)[0] |= 128u; |
| } |
| static void set_has_planend(HasBits* has_bits) { |
| (*has_bits)[0] |= 262144u; |
| } |
| static void set_has_queuewaitend(HasBits* has_bits) { |
| (*has_bits)[0] |= 524288u; |
| } |
| static void set_has_total_cost(HasBits* has_bits) { |
| (*has_bits)[0] |= 1048576u; |
| } |
| static void set_has_queue_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 256u; |
| } |
| static void set_has_queryid(HasBits* has_bits) { |
| (*has_bits)[0] |= 512u; |
| } |
| static void set_has_autolimit(HasBits* has_bits) { |
| (*has_bits)[0] |= 131072u; |
| } |
| }; |
| |
| const ::exec::shared::QueryId& |
| QueryProfile::_Internal::id(const QueryProfile* msg) { |
| return *msg->id_; |
| } |
| const ::exec::DrillbitEndpoint& |
| QueryProfile::_Internal::foreman(const QueryProfile* msg) { |
| return *msg->foreman_; |
| } |
| void QueryProfile::clear_foreman() { |
| if (foreman_ != nullptr) foreman_->Clear(); |
| _has_bits_[0] &= ~0x00000800u; |
| } |
| const ::PROTOBUF_NAMESPACE_ID::internal::LazyString QueryProfile::_i_give_permission_to_break_this_code_default_user_{{{"-", 1}}, {nullptr}}; |
| const ::PROTOBUF_NAMESPACE_ID::internal::LazyString QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_{{{"-", 1}}, {nullptr}}; |
| QueryProfile::QueryProfile(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| fragment_profile_(arena), |
| scanned_plugins_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.QueryProfile) |
| } |
| QueryProfile::QueryProfile(const QueryProfile& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| fragment_profile_(from.fragment_profile_), |
| scanned_plugins_(from.scanned_plugins_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_query()) { |
| query_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_query(), |
| GetArena()); |
| } |
| plan_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_plan()) { |
| plan_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_plan(), |
| GetArena()); |
| } |
| user_.UnsafeSetDefault(nullptr); |
| if (from._internal_has_user()) { |
| user_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_user(), |
| GetArena()); |
| } |
| error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_error()) { |
| error_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error(), |
| GetArena()); |
| } |
| verboseerror_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_verboseerror()) { |
| verboseerror_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_verboseerror(), |
| GetArena()); |
| } |
| error_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_error_id()) { |
| error_id_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_id(), |
| GetArena()); |
| } |
| error_node_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_error_node()) { |
| error_node_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_error_node(), |
| GetArena()); |
| } |
| options_json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_options_json()) { |
| options_json_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_options_json(), |
| GetArena()); |
| } |
| queue_name_.UnsafeSetDefault(nullptr); |
| if (from._internal_has_queue_name()) { |
| queue_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::NonEmptyDefault{}, from._internal_queue_name(), |
| GetArena()); |
| } |
| queryid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_queryid()) { |
| queryid_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_queryid(), |
| GetArena()); |
| } |
| if (from._internal_has_id()) { |
| id_ = new ::exec::shared::QueryId(*from.id_); |
| } else { |
| id_ = nullptr; |
| } |
| if (from._internal_has_foreman()) { |
| foreman_ = new ::exec::DrillbitEndpoint(*from.foreman_); |
| } else { |
| foreman_ = nullptr; |
| } |
| ::memcpy(&start_, &from.start_, |
| static_cast<size_t>(reinterpret_cast<char*>(&type_) - |
| reinterpret_cast<char*>(&start_)) + sizeof(type_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.QueryProfile) |
| } |
| |
| void QueryProfile::SharedCtor() { |
| query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| plan_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| user_.UnsafeSetDefault(nullptr); |
| error_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| verboseerror_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| error_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| error_node_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| options_json_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| queue_name_.UnsafeSetDefault(nullptr); |
| queryid_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&id_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&total_cost_) - |
| reinterpret_cast<char*>(&id_)) + sizeof(total_cost_)); |
| type_ = 1; |
| } |
| |
| QueryProfile::~QueryProfile() { |
| // @@protoc_insertion_point(destructor:exec.shared.QueryProfile) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void QueryProfile::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| plan_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| user_.DestroyNoArena(nullptr); |
| error_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| verboseerror_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| error_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| error_node_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| options_json_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| queue_name_.DestroyNoArena(nullptr); |
| queryid_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (this != internal_default_instance()) delete id_; |
| if (this != internal_default_instance()) delete foreman_; |
| } |
| |
| void QueryProfile::ArenaDtor(void* object) { |
| QueryProfile* _this = reinterpret_cast< QueryProfile* >(object); |
| (void)_this; |
| } |
| void QueryProfile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void QueryProfile::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void QueryProfile::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.QueryProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| fragment_profile_.Clear(); |
| scanned_plugins_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x000000ffu) { |
| if (cached_has_bits & 0x00000001u) { |
| query_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| plan_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| user_.ClearToDefault(::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_user_, GetArena()); |
| } |
| if (cached_has_bits & 0x00000008u) { |
| error_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000010u) { |
| verboseerror_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000020u) { |
| error_id_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000040u) { |
| error_node_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000080u) { |
| options_json_.ClearNonDefaultToEmpty(); |
| } |
| } |
| if (cached_has_bits & 0x00000f00u) { |
| if (cached_has_bits & 0x00000100u) { |
| queue_name_.ClearToDefault(::exec::shared::QueryProfile::_i_give_permission_to_break_this_code_default_queue_name_, GetArena()); |
| } |
| if (cached_has_bits & 0x00000200u) { |
| queryid_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000400u) { |
| GOOGLE_DCHECK(id_ != nullptr); |
| id_->Clear(); |
| } |
| if (cached_has_bits & 0x00000800u) { |
| GOOGLE_DCHECK(foreman_ != nullptr); |
| foreman_->Clear(); |
| } |
| } |
| if (cached_has_bits & 0x0000f000u) { |
| ::memset(&start_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&total_fragments_) - |
| reinterpret_cast<char*>(&start_)) + sizeof(total_fragments_)); |
| } |
| if (cached_has_bits & 0x003f0000u) { |
| ::memset(&finished_fragments_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&total_cost_) - |
| reinterpret_cast<char*>(&finished_fragments_)) + sizeof(total_cost_)); |
| type_ = 1; |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* QueryProfile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional .exec.shared.QueryId id = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| ptr = ctx->ParseMessage(_internal_mutable_id(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.QueryType type = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
| ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| if (PROTOBUF_PREDICT_TRUE(::exec::shared::QueryType_IsValid(val))) { |
| _internal_set_type(static_cast<::exec::shared::QueryType>(val)); |
| } else { |
| ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(2, val, mutable_unknown_fields()); |
| } |
| } else goto handle_unusual; |
| continue; |
| // optional int64 start = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| _Internal::set_has_start(&has_bits); |
| start_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 end = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
| _Internal::set_has_end(&has_bits); |
| end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string query = 5; |
| case 5: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
| auto str = _internal_mutable_query(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.query"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string plan = 6; |
| case 6: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) { |
| auto str = _internal_mutable_plan(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.plan"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.DrillbitEndpoint foreman = 7; |
| case 7: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) { |
| ptr = ctx->ParseMessage(_internal_mutable_foreman(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.QueryResult.QueryState state = 8; |
| case 8: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { |
| ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| if (PROTOBUF_PREDICT_TRUE(::exec::shared::QueryResult_QueryState_IsValid(val))) { |
| _internal_set_state(static_cast<::exec::shared::QueryResult_QueryState>(val)); |
| } else { |
| ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(8, val, mutable_unknown_fields()); |
| } |
| } else goto handle_unusual; |
| continue; |
| // optional int32 total_fragments = 9; |
| case 9: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { |
| _Internal::set_has_total_fragments(&has_bits); |
| total_fragments_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 finished_fragments = 10; |
| case 10: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { |
| _Internal::set_has_finished_fragments(&has_bits); |
| finished_fragments_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11; |
| case 11: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_fragment_profile(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| // optional string user = 12 [default = "-"]; |
| case 12: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) { |
| auto str = _internal_mutable_user(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.user"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string error = 13; |
| case 13: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 106)) { |
| auto str = _internal_mutable_error(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.error"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string verboseError = 14; |
| case 14: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 114)) { |
| auto str = _internal_mutable_verboseerror(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.verboseError"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string error_id = 15; |
| case 15: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 122)) { |
| auto str = _internal_mutable_error_id(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.error_id"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string error_node = 16; |
| case 16: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 130)) { |
| auto str = _internal_mutable_error_node(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.error_node"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string options_json = 17; |
| case 17: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 138)) { |
| auto str = _internal_mutable_options_json(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.options_json"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 planEnd = 18; |
| case 18: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 144)) { |
| _Internal::set_has_planend(&has_bits); |
| planend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 queueWaitEnd = 19; |
| case 19: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 152)) { |
| _Internal::set_has_queuewaitend(&has_bits); |
| queuewaitend_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional double total_cost = 20; |
| case 20: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 161)) { |
| _Internal::set_has_total_cost(&has_bits); |
| total_cost_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
| ptr += sizeof(double); |
| } else goto handle_unusual; |
| continue; |
| // optional string queue_name = 21 [default = "-"]; |
| case 21: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 170)) { |
| auto str = _internal_mutable_queue_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.queue_name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string queryId = 22; |
| case 22: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 178)) { |
| auto str = _internal_mutable_queryid(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.queryId"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 autoLimit = 23; |
| case 23: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) { |
| _Internal::set_has_autolimit(&has_bits); |
| autolimit_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated string scanned_plugins = 24; |
| case 24: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) { |
| ptr -= 2; |
| do { |
| ptr += 2; |
| auto str = _internal_add_scanned_plugins(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.QueryProfile.scanned_plugins"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<194>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* QueryProfile::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.QueryProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional .exec.shared.QueryId id = 1; |
| if (cached_has_bits & 0x00000400u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 1, _Internal::id(this), target, stream); |
| } |
| |
| // optional .exec.shared.QueryType type = 2; |
| if (cached_has_bits & 0x00200000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
| 2, this->_internal_type(), target); |
| } |
| |
| // optional int64 start = 3; |
| if (cached_has_bits & 0x00001000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_start(), target); |
| } |
| |
| // optional int64 end = 4; |
| if (cached_has_bits & 0x00002000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->_internal_end(), target); |
| } |
| |
| // optional string query = 5; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_query().data(), static_cast<int>(this->_internal_query().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.query"); |
| target = stream->WriteStringMaybeAliased( |
| 5, this->_internal_query(), target); |
| } |
| |
| // optional string plan = 6; |
| if (cached_has_bits & 0x00000002u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_plan().data(), static_cast<int>(this->_internal_plan().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.plan"); |
| target = stream->WriteStringMaybeAliased( |
| 6, this->_internal_plan(), target); |
| } |
| |
| // optional .exec.DrillbitEndpoint foreman = 7; |
| if (cached_has_bits & 0x00000800u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 7, _Internal::foreman(this), target, stream); |
| } |
| |
| // optional .exec.shared.QueryResult.QueryState state = 8; |
| if (cached_has_bits & 0x00004000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
| 8, this->_internal_state(), target); |
| } |
| |
| // optional int32 total_fragments = 9; |
| if (cached_has_bits & 0x00008000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(9, this->_internal_total_fragments(), target); |
| } |
| |
| // optional int32 finished_fragments = 10; |
| if (cached_has_bits & 0x00010000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(10, this->_internal_finished_fragments(), target); |
| } |
| |
| // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_fragment_profile_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(11, this->_internal_fragment_profile(i), target, stream); |
| } |
| |
| // optional string user = 12 [default = "-"]; |
| if (cached_has_bits & 0x00000004u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_user().data(), static_cast<int>(this->_internal_user().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.user"); |
| target = stream->WriteStringMaybeAliased( |
| 12, this->_internal_user(), target); |
| } |
| |
| // optional string error = 13; |
| if (cached_has_bits & 0x00000008u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_error().data(), static_cast<int>(this->_internal_error().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.error"); |
| target = stream->WriteStringMaybeAliased( |
| 13, this->_internal_error(), target); |
| } |
| |
| // optional string verboseError = 14; |
| if (cached_has_bits & 0x00000010u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_verboseerror().data(), static_cast<int>(this->_internal_verboseerror().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.verboseError"); |
| target = stream->WriteStringMaybeAliased( |
| 14, this->_internal_verboseerror(), target); |
| } |
| |
| // optional string error_id = 15; |
| if (cached_has_bits & 0x00000020u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_error_id().data(), static_cast<int>(this->_internal_error_id().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.error_id"); |
| target = stream->WriteStringMaybeAliased( |
| 15, this->_internal_error_id(), target); |
| } |
| |
| // optional string error_node = 16; |
| if (cached_has_bits & 0x00000040u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_error_node().data(), static_cast<int>(this->_internal_error_node().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.error_node"); |
| target = stream->WriteStringMaybeAliased( |
| 16, this->_internal_error_node(), target); |
| } |
| |
| // optional string options_json = 17; |
| if (cached_has_bits & 0x00000080u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_options_json().data(), static_cast<int>(this->_internal_options_json().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.options_json"); |
| target = stream->WriteStringMaybeAliased( |
| 17, this->_internal_options_json(), target); |
| } |
| |
| // optional int64 planEnd = 18; |
| if (cached_has_bits & 0x00040000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(18, this->_internal_planend(), target); |
| } |
| |
| // optional int64 queueWaitEnd = 19; |
| if (cached_has_bits & 0x00080000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(19, this->_internal_queuewaitend(), target); |
| } |
| |
| // optional double total_cost = 20; |
| if (cached_has_bits & 0x00100000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(20, this->_internal_total_cost(), target); |
| } |
| |
| // optional string queue_name = 21 [default = "-"]; |
| if (cached_has_bits & 0x00000100u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_queue_name().data(), static_cast<int>(this->_internal_queue_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.queue_name"); |
| target = stream->WriteStringMaybeAliased( |
| 21, this->_internal_queue_name(), target); |
| } |
| |
| // optional string queryId = 22; |
| if (cached_has_bits & 0x00000200u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_queryid().data(), static_cast<int>(this->_internal_queryid().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.queryId"); |
| target = stream->WriteStringMaybeAliased( |
| 22, this->_internal_queryid(), target); |
| } |
| |
| // optional int32 autoLimit = 23; |
| if (cached_has_bits & 0x00020000u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(23, this->_internal_autolimit(), target); |
| } |
| |
| // repeated string scanned_plugins = 24; |
| for (int i = 0, n = this->_internal_scanned_plugins_size(); i < n; i++) { |
| const auto& s = this->_internal_scanned_plugins(i); |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| s.data(), static_cast<int>(s.length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.QueryProfile.scanned_plugins"); |
| target = stream->WriteString(24, s, target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.QueryProfile) |
| return target; |
| } |
| |
| size_t QueryProfile::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.QueryProfile) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.MajorFragmentProfile fragment_profile = 11; |
| total_size += 1UL * this->_internal_fragment_profile_size(); |
| for (const auto& msg : this->fragment_profile_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| // repeated string scanned_plugins = 24; |
| total_size += 2 * |
| ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(scanned_plugins_.size()); |
| for (int i = 0, n = scanned_plugins_.size(); i < n; i++) { |
| total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| scanned_plugins_.Get(i)); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x000000ffu) { |
| // optional string query = 5; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_query()); |
| } |
| |
| // optional string plan = 6; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_plan()); |
| } |
| |
| // optional string user = 12 [default = "-"]; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_user()); |
| } |
| |
| // optional string error = 13; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_error()); |
| } |
| |
| // optional string verboseError = 14; |
| if (cached_has_bits & 0x00000010u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_verboseerror()); |
| } |
| |
| // optional string error_id = 15; |
| if (cached_has_bits & 0x00000020u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_error_id()); |
| } |
| |
| // optional string error_node = 16; |
| if (cached_has_bits & 0x00000040u) { |
| total_size += 2 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_error_node()); |
| } |
| |
| // optional string options_json = 17; |
| if (cached_has_bits & 0x00000080u) { |
| total_size += 2 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_options_json()); |
| } |
| |
| } |
| if (cached_has_bits & 0x0000ff00u) { |
| // optional string queue_name = 21 [default = "-"]; |
| if (cached_has_bits & 0x00000100u) { |
| total_size += 2 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_queue_name()); |
| } |
| |
| // optional string queryId = 22; |
| if (cached_has_bits & 0x00000200u) { |
| total_size += 2 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_queryid()); |
| } |
| |
| // optional .exec.shared.QueryId id = 1; |
| if (cached_has_bits & 0x00000400u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *id_); |
| } |
| |
| // optional .exec.DrillbitEndpoint foreman = 7; |
| if (cached_has_bits & 0x00000800u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *foreman_); |
| } |
| |
| // optional int64 start = 3; |
| if (cached_has_bits & 0x00001000u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_start()); |
| } |
| |
| // optional int64 end = 4; |
| if (cached_has_bits & 0x00002000u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_end()); |
| } |
| |
| // optional .exec.shared.QueryResult.QueryState state = 8; |
| if (cached_has_bits & 0x00004000u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state()); |
| } |
| |
| // optional int32 total_fragments = 9; |
| if (cached_has_bits & 0x00008000u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_total_fragments()); |
| } |
| |
| } |
| if (cached_has_bits & 0x003f0000u) { |
| // optional int32 finished_fragments = 10; |
| if (cached_has_bits & 0x00010000u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_finished_fragments()); |
| } |
| |
| // optional int32 autoLimit = 23; |
| if (cached_has_bits & 0x00020000u) { |
| total_size += 2 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_autolimit()); |
| } |
| |
| // optional int64 planEnd = 18; |
| if (cached_has_bits & 0x00040000u) { |
| total_size += 2 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_planend()); |
| } |
| |
| // optional int64 queueWaitEnd = 19; |
| if (cached_has_bits & 0x00080000u) { |
| total_size += 2 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_queuewaitend()); |
| } |
| |
| // optional double total_cost = 20; |
| if (cached_has_bits & 0x00100000u) { |
| total_size += 2 + 8; |
| } |
| |
| // optional .exec.shared.QueryType type = 2; |
| if (cached_has_bits & 0x00200000u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_type()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void QueryProfile::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.QueryProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| const QueryProfile* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryProfile>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.QueryProfile) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.QueryProfile) |
| MergeFrom(*source); |
| } |
| } |
| |
| void QueryProfile::MergeFrom(const QueryProfile& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.QueryProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| fragment_profile_.MergeFrom(from.fragment_profile_); |
| scanned_plugins_.MergeFrom(from.scanned_plugins_); |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x000000ffu) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_set_query(from._internal_query()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_set_plan(from._internal_plan()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| _internal_set_user(from._internal_user()); |
| } |
| if (cached_has_bits & 0x00000008u) { |
| _internal_set_error(from._internal_error()); |
| } |
| if (cached_has_bits & 0x00000010u) { |
| _internal_set_verboseerror(from._internal_verboseerror()); |
| } |
| if (cached_has_bits & 0x00000020u) { |
| _internal_set_error_id(from._internal_error_id()); |
| } |
| if (cached_has_bits & 0x00000040u) { |
| _internal_set_error_node(from._internal_error_node()); |
| } |
| if (cached_has_bits & 0x00000080u) { |
| _internal_set_options_json(from._internal_options_json()); |
| } |
| } |
| if (cached_has_bits & 0x0000ff00u) { |
| if (cached_has_bits & 0x00000100u) { |
| _internal_set_queue_name(from._internal_queue_name()); |
| } |
| if (cached_has_bits & 0x00000200u) { |
| _internal_set_queryid(from._internal_queryid()); |
| } |
| if (cached_has_bits & 0x00000400u) { |
| _internal_mutable_id()->::exec::shared::QueryId::MergeFrom(from._internal_id()); |
| } |
| if (cached_has_bits & 0x00000800u) { |
| _internal_mutable_foreman()->::exec::DrillbitEndpoint::MergeFrom(from._internal_foreman()); |
| } |
| if (cached_has_bits & 0x00001000u) { |
| start_ = from.start_; |
| } |
| if (cached_has_bits & 0x00002000u) { |
| end_ = from.end_; |
| } |
| if (cached_has_bits & 0x00004000u) { |
| state_ = from.state_; |
| } |
| if (cached_has_bits & 0x00008000u) { |
| total_fragments_ = from.total_fragments_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| if (cached_has_bits & 0x003f0000u) { |
| if (cached_has_bits & 0x00010000u) { |
| finished_fragments_ = from.finished_fragments_; |
| } |
| if (cached_has_bits & 0x00020000u) { |
| autolimit_ = from.autolimit_; |
| } |
| if (cached_has_bits & 0x00040000u) { |
| planend_ = from.planend_; |
| } |
| if (cached_has_bits & 0x00080000u) { |
| queuewaitend_ = from.queuewaitend_; |
| } |
| if (cached_has_bits & 0x00100000u) { |
| total_cost_ = from.total_cost_; |
| } |
| if (cached_has_bits & 0x00200000u) { |
| type_ = from.type_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void QueryProfile::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.QueryProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void QueryProfile::CopyFrom(const QueryProfile& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.QueryProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool QueryProfile::IsInitialized() const { |
| return true; |
| } |
| |
| void QueryProfile::InternalSwap(QueryProfile* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| fragment_profile_.InternalSwap(&other->fragment_profile_); |
| scanned_plugins_.InternalSwap(&other->scanned_plugins_); |
| query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| plan_.Swap(&other->plan_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| user_.Swap(&other->user_, nullptr, GetArena()); |
| error_.Swap(&other->error_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| verboseerror_.Swap(&other->verboseerror_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| error_id_.Swap(&other->error_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| error_node_.Swap(&other->error_node_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| options_json_.Swap(&other->options_json_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| queue_name_.Swap(&other->queue_name_, nullptr, GetArena()); |
| queryid_.Swap(&other->queryid_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(QueryProfile, total_cost_) |
| + sizeof(QueryProfile::total_cost_) |
| - PROTOBUF_FIELD_OFFSET(QueryProfile, id_)>( |
| reinterpret_cast<char*>(&id_), |
| reinterpret_cast<char*>(&other->id_)); |
| swap(type_, other->type_); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata QueryProfile::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[13]); |
| } |
| |
| // =================================================================== |
| |
| class MajorFragmentProfile::_Internal { |
| public: |
| using HasBits = decltype(std::declval<MajorFragmentProfile>()._has_bits_); |
| static void set_has_major_fragment_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| }; |
| |
| MajorFragmentProfile::MajorFragmentProfile(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| minor_fragment_profile_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.MajorFragmentProfile) |
| } |
| MajorFragmentProfile::MajorFragmentProfile(const MajorFragmentProfile& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| minor_fragment_profile_(from.minor_fragment_profile_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| major_fragment_id_ = from.major_fragment_id_; |
| // @@protoc_insertion_point(copy_constructor:exec.shared.MajorFragmentProfile) |
| } |
| |
| void MajorFragmentProfile::SharedCtor() { |
| major_fragment_id_ = 0; |
| } |
| |
| MajorFragmentProfile::~MajorFragmentProfile() { |
| // @@protoc_insertion_point(destructor:exec.shared.MajorFragmentProfile) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void MajorFragmentProfile::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| } |
| |
| void MajorFragmentProfile::ArenaDtor(void* object) { |
| MajorFragmentProfile* _this = reinterpret_cast< MajorFragmentProfile* >(object); |
| (void)_this; |
| } |
| void MajorFragmentProfile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void MajorFragmentProfile::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void MajorFragmentProfile::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.MajorFragmentProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| minor_fragment_profile_.Clear(); |
| major_fragment_id_ = 0; |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* MajorFragmentProfile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional int32 major_fragment_id = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
| _Internal::set_has_major_fragment_id(&has_bits); |
| major_fragment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_minor_fragment_profile(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* MajorFragmentProfile::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.MajorFragmentProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional int32 major_fragment_id = 1; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_major_fragment_id(), target); |
| } |
| |
| // repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_minor_fragment_profile_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(2, this->_internal_minor_fragment_profile(i), target, stream); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.MajorFragmentProfile) |
| return target; |
| } |
| |
| size_t MajorFragmentProfile::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.MajorFragmentProfile) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.MinorFragmentProfile minor_fragment_profile = 2; |
| total_size += 1UL * this->_internal_minor_fragment_profile_size(); |
| for (const auto& msg : this->minor_fragment_profile_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| // optional int32 major_fragment_id = 1; |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_major_fragment_id()); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void MajorFragmentProfile::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.MajorFragmentProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| const MajorFragmentProfile* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MajorFragmentProfile>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.MajorFragmentProfile) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.MajorFragmentProfile) |
| MergeFrom(*source); |
| } |
| } |
| |
| void MajorFragmentProfile::MergeFrom(const MajorFragmentProfile& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.MajorFragmentProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| minor_fragment_profile_.MergeFrom(from.minor_fragment_profile_); |
| if (from._internal_has_major_fragment_id()) { |
| _internal_set_major_fragment_id(from._internal_major_fragment_id()); |
| } |
| } |
| |
| void MajorFragmentProfile::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.MajorFragmentProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void MajorFragmentProfile::CopyFrom(const MajorFragmentProfile& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.MajorFragmentProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool MajorFragmentProfile::IsInitialized() const { |
| return true; |
| } |
| |
| void MajorFragmentProfile::InternalSwap(MajorFragmentProfile* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| minor_fragment_profile_.InternalSwap(&other->minor_fragment_profile_); |
| swap(major_fragment_id_, other->major_fragment_id_); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata MajorFragmentProfile::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[14]); |
| } |
| |
| // =================================================================== |
| |
| class MinorFragmentProfile::_Internal { |
| public: |
| using HasBits = decltype(std::declval<MinorFragmentProfile>()._has_bits_); |
| static void set_has_state(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static const ::exec::shared::DrillPBError& error(const MinorFragmentProfile* msg); |
| static void set_has_error(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_minor_fragment_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| static void set_has_start_time(HasBits* has_bits) { |
| (*has_bits)[0] |= 16u; |
| } |
| static void set_has_end_time(HasBits* has_bits) { |
| (*has_bits)[0] |= 32u; |
| } |
| static void set_has_memory_used(HasBits* has_bits) { |
| (*has_bits)[0] |= 64u; |
| } |
| static void set_has_max_memory_used(HasBits* has_bits) { |
| (*has_bits)[0] |= 128u; |
| } |
| static const ::exec::DrillbitEndpoint& endpoint(const MinorFragmentProfile* msg); |
| static void set_has_endpoint(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_last_update(HasBits* has_bits) { |
| (*has_bits)[0] |= 256u; |
| } |
| static void set_has_last_progress(HasBits* has_bits) { |
| (*has_bits)[0] |= 512u; |
| } |
| }; |
| |
| const ::exec::shared::DrillPBError& |
| MinorFragmentProfile::_Internal::error(const MinorFragmentProfile* msg) { |
| return *msg->error_; |
| } |
| const ::exec::DrillbitEndpoint& |
| MinorFragmentProfile::_Internal::endpoint(const MinorFragmentProfile* msg) { |
| return *msg->endpoint_; |
| } |
| void MinorFragmentProfile::clear_endpoint() { |
| if (endpoint_ != nullptr) endpoint_->Clear(); |
| _has_bits_[0] &= ~0x00000002u; |
| } |
| MinorFragmentProfile::MinorFragmentProfile(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| operator_profile_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.MinorFragmentProfile) |
| } |
| MinorFragmentProfile::MinorFragmentProfile(const MinorFragmentProfile& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| operator_profile_(from.operator_profile_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| if (from._internal_has_error()) { |
| error_ = new ::exec::shared::DrillPBError(*from.error_); |
| } else { |
| error_ = nullptr; |
| } |
| if (from._internal_has_endpoint()) { |
| endpoint_ = new ::exec::DrillbitEndpoint(*from.endpoint_); |
| } else { |
| endpoint_ = nullptr; |
| } |
| ::memcpy(&state_, &from.state_, |
| static_cast<size_t>(reinterpret_cast<char*>(&last_progress_) - |
| reinterpret_cast<char*>(&state_)) + sizeof(last_progress_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.MinorFragmentProfile) |
| } |
| |
| void MinorFragmentProfile::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&error_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&last_progress_) - |
| reinterpret_cast<char*>(&error_)) + sizeof(last_progress_)); |
| } |
| |
| MinorFragmentProfile::~MinorFragmentProfile() { |
| // @@protoc_insertion_point(destructor:exec.shared.MinorFragmentProfile) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void MinorFragmentProfile::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| if (this != internal_default_instance()) delete error_; |
| if (this != internal_default_instance()) delete endpoint_; |
| } |
| |
| void MinorFragmentProfile::ArenaDtor(void* object) { |
| MinorFragmentProfile* _this = reinterpret_cast< MinorFragmentProfile* >(object); |
| (void)_this; |
| } |
| void MinorFragmentProfile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void MinorFragmentProfile::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void MinorFragmentProfile::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.MinorFragmentProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| operator_profile_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| if (cached_has_bits & 0x00000001u) { |
| GOOGLE_DCHECK(error_ != nullptr); |
| error_->Clear(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| GOOGLE_DCHECK(endpoint_ != nullptr); |
| endpoint_->Clear(); |
| } |
| } |
| if (cached_has_bits & 0x000000fcu) { |
| ::memset(&state_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&max_memory_used_) - |
| reinterpret_cast<char*>(&state_)) + sizeof(max_memory_used_)); |
| } |
| if (cached_has_bits & 0x00000300u) { |
| ::memset(&last_update_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&last_progress_) - |
| reinterpret_cast<char*>(&last_update_)) + sizeof(last_progress_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* MinorFragmentProfile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional .exec.shared.FragmentState state = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
| ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| if (PROTOBUF_PREDICT_TRUE(::exec::shared::FragmentState_IsValid(val))) { |
| _internal_set_state(static_cast<::exec::shared::FragmentState>(val)); |
| } else { |
| ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(1, val, mutable_unknown_fields()); |
| } |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.DrillPBError error = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| ptr = ctx->ParseMessage(_internal_mutable_error(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 minor_fragment_id = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| _Internal::set_has_minor_fragment_id(&has_bits); |
| minor_fragment_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.OperatorProfile operator_profile = 4; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_operator_profile(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 start_time = 5; |
| case 5: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
| _Internal::set_has_start_time(&has_bits); |
| start_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 end_time = 6; |
| case 6: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { |
| _Internal::set_has_end_time(&has_bits); |
| end_time_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 memory_used = 7; |
| case 7: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
| _Internal::set_has_memory_used(&has_bits); |
| memory_used_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 max_memory_used = 8; |
| case 8: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { |
| _Internal::set_has_max_memory_used(&has_bits); |
| max_memory_used_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.DrillbitEndpoint endpoint = 9; |
| case 9: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) { |
| ptr = ctx->ParseMessage(_internal_mutable_endpoint(), ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 last_update = 10; |
| case 10: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 80)) { |
| _Internal::set_has_last_update(&has_bits); |
| last_update_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 last_progress = 11; |
| case 11: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 88)) { |
| _Internal::set_has_last_progress(&has_bits); |
| last_progress_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* MinorFragmentProfile::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.MinorFragmentProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional .exec.shared.FragmentState state = 1; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
| 1, this->_internal_state(), target); |
| } |
| |
| // optional .exec.shared.DrillPBError error = 2; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 2, _Internal::error(this), target, stream); |
| } |
| |
| // optional int32 minor_fragment_id = 3; |
| if (cached_has_bits & 0x00000008u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_minor_fragment_id(), target); |
| } |
| |
| // repeated .exec.shared.OperatorProfile operator_profile = 4; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_operator_profile_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(4, this->_internal_operator_profile(i), target, stream); |
| } |
| |
| // optional int64 start_time = 5; |
| if (cached_has_bits & 0x00000010u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_start_time(), target); |
| } |
| |
| // optional int64 end_time = 6; |
| if (cached_has_bits & 0x00000020u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_end_time(), target); |
| } |
| |
| // optional int64 memory_used = 7; |
| if (cached_has_bits & 0x00000040u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_memory_used(), target); |
| } |
| |
| // optional int64 max_memory_used = 8; |
| if (cached_has_bits & 0x00000080u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(8, this->_internal_max_memory_used(), target); |
| } |
| |
| // optional .exec.DrillbitEndpoint endpoint = 9; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage( |
| 9, _Internal::endpoint(this), target, stream); |
| } |
| |
| // optional int64 last_update = 10; |
| if (cached_has_bits & 0x00000100u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(10, this->_internal_last_update(), target); |
| } |
| |
| // optional int64 last_progress = 11; |
| if (cached_has_bits & 0x00000200u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(11, this->_internal_last_progress(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.MinorFragmentProfile) |
| return target; |
| } |
| |
| size_t MinorFragmentProfile::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.MinorFragmentProfile) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.OperatorProfile operator_profile = 4; |
| total_size += 1UL * this->_internal_operator_profile_size(); |
| for (const auto& msg : this->operator_profile_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x000000ffu) { |
| // optional .exec.shared.DrillPBError error = 2; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *error_); |
| } |
| |
| // optional .exec.DrillbitEndpoint endpoint = 9; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
| *endpoint_); |
| } |
| |
| // optional .exec.shared.FragmentState state = 1; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_state()); |
| } |
| |
| // optional int32 minor_fragment_id = 3; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_minor_fragment_id()); |
| } |
| |
| // optional int64 start_time = 5; |
| if (cached_has_bits & 0x00000010u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_start_time()); |
| } |
| |
| // optional int64 end_time = 6; |
| if (cached_has_bits & 0x00000020u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_end_time()); |
| } |
| |
| // optional int64 memory_used = 7; |
| if (cached_has_bits & 0x00000040u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_memory_used()); |
| } |
| |
| // optional int64 max_memory_used = 8; |
| if (cached_has_bits & 0x00000080u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_max_memory_used()); |
| } |
| |
| } |
| if (cached_has_bits & 0x00000300u) { |
| // optional int64 last_update = 10; |
| if (cached_has_bits & 0x00000100u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_last_update()); |
| } |
| |
| // optional int64 last_progress = 11; |
| if (cached_has_bits & 0x00000200u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_last_progress()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void MinorFragmentProfile::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.MinorFragmentProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| const MinorFragmentProfile* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MinorFragmentProfile>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.MinorFragmentProfile) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.MinorFragmentProfile) |
| MergeFrom(*source); |
| } |
| } |
| |
| void MinorFragmentProfile::MergeFrom(const MinorFragmentProfile& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.MinorFragmentProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| operator_profile_.MergeFrom(from.operator_profile_); |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x000000ffu) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_mutable_error()->::exec::shared::DrillPBError::MergeFrom(from._internal_error()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_mutable_endpoint()->::exec::DrillbitEndpoint::MergeFrom(from._internal_endpoint()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| state_ = from.state_; |
| } |
| if (cached_has_bits & 0x00000008u) { |
| minor_fragment_id_ = from.minor_fragment_id_; |
| } |
| if (cached_has_bits & 0x00000010u) { |
| start_time_ = from.start_time_; |
| } |
| if (cached_has_bits & 0x00000020u) { |
| end_time_ = from.end_time_; |
| } |
| if (cached_has_bits & 0x00000040u) { |
| memory_used_ = from.memory_used_; |
| } |
| if (cached_has_bits & 0x00000080u) { |
| max_memory_used_ = from.max_memory_used_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| if (cached_has_bits & 0x00000300u) { |
| if (cached_has_bits & 0x00000100u) { |
| last_update_ = from.last_update_; |
| } |
| if (cached_has_bits & 0x00000200u) { |
| last_progress_ = from.last_progress_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void MinorFragmentProfile::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.MinorFragmentProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void MinorFragmentProfile::CopyFrom(const MinorFragmentProfile& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.MinorFragmentProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool MinorFragmentProfile::IsInitialized() const { |
| return true; |
| } |
| |
| void MinorFragmentProfile::InternalSwap(MinorFragmentProfile* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| operator_profile_.InternalSwap(&other->operator_profile_); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(MinorFragmentProfile, last_progress_) |
| + sizeof(MinorFragmentProfile::last_progress_) |
| - PROTOBUF_FIELD_OFFSET(MinorFragmentProfile, error_)>( |
| reinterpret_cast<char*>(&error_), |
| reinterpret_cast<char*>(&other->error_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata MinorFragmentProfile::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[15]); |
| } |
| |
| // =================================================================== |
| |
| class OperatorProfile::_Internal { |
| public: |
| using HasBits = decltype(std::declval<OperatorProfile>()._has_bits_); |
| static void set_has_operator_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_operator_type(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_setup_nanos(HasBits* has_bits) { |
| (*has_bits)[0] |= 8u; |
| } |
| static void set_has_process_nanos(HasBits* has_bits) { |
| (*has_bits)[0] |= 16u; |
| } |
| static void set_has_peak_local_memory_allocated(HasBits* has_bits) { |
| (*has_bits)[0] |= 32u; |
| } |
| static void set_has_wait_nanos(HasBits* has_bits) { |
| (*has_bits)[0] |= 64u; |
| } |
| static void set_has_operator_type_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| }; |
| |
| OperatorProfile::OperatorProfile(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| input_profile_(arena), |
| metric_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.OperatorProfile) |
| } |
| OperatorProfile::OperatorProfile(const OperatorProfile& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| input_profile_(from.input_profile_), |
| metric_(from.metric_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| operator_type_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_operator_type_name()) { |
| operator_type_name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_operator_type_name(), |
| GetArena()); |
| } |
| ::memcpy(&operator_id_, &from.operator_id_, |
| static_cast<size_t>(reinterpret_cast<char*>(&wait_nanos_) - |
| reinterpret_cast<char*>(&operator_id_)) + sizeof(wait_nanos_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.OperatorProfile) |
| } |
| |
| void OperatorProfile::SharedCtor() { |
| operator_type_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&operator_id_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&wait_nanos_) - |
| reinterpret_cast<char*>(&operator_id_)) + sizeof(wait_nanos_)); |
| } |
| |
| OperatorProfile::~OperatorProfile() { |
| // @@protoc_insertion_point(destructor:exec.shared.OperatorProfile) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void OperatorProfile::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| operator_type_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| |
| void OperatorProfile::ArenaDtor(void* object) { |
| OperatorProfile* _this = reinterpret_cast< OperatorProfile* >(object); |
| (void)_this; |
| } |
| void OperatorProfile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void OperatorProfile::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void OperatorProfile::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.OperatorProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| input_profile_.Clear(); |
| metric_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000001u) { |
| operator_type_name_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x0000007eu) { |
| ::memset(&operator_id_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&wait_nanos_) - |
| reinterpret_cast<char*>(&operator_id_)) + sizeof(wait_nanos_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* OperatorProfile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // repeated .exec.shared.StreamProfile input_profile = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_input_profile(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 operator_id = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| _Internal::set_has_operator_id(&has_bits); |
| operator_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int32 operator_type = 4 [deprecated = true]; |
| case 4: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
| _Internal::set_has_operator_type(&has_bits); |
| operator_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 setup_nanos = 5; |
| case 5: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) { |
| _Internal::set_has_setup_nanos(&has_bits); |
| setup_nanos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 process_nanos = 6; |
| case 6: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { |
| _Internal::set_has_process_nanos(&has_bits); |
| process_nanos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 peak_local_memory_allocated = 7; |
| case 7: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) { |
| _Internal::set_has_peak_local_memory_allocated(&has_bits); |
| peak_local_memory_allocated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated .exec.shared.MetricValue metric = 8; |
| case 8: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_metric(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<66>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 wait_nanos = 9; |
| case 9: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 72)) { |
| _Internal::set_has_wait_nanos(&has_bits); |
| wait_nanos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional string operator_type_name = 10; |
| case 10: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) { |
| auto str = _internal_mutable_operator_type_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.OperatorProfile.operator_type_name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* OperatorProfile::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.OperatorProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.StreamProfile input_profile = 1; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_input_profile_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(1, this->_internal_input_profile(i), target, stream); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional int32 operator_id = 3; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_operator_id(), target); |
| } |
| |
| // optional int32 operator_type = 4 [deprecated = true]; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_operator_type(), target); |
| } |
| |
| // optional int64 setup_nanos = 5; |
| if (cached_has_bits & 0x00000008u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(5, this->_internal_setup_nanos(), target); |
| } |
| |
| // optional int64 process_nanos = 6; |
| if (cached_has_bits & 0x00000010u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->_internal_process_nanos(), target); |
| } |
| |
| // optional int64 peak_local_memory_allocated = 7; |
| if (cached_has_bits & 0x00000020u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(7, this->_internal_peak_local_memory_allocated(), target); |
| } |
| |
| // repeated .exec.shared.MetricValue metric = 8; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_metric_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(8, this->_internal_metric(i), target, stream); |
| } |
| |
| // optional int64 wait_nanos = 9; |
| if (cached_has_bits & 0x00000040u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(9, this->_internal_wait_nanos(), target); |
| } |
| |
| // optional string operator_type_name = 10; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_operator_type_name().data(), static_cast<int>(this->_internal_operator_type_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.OperatorProfile.operator_type_name"); |
| target = stream->WriteStringMaybeAliased( |
| 10, this->_internal_operator_type_name(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.OperatorProfile) |
| return target; |
| } |
| |
| size_t OperatorProfile::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.OperatorProfile) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.StreamProfile input_profile = 1; |
| total_size += 1UL * this->_internal_input_profile_size(); |
| for (const auto& msg : this->input_profile_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| // repeated .exec.shared.MetricValue metric = 8; |
| total_size += 1UL * this->_internal_metric_size(); |
| for (const auto& msg : this->metric_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x0000007fu) { |
| // optional string operator_type_name = 10; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_operator_type_name()); |
| } |
| |
| // optional int32 operator_id = 3; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_operator_id()); |
| } |
| |
| // optional int32 operator_type = 4 [deprecated = true]; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_operator_type()); |
| } |
| |
| // optional int64 setup_nanos = 5; |
| if (cached_has_bits & 0x00000008u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_setup_nanos()); |
| } |
| |
| // optional int64 process_nanos = 6; |
| if (cached_has_bits & 0x00000010u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_process_nanos()); |
| } |
| |
| // optional int64 peak_local_memory_allocated = 7; |
| if (cached_has_bits & 0x00000020u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_peak_local_memory_allocated()); |
| } |
| |
| // optional int64 wait_nanos = 9; |
| if (cached_has_bits & 0x00000040u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_wait_nanos()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void OperatorProfile::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.OperatorProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| const OperatorProfile* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<OperatorProfile>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.OperatorProfile) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.OperatorProfile) |
| MergeFrom(*source); |
| } |
| } |
| |
| void OperatorProfile::MergeFrom(const OperatorProfile& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.OperatorProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| input_profile_.MergeFrom(from.input_profile_); |
| metric_.MergeFrom(from.metric_); |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x0000007fu) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_set_operator_type_name(from._internal_operator_type_name()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| operator_id_ = from.operator_id_; |
| } |
| if (cached_has_bits & 0x00000004u) { |
| operator_type_ = from.operator_type_; |
| } |
| if (cached_has_bits & 0x00000008u) { |
| setup_nanos_ = from.setup_nanos_; |
| } |
| if (cached_has_bits & 0x00000010u) { |
| process_nanos_ = from.process_nanos_; |
| } |
| if (cached_has_bits & 0x00000020u) { |
| peak_local_memory_allocated_ = from.peak_local_memory_allocated_; |
| } |
| if (cached_has_bits & 0x00000040u) { |
| wait_nanos_ = from.wait_nanos_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void OperatorProfile::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.OperatorProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void OperatorProfile::CopyFrom(const OperatorProfile& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.OperatorProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool OperatorProfile::IsInitialized() const { |
| return true; |
| } |
| |
| void OperatorProfile::InternalSwap(OperatorProfile* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| input_profile_.InternalSwap(&other->input_profile_); |
| metric_.InternalSwap(&other->metric_); |
| operator_type_name_.Swap(&other->operator_type_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(OperatorProfile, wait_nanos_) |
| + sizeof(OperatorProfile::wait_nanos_) |
| - PROTOBUF_FIELD_OFFSET(OperatorProfile, operator_id_)>( |
| reinterpret_cast<char*>(&operator_id_), |
| reinterpret_cast<char*>(&other->operator_id_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata OperatorProfile::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[16]); |
| } |
| |
| // =================================================================== |
| |
| class StreamProfile::_Internal { |
| public: |
| using HasBits = decltype(std::declval<StreamProfile>()._has_bits_); |
| static void set_has_records(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_batches(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_schemas(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| }; |
| |
| StreamProfile::StreamProfile(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.StreamProfile) |
| } |
| StreamProfile::StreamProfile(const StreamProfile& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::memcpy(&records_, &from.records_, |
| static_cast<size_t>(reinterpret_cast<char*>(&schemas_) - |
| reinterpret_cast<char*>(&records_)) + sizeof(schemas_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.StreamProfile) |
| } |
| |
| void StreamProfile::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&records_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&schemas_) - |
| reinterpret_cast<char*>(&records_)) + sizeof(schemas_)); |
| } |
| |
| StreamProfile::~StreamProfile() { |
| // @@protoc_insertion_point(destructor:exec.shared.StreamProfile) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void StreamProfile::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| } |
| |
| void StreamProfile::ArenaDtor(void* object) { |
| StreamProfile* _this = reinterpret_cast< StreamProfile* >(object); |
| (void)_this; |
| } |
| void StreamProfile::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void StreamProfile::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void StreamProfile::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.StreamProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| ::memset(&records_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&schemas_) - |
| reinterpret_cast<char*>(&records_)) + sizeof(schemas_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* StreamProfile::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional int64 records = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
| _Internal::set_has_records(&has_bits); |
| records_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 batches = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
| _Internal::set_has_batches(&has_bits); |
| batches_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 schemas = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| _Internal::set_has_schemas(&has_bits); |
| schemas_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* StreamProfile::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.StreamProfile) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional int64 records = 1; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(1, this->_internal_records(), target); |
| } |
| |
| // optional int64 batches = 2; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_batches(), target); |
| } |
| |
| // optional int64 schemas = 3; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_schemas(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.StreamProfile) |
| return target; |
| } |
| |
| size_t StreamProfile::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.StreamProfile) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| // optional int64 records = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_records()); |
| } |
| |
| // optional int64 batches = 2; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_batches()); |
| } |
| |
| // optional int64 schemas = 3; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_schemas()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void StreamProfile::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.StreamProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| const StreamProfile* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<StreamProfile>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.StreamProfile) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.StreamProfile) |
| MergeFrom(*source); |
| } |
| } |
| |
| void StreamProfile::MergeFrom(const StreamProfile& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.StreamProfile) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| if (cached_has_bits & 0x00000001u) { |
| records_ = from.records_; |
| } |
| if (cached_has_bits & 0x00000002u) { |
| batches_ = from.batches_; |
| } |
| if (cached_has_bits & 0x00000004u) { |
| schemas_ = from.schemas_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void StreamProfile::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.StreamProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void StreamProfile::CopyFrom(const StreamProfile& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.StreamProfile) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool StreamProfile::IsInitialized() const { |
| return true; |
| } |
| |
| void StreamProfile::InternalSwap(StreamProfile* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(StreamProfile, schemas_) |
| + sizeof(StreamProfile::schemas_) |
| - PROTOBUF_FIELD_OFFSET(StreamProfile, records_)>( |
| reinterpret_cast<char*>(&records_), |
| reinterpret_cast<char*>(&other->records_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata StreamProfile::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[17]); |
| } |
| |
| // =================================================================== |
| |
| class MetricValue::_Internal { |
| public: |
| using HasBits = decltype(std::declval<MetricValue>()._has_bits_); |
| static void set_has_metric_id(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| static void set_has_long_value(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_double_value(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| }; |
| |
| MetricValue::MetricValue(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.MetricValue) |
| } |
| MetricValue::MetricValue(const MetricValue& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::memcpy(&long_value_, &from.long_value_, |
| static_cast<size_t>(reinterpret_cast<char*>(&metric_id_) - |
| reinterpret_cast<char*>(&long_value_)) + sizeof(metric_id_)); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.MetricValue) |
| } |
| |
| void MetricValue::SharedCtor() { |
| ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>( |
| reinterpret_cast<char*>(&long_value_) - reinterpret_cast<char*>(this)), |
| 0, static_cast<size_t>(reinterpret_cast<char*>(&metric_id_) - |
| reinterpret_cast<char*>(&long_value_)) + sizeof(metric_id_)); |
| } |
| |
| MetricValue::~MetricValue() { |
| // @@protoc_insertion_point(destructor:exec.shared.MetricValue) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void MetricValue::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| } |
| |
| void MetricValue::ArenaDtor(void* object) { |
| MetricValue* _this = reinterpret_cast< MetricValue* >(object); |
| (void)_this; |
| } |
| void MetricValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void MetricValue::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void MetricValue::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.MetricValue) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| ::memset(&long_value_, 0, static_cast<size_t>( |
| reinterpret_cast<char*>(&metric_id_) - |
| reinterpret_cast<char*>(&long_value_)) + sizeof(metric_id_)); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* MetricValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional int32 metric_id = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
| _Internal::set_has_metric_id(&has_bits); |
| metric_id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional int64 long_value = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
| _Internal::set_has_long_value(&has_bits); |
| long_value_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional double double_value = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 25)) { |
| _Internal::set_has_double_value(&has_bits); |
| double_value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr); |
| ptr += sizeof(double); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* MetricValue::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.MetricValue) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional int32 metric_id = 1; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_metric_id(), target); |
| } |
| |
| // optional int64 long_value = 2; |
| if (cached_has_bits & 0x00000001u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_long_value(), target); |
| } |
| |
| // optional double double_value = 3; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(3, this->_internal_double_value(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.MetricValue) |
| return target; |
| } |
| |
| size_t MetricValue::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.MetricValue) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| // optional int64 long_value = 2; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
| this->_internal_long_value()); |
| } |
| |
| // optional double double_value = 3; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + 8; |
| } |
| |
| // optional int32 metric_id = 1; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
| this->_internal_metric_id()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void MetricValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.MetricValue) |
| GOOGLE_DCHECK_NE(&from, this); |
| const MetricValue* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MetricValue>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.MetricValue) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.MetricValue) |
| MergeFrom(*source); |
| } |
| } |
| |
| void MetricValue::MergeFrom(const MetricValue& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.MetricValue) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| if (cached_has_bits & 0x00000001u) { |
| long_value_ = from.long_value_; |
| } |
| if (cached_has_bits & 0x00000002u) { |
| double_value_ = from.double_value_; |
| } |
| if (cached_has_bits & 0x00000004u) { |
| metric_id_ = from.metric_id_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void MetricValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.MetricValue) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void MetricValue::CopyFrom(const MetricValue& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.MetricValue) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool MetricValue::IsInitialized() const { |
| return true; |
| } |
| |
| void MetricValue::InternalSwap(MetricValue* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| ::PROTOBUF_NAMESPACE_ID::internal::memswap< |
| PROTOBUF_FIELD_OFFSET(MetricValue, metric_id_) |
| + sizeof(MetricValue::metric_id_) |
| - PROTOBUF_FIELD_OFFSET(MetricValue, long_value_)>( |
| reinterpret_cast<char*>(&long_value_), |
| reinterpret_cast<char*>(&other->long_value_)); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata MetricValue::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[18]); |
| } |
| |
| // =================================================================== |
| |
| class Registry::_Internal { |
| public: |
| }; |
| |
| Registry::Registry(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| jar_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.Registry) |
| } |
| Registry::Registry(const Registry& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| jar_(from.jar_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| // @@protoc_insertion_point(copy_constructor:exec.shared.Registry) |
| } |
| |
| void Registry::SharedCtor() { |
| } |
| |
| Registry::~Registry() { |
| // @@protoc_insertion_point(destructor:exec.shared.Registry) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void Registry::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| } |
| |
| void Registry::ArenaDtor(void* object) { |
| Registry* _this = reinterpret_cast< Registry* >(object); |
| (void)_this; |
| } |
| void Registry::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void Registry::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void Registry::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.Registry) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| jar_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* Registry::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // repeated .exec.shared.Jar jar = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| ptr = ctx->ParseMessage(_internal_add_jar(), ptr); |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* Registry::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.Registry) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.Jar jar = 1; |
| for (unsigned int i = 0, |
| n = static_cast<unsigned int>(this->_internal_jar_size()); i < n; i++) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
| InternalWriteMessage(1, this->_internal_jar(i), target, stream); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.Registry) |
| return target; |
| } |
| |
| size_t Registry::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.Registry) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated .exec.shared.Jar jar = 1; |
| total_size += 1UL * this->_internal_jar_size(); |
| for (const auto& msg : this->jar_) { |
| total_size += |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void Registry::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.Registry) |
| GOOGLE_DCHECK_NE(&from, this); |
| const Registry* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Registry>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.Registry) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.Registry) |
| MergeFrom(*source); |
| } |
| } |
| |
| void Registry::MergeFrom(const Registry& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.Registry) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| jar_.MergeFrom(from.jar_); |
| } |
| |
| void Registry::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.Registry) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void Registry::CopyFrom(const Registry& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.Registry) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool Registry::IsInitialized() const { |
| return true; |
| } |
| |
| void Registry::InternalSwap(Registry* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| jar_.InternalSwap(&other->jar_); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata Registry::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[19]); |
| } |
| |
| // =================================================================== |
| |
| class Jar::_Internal { |
| public: |
| using HasBits = decltype(std::declval<Jar>()._has_bits_); |
| static void set_has_name(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| }; |
| |
| Jar::Jar(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena), |
| function_signature_(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.Jar) |
| } |
| Jar::Jar(const Jar& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_), |
| function_signature_(from.function_signature_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_name()) { |
| name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(), |
| GetArena()); |
| } |
| // @@protoc_insertion_point(copy_constructor:exec.shared.Jar) |
| } |
| |
| void Jar::SharedCtor() { |
| name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| |
| Jar::~Jar() { |
| // @@protoc_insertion_point(destructor:exec.shared.Jar) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void Jar::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| |
| void Jar::ArenaDtor(void* object) { |
| Jar* _this = reinterpret_cast< Jar* >(object); |
| (void)_this; |
| } |
| void Jar::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void Jar::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void Jar::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.Jar) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| function_signature_.Clear(); |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000001u) { |
| name_.ClearNonDefaultToEmpty(); |
| } |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* Jar::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional string name = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| auto str = _internal_mutable_name(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.Jar.name"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // repeated string function_signature = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| ptr -= 1; |
| do { |
| ptr += 1; |
| auto str = _internal_add_function_signature(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.Jar.function_signature"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| if (!ctx->DataAvailable(ptr)) break; |
| } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr)); |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* Jar::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.Jar) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional string name = 1; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_name().data(), static_cast<int>(this->_internal_name().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.Jar.name"); |
| target = stream->WriteStringMaybeAliased( |
| 1, this->_internal_name(), target); |
| } |
| |
| // repeated string function_signature = 2; |
| for (int i = 0, n = this->_internal_function_signature_size(); i < n; i++) { |
| const auto& s = this->_internal_function_signature(i); |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| s.data(), static_cast<int>(s.length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.Jar.function_signature"); |
| target = stream->WriteString(2, s, target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.Jar) |
| return target; |
| } |
| |
| size_t Jar::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.Jar) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| // repeated string function_signature = 2; |
| total_size += 1 * |
| ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(function_signature_.size()); |
| for (int i = 0, n = function_signature_.size(); i < n; i++) { |
| total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| function_signature_.Get(i)); |
| } |
| |
| // optional string name = 1; |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_name()); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void Jar::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.Jar) |
| GOOGLE_DCHECK_NE(&from, this); |
| const Jar* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Jar>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.Jar) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.Jar) |
| MergeFrom(*source); |
| } |
| } |
| |
| void Jar::MergeFrom(const Jar& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.Jar) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| function_signature_.MergeFrom(from.function_signature_); |
| if (from._internal_has_name()) { |
| _internal_set_name(from._internal_name()); |
| } |
| } |
| |
| void Jar::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.Jar) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void Jar::CopyFrom(const Jar& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.Jar) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool Jar::IsInitialized() const { |
| return true; |
| } |
| |
| void Jar::InternalSwap(Jar* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| function_signature_.InternalSwap(&other->function_signature_); |
| name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata Jar::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[20]); |
| } |
| |
| // =================================================================== |
| |
| class SaslMessage::_Internal { |
| public: |
| using HasBits = decltype(std::declval<SaslMessage>()._has_bits_); |
| static void set_has_mechanism(HasBits* has_bits) { |
| (*has_bits)[0] |= 1u; |
| } |
| static void set_has_data(HasBits* has_bits) { |
| (*has_bits)[0] |= 2u; |
| } |
| static void set_has_status(HasBits* has_bits) { |
| (*has_bits)[0] |= 4u; |
| } |
| }; |
| |
| SaslMessage::SaslMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
| : ::PROTOBUF_NAMESPACE_ID::Message(arena) { |
| SharedCtor(); |
| RegisterArenaDtor(arena); |
| // @@protoc_insertion_point(arena_constructor:exec.shared.SaslMessage) |
| } |
| SaslMessage::SaslMessage(const SaslMessage& from) |
| : ::PROTOBUF_NAMESPACE_ID::Message(), |
| _has_bits_(from._has_bits_) { |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| mechanism_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_mechanism()) { |
| mechanism_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_mechanism(), |
| GetArena()); |
| } |
| data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| if (from._internal_has_data()) { |
| data_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_data(), |
| GetArena()); |
| } |
| status_ = from.status_; |
| // @@protoc_insertion_point(copy_constructor:exec.shared.SaslMessage) |
| } |
| |
| void SaslMessage::SharedCtor() { |
| mechanism_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| data_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| status_ = 0; |
| } |
| |
| SaslMessage::~SaslMessage() { |
| // @@protoc_insertion_point(destructor:exec.shared.SaslMessage) |
| SharedDtor(); |
| _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| void SaslMessage::SharedDtor() { |
| GOOGLE_DCHECK(GetArena() == nullptr); |
| mechanism_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| data_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
| } |
| |
| void SaslMessage::ArenaDtor(void* object) { |
| SaslMessage* _this = reinterpret_cast< SaslMessage* >(object); |
| (void)_this; |
| } |
| void SaslMessage::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
| } |
| void SaslMessage::SetCachedSize(int size) const { |
| _cached_size_.Set(size); |
| } |
| |
| void SaslMessage::Clear() { |
| // @@protoc_insertion_point(message_clear_start:exec.shared.SaslMessage) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000003u) { |
| if (cached_has_bits & 0x00000001u) { |
| mechanism_.ClearNonDefaultToEmpty(); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| data_.ClearNonDefaultToEmpty(); |
| } |
| } |
| status_ = 0; |
| _has_bits_.Clear(); |
| _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
| } |
| |
| const char* SaslMessage::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
| #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
| _Internal::HasBits has_bits{}; |
| while (!ctx->Done(&ptr)) { |
| ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
| switch (tag >> 3) { |
| // optional string mechanism = 1; |
| case 1: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
| auto str = _internal_mutable_mechanism(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| #ifndef NDEBUG |
| ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "exec.shared.SaslMessage.mechanism"); |
| #endif // !NDEBUG |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional bytes data = 2; |
| case 2: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
| auto str = _internal_mutable_data(); |
| ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx); |
| CHK_(ptr); |
| } else goto handle_unusual; |
| continue; |
| // optional .exec.shared.SaslStatus status = 3; |
| case 3: |
| if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
| ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr); |
| CHK_(ptr); |
| if (PROTOBUF_PREDICT_TRUE(::exec::shared::SaslStatus_IsValid(val))) { |
| _internal_set_status(static_cast<::exec::shared::SaslStatus>(val)); |
| } else { |
| ::PROTOBUF_NAMESPACE_ID::internal::WriteVarint(3, val, mutable_unknown_fields()); |
| } |
| } else goto handle_unusual; |
| continue; |
| default: { |
| handle_unusual: |
| if ((tag == 0) || ((tag & 7) == 4)) { |
| CHK_(ptr); |
| ctx->SetLastTag(tag); |
| goto success; |
| } |
| ptr = UnknownFieldParse(tag, |
| _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(), |
| ptr, ctx); |
| CHK_(ptr != nullptr); |
| continue; |
| } |
| } // switch |
| } // while |
| success: |
| _has_bits_.Or(has_bits); |
| return ptr; |
| failure: |
| ptr = nullptr; |
| goto success; |
| #undef CHK_ |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::uint8* SaslMessage::_InternalSerialize( |
| ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const { |
| // @@protoc_insertion_point(serialize_to_array_start:exec.shared.SaslMessage) |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| // optional string mechanism = 1; |
| if (cached_has_bits & 0x00000001u) { |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField( |
| this->_internal_mechanism().data(), static_cast<int>(this->_internal_mechanism().length()), |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE, |
| "exec.shared.SaslMessage.mechanism"); |
| target = stream->WriteStringMaybeAliased( |
| 1, this->_internal_mechanism(), target); |
| } |
| |
| // optional bytes data = 2; |
| if (cached_has_bits & 0x00000002u) { |
| target = stream->WriteBytesMaybeAliased( |
| 2, this->_internal_data(), target); |
| } |
| |
| // optional .exec.shared.SaslStatus status = 3; |
| if (cached_has_bits & 0x00000004u) { |
| target = stream->EnsureSpace(target); |
| target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
| 3, this->_internal_status(), target); |
| } |
| |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| target = ::PROTOBUF_NAMESPACE_ID::internal::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:exec.shared.SaslMessage) |
| return target; |
| } |
| |
| size_t SaslMessage::ByteSizeLong() const { |
| // @@protoc_insertion_point(message_byte_size_start:exec.shared.SaslMessage) |
| size_t total_size = 0; |
| |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| // Prevent compiler warnings about cached_has_bits being unused |
| (void) cached_has_bits; |
| |
| cached_has_bits = _has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| // optional string mechanism = 1; |
| if (cached_has_bits & 0x00000001u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
| this->_internal_mechanism()); |
| } |
| |
| // optional bytes data = 2; |
| if (cached_has_bits & 0x00000002u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize( |
| this->_internal_data()); |
| } |
| |
| // optional .exec.shared.SaslStatus status = 3; |
| if (cached_has_bits & 0x00000004u) { |
| total_size += 1 + |
| ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_status()); |
| } |
| |
| } |
| if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) { |
| return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize( |
| _internal_metadata_, total_size, &_cached_size_); |
| } |
| int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
| SetCachedSize(cached_size); |
| return total_size; |
| } |
| |
| void SaslMessage::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_merge_from_start:exec.shared.SaslMessage) |
| GOOGLE_DCHECK_NE(&from, this); |
| const SaslMessage* source = |
| ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SaslMessage>( |
| &from); |
| if (source == nullptr) { |
| // @@protoc_insertion_point(generalized_merge_from_cast_fail:exec.shared.SaslMessage) |
| ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
| } else { |
| // @@protoc_insertion_point(generalized_merge_from_cast_success:exec.shared.SaslMessage) |
| MergeFrom(*source); |
| } |
| } |
| |
| void SaslMessage::MergeFrom(const SaslMessage& from) { |
| // @@protoc_insertion_point(class_specific_merge_from_start:exec.shared.SaslMessage) |
| GOOGLE_DCHECK_NE(&from, this); |
| _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_); |
| ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
| (void) cached_has_bits; |
| |
| cached_has_bits = from._has_bits_[0]; |
| if (cached_has_bits & 0x00000007u) { |
| if (cached_has_bits & 0x00000001u) { |
| _internal_set_mechanism(from._internal_mechanism()); |
| } |
| if (cached_has_bits & 0x00000002u) { |
| _internal_set_data(from._internal_data()); |
| } |
| if (cached_has_bits & 0x00000004u) { |
| status_ = from.status_; |
| } |
| _has_bits_[0] |= cached_has_bits; |
| } |
| } |
| |
| void SaslMessage::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
| // @@protoc_insertion_point(generalized_copy_from_start:exec.shared.SaslMessage) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| void SaslMessage::CopyFrom(const SaslMessage& from) { |
| // @@protoc_insertion_point(class_specific_copy_from_start:exec.shared.SaslMessage) |
| if (&from == this) return; |
| Clear(); |
| MergeFrom(from); |
| } |
| |
| bool SaslMessage::IsInitialized() const { |
| return true; |
| } |
| |
| void SaslMessage::InternalSwap(SaslMessage* other) { |
| using std::swap; |
| _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_); |
| swap(_has_bits_[0], other->_has_bits_[0]); |
| mechanism_.Swap(&other->mechanism_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| data_.Swap(&other->data_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena()); |
| swap(status_, other->status_); |
| } |
| |
| ::PROTOBUF_NAMESPACE_ID::Metadata SaslMessage::GetMetadata() const { |
| return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors( |
| &descriptor_table_UserBitShared_2eproto_getter, &descriptor_table_UserBitShared_2eproto_once, |
| file_level_metadata_UserBitShared_2eproto[21]); |
| } |
| |
| // @@protoc_insertion_point(namespace_scope) |
| } // namespace shared |
| } // namespace exec |
| PROTOBUF_NAMESPACE_OPEN |
| template<> PROTOBUF_NOINLINE ::exec::shared::UserCredentials* Arena::CreateMaybeMessage< ::exec::shared::UserCredentials >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::UserCredentials >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::QueryId* Arena::CreateMaybeMessage< ::exec::shared::QueryId >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::QueryId >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::DrillPBError* Arena::CreateMaybeMessage< ::exec::shared::DrillPBError >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::DrillPBError >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::ExceptionWrapper* Arena::CreateMaybeMessage< ::exec::shared::ExceptionWrapper >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::ExceptionWrapper >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::StackTraceElementWrapper* Arena::CreateMaybeMessage< ::exec::shared::StackTraceElementWrapper >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::StackTraceElementWrapper >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::ParsingError* Arena::CreateMaybeMessage< ::exec::shared::ParsingError >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::ParsingError >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::RecordBatchDef* Arena::CreateMaybeMessage< ::exec::shared::RecordBatchDef >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::RecordBatchDef >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::NamePart* Arena::CreateMaybeMessage< ::exec::shared::NamePart >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::NamePart >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::SerializedField* Arena::CreateMaybeMessage< ::exec::shared::SerializedField >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::SerializedField >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::NodeStatus* Arena::CreateMaybeMessage< ::exec::shared::NodeStatus >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::NodeStatus >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::QueryResult* Arena::CreateMaybeMessage< ::exec::shared::QueryResult >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::QueryResult >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::QueryData* Arena::CreateMaybeMessage< ::exec::shared::QueryData >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::QueryData >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::QueryInfo* Arena::CreateMaybeMessage< ::exec::shared::QueryInfo >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::QueryInfo >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::QueryProfile* Arena::CreateMaybeMessage< ::exec::shared::QueryProfile >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::QueryProfile >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::MajorFragmentProfile* Arena::CreateMaybeMessage< ::exec::shared::MajorFragmentProfile >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::MajorFragmentProfile >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::MinorFragmentProfile* Arena::CreateMaybeMessage< ::exec::shared::MinorFragmentProfile >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::MinorFragmentProfile >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::OperatorProfile* Arena::CreateMaybeMessage< ::exec::shared::OperatorProfile >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::OperatorProfile >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::StreamProfile* Arena::CreateMaybeMessage< ::exec::shared::StreamProfile >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::StreamProfile >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::MetricValue* Arena::CreateMaybeMessage< ::exec::shared::MetricValue >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::MetricValue >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::Registry* Arena::CreateMaybeMessage< ::exec::shared::Registry >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::Registry >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::Jar* Arena::CreateMaybeMessage< ::exec::shared::Jar >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::Jar >(arena); |
| } |
| template<> PROTOBUF_NOINLINE ::exec::shared::SaslMessage* Arena::CreateMaybeMessage< ::exec::shared::SaslMessage >(Arena* arena) { |
| return Arena::CreateMessageInternal< ::exec::shared::SaslMessage >(arena); |
| } |
| PROTOBUF_NAMESPACE_CLOSE |
| |
| // @@protoc_insertion_point(global_scope) |
| #include <google/protobuf/port_undef.inc> |